Package org.lwjgl.vulkan.video
Class StdVideoEncodeH264WeightTable
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<StdVideoEncodeH264WeightTable>
org.lwjgl.vulkan.video.StdVideoEncodeH264WeightTable
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class StdVideoEncodeH264WeightTable
extends Struct<StdVideoEncodeH264WeightTable>
implements NativeResource
struct StdVideoEncodeH264WeightTable {
StdVideoEncodeH264WeightTableFlags flags;
uint8_t luma_log2_weight_denom;
uint8_t chroma_log2_weight_denom;
int8_t luma_weight_l0[STD_VIDEO_H264_MAX_NUM_LIST_REF];
int8_t luma_offset_l0[STD_VIDEO_H264_MAX_NUM_LIST_REF];
int8_t chroma_weight_l0[STD_VIDEO_H264_MAX_CHROMA_PLANES];
int8_t chroma_offset_l0[STD_VIDEO_H264_MAX_CHROMA_PLANES];
int8_t luma_weight_l1[STD_VIDEO_H264_MAX_NUM_LIST_REF];
int8_t luma_offset_l1[STD_VIDEO_H264_MAX_NUM_LIST_REF];
int8_t chroma_weight_l1[STD_VIDEO_H264_MAX_CHROMA_PLANES];
int8_t chroma_offset_l1[STD_VIDEO_H264_MAX_CHROMA_PLANES];
}-
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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoEncodeH264WeightTable(ByteBuffer container) Creates aStdVideoEncodeH264WeightTableinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newStdVideoEncodeH264WeightTableinstance allocated withmemCalloc.calloc(int capacity) Returns a newStdVideoEncodeH264WeightTable.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newStdVideoEncodeH264WeightTable.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newStdVideoEncodeH264WeightTableinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.bytechroma_log2_weight_denom(byte value) Sets the specified value to thechroma_log2_weight_denomfield.bytechroma_offset_l0(int index) chroma_offset_l0(int index, byte value) Sets the specified value at the specified index of thechroma_offset_l0field.chroma_offset_l0(ByteBuffer value) Copies the specifiedByteBufferto thechroma_offset_l0field.bytechroma_offset_l1(int index) chroma_offset_l1(int index, byte value) Sets the specified value at the specified index of thechroma_offset_l1field.chroma_offset_l1(ByteBuffer value) Copies the specifiedByteBufferto thechroma_offset_l1field.bytechroma_weight_l0(int index) chroma_weight_l0(int index, byte value) Sets the specified value at the specified index of thechroma_weight_l0field.chroma_weight_l0(ByteBuffer value) Copies the specifiedByteBufferto thechroma_weight_l0field.bytechroma_weight_l1(int index) chroma_weight_l1(int index, byte value) Sets the specified value at the specified index of thechroma_weight_l1field.chroma_weight_l1(ByteBuffer value) Copies the specifiedByteBufferto thechroma_weight_l1field.create()Returns a newStdVideoEncodeH264WeightTableinstance allocated withBufferUtils.create(int capacity) Returns a newStdVideoEncodeH264WeightTable.Bufferinstance allocated withBufferUtils.create(long address) Returns a newStdVideoEncodeH264WeightTableinstance for the specified memory address.create(long address, int capacity) Create aStdVideoEncodeH264WeightTable.Bufferinstance at the specified memory.static @Nullable StdVideoEncodeH264WeightTablecreateSafe(long address) static @Nullable StdVideoEncodeH264WeightTable.BuffercreateSafe(long address, int capacity) flags()flags(Consumer<StdVideoEncodeH264WeightTableFlags> consumer) Passes theflagsfield to the specifiedConsumer.Copies the specifiedStdVideoEncodeH264WeightTableFlagsto theflagsfield.byteluma_log2_weight_denom(byte value) Sets the specified value to theluma_log2_weight_denomfield.byteluma_offset_l0(int index) luma_offset_l0(int index, byte value) Sets the specified value at the specified index of theluma_offset_l0field.luma_offset_l0(ByteBuffer value) Copies the specifiedByteBufferto theluma_offset_l0field.byteluma_offset_l1(int index) luma_offset_l1(int index, byte value) Sets the specified value at the specified index of theluma_offset_l1field.luma_offset_l1(ByteBuffer value) Copies the specifiedByteBufferto theluma_offset_l1field.byteluma_weight_l0(int index) luma_weight_l0(int index, byte value) Sets the specified value at the specified index of theluma_weight_l0field.luma_weight_l0(ByteBuffer value) Copies the specifiedByteBufferto theluma_weight_l0field.byteluma_weight_l1(int index) luma_weight_l1(int index, byte value) Sets the specified value at the specified index of theluma_weight_l1field.luma_weight_l1(ByteBuffer value) Copies the specifiedByteBufferto theluma_weight_l1field.malloc()Returns a newStdVideoEncodeH264WeightTableinstance allocated withmemAlloc.malloc(int capacity) Returns a newStdVideoEncodeH264WeightTable.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newStdVideoEncodeH264WeightTable.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newStdVideoEncodeH264WeightTableinstance allocated on the specifiedMemoryStack.static bytenchroma_log2_weight_denom(long struct) Unsafe version ofchroma_log2_weight_denom().static voidnchroma_log2_weight_denom(long struct, byte value) Unsafe version ofchroma_log2_weight_denom.static ByteBuffernchroma_offset_l0(long struct) Unsafe version ofchroma_offset_l0().static bytenchroma_offset_l0(long struct, int index) Unsafe version ofchroma_offset_l0.static voidnchroma_offset_l0(long struct, int index, byte value) Unsafe version ofchroma_offset_l0.static voidnchroma_offset_l0(long struct, ByteBuffer value) Unsafe version ofchroma_offset_l0.static ByteBuffernchroma_offset_l1(long struct) Unsafe version ofchroma_offset_l1().static bytenchroma_offset_l1(long struct, int index) Unsafe version ofchroma_offset_l1.static voidnchroma_offset_l1(long struct, int index, byte value) Unsafe version ofchroma_offset_l1.static voidnchroma_offset_l1(long struct, ByteBuffer value) Unsafe version ofchroma_offset_l1.static ByteBuffernchroma_weight_l0(long struct) Unsafe version ofchroma_weight_l0().static bytenchroma_weight_l0(long struct, int index) Unsafe version ofchroma_weight_l0.static voidnchroma_weight_l0(long struct, int index, byte value) Unsafe version ofchroma_weight_l0.static voidnchroma_weight_l0(long struct, ByteBuffer value) Unsafe version ofchroma_weight_l0.static ByteBuffernchroma_weight_l1(long struct) Unsafe version ofchroma_weight_l1().static bytenchroma_weight_l1(long struct, int index) Unsafe version ofchroma_weight_l1.static voidnchroma_weight_l1(long struct, int index, byte value) Unsafe version ofchroma_weight_l1.static voidnchroma_weight_l1(long struct, ByteBuffer value) Unsafe version ofchroma_weight_l1.nflags(long struct) Unsafe version offlags().static voidnflags(long struct, StdVideoEncodeH264WeightTableFlags value) Unsafe version offlags.static bytenluma_log2_weight_denom(long struct) Unsafe version ofluma_log2_weight_denom().static voidnluma_log2_weight_denom(long struct, byte value) Unsafe version ofluma_log2_weight_denom.static ByteBuffernluma_offset_l0(long struct) Unsafe version ofluma_offset_l0().static bytenluma_offset_l0(long struct, int index) Unsafe version ofluma_offset_l0.static voidnluma_offset_l0(long struct, int index, byte value) Unsafe version ofluma_offset_l0.static voidnluma_offset_l0(long struct, ByteBuffer value) Unsafe version ofluma_offset_l0.static ByteBuffernluma_offset_l1(long struct) Unsafe version ofluma_offset_l1().static bytenluma_offset_l1(long struct, int index) Unsafe version ofluma_offset_l1.static voidnluma_offset_l1(long struct, int index, byte value) Unsafe version ofluma_offset_l1.static voidnluma_offset_l1(long struct, ByteBuffer value) Unsafe version ofluma_offset_l1.static ByteBuffernluma_weight_l0(long struct) Unsafe version ofluma_weight_l0().static bytenluma_weight_l0(long struct, int index) Unsafe version ofluma_weight_l0.static voidnluma_weight_l0(long struct, int index, byte value) Unsafe version ofluma_weight_l0.static voidnluma_weight_l0(long struct, ByteBuffer value) Unsafe version ofluma_weight_l0.static ByteBuffernluma_weight_l1(long struct) Unsafe version ofluma_weight_l1().static bytenluma_weight_l1(long struct, int index) Unsafe version ofluma_weight_l1.static voidnluma_weight_l1(long struct, int index, byte value) Unsafe version ofluma_weight_l1.static voidnluma_weight_l1(long struct, ByteBuffer value) Unsafe version ofluma_weight_l1.Copies the specified struct data to this struct.set(StdVideoEncodeH264WeightTableFlags flags, byte luma_log2_weight_denom, byte chroma_log2_weight_denom, ByteBuffer luma_weight_l0, ByteBuffer luma_offset_l0, ByteBuffer chroma_weight_l0, ByteBuffer chroma_offset_l0, ByteBuffer luma_weight_l1, ByteBuffer luma_offset_l1, ByteBuffer chroma_weight_l1, ByteBuffer chroma_offset_l1) Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).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. -
LUMA_LOG2_WEIGHT_DENOM
public static final int LUMA_LOG2_WEIGHT_DENOMThe struct member offsets. -
CHROMA_LOG2_WEIGHT_DENOM
public static final int CHROMA_LOG2_WEIGHT_DENOMThe struct member offsets. -
LUMA_WEIGHT_L0
public static final int LUMA_WEIGHT_L0The struct member offsets. -
LUMA_OFFSET_L0
public static final int LUMA_OFFSET_L0The struct member offsets. -
CHROMA_WEIGHT_L0
public static final int CHROMA_WEIGHT_L0The struct member offsets. -
CHROMA_OFFSET_L0
public static final int CHROMA_OFFSET_L0The struct member offsets. -
LUMA_WEIGHT_L1
public static final int LUMA_WEIGHT_L1The struct member offsets. -
LUMA_OFFSET_L1
public static final int LUMA_OFFSET_L1The struct member offsets. -
CHROMA_WEIGHT_L1
public static final int CHROMA_WEIGHT_L1The struct member offsets. -
CHROMA_OFFSET_L1
public static final int CHROMA_OFFSET_L1The struct member offsets.
-
-
Constructor Details
-
StdVideoEncodeH264WeightTable
Creates aStdVideoEncodeH264WeightTableinstance 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<StdVideoEncodeH264WeightTable>
-
flags
- Returns:
- a
StdVideoEncodeH264WeightTableFlagsview of theflagsfield.
-
luma_log2_weight_denom
public byte luma_log2_weight_denom()- Returns:
- the value of the
luma_log2_weight_denomfield.
-
chroma_log2_weight_denom
public byte chroma_log2_weight_denom()- Returns:
- the value of the
chroma_log2_weight_denomfield.
-
luma_weight_l0
- Returns:
- a
ByteBufferview of theluma_weight_l0field.
-
luma_weight_l0
public byte luma_weight_l0(int index) - Returns:
- the value at the specified index of the
luma_weight_l0field.
-
luma_offset_l0
- Returns:
- a
ByteBufferview of theluma_offset_l0field.
-
luma_offset_l0
public byte luma_offset_l0(int index) - Returns:
- the value at the specified index of the
luma_offset_l0field.
-
chroma_weight_l0
- Returns:
- a
ByteBufferview of thechroma_weight_l0field.
-
chroma_weight_l0
public byte chroma_weight_l0(int index) - Returns:
- the value at the specified index of the
chroma_weight_l0field.
-
chroma_offset_l0
- Returns:
- a
ByteBufferview of thechroma_offset_l0field.
-
chroma_offset_l0
public byte chroma_offset_l0(int index) - Returns:
- the value at the specified index of the
chroma_offset_l0field.
-
luma_weight_l1
- Returns:
- a
ByteBufferview of theluma_weight_l1field.
-
luma_weight_l1
public byte luma_weight_l1(int index) - Returns:
- the value at the specified index of the
luma_weight_l1field.
-
luma_offset_l1
- Returns:
- a
ByteBufferview of theluma_offset_l1field.
-
luma_offset_l1
public byte luma_offset_l1(int index) - Returns:
- the value at the specified index of the
luma_offset_l1field.
-
chroma_weight_l1
- Returns:
- a
ByteBufferview of thechroma_weight_l1field.
-
chroma_weight_l1
public byte chroma_weight_l1(int index) - Returns:
- the value at the specified index of the
chroma_weight_l1field.
-
chroma_offset_l1
- Returns:
- a
ByteBufferview of thechroma_offset_l1field.
-
chroma_offset_l1
public byte chroma_offset_l1(int index) - Returns:
- the value at the specified index of the
chroma_offset_l1field.
-
flags
Copies the specifiedStdVideoEncodeH264WeightTableFlagsto theflagsfield. -
flags
Passes theflagsfield to the specifiedConsumer. -
luma_log2_weight_denom
Sets the specified value to theluma_log2_weight_denomfield. -
chroma_log2_weight_denom
Sets the specified value to thechroma_log2_weight_denomfield. -
luma_weight_l0
Copies the specifiedByteBufferto theluma_weight_l0field. -
luma_weight_l0
Sets the specified value at the specified index of theluma_weight_l0field. -
luma_offset_l0
Copies the specifiedByteBufferto theluma_offset_l0field. -
luma_offset_l0
Sets the specified value at the specified index of theluma_offset_l0field. -
chroma_weight_l0
Copies the specifiedByteBufferto thechroma_weight_l0field. -
chroma_weight_l0
Sets the specified value at the specified index of thechroma_weight_l0field. -
chroma_offset_l0
Copies the specifiedByteBufferto thechroma_offset_l0field. -
chroma_offset_l0
Sets the specified value at the specified index of thechroma_offset_l0field. -
luma_weight_l1
Copies the specifiedByteBufferto theluma_weight_l1field. -
luma_weight_l1
Sets the specified value at the specified index of theluma_weight_l1field. -
luma_offset_l1
Copies the specifiedByteBufferto theluma_offset_l1field. -
luma_offset_l1
Sets the specified value at the specified index of theluma_offset_l1field. -
chroma_weight_l1
Copies the specifiedByteBufferto thechroma_weight_l1field. -
chroma_weight_l1
Sets the specified value at the specified index of thechroma_weight_l1field. -
chroma_offset_l1
Copies the specifiedByteBufferto thechroma_offset_l1field. -
chroma_offset_l1
Sets the specified value at the specified index of thechroma_offset_l1field. -
set
public StdVideoEncodeH264WeightTable set(StdVideoEncodeH264WeightTableFlags flags, byte luma_log2_weight_denom, byte chroma_log2_weight_denom, ByteBuffer luma_weight_l0, ByteBuffer luma_offset_l0, ByteBuffer chroma_weight_l0, ByteBuffer chroma_offset_l0, ByteBuffer luma_weight_l1, ByteBuffer luma_offset_l1, ByteBuffer chroma_weight_l1, ByteBuffer chroma_offset_l1) 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 newStdVideoEncodeH264WeightTableinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStdVideoEncodeH264WeightTableinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStdVideoEncodeH264WeightTableinstance allocated withBufferUtils. -
create
Returns a newStdVideoEncodeH264WeightTableinstance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoEncodeH264WeightTable.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStdVideoEncodeH264WeightTable.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStdVideoEncodeH264WeightTable.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStdVideoEncodeH264WeightTable.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoEncodeH264WeightTableinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStdVideoEncodeH264WeightTableinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStdVideoEncodeH264WeightTable.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStdVideoEncodeH264WeightTable.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(). -
nluma_log2_weight_denom
public static byte nluma_log2_weight_denom(long struct) Unsafe version ofluma_log2_weight_denom(). -
nchroma_log2_weight_denom
public static byte nchroma_log2_weight_denom(long struct) Unsafe version ofchroma_log2_weight_denom(). -
nluma_weight_l0
Unsafe version ofluma_weight_l0(). -
nluma_weight_l0
public static byte nluma_weight_l0(long struct, int index) Unsafe version ofluma_weight_l0. -
nluma_offset_l0
Unsafe version ofluma_offset_l0(). -
nluma_offset_l0
public static byte nluma_offset_l0(long struct, int index) Unsafe version ofluma_offset_l0. -
nchroma_weight_l0
Unsafe version ofchroma_weight_l0(). -
nchroma_weight_l0
public static byte nchroma_weight_l0(long struct, int index) Unsafe version ofchroma_weight_l0. -
nchroma_offset_l0
Unsafe version ofchroma_offset_l0(). -
nchroma_offset_l0
public static byte nchroma_offset_l0(long struct, int index) Unsafe version ofchroma_offset_l0. -
nluma_weight_l1
Unsafe version ofluma_weight_l1(). -
nluma_weight_l1
public static byte nluma_weight_l1(long struct, int index) Unsafe version ofluma_weight_l1. -
nluma_offset_l1
Unsafe version ofluma_offset_l1(). -
nluma_offset_l1
public static byte nluma_offset_l1(long struct, int index) Unsafe version ofluma_offset_l1. -
nchroma_weight_l1
Unsafe version ofchroma_weight_l1(). -
nchroma_weight_l1
public static byte nchroma_weight_l1(long struct, int index) Unsafe version ofchroma_weight_l1. -
nchroma_offset_l1
Unsafe version ofchroma_offset_l1(). -
nchroma_offset_l1
public static byte nchroma_offset_l1(long struct, int index) Unsafe version ofchroma_offset_l1. -
nflags
Unsafe version offlags. -
nluma_log2_weight_denom
public static void nluma_log2_weight_denom(long struct, byte value) Unsafe version ofluma_log2_weight_denom. -
nchroma_log2_weight_denom
public static void nchroma_log2_weight_denom(long struct, byte value) Unsafe version ofchroma_log2_weight_denom. -
nluma_weight_l0
Unsafe version ofluma_weight_l0. -
nluma_weight_l0
public static void nluma_weight_l0(long struct, int index, byte value) Unsafe version ofluma_weight_l0. -
nluma_offset_l0
Unsafe version ofluma_offset_l0. -
nluma_offset_l0
public static void nluma_offset_l0(long struct, int index, byte value) Unsafe version ofluma_offset_l0. -
nchroma_weight_l0
Unsafe version ofchroma_weight_l0. -
nchroma_weight_l0
public static void nchroma_weight_l0(long struct, int index, byte value) Unsafe version ofchroma_weight_l0. -
nchroma_offset_l0
Unsafe version ofchroma_offset_l0. -
nchroma_offset_l0
public static void nchroma_offset_l0(long struct, int index, byte value) Unsafe version ofchroma_offset_l0. -
nluma_weight_l1
Unsafe version ofluma_weight_l1. -
nluma_weight_l1
public static void nluma_weight_l1(long struct, int index, byte value) Unsafe version ofluma_weight_l1. -
nluma_offset_l1
Unsafe version ofluma_offset_l1. -
nluma_offset_l1
public static void nluma_offset_l1(long struct, int index, byte value) Unsafe version ofluma_offset_l1. -
nchroma_weight_l1
Unsafe version ofchroma_weight_l1. -
nchroma_weight_l1
public static void nchroma_weight_l1(long struct, int index, byte value) Unsafe version ofchroma_weight_l1. -
nchroma_offset_l1
Unsafe version ofchroma_offset_l1. -
nchroma_offset_l1
public static void nchroma_offset_l1(long struct, int index, byte value) Unsafe version ofchroma_offset_l1.
-