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 {
{@link StdVideoEncodeH264WeightTableFlags 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.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 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
ConstructorsConstructorDescriptionStdVideoEncodeH264WeightTable
(ByteBuffer container) Creates aStdVideoEncodeH264WeightTable
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newStdVideoEncodeH264WeightTable
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoEncodeH264WeightTable.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoEncodeH264WeightTable.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newStdVideoEncodeH264WeightTable
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.byte
chroma_log2_weight_denom
(byte value) Sets the specified value to thechroma_log2_weight_denom
field.byte
chroma_offset_l0
(int index) chroma_offset_l0
(int index, byte value) Sets the specified value at the specified index of thechroma_offset_l0
field.chroma_offset_l0
(ByteBuffer value) Copies the specifiedByteBuffer
to thechroma_offset_l0
field.byte
chroma_offset_l1
(int index) chroma_offset_l1
(int index, byte value) Sets the specified value at the specified index of thechroma_offset_l1
field.chroma_offset_l1
(ByteBuffer value) Copies the specifiedByteBuffer
to thechroma_offset_l1
field.byte
chroma_weight_l0
(int index) chroma_weight_l0
(int index, byte value) Sets the specified value at the specified index of thechroma_weight_l0
field.chroma_weight_l0
(ByteBuffer value) Copies the specifiedByteBuffer
to thechroma_weight_l0
field.byte
chroma_weight_l1
(int index) chroma_weight_l1
(int index, byte value) Sets the specified value at the specified index of thechroma_weight_l1
field.chroma_weight_l1
(ByteBuffer value) Copies the specifiedByteBuffer
to thechroma_weight_l1
field.create()
Returns a newStdVideoEncodeH264WeightTable
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoEncodeH264WeightTable.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newStdVideoEncodeH264WeightTable
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoEncodeH264WeightTable.Buffer
instance at the specified memory.static @Nullable StdVideoEncodeH264WeightTable
createSafe
(long address) static @Nullable StdVideoEncodeH264WeightTable.Buffer
createSafe
(long address, int capacity) flags()
flags
(Consumer<StdVideoEncodeH264WeightTableFlags> consumer) Passes theflags
field to the specifiedConsumer
.Copies the specifiedStdVideoEncodeH264WeightTableFlags
to theflags
field.byte
luma_log2_weight_denom
(byte value) Sets the specified value to theluma_log2_weight_denom
field.byte
luma_offset_l0
(int index) luma_offset_l0
(int index, byte value) Sets the specified value at the specified index of theluma_offset_l0
field.luma_offset_l0
(ByteBuffer value) Copies the specifiedByteBuffer
to theluma_offset_l0
field.byte
luma_offset_l1
(int index) luma_offset_l1
(int index, byte value) Sets the specified value at the specified index of theluma_offset_l1
field.luma_offset_l1
(ByteBuffer value) Copies the specifiedByteBuffer
to theluma_offset_l1
field.byte
luma_weight_l0
(int index) luma_weight_l0
(int index, byte value) Sets the specified value at the specified index of theluma_weight_l0
field.luma_weight_l0
(ByteBuffer value) Copies the specifiedByteBuffer
to theluma_weight_l0
field.byte
luma_weight_l1
(int index) luma_weight_l1
(int index, byte value) Sets the specified value at the specified index of theluma_weight_l1
field.luma_weight_l1
(ByteBuffer value) Copies the specifiedByteBuffer
to theluma_weight_l1
field.malloc()
Returns a newStdVideoEncodeH264WeightTable
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoEncodeH264WeightTable.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoEncodeH264WeightTable.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newStdVideoEncodeH264WeightTable
instance allocated on the specifiedMemoryStack
.static byte
nchroma_log2_weight_denom
(long struct) Unsafe version ofchroma_log2_weight_denom()
.static void
nchroma_log2_weight_denom
(long struct, byte value) Unsafe version ofchroma_log2_weight_denom
.static ByteBuffer
nchroma_offset_l0
(long struct) Unsafe version ofchroma_offset_l0()
.static byte
nchroma_offset_l0
(long struct, int index) Unsafe version ofchroma_offset_l0
.static void
nchroma_offset_l0
(long struct, int index, byte value) Unsafe version ofchroma_offset_l0
.static void
nchroma_offset_l0
(long struct, ByteBuffer value) Unsafe version ofchroma_offset_l0
.static ByteBuffer
nchroma_offset_l1
(long struct) Unsafe version ofchroma_offset_l1()
.static byte
nchroma_offset_l1
(long struct, int index) Unsafe version ofchroma_offset_l1
.static void
nchroma_offset_l1
(long struct, int index, byte value) Unsafe version ofchroma_offset_l1
.static void
nchroma_offset_l1
(long struct, ByteBuffer value) Unsafe version ofchroma_offset_l1
.static ByteBuffer
nchroma_weight_l0
(long struct) Unsafe version ofchroma_weight_l0()
.static byte
nchroma_weight_l0
(long struct, int index) Unsafe version ofchroma_weight_l0
.static void
nchroma_weight_l0
(long struct, int index, byte value) Unsafe version ofchroma_weight_l0
.static void
nchroma_weight_l0
(long struct, ByteBuffer value) Unsafe version ofchroma_weight_l0
.static ByteBuffer
nchroma_weight_l1
(long struct) Unsafe version ofchroma_weight_l1()
.static byte
nchroma_weight_l1
(long struct, int index) Unsafe version ofchroma_weight_l1
.static void
nchroma_weight_l1
(long struct, int index, byte value) Unsafe version ofchroma_weight_l1
.static void
nchroma_weight_l1
(long struct, ByteBuffer value) Unsafe version ofchroma_weight_l1
.nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoEncodeH264WeightTableFlags value) Unsafe version offlags
.static byte
nluma_log2_weight_denom
(long struct) Unsafe version ofluma_log2_weight_denom()
.static void
nluma_log2_weight_denom
(long struct, byte value) Unsafe version ofluma_log2_weight_denom
.static ByteBuffer
nluma_offset_l0
(long struct) Unsafe version ofluma_offset_l0()
.static byte
nluma_offset_l0
(long struct, int index) Unsafe version ofluma_offset_l0
.static void
nluma_offset_l0
(long struct, int index, byte value) Unsafe version ofluma_offset_l0
.static void
nluma_offset_l0
(long struct, ByteBuffer value) Unsafe version ofluma_offset_l0
.static ByteBuffer
nluma_offset_l1
(long struct) Unsafe version ofluma_offset_l1()
.static byte
nluma_offset_l1
(long struct, int index) Unsafe version ofluma_offset_l1
.static void
nluma_offset_l1
(long struct, int index, byte value) Unsafe version ofluma_offset_l1
.static void
nluma_offset_l1
(long struct, ByteBuffer value) Unsafe version ofluma_offset_l1
.static ByteBuffer
nluma_weight_l0
(long struct) Unsafe version ofluma_weight_l0()
.static byte
nluma_weight_l0
(long struct, int index) Unsafe version ofluma_weight_l0
.static void
nluma_weight_l0
(long struct, int index, byte value) Unsafe version ofluma_weight_l0
.static void
nluma_weight_l0
(long struct, ByteBuffer value) Unsafe version ofluma_weight_l0
.static ByteBuffer
nluma_weight_l1
(long struct) Unsafe version ofluma_weight_l1()
.static byte
nluma_weight_l1
(long struct, int index) Unsafe version ofluma_weight_l1
.static void
nluma_weight_l1
(long struct, int index, byte value) Unsafe version ofluma_weight_l1
.static void
nluma_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.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. -
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 aStdVideoEncodeH264WeightTable
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<StdVideoEncodeH264WeightTable>
-
flags
- Returns:
- a
StdVideoEncodeH264WeightTableFlags
view of theflags
field.
-
luma_log2_weight_denom
public byte luma_log2_weight_denom()- Returns:
- the value of the
luma_log2_weight_denom
field.
-
chroma_log2_weight_denom
public byte chroma_log2_weight_denom()- Returns:
- the value of the
chroma_log2_weight_denom
field.
-
luma_weight_l0
- Returns:
- a
ByteBuffer
view of theluma_weight_l0
field.
-
luma_weight_l0
public byte luma_weight_l0(int index) - Returns:
- the value at the specified index of the
luma_weight_l0
field.
-
luma_offset_l0
- Returns:
- a
ByteBuffer
view of theluma_offset_l0
field.
-
luma_offset_l0
public byte luma_offset_l0(int index) - Returns:
- the value at the specified index of the
luma_offset_l0
field.
-
chroma_weight_l0
- Returns:
- a
ByteBuffer
view of thechroma_weight_l0
field.
-
chroma_weight_l0
public byte chroma_weight_l0(int index) - Returns:
- the value at the specified index of the
chroma_weight_l0
field.
-
chroma_offset_l0
- Returns:
- a
ByteBuffer
view of thechroma_offset_l0
field.
-
chroma_offset_l0
public byte chroma_offset_l0(int index) - Returns:
- the value at the specified index of the
chroma_offset_l0
field.
-
luma_weight_l1
- Returns:
- a
ByteBuffer
view of theluma_weight_l1
field.
-
luma_weight_l1
public byte luma_weight_l1(int index) - Returns:
- the value at the specified index of the
luma_weight_l1
field.
-
luma_offset_l1
- Returns:
- a
ByteBuffer
view of theluma_offset_l1
field.
-
luma_offset_l1
public byte luma_offset_l1(int index) - Returns:
- the value at the specified index of the
luma_offset_l1
field.
-
chroma_weight_l1
- Returns:
- a
ByteBuffer
view of thechroma_weight_l1
field.
-
chroma_weight_l1
public byte chroma_weight_l1(int index) - Returns:
- the value at the specified index of the
chroma_weight_l1
field.
-
chroma_offset_l1
- Returns:
- a
ByteBuffer
view of thechroma_offset_l1
field.
-
chroma_offset_l1
public byte chroma_offset_l1(int index) - Returns:
- the value at the specified index of the
chroma_offset_l1
field.
-
flags
Copies the specifiedStdVideoEncodeH264WeightTableFlags
to theflags
field. -
flags
Passes theflags
field to the specifiedConsumer
. -
luma_log2_weight_denom
Sets the specified value to theluma_log2_weight_denom
field. -
chroma_log2_weight_denom
Sets the specified value to thechroma_log2_weight_denom
field. -
luma_weight_l0
Copies the specifiedByteBuffer
to theluma_weight_l0
field. -
luma_weight_l0
Sets the specified value at the specified index of theluma_weight_l0
field. -
luma_offset_l0
Copies the specifiedByteBuffer
to theluma_offset_l0
field. -
luma_offset_l0
Sets the specified value at the specified index of theluma_offset_l0
field. -
chroma_weight_l0
Copies the specifiedByteBuffer
to thechroma_weight_l0
field. -
chroma_weight_l0
Sets the specified value at the specified index of thechroma_weight_l0
field. -
chroma_offset_l0
Copies the specifiedByteBuffer
to thechroma_offset_l0
field. -
chroma_offset_l0
Sets the specified value at the specified index of thechroma_offset_l0
field. -
luma_weight_l1
Copies the specifiedByteBuffer
to theluma_weight_l1
field. -
luma_weight_l1
Sets the specified value at the specified index of theluma_weight_l1
field. -
luma_offset_l1
Copies the specifiedByteBuffer
to theluma_offset_l1
field. -
luma_offset_l1
Sets the specified value at the specified index of theluma_offset_l1
field. -
chroma_weight_l1
Copies the specifiedByteBuffer
to thechroma_weight_l1
field. -
chroma_weight_l1
Sets the specified value at the specified index of thechroma_weight_l1
field. -
chroma_offset_l1
Copies the specifiedByteBuffer
to thechroma_offset_l1
field. -
chroma_offset_l1
Sets the specified value at the specified index of thechroma_offset_l1
field. -
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 newStdVideoEncodeH264WeightTable
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoEncodeH264WeightTable
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoEncodeH264WeightTable
instance allocated withBufferUtils
. -
create
Returns a newStdVideoEncodeH264WeightTable
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoEncodeH264WeightTable.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoEncodeH264WeightTable.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoEncodeH264WeightTable.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoEncodeH264WeightTable.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoEncodeH264WeightTable
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoEncodeH264WeightTable
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoEncodeH264WeightTable.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoEncodeH264WeightTable.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()
. -
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
.
-