Package org.lwjgl.vulkan.video
Class StdVideoEncodeH265SliceSegmentHeader
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<StdVideoEncodeH265SliceSegmentHeader>
org.lwjgl.vulkan.video.StdVideoEncodeH265SliceSegmentHeader
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class StdVideoEncodeH265SliceSegmentHeader
extends Struct<StdVideoEncodeH265SliceSegmentHeader>
implements NativeResource
struct StdVideoEncodeH265SliceSegmentHeader {
{@link StdVideoEncodeH265SliceSegmentHeaderFlags StdVideoEncodeH265SliceSegmentHeaderFlags} flags;
StdVideoH265SliceType slice_type;
uint32_t slice_segment_address;
uint8_t collocated_ref_idx;
uint8_t MaxNumMergeCand;
int8_t slice_cb_qp_offset;
int8_t slice_cr_qp_offset;
int8_t slice_beta_offset_div2;
int8_t slice_tc_offset_div2;
int8_t slice_act_y_qp_offset;
int8_t slice_act_cb_qp_offset;
int8_t slice_act_cr_qp_offset;
int8_t slice_qp_delta;
uint16_t reserved1;
{@link StdVideoEncodeH265WeightTable StdVideoEncodeH265WeightTable} const * pWeightTable;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofStdVideoEncodeH265SliceSegmentHeader
structs.Nested 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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionStdVideoEncodeH265SliceSegmentHeader
(ByteBuffer container) Creates aStdVideoEncodeH265SliceSegmentHeader
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newStdVideoEncodeH265SliceSegmentHeader
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoEncodeH265SliceSegmentHeader.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoEncodeH265SliceSegmentHeader.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newStdVideoEncodeH265SliceSegmentHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.byte
collocated_ref_idx
(byte value) Sets the specified value to thecollocated_ref_idx
field.create()
Returns a newStdVideoEncodeH265SliceSegmentHeader
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoEncodeH265SliceSegmentHeader.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newStdVideoEncodeH265SliceSegmentHeader
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoEncodeH265SliceSegmentHeader.Buffer
instance at the specified memory.static @Nullable StdVideoEncodeH265SliceSegmentHeader
createSafe
(long address) static @Nullable StdVideoEncodeH265SliceSegmentHeader.Buffer
createSafe
(long address, int capacity) flags()
Passes theflags
field to the specifiedConsumer
.Copies the specifiedStdVideoEncodeH265SliceSegmentHeaderFlags
to theflags
field.malloc()
Returns a newStdVideoEncodeH265SliceSegmentHeader
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoEncodeH265SliceSegmentHeader.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoEncodeH265SliceSegmentHeader.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newStdVideoEncodeH265SliceSegmentHeader
instance allocated on the specifiedMemoryStack
.byte
MaxNumMergeCand
(byte value) Sets the specified value to theMaxNumMergeCand
field.static byte
ncollocated_ref_idx
(long struct) Unsafe version ofcollocated_ref_idx()
.static void
ncollocated_ref_idx
(long struct, byte value) Unsafe version ofcollocated_ref_idx
.nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoEncodeH265SliceSegmentHeaderFlags value) Unsafe version offlags
.static byte
nMaxNumMergeCand
(long struct) Unsafe version ofMaxNumMergeCand()
.static void
nMaxNumMergeCand
(long struct, byte value) Unsafe version ofMaxNumMergeCand
.npWeightTable
(long struct) Unsafe version ofpWeightTable()
.static void
npWeightTable
(long struct, StdVideoEncodeH265WeightTable value) Unsafe version ofpWeightTable
.static short
nreserved1
(long struct) static void
nreserved1
(long struct, short value) static byte
nslice_act_cb_qp_offset
(long struct) Unsafe version ofslice_act_cb_qp_offset()
.static void
nslice_act_cb_qp_offset
(long struct, byte value) Unsafe version ofslice_act_cb_qp_offset
.static byte
nslice_act_cr_qp_offset
(long struct) Unsafe version ofslice_act_cr_qp_offset()
.static void
nslice_act_cr_qp_offset
(long struct, byte value) Unsafe version ofslice_act_cr_qp_offset
.static byte
nslice_act_y_qp_offset
(long struct) Unsafe version ofslice_act_y_qp_offset()
.static void
nslice_act_y_qp_offset
(long struct, byte value) Unsafe version ofslice_act_y_qp_offset
.static byte
nslice_beta_offset_div2
(long struct) Unsafe version ofslice_beta_offset_div2()
.static void
nslice_beta_offset_div2
(long struct, byte value) Unsafe version ofslice_beta_offset_div2
.static byte
nslice_cb_qp_offset
(long struct) Unsafe version ofslice_cb_qp_offset()
.static void
nslice_cb_qp_offset
(long struct, byte value) Unsafe version ofslice_cb_qp_offset
.static byte
nslice_cr_qp_offset
(long struct) Unsafe version ofslice_cr_qp_offset()
.static void
nslice_cr_qp_offset
(long struct, byte value) Unsafe version ofslice_cr_qp_offset
.static byte
nslice_qp_delta
(long struct) Unsafe version ofslice_qp_delta()
.static void
nslice_qp_delta
(long struct, byte value) Unsafe version ofslice_qp_delta
.static int
nslice_segment_address
(long struct) Unsafe version ofslice_segment_address()
.static void
nslice_segment_address
(long struct, int value) Unsafe version ofslice_segment_address
.static byte
nslice_tc_offset_div2
(long struct) Unsafe version ofslice_tc_offset_div2()
.static void
nslice_tc_offset_div2
(long struct, byte value) Unsafe version ofslice_tc_offset_div2
.static int
nslice_type
(long struct) Unsafe version ofslice_type()
.static void
nslice_type
(long struct, int value) Unsafe version ofslice_type
.Sets the address of the specifiedStdVideoEncodeH265WeightTable
to thepWeightTable
field.Copies the specified struct data to this struct.set
(StdVideoEncodeH265SliceSegmentHeaderFlags flags, int slice_type, int slice_segment_address, byte collocated_ref_idx, byte MaxNumMergeCand, byte slice_cb_qp_offset, byte slice_cr_qp_offset, byte slice_beta_offset_div2, byte slice_tc_offset_div2, byte slice_act_y_qp_offset, byte slice_act_cb_qp_offset, byte slice_act_cr_qp_offset, byte slice_qp_delta, StdVideoEncodeH265WeightTable pWeightTable) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.byte
slice_act_cb_qp_offset
(byte value) Sets the specified value to theslice_act_cb_qp_offset
field.byte
slice_act_cr_qp_offset
(byte value) Sets the specified value to theslice_act_cr_qp_offset
field.byte
slice_act_y_qp_offset
(byte value) Sets the specified value to theslice_act_y_qp_offset
field.byte
slice_beta_offset_div2
(byte value) Sets the specified value to theslice_beta_offset_div2
field.byte
slice_cb_qp_offset
(byte value) Sets the specified value to theslice_cb_qp_offset
field.byte
slice_cr_qp_offset
(byte value) Sets the specified value to theslice_cr_qp_offset
field.byte
slice_qp_delta
(byte value) Sets the specified value to theslice_qp_delta
field.int
slice_segment_address
(int value) Sets the specified value to theslice_segment_address
field.byte
slice_tc_offset_div2
(byte value) Sets the specified value to theslice_tc_offset_div2
field.int
slice_type
(int value) Sets the specified value to theslice_type
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
SLICE_TYPE
public static final int SLICE_TYPEThe struct member offsets. -
SLICE_SEGMENT_ADDRESS
public static final int SLICE_SEGMENT_ADDRESSThe struct member offsets. -
COLLOCATED_REF_IDX
public static final int COLLOCATED_REF_IDXThe struct member offsets. -
MAXNUMMERGECAND
public static final int MAXNUMMERGECANDThe struct member offsets. -
SLICE_CB_QP_OFFSET
public static final int SLICE_CB_QP_OFFSETThe struct member offsets. -
SLICE_CR_QP_OFFSET
public static final int SLICE_CR_QP_OFFSETThe struct member offsets. -
SLICE_BETA_OFFSET_DIV2
public static final int SLICE_BETA_OFFSET_DIV2The struct member offsets. -
SLICE_TC_OFFSET_DIV2
public static final int SLICE_TC_OFFSET_DIV2The struct member offsets. -
SLICE_ACT_Y_QP_OFFSET
public static final int SLICE_ACT_Y_QP_OFFSETThe struct member offsets. -
SLICE_ACT_CB_QP_OFFSET
public static final int SLICE_ACT_CB_QP_OFFSETThe struct member offsets. -
SLICE_ACT_CR_QP_OFFSET
public static final int SLICE_ACT_CR_QP_OFFSETThe struct member offsets. -
SLICE_QP_DELTA
public static final int SLICE_QP_DELTAThe struct member offsets. -
RESERVED1
public static final int RESERVED1The struct member offsets. -
PWEIGHTTABLE
public static final int PWEIGHTTABLEThe struct member offsets.
-
-
Constructor Details
-
StdVideoEncodeH265SliceSegmentHeader
Creates aStdVideoEncodeH265SliceSegmentHeader
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<StdVideoEncodeH265SliceSegmentHeader>
-
flags
- Returns:
- a
StdVideoEncodeH265SliceSegmentHeaderFlags
view of theflags
field.
-
slice_type
public int slice_type()- Returns:
- the value of the
slice_type
field.
-
slice_segment_address
public int slice_segment_address()- Returns:
- the value of the
slice_segment_address
field.
-
collocated_ref_idx
public byte collocated_ref_idx()- Returns:
- the value of the
collocated_ref_idx
field.
-
MaxNumMergeCand
public byte MaxNumMergeCand()- Returns:
- the value of the
MaxNumMergeCand
field.
-
slice_cb_qp_offset
public byte slice_cb_qp_offset()- Returns:
- the value of the
slice_cb_qp_offset
field.
-
slice_cr_qp_offset
public byte slice_cr_qp_offset()- Returns:
- the value of the
slice_cr_qp_offset
field.
-
slice_beta_offset_div2
public byte slice_beta_offset_div2()- Returns:
- the value of the
slice_beta_offset_div2
field.
-
slice_tc_offset_div2
public byte slice_tc_offset_div2()- Returns:
- the value of the
slice_tc_offset_div2
field.
-
slice_act_y_qp_offset
public byte slice_act_y_qp_offset()- Returns:
- the value of the
slice_act_y_qp_offset
field.
-
slice_act_cb_qp_offset
public byte slice_act_cb_qp_offset()- Returns:
- the value of the
slice_act_cb_qp_offset
field.
-
slice_act_cr_qp_offset
public byte slice_act_cr_qp_offset()- Returns:
- the value of the
slice_act_cr_qp_offset
field.
-
slice_qp_delta
public byte slice_qp_delta()- Returns:
- the value of the
slice_qp_delta
field.
-
pWeightTable
- Returns:
- a
StdVideoEncodeH265WeightTable
view of the struct pointed to by thepWeightTable
field.
-
flags
Copies the specifiedStdVideoEncodeH265SliceSegmentHeaderFlags
to theflags
field. -
flags
public StdVideoEncodeH265SliceSegmentHeader flags(Consumer<StdVideoEncodeH265SliceSegmentHeaderFlags> consumer) Passes theflags
field to the specifiedConsumer
. -
slice_type
Sets the specified value to theslice_type
field. -
slice_segment_address
Sets the specified value to theslice_segment_address
field. -
collocated_ref_idx
Sets the specified value to thecollocated_ref_idx
field. -
MaxNumMergeCand
Sets the specified value to theMaxNumMergeCand
field. -
slice_cb_qp_offset
Sets the specified value to theslice_cb_qp_offset
field. -
slice_cr_qp_offset
Sets the specified value to theslice_cr_qp_offset
field. -
slice_beta_offset_div2
Sets the specified value to theslice_beta_offset_div2
field. -
slice_tc_offset_div2
Sets the specified value to theslice_tc_offset_div2
field. -
slice_act_y_qp_offset
Sets the specified value to theslice_act_y_qp_offset
field. -
slice_act_cb_qp_offset
Sets the specified value to theslice_act_cb_qp_offset
field. -
slice_act_cr_qp_offset
Sets the specified value to theslice_act_cr_qp_offset
field. -
slice_qp_delta
Sets the specified value to theslice_qp_delta
field. -
pWeightTable
Sets the address of the specifiedStdVideoEncodeH265WeightTable
to thepWeightTable
field. -
set
public StdVideoEncodeH265SliceSegmentHeader set(StdVideoEncodeH265SliceSegmentHeaderFlags flags, int slice_type, int slice_segment_address, byte collocated_ref_idx, byte MaxNumMergeCand, byte slice_cb_qp_offset, byte slice_cr_qp_offset, byte slice_beta_offset_div2, byte slice_tc_offset_div2, byte slice_act_y_qp_offset, byte slice_act_cb_qp_offset, byte slice_act_cr_qp_offset, byte slice_qp_delta, StdVideoEncodeH265WeightTable pWeightTable) 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 newStdVideoEncodeH265SliceSegmentHeader
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoEncodeH265SliceSegmentHeader
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoEncodeH265SliceSegmentHeader
instance allocated withBufferUtils
. -
create
Returns a newStdVideoEncodeH265SliceSegmentHeader
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoEncodeH265SliceSegmentHeader.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoEncodeH265SliceSegmentHeader.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoEncodeH265SliceSegmentHeader.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoEncodeH265SliceSegmentHeader.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable StdVideoEncodeH265SliceSegmentHeader.Buffer createSafe(long address, int capacity) -
malloc
Returns a newStdVideoEncodeH265SliceSegmentHeader
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoEncodeH265SliceSegmentHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoEncodeH265SliceSegmentHeader.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoEncodeH265SliceSegmentHeader.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()
. -
nslice_type
public static int nslice_type(long struct) Unsafe version ofslice_type()
. -
nslice_segment_address
public static int nslice_segment_address(long struct) Unsafe version ofslice_segment_address()
. -
ncollocated_ref_idx
public static byte ncollocated_ref_idx(long struct) Unsafe version ofcollocated_ref_idx()
. -
nMaxNumMergeCand
public static byte nMaxNumMergeCand(long struct) Unsafe version ofMaxNumMergeCand()
. -
nslice_cb_qp_offset
public static byte nslice_cb_qp_offset(long struct) Unsafe version ofslice_cb_qp_offset()
. -
nslice_cr_qp_offset
public static byte nslice_cr_qp_offset(long struct) Unsafe version ofslice_cr_qp_offset()
. -
nslice_beta_offset_div2
public static byte nslice_beta_offset_div2(long struct) Unsafe version ofslice_beta_offset_div2()
. -
nslice_tc_offset_div2
public static byte nslice_tc_offset_div2(long struct) Unsafe version ofslice_tc_offset_div2()
. -
nslice_act_y_qp_offset
public static byte nslice_act_y_qp_offset(long struct) Unsafe version ofslice_act_y_qp_offset()
. -
nslice_act_cb_qp_offset
public static byte nslice_act_cb_qp_offset(long struct) Unsafe version ofslice_act_cb_qp_offset()
. -
nslice_act_cr_qp_offset
public static byte nslice_act_cr_qp_offset(long struct) Unsafe version ofslice_act_cr_qp_offset()
. -
nslice_qp_delta
public static byte nslice_qp_delta(long struct) Unsafe version ofslice_qp_delta()
. -
nreserved1
public static short nreserved1(long struct) -
npWeightTable
Unsafe version ofpWeightTable()
. -
nflags
Unsafe version offlags
. -
nslice_type
public static void nslice_type(long struct, int value) Unsafe version ofslice_type
. -
nslice_segment_address
public static void nslice_segment_address(long struct, int value) Unsafe version ofslice_segment_address
. -
ncollocated_ref_idx
public static void ncollocated_ref_idx(long struct, byte value) Unsafe version ofcollocated_ref_idx
. -
nMaxNumMergeCand
public static void nMaxNumMergeCand(long struct, byte value) Unsafe version ofMaxNumMergeCand
. -
nslice_cb_qp_offset
public static void nslice_cb_qp_offset(long struct, byte value) Unsafe version ofslice_cb_qp_offset
. -
nslice_cr_qp_offset
public static void nslice_cr_qp_offset(long struct, byte value) Unsafe version ofslice_cr_qp_offset
. -
nslice_beta_offset_div2
public static void nslice_beta_offset_div2(long struct, byte value) Unsafe version ofslice_beta_offset_div2
. -
nslice_tc_offset_div2
public static void nslice_tc_offset_div2(long struct, byte value) Unsafe version ofslice_tc_offset_div2
. -
nslice_act_y_qp_offset
public static void nslice_act_y_qp_offset(long struct, byte value) Unsafe version ofslice_act_y_qp_offset
. -
nslice_act_cb_qp_offset
public static void nslice_act_cb_qp_offset(long struct, byte value) Unsafe version ofslice_act_cb_qp_offset
. -
nslice_act_cr_qp_offset
public static void nslice_act_cr_qp_offset(long struct, byte value) Unsafe version ofslice_act_cr_qp_offset
. -
nslice_qp_delta
public static void nslice_qp_delta(long struct, byte value) Unsafe version ofslice_qp_delta
. -
nreserved1
public static void nreserved1(long struct, short value) -
npWeightTable
Unsafe version ofpWeightTable
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-