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 {
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;
StdVideoEncodeH265WeightTable const * pWeightTable;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofStdVideoEncodeH265SliceSegmentHeaderstructs.Nested 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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoEncodeH265SliceSegmentHeader(ByteBuffer container) Creates aStdVideoEncodeH265SliceSegmentHeaderinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newStdVideoEncodeH265SliceSegmentHeaderinstance allocated withmemCalloc.calloc(int capacity) Returns a newStdVideoEncodeH265SliceSegmentHeader.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newStdVideoEncodeH265SliceSegmentHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newStdVideoEncodeH265SliceSegmentHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.bytecollocated_ref_idx(byte value) Sets the specified value to thecollocated_ref_idxfield.create()Returns a newStdVideoEncodeH265SliceSegmentHeaderinstance allocated withBufferUtils.create(int capacity) Returns a newStdVideoEncodeH265SliceSegmentHeader.Bufferinstance allocated withBufferUtils.create(long address) Returns a newStdVideoEncodeH265SliceSegmentHeaderinstance for the specified memory address.create(long address, int capacity) Create aStdVideoEncodeH265SliceSegmentHeader.Bufferinstance at the specified memory.static @Nullable StdVideoEncodeH265SliceSegmentHeadercreateSafe(long address) static @Nullable StdVideoEncodeH265SliceSegmentHeader.BuffercreateSafe(long address, int capacity) flags()Passes theflagsfield to the specifiedConsumer.Copies the specifiedStdVideoEncodeH265SliceSegmentHeaderFlagsto theflagsfield.malloc()Returns a newStdVideoEncodeH265SliceSegmentHeaderinstance allocated withmemAlloc.malloc(int capacity) Returns a newStdVideoEncodeH265SliceSegmentHeader.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newStdVideoEncodeH265SliceSegmentHeader.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newStdVideoEncodeH265SliceSegmentHeaderinstance allocated on the specifiedMemoryStack.byteMaxNumMergeCand(byte value) Sets the specified value to theMaxNumMergeCandfield.static bytencollocated_ref_idx(long struct) Unsafe version ofcollocated_ref_idx().static voidncollocated_ref_idx(long struct, byte value) Unsafe version ofcollocated_ref_idx.nflags(long struct) Unsafe version offlags().static voidnflags(long struct, StdVideoEncodeH265SliceSegmentHeaderFlags value) Unsafe version offlags.static bytenMaxNumMergeCand(long struct) Unsafe version ofMaxNumMergeCand().static voidnMaxNumMergeCand(long struct, byte value) Unsafe version ofMaxNumMergeCand.npWeightTable(long struct) Unsafe version ofpWeightTable().static voidnpWeightTable(long struct, StdVideoEncodeH265WeightTable value) Unsafe version ofpWeightTable.static shortnreserved1(long struct) static voidnreserved1(long struct, short value) static bytenslice_act_cb_qp_offset(long struct) Unsafe version ofslice_act_cb_qp_offset().static voidnslice_act_cb_qp_offset(long struct, byte value) Unsafe version ofslice_act_cb_qp_offset.static bytenslice_act_cr_qp_offset(long struct) Unsafe version ofslice_act_cr_qp_offset().static voidnslice_act_cr_qp_offset(long struct, byte value) Unsafe version ofslice_act_cr_qp_offset.static bytenslice_act_y_qp_offset(long struct) Unsafe version ofslice_act_y_qp_offset().static voidnslice_act_y_qp_offset(long struct, byte value) Unsafe version ofslice_act_y_qp_offset.static bytenslice_beta_offset_div2(long struct) Unsafe version ofslice_beta_offset_div2().static voidnslice_beta_offset_div2(long struct, byte value) Unsafe version ofslice_beta_offset_div2.static bytenslice_cb_qp_offset(long struct) Unsafe version ofslice_cb_qp_offset().static voidnslice_cb_qp_offset(long struct, byte value) Unsafe version ofslice_cb_qp_offset.static bytenslice_cr_qp_offset(long struct) Unsafe version ofslice_cr_qp_offset().static voidnslice_cr_qp_offset(long struct, byte value) Unsafe version ofslice_cr_qp_offset.static bytenslice_qp_delta(long struct) Unsafe version ofslice_qp_delta().static voidnslice_qp_delta(long struct, byte value) Unsafe version ofslice_qp_delta.static intnslice_segment_address(long struct) Unsafe version ofslice_segment_address().static voidnslice_segment_address(long struct, int value) Unsafe version ofslice_segment_address.static bytenslice_tc_offset_div2(long struct) Unsafe version ofslice_tc_offset_div2().static voidnslice_tc_offset_div2(long struct, byte value) Unsafe version ofslice_tc_offset_div2.static intnslice_type(long struct) Unsafe version ofslice_type().static voidnslice_type(long struct, int value) Unsafe version ofslice_type.Sets the address of the specifiedStdVideoEncodeH265WeightTableto thepWeightTablefield.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.intsizeof()Returnssizeof(struct).byteslice_act_cb_qp_offset(byte value) Sets the specified value to theslice_act_cb_qp_offsetfield.byteslice_act_cr_qp_offset(byte value) Sets the specified value to theslice_act_cr_qp_offsetfield.byteslice_act_y_qp_offset(byte value) Sets the specified value to theslice_act_y_qp_offsetfield.byteslice_beta_offset_div2(byte value) Sets the specified value to theslice_beta_offset_div2field.byteslice_cb_qp_offset(byte value) Sets the specified value to theslice_cb_qp_offsetfield.byteslice_cr_qp_offset(byte value) Sets the specified value to theslice_cr_qp_offsetfield.byteslice_qp_delta(byte value) Sets the specified value to theslice_qp_deltafield.intslice_segment_address(int value) Sets the specified value to theslice_segment_addressfield.byteslice_tc_offset_div2(byte value) Sets the specified value to theslice_tc_offset_div2field.intslice_type(int value) Sets the specified value to theslice_typefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
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 aStdVideoEncodeH265SliceSegmentHeaderinstance 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<StdVideoEncodeH265SliceSegmentHeader>
-
flags
- Returns:
- a
StdVideoEncodeH265SliceSegmentHeaderFlagsview of theflagsfield.
-
slice_type
public int slice_type()- Returns:
- the value of the
slice_typefield.
-
slice_segment_address
public int slice_segment_address()- Returns:
- the value of the
slice_segment_addressfield.
-
collocated_ref_idx
public byte collocated_ref_idx()- Returns:
- the value of the
collocated_ref_idxfield.
-
MaxNumMergeCand
public byte MaxNumMergeCand()- Returns:
- the value of the
MaxNumMergeCandfield.
-
slice_cb_qp_offset
public byte slice_cb_qp_offset()- Returns:
- the value of the
slice_cb_qp_offsetfield.
-
slice_cr_qp_offset
public byte slice_cr_qp_offset()- Returns:
- the value of the
slice_cr_qp_offsetfield.
-
slice_beta_offset_div2
public byte slice_beta_offset_div2()- Returns:
- the value of the
slice_beta_offset_div2field.
-
slice_tc_offset_div2
public byte slice_tc_offset_div2()- Returns:
- the value of the
slice_tc_offset_div2field.
-
slice_act_y_qp_offset
public byte slice_act_y_qp_offset()- Returns:
- the value of the
slice_act_y_qp_offsetfield.
-
slice_act_cb_qp_offset
public byte slice_act_cb_qp_offset()- Returns:
- the value of the
slice_act_cb_qp_offsetfield.
-
slice_act_cr_qp_offset
public byte slice_act_cr_qp_offset()- Returns:
- the value of the
slice_act_cr_qp_offsetfield.
-
slice_qp_delta
public byte slice_qp_delta()- Returns:
- the value of the
slice_qp_deltafield.
-
pWeightTable
- Returns:
- a
StdVideoEncodeH265WeightTableview of the struct pointed to by thepWeightTablefield.
-
flags
Copies the specifiedStdVideoEncodeH265SliceSegmentHeaderFlagsto theflagsfield. -
flags
public StdVideoEncodeH265SliceSegmentHeader flags(Consumer<StdVideoEncodeH265SliceSegmentHeaderFlags> consumer) Passes theflagsfield to the specifiedConsumer. -
slice_type
Sets the specified value to theslice_typefield. -
slice_segment_address
Sets the specified value to theslice_segment_addressfield. -
collocated_ref_idx
Sets the specified value to thecollocated_ref_idxfield. -
MaxNumMergeCand
Sets the specified value to theMaxNumMergeCandfield. -
slice_cb_qp_offset
Sets the specified value to theslice_cb_qp_offsetfield. -
slice_cr_qp_offset
Sets the specified value to theslice_cr_qp_offsetfield. -
slice_beta_offset_div2
Sets the specified value to theslice_beta_offset_div2field. -
slice_tc_offset_div2
Sets the specified value to theslice_tc_offset_div2field. -
slice_act_y_qp_offset
Sets the specified value to theslice_act_y_qp_offsetfield. -
slice_act_cb_qp_offset
Sets the specified value to theslice_act_cb_qp_offsetfield. -
slice_act_cr_qp_offset
Sets the specified value to theslice_act_cr_qp_offsetfield. -
slice_qp_delta
Sets the specified value to theslice_qp_deltafield. -
pWeightTable
Sets the address of the specifiedStdVideoEncodeH265WeightTableto thepWeightTablefield. -
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 newStdVideoEncodeH265SliceSegmentHeaderinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStdVideoEncodeH265SliceSegmentHeaderinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStdVideoEncodeH265SliceSegmentHeaderinstance allocated withBufferUtils. -
create
Returns a newStdVideoEncodeH265SliceSegmentHeaderinstance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoEncodeH265SliceSegmentHeader.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStdVideoEncodeH265SliceSegmentHeader.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStdVideoEncodeH265SliceSegmentHeader.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStdVideoEncodeH265SliceSegmentHeader.Bufferinstance 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 newStdVideoEncodeH265SliceSegmentHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStdVideoEncodeH265SliceSegmentHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStdVideoEncodeH265SliceSegmentHeader.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStdVideoEncodeH265SliceSegmentHeader.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(). -
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
-