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 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.OfByte
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final SequenceLayout
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 long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionStdVideoDecodeAV1ReferenceInfo
(@NotNull MemorySegment segment) Creates an instance of aStdVideoDecodeAV1ReferenceInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Arena arena, StdVideoDecodeAV1ReferenceInfo src) final boolean
Indicates whether some other object is "equal to" this one.@NotNull StdVideoDecodeAV1ReferenceInfoFlags
flags()
flags
(@NotNull StdVideoDecodeAV1ReferenceInfoFlags value) flags
(Consumer<@NotNull StdVideoDecodeAV1ReferenceInfoFlags> consumer) byte
frame_type
(byte value) final int
hashCode()
Returns a hash code value for this object.byte
OrderHint
(byte value) byte
RefFrameSignBias
(byte value) SavedOrderHints
(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$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 aStdVideoDecodeAV1ReferenceInfo
record class.- Parameters:
segment
- the value for thesegment
record 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
-
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 thesegment
record component.
-