Package org.lwjgl.vulkan.video
Class StdVideoAV1ColorConfig
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class StdVideoAV1ColorConfig
extends Struct<StdVideoAV1ColorConfig>
implements NativeResource
struct StdVideoAV1ColorConfig {
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.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 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
ConstructorsConstructorDescriptionStdVideoAV1ColorConfig(ByteBuffer container) Creates aStdVideoAV1ColorConfiginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbyteBitDepth()BitDepth(byte value) Sets the specified value to theBitDepthfield.static StdVideoAV1ColorConfigcalloc()Returns a newStdVideoAV1ColorConfiginstance allocated withmemCalloc.calloc(int capacity) Returns a newStdVideoAV1ColorConfig.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newStdVideoAV1ColorConfig.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoAV1ColorConfigcalloc(MemoryStack stack) Returns a newStdVideoAV1ColorConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchroma_sample_position(int value) Sets the specified value to thechroma_sample_positionfield.intcolor_primaries(int value) Sets the specified value to thecolor_primariesfield.static StdVideoAV1ColorConfigcreate()Returns a newStdVideoAV1ColorConfiginstance allocated withBufferUtils.create(int capacity) Returns a newStdVideoAV1ColorConfig.Bufferinstance allocated withBufferUtils.static StdVideoAV1ColorConfigcreate(long address) Returns a newStdVideoAV1ColorConfiginstance for the specified memory address.create(long address, int capacity) Create aStdVideoAV1ColorConfig.Bufferinstance at the specified memory.static @Nullable StdVideoAV1ColorConfigcreateSafe(long address) static @Nullable StdVideoAV1ColorConfig.BuffercreateSafe(long address, int capacity) flags()flags(Consumer<StdVideoAV1ColorConfigFlags> consumer) Passes theflagsfield to the specifiedConsumer.flags(StdVideoAV1ColorConfigFlags value) Copies the specifiedStdVideoAV1ColorConfigFlagsto theflagsfield.static StdVideoAV1ColorConfigmalloc()Returns a newStdVideoAV1ColorConfiginstance allocated withmemAlloc.malloc(int capacity) Returns a newStdVideoAV1ColorConfig.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newStdVideoAV1ColorConfig.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoAV1ColorConfigmalloc(MemoryStack stack) Returns a newStdVideoAV1ColorConfiginstance allocated on the specifiedMemoryStack.intmatrix_coefficients(int value) Sets the specified value to thematrix_coefficientsfield.static bytenBitDepth(long struct) Unsafe version ofBitDepth().static voidnBitDepth(long struct, byte value) Unsafe version ofBitDepth.static intnchroma_sample_position(long struct) Unsafe version ofchroma_sample_position().static voidnchroma_sample_position(long struct, int value) Unsafe version ofchroma_sample_position.static intncolor_primaries(long struct) Unsafe version ofcolor_primaries().static voidncolor_primaries(long struct, int value) Unsafe version ofcolor_primaries.static StdVideoAV1ColorConfigFlagsnflags(long struct) Unsafe version offlags().static voidnflags(long struct, StdVideoAV1ColorConfigFlags value) Unsafe version offlags.static intnmatrix_coefficients(long struct) Unsafe version ofmatrix_coefficients().static voidnmatrix_coefficients(long struct, int value) Unsafe version ofmatrix_coefficients.static bytenreserved1(long struct) static voidnreserved1(long struct, byte value) static bytensubsampling_x(long struct) Unsafe version ofsubsampling_x().static voidnsubsampling_x(long struct, byte value) Unsafe version ofsubsampling_x.static bytensubsampling_y(long struct) Unsafe version ofsubsampling_y().static voidnsubsampling_y(long struct, byte value) Unsafe version ofsubsampling_y.static intntransfer_characteristics(long struct) Unsafe version oftransfer_characteristics().static voidntransfer_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.intsizeof()Returnssizeof(struct).bytesubsampling_x(byte value) Sets the specified value to thesubsampling_xfield.bytesubsampling_y(byte value) Sets the specified value to thesubsampling_yfield.inttransfer_characteristics(int value) Sets the specified value to thetransfer_characteristicsfield.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. -
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 aStdVideoAV1ColorConfiginstance 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<StdVideoAV1ColorConfig>
-
flags
- Returns:
- a
StdVideoAV1ColorConfigFlagsview of theflagsfield.
-
BitDepth
public byte BitDepth()- Returns:
- the value of the
BitDepthfield.
-
subsampling_x
public byte subsampling_x()- Returns:
- the value of the
subsampling_xfield.
-
subsampling_y
public byte subsampling_y()- Returns:
- the value of the
subsampling_yfield.
-
color_primaries
public int color_primaries()- Returns:
- the value of the
color_primariesfield.
-
transfer_characteristics
public int transfer_characteristics()- Returns:
- the value of the
transfer_characteristicsfield.
-
matrix_coefficients
public int matrix_coefficients()- Returns:
- the value of the
matrix_coefficientsfield.
-
chroma_sample_position
public int chroma_sample_position()- Returns:
- the value of the
chroma_sample_positionfield.
-
flags
Copies the specifiedStdVideoAV1ColorConfigFlagsto theflagsfield. -
flags
Passes theflagsfield to the specifiedConsumer. -
BitDepth
Sets the specified value to theBitDepthfield. -
subsampling_x
Sets the specified value to thesubsampling_xfield. -
subsampling_y
Sets the specified value to thesubsampling_yfield. -
color_primaries
Sets the specified value to thecolor_primariesfield. -
transfer_characteristics
Sets the specified value to thetransfer_characteristicsfield. -
matrix_coefficients
Sets the specified value to thematrix_coefficientsfield. -
chroma_sample_position
Sets the specified value to thechroma_sample_positionfield. -
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 newStdVideoAV1ColorConfiginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStdVideoAV1ColorConfiginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStdVideoAV1ColorConfiginstance allocated withBufferUtils. -
create
Returns a newStdVideoAV1ColorConfiginstance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoAV1ColorConfig.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStdVideoAV1ColorConfig.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStdVideoAV1ColorConfig.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStdVideoAV1ColorConfig.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoAV1ColorConfiginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStdVideoAV1ColorConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStdVideoAV1ColorConfig.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStdVideoAV1ColorConfig.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(). -
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.
-