Record Class StdVideoDecodeAV1ReferenceInfo
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.StdVideoDecodeAV1ReferenceInfo
- All Implemented Interfaces:
IPointer,IStdVideoDecodeAV1ReferenceInfo
@ValueBasedCandidate
@UnsafeConstructor
public record StdVideoDecodeAV1ReferenceInfo(@NotNull MemorySegment segment)
extends Record
implements IStdVideoDecodeAV1ReferenceInfo
Represents a pointer to a StdVideoDecodeAV1ReferenceInfo structure in native memory.
Structure
typedef struct StdVideoDecodeAV1ReferenceInfo {
StdVideoDecodeAV1ReferenceInfoFlags flags;
uint8_t frame_type;
uint8_t RefFrameSignBias;
uint8_t OrderHint;
uint8_t[STD_VIDEO_AV1_NUM_REF_FRAMES] SavedOrderHints;
} StdVideoDecodeAV1ReferenceInfo;
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.OfBytestatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final SequenceLayoutstatic 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 longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoDecodeAV1ReferenceInfo(@NotNull MemorySegment segment) Creates an instance of aStdVideoDecodeAV1ReferenceInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, StdVideoDecodeAV1ReferenceInfo src) final booleanIndicates whether some other object is "equal to" this one.@NotNull StdVideoDecodeAV1ReferenceInfoFlagsflags()flags(@NotNull StdVideoDecodeAV1ReferenceInfoFlags value) flags(Consumer<@NotNull StdVideoDecodeAV1ReferenceInfoFlags> consumer) byteframe_type(byte value) final inthashCode()Returns a hash code value for this object.byteOrderHint(byte value) byteRefFrameSignBias(byte value) SavedOrderHints(BytePtr value) SavedOrderHints(@NotNull Consumer<BytePtr> consumer) @NotNull MemorySegment@NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$flags
-
PATH$frame_type
-
PATH$RefFrameSignBias
-
PATH$OrderHint
-
PATH$SavedOrderHints
-
LAYOUT$flags
-
LAYOUT$frame_type
-
LAYOUT$RefFrameSignBias
-
LAYOUT$OrderHint
-
LAYOUT$SavedOrderHints
-
SIZE$flags
public static final long SIZE$flags -
SIZE$frame_type
public static final long SIZE$frame_type -
SIZE$RefFrameSignBias
public static final long SIZE$RefFrameSignBias -
SIZE$OrderHint
public static final long SIZE$OrderHint -
SIZE$SavedOrderHints
public static final long SIZE$SavedOrderHints -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$frame_type
public static final long OFFSET$frame_type -
OFFSET$RefFrameSignBias
public static final long OFFSET$RefFrameSignBias -
OFFSET$OrderHint
public static final long OFFSET$OrderHint -
OFFSET$SavedOrderHints
public static final long OFFSET$SavedOrderHints
-
-
Constructor Details
-
StdVideoDecodeAV1ReferenceInfo
Creates an instance of aStdVideoDecodeAV1ReferenceInforecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
flags
-
flags
public StdVideoDecodeAV1ReferenceInfo flags(@NotNull @NotNull StdVideoDecodeAV1ReferenceInfoFlags value) -
flags
public StdVideoDecodeAV1ReferenceInfo flags(Consumer<@NotNull StdVideoDecodeAV1ReferenceInfoFlags> consumer) -
frame_type
-
frame_type
-
RefFrameSignBias
-
RefFrameSignBias
-
OrderHint
-
OrderHint
-
SavedOrderHints
-
SavedOrderHints
-
SavedOrderHints
-
SavedOrderHintsRaw
-
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.
-