Record Class StdVideoDecodeH264PictureInfo
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.StdVideoDecodeH264PictureInfo
- All Implemented Interfaces:
IPointer,IStdVideoDecodeH264PictureInfo
@ValueBasedCandidate
@UnsafeConstructor
public record StdVideoDecodeH264PictureInfo(@NotNull MemorySegment segment)
extends Record
implements IStdVideoDecodeH264PictureInfo
Represents a pointer to a StdVideoDecodeH264PictureInfo structure in native memory.
Structure
typedef struct StdVideoDecodeH264PictureInfo {
StdVideoDecodeH264PictureInfoFlags flags;
uint8_t seq_parameter_set_id;
uint8_t pic_parameter_set_id;
uint8_t reserved1;
uint8_t reserved2;
uint16_t frame_num;
uint16_t idr_pic_id;
int32_t[STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_LIST_SIZE] PicOrderCnt;
} StdVideoDecodeH264PictureInfo;
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 StructLayoutstatic final ValueLayout.OfShortstatic final ValueLayout.OfShortstatic final ValueLayout.OfBytestatic final SequenceLayoutstatic final ValueLayout.OfBytestatic 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 longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoDecodeH264PictureInfo(@NotNull MemorySegment segment) Creates an instance of aStdVideoDecodeH264PictureInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, StdVideoDecodeH264PictureInfo src) final booleanIndicates whether some other object is "equal to" this one.@NotNull StdVideoDecodeH264PictureInfoFlagsflags()flags(@NotNull StdVideoDecodeH264PictureInfoFlags value) flags(Consumer<@NotNull StdVideoDecodeH264PictureInfoFlags> consumer) shortframe_num(short value) final inthashCode()Returns a hash code value for this object.shortidr_pic_id(short value) bytepic_parameter_set_id(byte value) PicOrderCnt(IntPtr value) PicOrderCnt(@NotNull Consumer<IntPtr> consumer) @NotNull MemorySegment@NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.byteseq_parameter_set_id(byte value) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$flags
-
PATH$seq_parameter_set_id
-
PATH$pic_parameter_set_id
-
PATH$frame_num
-
PATH$idr_pic_id
-
PATH$PicOrderCnt
-
LAYOUT$flags
-
LAYOUT$seq_parameter_set_id
-
LAYOUT$pic_parameter_set_id
-
LAYOUT$frame_num
-
LAYOUT$idr_pic_id
-
LAYOUT$PicOrderCnt
-
SIZE$flags
public static final long SIZE$flags -
SIZE$seq_parameter_set_id
public static final long SIZE$seq_parameter_set_id -
SIZE$pic_parameter_set_id
public static final long SIZE$pic_parameter_set_id -
SIZE$frame_num
public static final long SIZE$frame_num -
SIZE$idr_pic_id
public static final long SIZE$idr_pic_id -
SIZE$PicOrderCnt
public static final long SIZE$PicOrderCnt -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$seq_parameter_set_id
public static final long OFFSET$seq_parameter_set_id -
OFFSET$pic_parameter_set_id
public static final long OFFSET$pic_parameter_set_id -
OFFSET$frame_num
public static final long OFFSET$frame_num -
OFFSET$idr_pic_id
public static final long OFFSET$idr_pic_id -
OFFSET$PicOrderCnt
public static final long OFFSET$PicOrderCnt
-
-
Constructor Details
-
StdVideoDecodeH264PictureInfo
Creates an instance of aStdVideoDecodeH264PictureInforecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
flags
-
flags
public StdVideoDecodeH264PictureInfo flags(@NotNull @NotNull StdVideoDecodeH264PictureInfoFlags value) -
flags
public StdVideoDecodeH264PictureInfo flags(Consumer<@NotNull StdVideoDecodeH264PictureInfoFlags> consumer) -
seq_parameter_set_id
-
seq_parameter_set_id
-
pic_parameter_set_id
-
pic_parameter_set_id
-
frame_num
-
frame_num
-
idr_pic_id
-
idr_pic_id
-
PicOrderCnt
-
PicOrderCnt
-
PicOrderCnt
-
PicOrderCntRaw
-
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.
-