Package org.lwjgl.vulkan.video
Class StdVideoAV1TileInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct StdVideoAV1TileInfo {
{@link StdVideoAV1TileInfoFlag 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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aStdVideoAV1TileInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoAV1TileInfo
calloc()
Returns a newStdVideoAV1TileInfo
instance allocated withmemCalloc
.static StdVideoAV1TileInfo.Buffer
calloc
(int capacity) Returns a newStdVideoAV1TileInfo.Buffer
instance allocated withmemCalloc
.static StdVideoAV1TileInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newStdVideoAV1TileInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoAV1TileInfo
calloc
(MemoryStack stack) Returns a newStdVideoAV1TileInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.short
context_update_tile_id
(short value) Sets the specified value to thecontext_update_tile_id
field.static StdVideoAV1TileInfo
create()
Returns a newStdVideoAV1TileInfo
instance allocated withBufferUtils
.static StdVideoAV1TileInfo.Buffer
create
(int capacity) Returns a newStdVideoAV1TileInfo.Buffer
instance allocated withBufferUtils
.static StdVideoAV1TileInfo
create
(long address) Returns a newStdVideoAV1TileInfo
instance for the specified memory address.static StdVideoAV1TileInfo.Buffer
create
(long address, int capacity) Create aStdVideoAV1TileInfo.Buffer
instance at the specified memory.static @Nullable StdVideoAV1TileInfo
createSafe
(long address) static @Nullable StdVideoAV1TileInfo.Buffer
createSafe
(long address, int capacity) flags()
flags
(Consumer<StdVideoAV1TileInfoFlag> consumer) Passes theflags
field to the specifiedConsumer
.flags
(StdVideoAV1TileInfoFlag value) Copies the specifiedStdVideoAV1TileInfoFlag
to theflags
field.static StdVideoAV1TileInfo
malloc()
Returns a newStdVideoAV1TileInfo
instance allocated withmemAlloc
.static StdVideoAV1TileInfo.Buffer
malloc
(int capacity) Returns a newStdVideoAV1TileInfo.Buffer
instance allocated withmemAlloc
.static StdVideoAV1TileInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newStdVideoAV1TileInfo.Buffer
instance allocated on the specifiedMemoryStack
.static StdVideoAV1TileInfo
malloc
(MemoryStack stack) Returns a newStdVideoAV1TileInfo
instance allocated on the specifiedMemoryStack
.static short
ncontext_update_tile_id
(long struct) Unsafe version ofcontext_update_tile_id()
.static void
ncontext_update_tile_id
(long struct, short value) Unsafe version ofcontext_update_tile_id
.static StdVideoAV1TileInfoFlag
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoAV1TileInfoFlag value) Unsafe version offlags
.static ShortBuffer
npHeightInSbsMinus1
(long struct) Unsafe version ofpHeightInSbsMinus1
.static void
npHeightInSbsMinus1
(long struct, ShortBuffer value) Unsafe version ofpHeightInSbsMinus1
.static ShortBuffer
npMiColStarts
(long struct) Unsafe version ofpMiColStarts
.static void
npMiColStarts
(long struct, ShortBuffer value) Unsafe version ofpMiColStarts
.static ShortBuffer
npMiRowStarts
(long struct) Unsafe version ofpMiRowStarts
.static void
npMiRowStarts
(long struct, ShortBuffer value) Unsafe version ofpMiRowStarts
.static ShortBuffer
npWidthInSbsMinus1
(long struct) Unsafe version ofpWidthInSbsMinus1
.static void
npWidthInSbsMinus1
(long struct, ShortBuffer value) Unsafe version ofpWidthInSbsMinus1
.static ByteBuffer
nreserved1
(long struct) static byte
nreserved1
(long struct, int index) static void
nreserved1
(long struct, int index, byte value) static void
nreserved1
(long struct, ByteBuffer value) static byte
ntile_size_bytes_minus_1
(long struct) Unsafe version oftile_size_bytes_minus_1()
.static void
ntile_size_bytes_minus_1
(long struct, byte value) Unsafe version oftile_size_bytes_minus_1
.static byte
nTileCols
(long struct) Unsafe version ofTileCols()
.static void
nTileCols
(long struct, byte value) Sets the specified value to theTileCols
field of the specifiedstruct
.static byte
nTileRows
(long struct) Unsafe version ofTileRows()
.static void
nTileRows
(long struct, byte value) Sets the specified value to theTileRows
field of the specifiedstruct
.pHeightInSbsMinus1
(ShortBuffer value) Sets the address of the specifiedShortBuffer
to thepHeightInSbsMinus1
field.pMiColStarts
(ShortBuffer value) Sets the address of the specifiedShortBuffer
to thepMiColStarts
field.pMiRowStarts
(ShortBuffer value) Sets the address of the specifiedShortBuffer
to thepMiRowStarts
field.pWidthInSbsMinus1
(ShortBuffer value) Sets the address of the specifiedShortBuffer
to thepWidthInSbsMinus1
field.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.int
sizeof()
Returnssizeof(struct)
.byte
tile_size_bytes_minus_1
(byte value) Sets the specified value to thetile_size_bytes_minus_1
field.byte
TileCols()
TileCols
(byte value) Sets the specified value to theTileCols
field.byte
TileRows()
TileRows
(byte value) Sets the specified value to theTileRows
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aStdVideoAV1TileInfo
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<StdVideoAV1TileInfo>
-
flags
- Returns:
- a
StdVideoAV1TileInfoFlag
view of theflags
field.
-
TileCols
public byte TileCols()- Returns:
- the value of the
TileCols
field.
-
TileRows
public byte TileRows()- Returns:
- the value of the
TileRows
field.
-
context_update_tile_id
public short context_update_tile_id()- Returns:
- the value of the
context_update_tile_id
field.
-
tile_size_bytes_minus_1
public byte tile_size_bytes_minus_1()- Returns:
- the value of the
tile_size_bytes_minus_1
field.
-
pMiColStarts
- Returns:
- a
ShortBuffer
view of the data pointed to by thepMiColStarts
field.
-
pMiRowStarts
- Returns:
- a
ShortBuffer
view of the data pointed to by thepMiRowStarts
field.
-
pWidthInSbsMinus1
- Returns:
- a
ShortBuffer
view of the data pointed to by thepWidthInSbsMinus1
field.
-
pHeightInSbsMinus1
- Returns:
- a
ShortBuffer
view of the data pointed to by thepHeightInSbsMinus1
field.
-
flags
Copies the specifiedStdVideoAV1TileInfoFlag
to theflags
field. -
flags
Passes theflags
field to the specifiedConsumer
. -
TileCols
Sets the specified value to theTileCols
field. -
TileRows
Sets the specified value to theTileRows
field. -
context_update_tile_id
Sets the specified value to thecontext_update_tile_id
field. -
tile_size_bytes_minus_1
Sets the specified value to thetile_size_bytes_minus_1
field. -
pMiColStarts
Sets the address of the specifiedShortBuffer
to thepMiColStarts
field. -
pMiRowStarts
Sets the address of the specifiedShortBuffer
to thepMiRowStarts
field. -
pWidthInSbsMinus1
Sets the address of the specifiedShortBuffer
to thepWidthInSbsMinus1
field. -
pHeightInSbsMinus1
Sets the address of the specifiedShortBuffer
to thepHeightInSbsMinus1
field. -
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 newStdVideoAV1TileInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoAV1TileInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoAV1TileInfo
instance allocated withBufferUtils
. -
create
Returns a newStdVideoAV1TileInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoAV1TileInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoAV1TileInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoAV1TileInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoAV1TileInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoAV1TileInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoAV1TileInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoAV1TileInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoAV1TileInfo.Buffer
instance allocated on the specifiedMemoryStack
and 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 theTileCols
field of the specifiedstruct
. -
nTileRows
public static void nTileRows(long struct, byte value) Sets the specified value to theTileRows
field 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
-