Package org.lwjgl.vulkan.video
Class StdVideoVP9ColorConfig
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class StdVideoVP9ColorConfig
extends Struct<StdVideoVP9ColorConfig>
implements NativeResource
struct StdVideoVP9ColorConfig {
StdVideoVP9ColorConfigFlags flags;
uint8_t BitDepth;
uint8_t subsampling_x;
uint8_t subsampling_y;
uint8_t reserved1;
StdVideoVP9ColorSpace color_space;
}-
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 size in bytes.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
ConstructorsConstructorDescriptionStdVideoVP9ColorConfig(ByteBuffer container) Creates aStdVideoVP9ColorConfiginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbyteBitDepth()BitDepth(byte value) Sets the specified value to theBitDepthfield.static StdVideoVP9ColorConfigcalloc()Returns a newStdVideoVP9ColorConfiginstance allocated withmemCalloc.calloc(int capacity) Returns a newStdVideoVP9ColorConfig.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newStdVideoVP9ColorConfig.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoVP9ColorConfigcalloc(MemoryStack stack) Returns a newStdVideoVP9ColorConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolor_space(int value) Sets the specified value to thecolor_spacefield.static StdVideoVP9ColorConfigcreate()Returns a newStdVideoVP9ColorConfiginstance allocated withBufferUtils.create(int capacity) Returns a newStdVideoVP9ColorConfig.Bufferinstance allocated withBufferUtils.static StdVideoVP9ColorConfigcreate(long address) Returns a newStdVideoVP9ColorConfiginstance for the specified memory address.create(long address, int capacity) Create aStdVideoVP9ColorConfig.Bufferinstance at the specified memory.static @Nullable StdVideoVP9ColorConfigcreateSafe(long address) static @Nullable StdVideoVP9ColorConfig.BuffercreateSafe(long address, int capacity) flags()flags(Consumer<StdVideoVP9ColorConfigFlags> consumer) Passes theflagsfield to the specifiedConsumer.flags(StdVideoVP9ColorConfigFlags value) Copies the specifiedStdVideoVP9ColorConfigFlagsto theflagsfield.static StdVideoVP9ColorConfigmalloc()Returns a newStdVideoVP9ColorConfiginstance allocated withmemAlloc.malloc(int capacity) Returns a newStdVideoVP9ColorConfig.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newStdVideoVP9ColorConfig.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoVP9ColorConfigmalloc(MemoryStack stack) Returns a newStdVideoVP9ColorConfiginstance allocated on the specifiedMemoryStack.static bytenBitDepth(long struct) Unsafe version ofBitDepth().static voidnBitDepth(long struct, byte value) Unsafe version ofBitDepth.static intncolor_space(long struct) Unsafe version ofcolor_space().static voidncolor_space(long struct, int value) Unsafe version ofcolor_space.static StdVideoVP9ColorConfigFlagsnflags(long struct) Unsafe version offlags().static voidnflags(long struct, StdVideoVP9ColorConfigFlags value) Unsafe version offlags.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.Copies the specified struct data to this struct.set(StdVideoVP9ColorConfigFlags flags, byte BitDepth, byte subsampling_x, byte subsampling_y, int color_space) 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.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_SPACE
public static final int COLOR_SPACEThe struct member offsets.
-
-
Constructor Details
-
StdVideoVP9ColorConfig
Creates aStdVideoVP9ColorConfiginstance 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<StdVideoVP9ColorConfig>
-
flags
- Returns:
- a
StdVideoVP9ColorConfigFlagsview 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_space
public int color_space()- Returns:
- the value of the
color_spacefield.
-
flags
Copies the specifiedStdVideoVP9ColorConfigFlagsto 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_space
Sets the specified value to thecolor_spacefield. -
set
public StdVideoVP9ColorConfig set(StdVideoVP9ColorConfigFlags flags, byte BitDepth, byte subsampling_x, byte subsampling_y, int color_space) 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 newStdVideoVP9ColorConfiginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStdVideoVP9ColorConfiginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStdVideoVP9ColorConfiginstance allocated withBufferUtils. -
create
Returns a newStdVideoVP9ColorConfiginstance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoVP9ColorConfig.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStdVideoVP9ColorConfig.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStdVideoVP9ColorConfig.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStdVideoVP9ColorConfig.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoVP9ColorConfiginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStdVideoVP9ColorConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStdVideoVP9ColorConfig.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStdVideoVP9ColorConfig.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_space
public static int ncolor_space(long struct) Unsafe version ofcolor_space(). -
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_space
public static void ncolor_space(long struct, int value) Unsafe version ofcolor_space.
-