Record Class StdVideoEncodeH264ReferenceInfo
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.StdVideoEncodeH264ReferenceInfo
- All Implemented Interfaces:
IPointer
,IStdVideoEncodeH264ReferenceInfo
@ValueBasedCandidate
@UnsafeConstructor
public record StdVideoEncodeH264ReferenceInfo(@NotNull MemorySegment segment)
extends Record
implements IStdVideoEncodeH264ReferenceInfo
Represents a pointer to a StdVideoEncodeH264ReferenceInfo
structure in native memory.
Structure
typedef struct StdVideoEncodeH264ReferenceInfo {
StdVideoEncodeH264ReferenceInfoFlags
flags
;
StdVideoH264PictureType
primary_pic_type
;
uint32_t FrameNum
;
int32_t PicOrderCnt
;
uint16_t long_term_pic_num
;
uint16_t long_term_frame_idx
;
uint8_t temporal_id
;
} StdVideoEncodeH264ReferenceInfo;
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 StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfShort
static final ValueLayout.OfShort
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfByte
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 long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionStdVideoEncodeH264ReferenceInfo
(@NotNull MemorySegment segment) Creates an instance of aStdVideoEncodeH264ReferenceInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Arena arena, StdVideoEncodeH264ReferenceInfo src) final boolean
Indicates whether some other object is "equal to" this one.@NotNull StdVideoEncodeH264ReferenceInfoFlags
flags()
flags
(@NotNull StdVideoEncodeH264ReferenceInfoFlags value) flags
(Consumer<@NotNull StdVideoEncodeH264ReferenceInfoFlags> consumer) int
FrameNum()
FrameNum
(int value) final int
hashCode()
Returns a hash code value for this object.short
long_term_frame_idx
(short value) short
long_term_pic_num
(short value) int
PicOrderCnt
(int value) int
primary_pic_type
(int value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.byte
temporal_id
(byte value) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$flags
-
PATH$primary_pic_type
-
PATH$FrameNum
-
PATH$PicOrderCnt
-
PATH$long_term_pic_num
-
PATH$long_term_frame_idx
-
PATH$temporal_id
-
LAYOUT$flags
-
LAYOUT$primary_pic_type
-
LAYOUT$FrameNum
-
LAYOUT$PicOrderCnt
-
LAYOUT$long_term_pic_num
-
LAYOUT$long_term_frame_idx
-
LAYOUT$temporal_id
-
SIZE$flags
public static final long SIZE$flags -
SIZE$primary_pic_type
public static final long SIZE$primary_pic_type -
SIZE$FrameNum
public static final long SIZE$FrameNum -
SIZE$PicOrderCnt
public static final long SIZE$PicOrderCnt -
SIZE$long_term_pic_num
public static final long SIZE$long_term_pic_num -
SIZE$long_term_frame_idx
public static final long SIZE$long_term_frame_idx -
SIZE$temporal_id
public static final long SIZE$temporal_id -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$primary_pic_type
public static final long OFFSET$primary_pic_type -
OFFSET$FrameNum
public static final long OFFSET$FrameNum -
OFFSET$PicOrderCnt
public static final long OFFSET$PicOrderCnt -
OFFSET$long_term_pic_num
public static final long OFFSET$long_term_pic_num -
OFFSET$long_term_frame_idx
public static final long OFFSET$long_term_frame_idx -
OFFSET$temporal_id
public static final long OFFSET$temporal_id
-
-
Constructor Details
-
StdVideoEncodeH264ReferenceInfo
Creates an instance of aStdVideoEncodeH264ReferenceInfo
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static StdVideoEncodeH264ReferenceInfo clone(Arena arena, StdVideoEncodeH264ReferenceInfo src) -
flags
-
flags
public StdVideoEncodeH264ReferenceInfo flags(@NotNull @NotNull StdVideoEncodeH264ReferenceInfoFlags value) -
flags
public StdVideoEncodeH264ReferenceInfo flags(Consumer<@NotNull StdVideoEncodeH264ReferenceInfoFlags> consumer) -
-
primary_pic_type
public StdVideoEncodeH264ReferenceInfo primary_pic_type(@EnumType(StdVideoH264PictureType.class) int value) -
FrameNum
-
FrameNum
-
PicOrderCnt
public int PicOrderCnt() -
PicOrderCnt
-
long_term_pic_num
-
long_term_pic_num
-
long_term_frame_idx
-
long_term_frame_idx
-
temporal_id
-
temporal_id
-
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.
-