Package org.lwjgl.vulkan.video
Class StdVideoVP9ColorConfig
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class StdVideoVP9ColorConfig
extends Struct<StdVideoVP9ColorConfig>
implements NativeResource
struct StdVideoVP9ColorConfig {
{@link StdVideoVP9ColorConfigFlags 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.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 size in bytes.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
ConstructorsConstructorDescriptionStdVideoVP9ColorConfig
(ByteBuffer container) Creates aStdVideoVP9ColorConfig
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 StdVideoVP9ColorConfig
calloc()
Returns a newStdVideoVP9ColorConfig
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoVP9ColorConfig.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoVP9ColorConfig.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoVP9ColorConfig
calloc
(MemoryStack stack) Returns a newStdVideoVP9ColorConfig
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
color_space
(int value) Sets the specified value to thecolor_space
field.static StdVideoVP9ColorConfig
create()
Returns a newStdVideoVP9ColorConfig
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoVP9ColorConfig.Buffer
instance allocated withBufferUtils
.static StdVideoVP9ColorConfig
create
(long address) Returns a newStdVideoVP9ColorConfig
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoVP9ColorConfig.Buffer
instance at the specified memory.static @Nullable StdVideoVP9ColorConfig
createSafe
(long address) static @Nullable StdVideoVP9ColorConfig.Buffer
createSafe
(long address, int capacity) flags()
flags
(Consumer<StdVideoVP9ColorConfigFlags> consumer) Passes theflags
field to the specifiedConsumer
.flags
(StdVideoVP9ColorConfigFlags value) Copies the specifiedStdVideoVP9ColorConfigFlags
to theflags
field.static StdVideoVP9ColorConfig
malloc()
Returns a newStdVideoVP9ColorConfig
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoVP9ColorConfig.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoVP9ColorConfig.Buffer
instance allocated on the specifiedMemoryStack
.static StdVideoVP9ColorConfig
malloc
(MemoryStack stack) Returns a newStdVideoVP9ColorConfig
instance allocated on the specifiedMemoryStack
.static byte
nBitDepth
(long struct) Unsafe version ofBitDepth()
.static void
nBitDepth
(long struct, byte value) Unsafe version ofBitDepth
.static int
ncolor_space
(long struct) Unsafe version ofcolor_space()
.static void
ncolor_space
(long struct, int value) Unsafe version ofcolor_space
.static StdVideoVP9ColorConfigFlags
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoVP9ColorConfigFlags value) Unsafe version offlags
.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
.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.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.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_SPACE
public static final int COLOR_SPACEThe struct member offsets.
-
-
Constructor Details
-
StdVideoVP9ColorConfig
Creates aStdVideoVP9ColorConfig
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<StdVideoVP9ColorConfig>
-
flags
- Returns:
- a
StdVideoVP9ColorConfigFlags
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_space
public int color_space()- Returns:
- the value of the
color_space
field.
-
flags
Copies the specifiedStdVideoVP9ColorConfigFlags
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_space
Sets the specified value to thecolor_space
field. -
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 newStdVideoVP9ColorConfig
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoVP9ColorConfig
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoVP9ColorConfig
instance allocated withBufferUtils
. -
create
Returns a newStdVideoVP9ColorConfig
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoVP9ColorConfig.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoVP9ColorConfig.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoVP9ColorConfig.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoVP9ColorConfig.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoVP9ColorConfig
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoVP9ColorConfig
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoVP9ColorConfig.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoVP9ColorConfig.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_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
.
-