Record Class StdVideoEncodeH265SliceSegmentHeader
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.StdVideoEncodeH265SliceSegmentHeader
- All Implemented Interfaces:
IPointer
,IStdVideoEncodeH265SliceSegmentHeader
@ValueBasedCandidate
@UnsafeConstructor
public record StdVideoEncodeH265SliceSegmentHeader(@NotNull MemorySegment segment)
extends Record
implements IStdVideoEncodeH265SliceSegmentHeader
Represents a pointer to a StdVideoEncodeH265SliceSegmentHeader
structure in native memory.
Structure
typedef 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
;
} StdVideoEncodeH265SliceSegmentHeader;
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfByte
static final StructLayout
static final ValueLayout.OfByte
static final AddressLayout
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final ValueLayout.OfInt
static final ValueLayout.OfByte
static final ValueLayout.OfInt
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionStdVideoEncodeH265SliceSegmentHeader
(@NotNull MemorySegment segment) Creates an instance of aStdVideoEncodeH265SliceSegmentHeader
record class. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Arena arena, StdVideoEncodeH265SliceSegmentHeader src) byte
collocated_ref_idx
(byte value) final boolean
Indicates whether some other object is "equal to" this one.flags()
flags
(@NotNull StdVideoEncodeH265SliceSegmentHeaderFlags value) flags
(Consumer<@NotNull StdVideoEncodeH265SliceSegmentHeaderFlags> consumer) final int
hashCode()
Returns a hash code value for this object.byte
MaxNumMergeCand
(byte value) @Nullable StdVideoEncodeH265WeightTable
pWeightTable
(int assumedCount) pWeightTable
(@Nullable IStdVideoEncodeH265WeightTable value) void
pWeightTableRaw
(MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.byte
slice_act_cb_qp_offset
(byte value) byte
slice_act_cr_qp_offset
(byte value) byte
slice_act_y_qp_offset
(byte value) byte
slice_beta_offset_div2
(byte value) byte
slice_cb_qp_offset
(byte value) byte
slice_cr_qp_offset
(byte value) byte
slice_qp_delta
(byte value) int
slice_segment_address
(int value) byte
slice_tc_offset_div2
(byte value) int
slice_type
(int value) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$flags
-
PATH$slice_type
-
PATH$slice_segment_address
-
PATH$collocated_ref_idx
-
PATH$MaxNumMergeCand
-
PATH$slice_cb_qp_offset
-
PATH$slice_cr_qp_offset
-
PATH$slice_beta_offset_div2
-
PATH$slice_tc_offset_div2
-
PATH$slice_act_y_qp_offset
-
PATH$slice_act_cb_qp_offset
-
PATH$slice_act_cr_qp_offset
-
PATH$slice_qp_delta
-
PATH$pWeightTable
-
LAYOUT$flags
-
LAYOUT$slice_type
-
LAYOUT$slice_segment_address
-
LAYOUT$collocated_ref_idx
-
LAYOUT$MaxNumMergeCand
-
LAYOUT$slice_cb_qp_offset
-
LAYOUT$slice_cr_qp_offset
-
LAYOUT$slice_beta_offset_div2
-
LAYOUT$slice_tc_offset_div2
-
LAYOUT$slice_act_y_qp_offset
-
LAYOUT$slice_act_cb_qp_offset
-
LAYOUT$slice_act_cr_qp_offset
-
LAYOUT$slice_qp_delta
-
LAYOUT$pWeightTable
-
SIZE$flags
public static final long SIZE$flags -
SIZE$slice_type
public static final long SIZE$slice_type -
SIZE$slice_segment_address
public static final long SIZE$slice_segment_address -
SIZE$collocated_ref_idx
public static final long SIZE$collocated_ref_idx -
SIZE$MaxNumMergeCand
public static final long SIZE$MaxNumMergeCand -
SIZE$slice_cb_qp_offset
public static final long SIZE$slice_cb_qp_offset -
SIZE$slice_cr_qp_offset
public static final long SIZE$slice_cr_qp_offset -
SIZE$slice_beta_offset_div2
public static final long SIZE$slice_beta_offset_div2 -
SIZE$slice_tc_offset_div2
public static final long SIZE$slice_tc_offset_div2 -
SIZE$slice_act_y_qp_offset
public static final long SIZE$slice_act_y_qp_offset -
SIZE$slice_act_cb_qp_offset
public static final long SIZE$slice_act_cb_qp_offset -
SIZE$slice_act_cr_qp_offset
public static final long SIZE$slice_act_cr_qp_offset -
SIZE$slice_qp_delta
public static final long SIZE$slice_qp_delta -
SIZE$pWeightTable
public static final long SIZE$pWeightTable -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$slice_type
public static final long OFFSET$slice_type -
OFFSET$slice_segment_address
public static final long OFFSET$slice_segment_address -
OFFSET$collocated_ref_idx
public static final long OFFSET$collocated_ref_idx -
OFFSET$MaxNumMergeCand
public static final long OFFSET$MaxNumMergeCand -
OFFSET$slice_cb_qp_offset
public static final long OFFSET$slice_cb_qp_offset -
OFFSET$slice_cr_qp_offset
public static final long OFFSET$slice_cr_qp_offset -
OFFSET$slice_beta_offset_div2
public static final long OFFSET$slice_beta_offset_div2 -
OFFSET$slice_tc_offset_div2
public static final long OFFSET$slice_tc_offset_div2 -
OFFSET$slice_act_y_qp_offset
public static final long OFFSET$slice_act_y_qp_offset -
OFFSET$slice_act_cb_qp_offset
public static final long OFFSET$slice_act_cb_qp_offset -
OFFSET$slice_act_cr_qp_offset
public static final long OFFSET$slice_act_cr_qp_offset -
OFFSET$slice_qp_delta
public static final long OFFSET$slice_qp_delta -
OFFSET$pWeightTable
public static final long OFFSET$pWeightTable
-
-
Constructor Details
-
StdVideoEncodeH265SliceSegmentHeader
Creates an instance of aStdVideoEncodeH265SliceSegmentHeader
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static StdVideoEncodeH265SliceSegmentHeader clone(Arena arena, StdVideoEncodeH265SliceSegmentHeader src) -
flags
-
flags
public StdVideoEncodeH265SliceSegmentHeader flags(@NotNull @NotNull StdVideoEncodeH265SliceSegmentHeaderFlags value) -
flags
public StdVideoEncodeH265SliceSegmentHeader flags(Consumer<@NotNull StdVideoEncodeH265SliceSegmentHeaderFlags> consumer) -
slice_type
-
slice_type
public StdVideoEncodeH265SliceSegmentHeader slice_type(@EnumType(StdVideoH265SliceType.class) int value) -
slice_segment_address
-
slice_segment_address
-
collocated_ref_idx
-
collocated_ref_idx
-
MaxNumMergeCand
-
MaxNumMergeCand
-
slice_cb_qp_offset
public byte slice_cb_qp_offset() -
slice_cb_qp_offset
-
slice_cr_qp_offset
public byte slice_cr_qp_offset() -
slice_cr_qp_offset
-
slice_beta_offset_div2
public byte slice_beta_offset_div2() -
slice_beta_offset_div2
-
slice_tc_offset_div2
public byte slice_tc_offset_div2() -
slice_tc_offset_div2
-
slice_act_y_qp_offset
public byte slice_act_y_qp_offset() -
slice_act_y_qp_offset
-
slice_act_cb_qp_offset
public byte slice_act_cb_qp_offset() -
slice_act_cb_qp_offset
-
slice_act_cr_qp_offset
public byte slice_act_cr_qp_offset() -
slice_act_cr_qp_offset
-
slice_qp_delta
public byte slice_qp_delta() -
slice_qp_delta
-
pWeightTable
public StdVideoEncodeH265SliceSegmentHeader pWeightTable(@Nullable @Nullable IStdVideoEncodeH265WeightTable value) -
pWeightTable
-
pWeightTable
-
pWeightTableRaw
-
pWeightTableRaw
public void pWeightTableRaw(@Pointer(target=StdVideoEncodeH265WeightTable.class) MemorySegment value) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-