Package org.lwjgl.vulkan.video
Class StdVideoAV1Quantization
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class StdVideoAV1Quantization
extends Struct<StdVideoAV1Quantization>
implements NativeResource
struct StdVideoAV1Quantization {
{@link StdVideoAV1QuantizationFlags StdVideoAV1QuantizationFlags} flags;
uint8_t base_q_idx;
int8_t DeltaQYDc;
int8_t DeltaQUDc;
int8_t DeltaQUAc;
int8_t DeltaQVDc;
int8_t DeltaQVAc;
uint8_t qm_y;
uint8_t qm_u;
uint8_t qm_v;
}
-
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 member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionStdVideoAV1Quantization
(ByteBuffer container) Creates aStdVideoAV1Quantization
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbyte
base_q_idx
(byte value) Sets the specified value to thebase_q_idx
field.static StdVideoAV1Quantization
calloc()
Returns a newStdVideoAV1Quantization
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoAV1Quantization.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoAV1Quantization.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoAV1Quantization
calloc
(MemoryStack stack) Returns a newStdVideoAV1Quantization
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoAV1Quantization
create()
Returns a newStdVideoAV1Quantization
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoAV1Quantization.Buffer
instance allocated withBufferUtils
.static StdVideoAV1Quantization
create
(long address) Returns a newStdVideoAV1Quantization
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoAV1Quantization.Buffer
instance at the specified memory.static @Nullable StdVideoAV1Quantization
createSafe
(long address) static @Nullable StdVideoAV1Quantization.Buffer
createSafe
(long address, int capacity) byte
DeltaQUAc
(byte value) Sets the specified value to theDeltaQUAc
field.byte
DeltaQUDc
(byte value) Sets the specified value to theDeltaQUDc
field.byte
DeltaQVAc
(byte value) Sets the specified value to theDeltaQVAc
field.byte
DeltaQVDc
(byte value) Sets the specified value to theDeltaQVDc
field.byte
DeltaQYDc
(byte value) Sets the specified value to theDeltaQYDc
field.flags()
flags
(Consumer<StdVideoAV1QuantizationFlags> consumer) Passes theflags
field to the specifiedConsumer
.Copies the specifiedStdVideoAV1QuantizationFlags
to theflags
field.static StdVideoAV1Quantization
malloc()
Returns a newStdVideoAV1Quantization
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoAV1Quantization.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoAV1Quantization.Buffer
instance allocated on the specifiedMemoryStack
.static StdVideoAV1Quantization
malloc
(MemoryStack stack) Returns a newStdVideoAV1Quantization
instance allocated on the specifiedMemoryStack
.static byte
nbase_q_idx
(long struct) Unsafe version ofbase_q_idx()
.static void
nbase_q_idx
(long struct, byte value) Unsafe version ofbase_q_idx
.static byte
nDeltaQUAc
(long struct) Unsafe version ofDeltaQUAc()
.static void
nDeltaQUAc
(long struct, byte value) Unsafe version ofDeltaQUAc
.static byte
nDeltaQUDc
(long struct) Unsafe version ofDeltaQUDc()
.static void
nDeltaQUDc
(long struct, byte value) Unsafe version ofDeltaQUDc
.static byte
nDeltaQVAc
(long struct) Unsafe version ofDeltaQVAc()
.static void
nDeltaQVAc
(long struct, byte value) Unsafe version ofDeltaQVAc
.static byte
nDeltaQVDc
(long struct) Unsafe version ofDeltaQVDc()
.static void
nDeltaQVDc
(long struct, byte value) Unsafe version ofDeltaQVDc
.static byte
nDeltaQYDc
(long struct) Unsafe version ofDeltaQYDc()
.static void
nDeltaQYDc
(long struct, byte value) Unsafe version ofDeltaQYDc
.static StdVideoAV1QuantizationFlags
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoAV1QuantizationFlags value) Unsafe version offlags
.static byte
nqm_u
(long struct) Unsafe version ofqm_u()
.static void
nqm_u
(long struct, byte value) Unsafe version ofqm_u
.static byte
nqm_v
(long struct) Unsafe version ofqm_v()
.static void
nqm_v
(long struct, byte value) Unsafe version ofqm_v
.static byte
nqm_y
(long struct) Unsafe version ofqm_y()
.static void
nqm_y
(long struct, byte value) Unsafe version ofqm_y
.byte
qm_u()
qm_u
(byte value) Sets the specified value to theqm_u
field.byte
qm_v()
qm_v
(byte value) Sets the specified value to theqm_v
field.byte
qm_y()
qm_y
(byte value) Sets the specified value to theqm_y
field.Copies the specified struct data to this struct.set
(StdVideoAV1QuantizationFlags flags, byte base_q_idx, byte DeltaQYDc, byte DeltaQUDc, byte DeltaQUAc, byte DeltaQVDc, byte DeltaQVAc, byte qm_y, byte qm_u, byte qm_v) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.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. -
BASE_Q_IDX
public static final int BASE_Q_IDXThe struct member offsets. -
DELTAQYDC
public static final int DELTAQYDCThe struct member offsets. -
DELTAQUDC
public static final int DELTAQUDCThe struct member offsets. -
DELTAQUAC
public static final int DELTAQUACThe struct member offsets. -
DELTAQVDC
public static final int DELTAQVDCThe struct member offsets. -
DELTAQVAC
public static final int DELTAQVACThe struct member offsets. -
QM_Y
public static final int QM_YThe struct member offsets. -
QM_U
public static final int QM_UThe struct member offsets. -
QM_V
public static final int QM_VThe struct member offsets.
-
-
Constructor Details
-
StdVideoAV1Quantization
Creates aStdVideoAV1Quantization
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<StdVideoAV1Quantization>
-
flags
- Returns:
- a
StdVideoAV1QuantizationFlags
view of theflags
field.
-
base_q_idx
public byte base_q_idx()- Returns:
- the value of the
base_q_idx
field.
-
DeltaQYDc
public byte DeltaQYDc()- Returns:
- the value of the
DeltaQYDc
field.
-
DeltaQUDc
public byte DeltaQUDc()- Returns:
- the value of the
DeltaQUDc
field.
-
DeltaQUAc
public byte DeltaQUAc()- Returns:
- the value of the
DeltaQUAc
field.
-
DeltaQVDc
public byte DeltaQVDc()- Returns:
- the value of the
DeltaQVDc
field.
-
DeltaQVAc
public byte DeltaQVAc()- Returns:
- the value of the
DeltaQVAc
field.
-
qm_y
public byte qm_y()- Returns:
- the value of the
qm_y
field.
-
qm_u
public byte qm_u()- Returns:
- the value of the
qm_u
field.
-
qm_v
public byte qm_v()- Returns:
- the value of the
qm_v
field.
-
flags
Copies the specifiedStdVideoAV1QuantizationFlags
to theflags
field. -
flags
Passes theflags
field to the specifiedConsumer
. -
base_q_idx
Sets the specified value to thebase_q_idx
field. -
DeltaQYDc
Sets the specified value to theDeltaQYDc
field. -
DeltaQUDc
Sets the specified value to theDeltaQUDc
field. -
DeltaQUAc
Sets the specified value to theDeltaQUAc
field. -
DeltaQVDc
Sets the specified value to theDeltaQVDc
field. -
DeltaQVAc
Sets the specified value to theDeltaQVAc
field. -
qm_y
Sets the specified value to theqm_y
field. -
qm_u
Sets the specified value to theqm_u
field. -
qm_v
Sets the specified value to theqm_v
field. -
set
public StdVideoAV1Quantization set(StdVideoAV1QuantizationFlags flags, byte base_q_idx, byte DeltaQYDc, byte DeltaQUDc, byte DeltaQUAc, byte DeltaQVDc, byte DeltaQVAc, byte qm_y, byte qm_u, byte qm_v) 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 newStdVideoAV1Quantization
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoAV1Quantization
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoAV1Quantization
instance allocated withBufferUtils
. -
create
Returns a newStdVideoAV1Quantization
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoAV1Quantization.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoAV1Quantization.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoAV1Quantization.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoAV1Quantization.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoAV1Quantization
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoAV1Quantization
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoAV1Quantization.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoAV1Quantization.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()
. -
nbase_q_idx
public static byte nbase_q_idx(long struct) Unsafe version ofbase_q_idx()
. -
nDeltaQYDc
public static byte nDeltaQYDc(long struct) Unsafe version ofDeltaQYDc()
. -
nDeltaQUDc
public static byte nDeltaQUDc(long struct) Unsafe version ofDeltaQUDc()
. -
nDeltaQUAc
public static byte nDeltaQUAc(long struct) Unsafe version ofDeltaQUAc()
. -
nDeltaQVDc
public static byte nDeltaQVDc(long struct) Unsafe version ofDeltaQVDc()
. -
nDeltaQVAc
public static byte nDeltaQVAc(long struct) Unsafe version ofDeltaQVAc()
. -
nqm_y
public static byte nqm_y(long struct) Unsafe version ofqm_y()
. -
nqm_u
public static byte nqm_u(long struct) Unsafe version ofqm_u()
. -
nqm_v
public static byte nqm_v(long struct) Unsafe version ofqm_v()
. -
nflags
Unsafe version offlags
. -
nbase_q_idx
public static void nbase_q_idx(long struct, byte value) Unsafe version ofbase_q_idx
. -
nDeltaQYDc
public static void nDeltaQYDc(long struct, byte value) Unsafe version ofDeltaQYDc
. -
nDeltaQUDc
public static void nDeltaQUDc(long struct, byte value) Unsafe version ofDeltaQUDc
. -
nDeltaQUAc
public static void nDeltaQUAc(long struct, byte value) Unsafe version ofDeltaQUAc
. -
nDeltaQVDc
public static void nDeltaQVDc(long struct, byte value) Unsafe version ofDeltaQVDc
. -
nDeltaQVAc
public static void nDeltaQVAc(long struct, byte value) Unsafe version ofDeltaQVAc
. -
nqm_y
public static void nqm_y(long struct, byte value) Unsafe version ofqm_y
. -
nqm_u
public static void nqm_u(long struct, byte value) Unsafe version ofqm_u
. -
nqm_v
public static void nqm_v(long struct, byte value) Unsafe version ofqm_v
.
-