Record Class StdVideoEncodeH264WeightTable
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.StdVideoEncodeH264WeightTable
- All Implemented Interfaces:
IPointer
,IStdVideoEncodeH264WeightTable
@ValueBasedCandidate
@UnsafeConstructor
public record StdVideoEncodeH264WeightTable(@NotNull MemorySegment segment)
extends Record
implements IStdVideoEncodeH264WeightTable
Represents a pointer to a StdVideoEncodeH264WeightTable
structure in native memory.
Structure
typedef struct StdVideoEncodeH264WeightTable {
StdVideoEncodeH264WeightTableFlags
flags
;
uint8_t luma_log2_weight_denom
;
uint8_t chroma_log2_weight_denom
;
int8_t[STD_VIDEO_H264_MAX_NUM_LIST_REF] luma_weight_l0
;
int8_t[STD_VIDEO_H264_MAX_NUM_LIST_REF] luma_offset_l0
;
int8_t[STD_VIDEO_H264_MAX_CHROMA_PLANES][STD_VIDEO_H264_MAX_NUM_LIST_REF] chroma_weight_l0
;
int8_t[STD_VIDEO_H264_MAX_CHROMA_PLANES][STD_VIDEO_H264_MAX_NUM_LIST_REF] chroma_offset_l0
;
int8_t[STD_VIDEO_H264_MAX_NUM_LIST_REF] luma_weight_l1
;
int8_t[STD_VIDEO_H264_MAX_NUM_LIST_REF] luma_offset_l1
;
int8_t[STD_VIDEO_H264_MAX_CHROMA_PLANES][STD_VIDEO_H264_MAX_NUM_LIST_REF] chroma_weight_l1
;
int8_t[STD_VIDEO_H264_MAX_CHROMA_PLANES][STD_VIDEO_H264_MAX_NUM_LIST_REF] chroma_offset_l1
;
} StdVideoEncodeH264WeightTable;
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 SequenceLayout
static final SequenceLayout
static final SequenceLayout
static final SequenceLayout
static final StructLayout
static final ValueLayout.OfByte
static final SequenceLayout
static final SequenceLayout
static final SequenceLayout
static final SequenceLayout
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 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
ConstructorsConstructorDescriptionStdVideoEncodeH264WeightTable
(@NotNull MemorySegment segment) Creates an instance of aStdVideoEncodeH264WeightTable
record class. -
Method Summary
Modifier and TypeMethodDescriptionbyte
chroma_log2_weight_denom
(byte value) chroma_offset_l0
(BytePtr value) chroma_offset_l1
(BytePtr value) chroma_weight_l0
(BytePtr value) chroma_weight_l1
(BytePtr value) clone
(Arena arena, StdVideoEncodeH264WeightTable src) final boolean
Indicates whether some other object is "equal to" this one.@NotNull StdVideoEncodeH264WeightTableFlags
flags()
flags
(@NotNull StdVideoEncodeH264WeightTableFlags value) flags
(Consumer<@NotNull StdVideoEncodeH264WeightTableFlags> consumer) final int
hashCode()
Returns a hash code value for this object.byte
luma_log2_weight_denom
(byte value) luma_offset_l0
(BytePtr value) luma_offset_l1
(BytePtr value) luma_weight_l0
(BytePtr value) luma_weight_l1
(BytePtr value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$flags
-
PATH$luma_log2_weight_denom
-
PATH$chroma_log2_weight_denom
-
PATH$luma_weight_l0
-
PATH$luma_offset_l0
-
PATH$chroma_weight_l0
-
PATH$chroma_offset_l0
-
PATH$luma_weight_l1
-
PATH$luma_offset_l1
-
PATH$chroma_weight_l1
-
PATH$chroma_offset_l1
-
LAYOUT$flags
-
LAYOUT$luma_log2_weight_denom
-
LAYOUT$chroma_log2_weight_denom
-
LAYOUT$luma_weight_l0
-
LAYOUT$luma_offset_l0
-
LAYOUT$chroma_weight_l0
-
LAYOUT$chroma_offset_l0
-
LAYOUT$luma_weight_l1
-
LAYOUT$luma_offset_l1
-
LAYOUT$chroma_weight_l1
-
LAYOUT$chroma_offset_l1
-
SIZE$flags
public static final long SIZE$flags -
SIZE$luma_log2_weight_denom
public static final long SIZE$luma_log2_weight_denom -
SIZE$chroma_log2_weight_denom
public static final long SIZE$chroma_log2_weight_denom -
SIZE$luma_weight_l0
public static final long SIZE$luma_weight_l0 -
SIZE$luma_offset_l0
public static final long SIZE$luma_offset_l0 -
SIZE$chroma_weight_l0
public static final long SIZE$chroma_weight_l0 -
SIZE$chroma_offset_l0
public static final long SIZE$chroma_offset_l0 -
SIZE$luma_weight_l1
public static final long SIZE$luma_weight_l1 -
SIZE$luma_offset_l1
public static final long SIZE$luma_offset_l1 -
SIZE$chroma_weight_l1
public static final long SIZE$chroma_weight_l1 -
SIZE$chroma_offset_l1
public static final long SIZE$chroma_offset_l1 -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$luma_log2_weight_denom
public static final long OFFSET$luma_log2_weight_denom -
OFFSET$chroma_log2_weight_denom
public static final long OFFSET$chroma_log2_weight_denom -
OFFSET$luma_weight_l0
public static final long OFFSET$luma_weight_l0 -
OFFSET$luma_offset_l0
public static final long OFFSET$luma_offset_l0 -
OFFSET$chroma_weight_l0
public static final long OFFSET$chroma_weight_l0 -
OFFSET$chroma_offset_l0
public static final long OFFSET$chroma_offset_l0 -
OFFSET$luma_weight_l1
public static final long OFFSET$luma_weight_l1 -
OFFSET$luma_offset_l1
public static final long OFFSET$luma_offset_l1 -
OFFSET$chroma_weight_l1
public static final long OFFSET$chroma_weight_l1 -
OFFSET$chroma_offset_l1
public static final long OFFSET$chroma_offset_l1
-
-
Constructor Details
-
StdVideoEncodeH264WeightTable
Creates an instance of aStdVideoEncodeH264WeightTable
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
flags
-
flags
public StdVideoEncodeH264WeightTable flags(@NotNull @NotNull StdVideoEncodeH264WeightTableFlags value) -
flags
public StdVideoEncodeH264WeightTable flags(Consumer<@NotNull StdVideoEncodeH264WeightTableFlags> consumer) -
luma_log2_weight_denom
-
luma_log2_weight_denom
-
chroma_log2_weight_denom
-
chroma_log2_weight_denom
-
luma_weight_l0
-
luma_weight_l0
-
luma_weight_l0Raw
-
luma_offset_l0
-
luma_offset_l0
-
luma_offset_l0Raw
-
chroma_weight_l0
-
chroma_weight_l0
-
chroma_weight_l0Raw
-
chroma_offset_l0
-
chroma_offset_l0
-
chroma_offset_l0Raw
-
luma_weight_l1
-
luma_weight_l1
-
luma_weight_l1Raw
-
luma_offset_l1
-
luma_offset_l1
-
luma_offset_l1Raw
-
chroma_weight_l1
-
chroma_weight_l1
-
chroma_weight_l1Raw
-
chroma_offset_l1
-
chroma_offset_l1
-
chroma_offset_l1Raw
-
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.
-