Package org.lwjgl.vulkan.video
Class StdVideoAV1ColorConfig
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class StdVideoAV1ColorConfig
extends Struct<StdVideoAV1ColorConfig>
implements NativeResource
struct StdVideoAV1ColorConfig {
{@link StdVideoAV1ColorConfigFlags StdVideoAV1ColorConfigFlags} flags;
uint8_t BitDepth;
uint8_t subsampling_x;
uint8_t subsampling_y;
uint8_t reserved1;
StdVideoAV1ColorPrimaries color_primaries;
StdVideoAV1TransferCharacteristics transfer_characteristics;
StdVideoAV1MatrixCoefficients matrix_coefficients;
StdVideoAV1ChromaSamplePosition chroma_sample_position;
}
-
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 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
ConstructorsConstructorDescriptionStdVideoAV1ColorConfig
(ByteBuffer container) Creates aStdVideoAV1ColorConfig
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbyte
BitDepth()
BitDepth
(byte value) Sets the specified value to theBitDepth
field.static StdVideoAV1ColorConfig
calloc()
Returns a newStdVideoAV1ColorConfig
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoAV1ColorConfig.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoAV1ColorConfig.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoAV1ColorConfig
calloc
(MemoryStack stack) Returns a newStdVideoAV1ColorConfig
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
chroma_sample_position
(int value) Sets the specified value to thechroma_sample_position
field.int
color_primaries
(int value) Sets the specified value to thecolor_primaries
field.static StdVideoAV1ColorConfig
create()
Returns a newStdVideoAV1ColorConfig
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoAV1ColorConfig.Buffer
instance allocated withBufferUtils
.static StdVideoAV1ColorConfig
create
(long address) Returns a newStdVideoAV1ColorConfig
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoAV1ColorConfig.Buffer
instance at the specified memory.static @Nullable StdVideoAV1ColorConfig
createSafe
(long address) static @Nullable StdVideoAV1ColorConfig.Buffer
createSafe
(long address, int capacity) flags()
flags
(Consumer<StdVideoAV1ColorConfigFlags> consumer) Passes theflags
field to the specifiedConsumer
.flags
(StdVideoAV1ColorConfigFlags value) Copies the specifiedStdVideoAV1ColorConfigFlags
to theflags
field.static StdVideoAV1ColorConfig
malloc()
Returns a newStdVideoAV1ColorConfig
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoAV1ColorConfig.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoAV1ColorConfig.Buffer
instance allocated on the specifiedMemoryStack
.static StdVideoAV1ColorConfig
malloc
(MemoryStack stack) Returns a newStdVideoAV1ColorConfig
instance allocated on the specifiedMemoryStack
.int
matrix_coefficients
(int value) Sets the specified value to thematrix_coefficients
field.static byte
nBitDepth
(long struct) Unsafe version ofBitDepth()
.static void
nBitDepth
(long struct, byte value) Unsafe version ofBitDepth
.static int
nchroma_sample_position
(long struct) Unsafe version ofchroma_sample_position()
.static void
nchroma_sample_position
(long struct, int value) Unsafe version ofchroma_sample_position
.static int
ncolor_primaries
(long struct) Unsafe version ofcolor_primaries()
.static void
ncolor_primaries
(long struct, int value) Unsafe version ofcolor_primaries
.static StdVideoAV1ColorConfigFlags
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoAV1ColorConfigFlags value) Unsafe version offlags
.static int
nmatrix_coefficients
(long struct) Unsafe version ofmatrix_coefficients()
.static void
nmatrix_coefficients
(long struct, int value) Unsafe version ofmatrix_coefficients
.static byte
nreserved1
(long struct) static void
nreserved1
(long struct, byte value) static byte
nsubsampling_x
(long struct) Unsafe version ofsubsampling_x()
.static void
nsubsampling_x
(long struct, byte value) Unsafe version ofsubsampling_x
.static byte
nsubsampling_y
(long struct) Unsafe version ofsubsampling_y()
.static void
nsubsampling_y
(long struct, byte value) Unsafe version ofsubsampling_y
.static int
ntransfer_characteristics
(long struct) Unsafe version oftransfer_characteristics()
.static void
ntransfer_characteristics
(long struct, int value) Unsafe version oftransfer_characteristics
.Copies the specified struct data to this struct.set
(StdVideoAV1ColorConfigFlags flags, byte BitDepth, byte subsampling_x, byte subsampling_y, int color_primaries, int transfer_characteristics, int matrix_coefficients, int chroma_sample_position) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.byte
subsampling_x
(byte value) Sets the specified value to thesubsampling_x
field.byte
subsampling_y
(byte value) Sets the specified value to thesubsampling_y
field.int
transfer_characteristics
(int value) Sets the specified value to thetransfer_characteristics
field.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. -
BITDEPTH
public static final int BITDEPTHThe struct member offsets. -
SUBSAMPLING_X
public static final int SUBSAMPLING_XThe struct member offsets. -
SUBSAMPLING_Y
public static final int SUBSAMPLING_YThe struct member offsets. -
RESERVED1
public static final int RESERVED1The struct member offsets. -
COLOR_PRIMARIES
public static final int COLOR_PRIMARIESThe struct member offsets. -
TRANSFER_CHARACTERISTICS
public static final int TRANSFER_CHARACTERISTICSThe struct member offsets. -
MATRIX_COEFFICIENTS
public static final int MATRIX_COEFFICIENTSThe struct member offsets. -
CHROMA_SAMPLE_POSITION
public static final int CHROMA_SAMPLE_POSITIONThe struct member offsets.
-
-
Constructor Details
-
StdVideoAV1ColorConfig
Creates aStdVideoAV1ColorConfig
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<StdVideoAV1ColorConfig>
-
flags
- Returns:
- a
StdVideoAV1ColorConfigFlags
view of theflags
field.
-
BitDepth
public byte BitDepth()- Returns:
- the value of the
BitDepth
field.
-
subsampling_x
public byte subsampling_x()- Returns:
- the value of the
subsampling_x
field.
-
subsampling_y
public byte subsampling_y()- Returns:
- the value of the
subsampling_y
field.
-
color_primaries
public int color_primaries()- Returns:
- the value of the
color_primaries
field.
-
transfer_characteristics
public int transfer_characteristics()- Returns:
- the value of the
transfer_characteristics
field.
-
matrix_coefficients
public int matrix_coefficients()- Returns:
- the value of the
matrix_coefficients
field.
-
chroma_sample_position
public int chroma_sample_position()- Returns:
- the value of the
chroma_sample_position
field.
-
flags
Copies the specifiedStdVideoAV1ColorConfigFlags
to theflags
field. -
flags
Passes theflags
field to the specifiedConsumer
. -
BitDepth
Sets the specified value to theBitDepth
field. -
subsampling_x
Sets the specified value to thesubsampling_x
field. -
subsampling_y
Sets the specified value to thesubsampling_y
field. -
color_primaries
Sets the specified value to thecolor_primaries
field. -
transfer_characteristics
Sets the specified value to thetransfer_characteristics
field. -
matrix_coefficients
Sets the specified value to thematrix_coefficients
field. -
chroma_sample_position
Sets the specified value to thechroma_sample_position
field. -
set
public StdVideoAV1ColorConfig set(StdVideoAV1ColorConfigFlags flags, byte BitDepth, byte subsampling_x, byte subsampling_y, int color_primaries, int transfer_characteristics, int matrix_coefficients, int chroma_sample_position) 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 newStdVideoAV1ColorConfig
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoAV1ColorConfig
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoAV1ColorConfig
instance allocated withBufferUtils
. -
create
Returns a newStdVideoAV1ColorConfig
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoAV1ColorConfig.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoAV1ColorConfig.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoAV1ColorConfig.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoAV1ColorConfig.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoAV1ColorConfig
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoAV1ColorConfig
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoAV1ColorConfig.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoAV1ColorConfig.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()
. -
nBitDepth
public static byte nBitDepth(long struct) Unsafe version ofBitDepth()
. -
nsubsampling_x
public static byte nsubsampling_x(long struct) Unsafe version ofsubsampling_x()
. -
nsubsampling_y
public static byte nsubsampling_y(long struct) Unsafe version ofsubsampling_y()
. -
nreserved1
public static byte nreserved1(long struct) -
ncolor_primaries
public static int ncolor_primaries(long struct) Unsafe version ofcolor_primaries()
. -
ntransfer_characteristics
public static int ntransfer_characteristics(long struct) Unsafe version oftransfer_characteristics()
. -
nmatrix_coefficients
public static int nmatrix_coefficients(long struct) Unsafe version ofmatrix_coefficients()
. -
nchroma_sample_position
public static int nchroma_sample_position(long struct) Unsafe version ofchroma_sample_position()
. -
nflags
Unsafe version offlags
. -
nBitDepth
public static void nBitDepth(long struct, byte value) Unsafe version ofBitDepth
. -
nsubsampling_x
public static void nsubsampling_x(long struct, byte value) Unsafe version ofsubsampling_x
. -
nsubsampling_y
public static void nsubsampling_y(long struct, byte value) Unsafe version ofsubsampling_y
. -
nreserved1
public static void nreserved1(long struct, byte value) -
ncolor_primaries
public static void ncolor_primaries(long struct, int value) Unsafe version ofcolor_primaries
. -
ntransfer_characteristics
public static void ntransfer_characteristics(long struct, int value) Unsafe version oftransfer_characteristics
. -
nmatrix_coefficients
public static void nmatrix_coefficients(long struct, int value) Unsafe version ofmatrix_coefficients
. -
nchroma_sample_position
public static void nchroma_sample_position(long struct, int value) Unsafe version ofchroma_sample_position
.
-