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 recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final StructLayoutstatic final AddressLayoutstatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoEncodeH264SliceHeader(@NotNull MemorySegment segment) Creates an instance of aStdVideoEncodeH264SliceHeaderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcabac_init_idc(int value) clone(Arena arena, StdVideoEncodeH264SliceHeader src) intdisable_deblocking_filter_idc(int value) final booleanIndicates whether some other object is "equal to" this one.intfirst_mb_in_slice(int value) @NotNull StdVideoEncodeH264SliceHeaderFlagsflags()flags(@NotNull StdVideoEncodeH264SliceHeaderFlags value) flags(Consumer<@NotNull StdVideoEncodeH264SliceHeaderFlags> consumer) final inthashCode()Returns a hash code value for this object.@Nullable StdVideoEncodeH264WeightTablepWeightTable(int assumedCount) pWeightTable(@Nullable IStdVideoEncodeH264WeightTable value) @NotNull MemorySegmentvoidpWeightTableRaw(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.byteslice_alpha_c0_offset_div2(byte value) byteslice_beta_offset_div2(byte value) byteslice_qp_delta(byte value) intslice_type(int value) final StringtoString()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 aStdVideoEncodeH264SliceHeaderrecord class.- Parameters:
segment- the value for thesegmentrecord 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
@Pointer(target=StdVideoEncodeH264WeightTable.class) @NotNull public @NotNull MemorySegment pWeightTableRaw() -
pWeightTableRaw
public void pWeightTableRaw(@Pointer(target=StdVideoEncodeH264WeightTable.class) @NotNull @NotNull 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 thesegmentrecord component.
-