Package org.lwjgl.vulkan.video
Class StdVideoAV1TileInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct StdVideoAV1TileInfo {
StdVideoAV1TileInfoFlag flags;
uint8_t TileCols;
uint8_t TileRows;
uint16_t context_update_tile_id;
uint8_t tile_size_bytes_minus_1;
uint8_t reserved1[7];
uint16_t const * pMiColStarts;
uint16_t const * pMiRowStarts;
uint16_t const * pWidthInSbsMinus1;
uint16_t const * pHeightInSbsMinus1;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoAV1TileInfo(ByteBuffer container) Creates aStdVideoAV1TileInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoAV1TileInfocalloc()Returns a newStdVideoAV1TileInfoinstance allocated withmemCalloc.static StdVideoAV1TileInfo.Buffercalloc(int capacity) Returns a newStdVideoAV1TileInfo.Bufferinstance allocated withmemCalloc.static StdVideoAV1TileInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newStdVideoAV1TileInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoAV1TileInfocalloc(MemoryStack stack) Returns a newStdVideoAV1TileInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.shortcontext_update_tile_id(short value) Sets the specified value to thecontext_update_tile_idfield.static StdVideoAV1TileInfocreate()Returns a newStdVideoAV1TileInfoinstance allocated withBufferUtils.static StdVideoAV1TileInfo.Buffercreate(int capacity) Returns a newStdVideoAV1TileInfo.Bufferinstance allocated withBufferUtils.static StdVideoAV1TileInfocreate(long address) Returns a newStdVideoAV1TileInfoinstance for the specified memory address.static StdVideoAV1TileInfo.Buffercreate(long address, int capacity) Create aStdVideoAV1TileInfo.Bufferinstance at the specified memory.static @Nullable StdVideoAV1TileInfocreateSafe(long address) static @Nullable StdVideoAV1TileInfo.BuffercreateSafe(long address, int capacity) flags()flags(Consumer<StdVideoAV1TileInfoFlag> consumer) Passes theflagsfield to the specifiedConsumer.flags(StdVideoAV1TileInfoFlag value) Copies the specifiedStdVideoAV1TileInfoFlagto theflagsfield.static StdVideoAV1TileInfomalloc()Returns a newStdVideoAV1TileInfoinstance allocated withmemAlloc.static StdVideoAV1TileInfo.Buffermalloc(int capacity) Returns a newStdVideoAV1TileInfo.Bufferinstance allocated withmemAlloc.static StdVideoAV1TileInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newStdVideoAV1TileInfo.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoAV1TileInfomalloc(MemoryStack stack) Returns a newStdVideoAV1TileInfoinstance allocated on the specifiedMemoryStack.static shortncontext_update_tile_id(long struct) Unsafe version ofcontext_update_tile_id().static voidncontext_update_tile_id(long struct, short value) Unsafe version ofcontext_update_tile_id.static StdVideoAV1TileInfoFlagnflags(long struct) Unsafe version offlags().static voidnflags(long struct, StdVideoAV1TileInfoFlag value) Unsafe version offlags.static ShortBuffernpHeightInSbsMinus1(long struct) Unsafe version ofpHeightInSbsMinus1.static voidnpHeightInSbsMinus1(long struct, ShortBuffer value) Unsafe version ofpHeightInSbsMinus1.static ShortBuffernpMiColStarts(long struct) Unsafe version ofpMiColStarts.static voidnpMiColStarts(long struct, ShortBuffer value) Unsafe version ofpMiColStarts.static ShortBuffernpMiRowStarts(long struct) Unsafe version ofpMiRowStarts.static voidnpMiRowStarts(long struct, ShortBuffer value) Unsafe version ofpMiRowStarts.static ShortBuffernpWidthInSbsMinus1(long struct) Unsafe version ofpWidthInSbsMinus1.static voidnpWidthInSbsMinus1(long struct, ShortBuffer value) Unsafe version ofpWidthInSbsMinus1.static ByteBuffernreserved1(long struct) static bytenreserved1(long struct, int index) static voidnreserved1(long struct, int index, byte value) static voidnreserved1(long struct, ByteBuffer value) static bytentile_size_bytes_minus_1(long struct) Unsafe version oftile_size_bytes_minus_1().static voidntile_size_bytes_minus_1(long struct, byte value) Unsafe version oftile_size_bytes_minus_1.static bytenTileCols(long struct) Unsafe version ofTileCols().static voidnTileCols(long struct, byte value) Sets the specified value to theTileColsfield of the specifiedstruct.static bytenTileRows(long struct) Unsafe version ofTileRows().static voidnTileRows(long struct, byte value) Sets the specified value to theTileRowsfield of the specifiedstruct.pHeightInSbsMinus1(ShortBuffer value) Sets the address of the specifiedShortBufferto thepHeightInSbsMinus1field.pMiColStarts(ShortBuffer value) Sets the address of the specifiedShortBufferto thepMiColStartsfield.pMiRowStarts(ShortBuffer value) Sets the address of the specifiedShortBufferto thepMiRowStartsfield.pWidthInSbsMinus1(ShortBuffer value) Sets the address of the specifiedShortBufferto thepWidthInSbsMinus1field.set(StdVideoAV1TileInfo src) Copies the specified struct data to this struct.set(StdVideoAV1TileInfoFlag flags, byte TileCols, byte TileRows, short context_update_tile_id, byte tile_size_bytes_minus_1, ShortBuffer pMiColStarts, ShortBuffer pMiRowStarts, ShortBuffer pWidthInSbsMinus1, ShortBuffer pHeightInSbsMinus1) Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).bytetile_size_bytes_minus_1(byte value) Sets the specified value to thetile_size_bytes_minus_1field.byteTileCols()TileCols(byte value) Sets the specified value to theTileColsfield.byteTileRows()TileRows(byte value) Sets the specified value to theTileRowsfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FLAGS
public static final int FLAGSThe struct member offsets. -
TILECOLS
public static final int TILECOLSThe struct member offsets. -
TILEROWS
public static final int TILEROWSThe struct member offsets. -
CONTEXT_UPDATE_TILE_ID
public static final int CONTEXT_UPDATE_TILE_IDThe struct member offsets. -
TILE_SIZE_BYTES_MINUS_1
public static final int TILE_SIZE_BYTES_MINUS_1The struct member offsets. -
RESERVED1
public static final int RESERVED1The struct member offsets. -
PMICOLSTARTS
public static final int PMICOLSTARTSThe struct member offsets. -
PMIROWSTARTS
public static final int PMIROWSTARTSThe struct member offsets. -
PWIDTHINSBSMINUS1
public static final int PWIDTHINSBSMINUS1The struct member offsets. -
PHEIGHTINSBSMINUS1
public static final int PHEIGHTINSBSMINUS1The struct member offsets.
-
-
Constructor Details
-
StdVideoAV1TileInfo
Creates aStdVideoAV1TileInfoinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<StdVideoAV1TileInfo>
-
flags
- Returns:
- a
StdVideoAV1TileInfoFlagview of theflagsfield.
-
TileCols
public byte TileCols()- Returns:
- the value of the
TileColsfield.
-
TileRows
public byte TileRows()- Returns:
- the value of the
TileRowsfield.
-
context_update_tile_id
public short context_update_tile_id()- Returns:
- the value of the
context_update_tile_idfield.
-
tile_size_bytes_minus_1
public byte tile_size_bytes_minus_1()- Returns:
- the value of the
tile_size_bytes_minus_1field.
-
pMiColStarts
- Returns:
- a
ShortBufferview of the data pointed to by thepMiColStartsfield.
-
pMiRowStarts
- Returns:
- a
ShortBufferview of the data pointed to by thepMiRowStartsfield.
-
pWidthInSbsMinus1
- Returns:
- a
ShortBufferview of the data pointed to by thepWidthInSbsMinus1field.
-
pHeightInSbsMinus1
- Returns:
- a
ShortBufferview of the data pointed to by thepHeightInSbsMinus1field.
-
flags
Copies the specifiedStdVideoAV1TileInfoFlagto theflagsfield. -
flags
Passes theflagsfield to the specifiedConsumer. -
TileCols
Sets the specified value to theTileColsfield. -
TileRows
Sets the specified value to theTileRowsfield. -
context_update_tile_id
Sets the specified value to thecontext_update_tile_idfield. -
tile_size_bytes_minus_1
Sets the specified value to thetile_size_bytes_minus_1field. -
pMiColStarts
Sets the address of the specifiedShortBufferto thepMiColStartsfield. -
pMiRowStarts
Sets the address of the specifiedShortBufferto thepMiRowStartsfield. -
pWidthInSbsMinus1
Sets the address of the specifiedShortBufferto thepWidthInSbsMinus1field. -
pHeightInSbsMinus1
Sets the address of the specifiedShortBufferto thepHeightInSbsMinus1field. -
set
public StdVideoAV1TileInfo set(StdVideoAV1TileInfoFlag flags, byte TileCols, byte TileRows, short context_update_tile_id, byte tile_size_bytes_minus_1, ShortBuffer pMiColStarts, ShortBuffer pMiRowStarts, ShortBuffer pWidthInSbsMinus1, ShortBuffer pHeightInSbsMinus1) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newStdVideoAV1TileInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStdVideoAV1TileInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStdVideoAV1TileInfoinstance allocated withBufferUtils. -
create
Returns a newStdVideoAV1TileInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoAV1TileInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStdVideoAV1TileInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStdVideoAV1TileInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStdVideoAV1TileInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoAV1TileInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStdVideoAV1TileInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStdVideoAV1TileInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStdVideoAV1TileInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nflags
Unsafe version offlags(). -
nTileCols
public static byte nTileCols(long struct) Unsafe version ofTileCols(). -
nTileRows
public static byte nTileRows(long struct) Unsafe version ofTileRows(). -
ncontext_update_tile_id
public static short ncontext_update_tile_id(long struct) Unsafe version ofcontext_update_tile_id(). -
ntile_size_bytes_minus_1
public static byte ntile_size_bytes_minus_1(long struct) Unsafe version oftile_size_bytes_minus_1(). -
nreserved1
-
nreserved1
public static byte nreserved1(long struct, int index) -
npMiColStarts
Unsafe version ofpMiColStarts. -
npMiRowStarts
Unsafe version ofpMiRowStarts. -
npWidthInSbsMinus1
Unsafe version ofpWidthInSbsMinus1. -
npHeightInSbsMinus1
Unsafe version ofpHeightInSbsMinus1. -
nflags
Unsafe version offlags. -
nTileCols
public static void nTileCols(long struct, byte value) Sets the specified value to theTileColsfield of the specifiedstruct. -
nTileRows
public static void nTileRows(long struct, byte value) Sets the specified value to theTileRowsfield of the specifiedstruct. -
ncontext_update_tile_id
public static void ncontext_update_tile_id(long struct, short value) Unsafe version ofcontext_update_tile_id. -
ntile_size_bytes_minus_1
public static void ntile_size_bytes_minus_1(long struct, byte value) Unsafe version oftile_size_bytes_minus_1. -
nreserved1
-
nreserved1
public static void nreserved1(long struct, int index, byte value) -
npMiColStarts
Unsafe version ofpMiColStarts. -
npMiRowStarts
Unsafe version ofpMiRowStarts. -
npWidthInSbsMinus1
Unsafe version ofpWidthInSbsMinus1. -
npHeightInSbsMinus1
Unsafe version ofpHeightInSbsMinus1. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-