Record Class StdVideoEncodeH264SliceHeader
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.StdVideoEncodeH264SliceHeader
- All Implemented Interfaces:
IPointer
,IStdVideoEncodeH264SliceHeader
@ValueBasedCandidate
@UnsafeConstructor
public record StdVideoEncodeH264SliceHeader(@NotNull MemorySegment segment)
extends Record
implements IStdVideoEncodeH264SliceHeader
Represents a pointer to a StdVideoEncodeH264SliceHeader
structure in native memory.
Structure
typedef struct StdVideoEncodeH264SliceHeader {
StdVideoEncodeH264SliceHeaderFlags
flags
;
uint32_t first_mb_in_slice
;
StdVideoH264SliceType
slice_type
;
int8_t slice_alpha_c0_offset_div2
;
int8_t slice_beta_offset_div2
;
int8_t slice_qp_delta
;
uint8_t reserved1;
StdVideoH264CabacInitIdc
cabac_init_idc
;
StdVideoH264DisableDeblockingFilterIdc
disable_deblocking_filter_idc
;
StdVideoEncodeH264WeightTable
const* pWeightTable
;
} StdVideoEncodeH264SliceHeader;
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.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final StructLayout
static final AddressLayout
static final ValueLayout.OfByte
static final ValueLayout.OfByte
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 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
-
Constructor Summary
ConstructorsConstructorDescriptionStdVideoEncodeH264SliceHeader
(@NotNull MemorySegment segment) Creates an instance of aStdVideoEncodeH264SliceHeader
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
cabac_init_idc
(int value) clone
(Arena arena, StdVideoEncodeH264SliceHeader src) int
disable_deblocking_filter_idc
(int value) final boolean
Indicates whether some other object is "equal to" this one.int
first_mb_in_slice
(int value) @NotNull StdVideoEncodeH264SliceHeaderFlags
flags()
flags
(@NotNull StdVideoEncodeH264SliceHeaderFlags value) flags
(Consumer<@NotNull StdVideoEncodeH264SliceHeaderFlags> consumer) final int
hashCode()
Returns a hash code value for this object.@Nullable StdVideoEncodeH264WeightTable
pWeightTable
(int assumedCount) pWeightTable
(@Nullable IStdVideoEncodeH264WeightTable value) void
pWeightTableRaw
(MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.byte
slice_alpha_c0_offset_div2
(byte value) byte
slice_beta_offset_div2
(byte value) byte
slice_qp_delta
(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$first_mb_in_slice
-
PATH$slice_type
-
PATH$slice_alpha_c0_offset_div2
-
PATH$slice_beta_offset_div2
-
PATH$slice_qp_delta
-
PATH$cabac_init_idc
-
PATH$disable_deblocking_filter_idc
-
PATH$pWeightTable
-
LAYOUT$flags
-
LAYOUT$first_mb_in_slice
-
LAYOUT$slice_type
-
LAYOUT$slice_alpha_c0_offset_div2
-
LAYOUT$slice_beta_offset_div2
-
LAYOUT$slice_qp_delta
-
LAYOUT$cabac_init_idc
-
LAYOUT$disable_deblocking_filter_idc
-
LAYOUT$pWeightTable
-
SIZE$flags
public static final long SIZE$flags -
SIZE$first_mb_in_slice
public static final long SIZE$first_mb_in_slice -
SIZE$slice_type
public static final long SIZE$slice_type -
SIZE$slice_alpha_c0_offset_div2
public static final long SIZE$slice_alpha_c0_offset_div2 -
SIZE$slice_beta_offset_div2
public static final long SIZE$slice_beta_offset_div2 -
SIZE$slice_qp_delta
public static final long SIZE$slice_qp_delta -
SIZE$cabac_init_idc
public static final long SIZE$cabac_init_idc -
SIZE$disable_deblocking_filter_idc
public static final long SIZE$disable_deblocking_filter_idc -
SIZE$pWeightTable
public static final long SIZE$pWeightTable -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$first_mb_in_slice
public static final long OFFSET$first_mb_in_slice -
OFFSET$slice_type
public static final long OFFSET$slice_type -
OFFSET$slice_alpha_c0_offset_div2
public static final long OFFSET$slice_alpha_c0_offset_div2 -
OFFSET$slice_beta_offset_div2
public static final long OFFSET$slice_beta_offset_div2 -
OFFSET$slice_qp_delta
public static final long OFFSET$slice_qp_delta -
OFFSET$cabac_init_idc
public static final long OFFSET$cabac_init_idc -
OFFSET$disable_deblocking_filter_idc
public static final long OFFSET$disable_deblocking_filter_idc -
OFFSET$pWeightTable
public static final long OFFSET$pWeightTable
-
-
Constructor Details
-
StdVideoEncodeH264SliceHeader
Creates an instance of aStdVideoEncodeH264SliceHeader
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
flags
-
flags
public StdVideoEncodeH264SliceHeader flags(@NotNull @NotNull StdVideoEncodeH264SliceHeaderFlags value) -
flags
public StdVideoEncodeH264SliceHeader flags(Consumer<@NotNull StdVideoEncodeH264SliceHeaderFlags> consumer) -
first_mb_in_slice
-
first_mb_in_slice
-
slice_type
-
slice_type
-
slice_alpha_c0_offset_div2
public byte slice_alpha_c0_offset_div2() -
slice_alpha_c0_offset_div2
-
slice_beta_offset_div2
public byte slice_beta_offset_div2() -
slice_beta_offset_div2
-
slice_qp_delta
public byte slice_qp_delta() -
slice_qp_delta
-
cabac_init_idc
-
cabac_init_idc
public StdVideoEncodeH264SliceHeader cabac_init_idc(@EnumType(StdVideoH264CabacInitIdc.class) int value) -
disable_deblocking_filter_idc
-
disable_deblocking_filter_idc
public StdVideoEncodeH264SliceHeader disable_deblocking_filter_idc(@EnumType(StdVideoH264DisableDeblockingFilterIdc.class) int value) -
pWeightTable
public StdVideoEncodeH264SliceHeader pWeightTable(@Nullable @Nullable IStdVideoEncodeH264WeightTable value) -
pWeightTable
-
pWeightTable
-
pWeightTableRaw
-
pWeightTableRaw
public void pWeightTableRaw(@Pointer(target=StdVideoEncodeH264WeightTable.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.
-