Record Class StdVideoEncodeAV1ReferenceInfo
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.StdVideoEncodeAV1ReferenceInfo
- All Implemented Interfaces:
IPointer
,IStdVideoEncodeAV1ReferenceInfo
@ValueBasedCandidate
@UnsafeConstructor
public record StdVideoEncodeAV1ReferenceInfo(@NotNull MemorySegment segment)
extends Record
implements IStdVideoEncodeAV1ReferenceInfo
Represents a pointer to a StdVideoEncodeAV1ReferenceInfo
structure in native memory.
Structure
typedef struct StdVideoEncodeAV1ReferenceInfo {
StdVideoEncodeAV1ReferenceInfoFlags
flags
;
uint32_t RefFrameId
;
StdVideoAV1FrameType
frame_type
;
uint8_t OrderHint
;
uint8_t[3] reserved1;
StdVideoEncodeAV1ExtensionHeader
const* pExtensionHeader
;
} StdVideoEncodeAV1ReferenceInfo;
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.OfByte
static final AddressLayout
static final ValueLayout.OfInt
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
ConstructorsConstructorDescriptionStdVideoEncodeAV1ReferenceInfo
(@NotNull MemorySegment segment) Creates an instance of aStdVideoEncodeAV1ReferenceInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Arena arena, StdVideoEncodeAV1ReferenceInfo src) final boolean
Indicates whether some other object is "equal to" this one.@NotNull StdVideoEncodeAV1ReferenceInfoFlags
flags()
flags
(@NotNull StdVideoEncodeAV1ReferenceInfoFlags value) flags
(Consumer<@NotNull StdVideoEncodeAV1ReferenceInfoFlags> consumer) int
frame_type
(int value) final int
hashCode()
Returns a hash code value for this object.byte
OrderHint
(byte value) @Nullable StdVideoEncodeAV1ExtensionHeader
pExtensionHeader
(int assumedCount) pExtensionHeader
(@Nullable IStdVideoEncodeAV1ExtensionHeader value) void
pExtensionHeaderRaw
(MemorySegment value) int
RefFrameId
(int 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$RefFrameId
-
PATH$frame_type
-
PATH$OrderHint
-
PATH$pExtensionHeader
-
LAYOUT$flags
-
LAYOUT$RefFrameId
-
LAYOUT$frame_type
-
LAYOUT$OrderHint
-
LAYOUT$pExtensionHeader
-
SIZE$flags
public static final long SIZE$flags -
SIZE$RefFrameId
public static final long SIZE$RefFrameId -
SIZE$frame_type
public static final long SIZE$frame_type -
SIZE$OrderHint
public static final long SIZE$OrderHint -
SIZE$pExtensionHeader
public static final long SIZE$pExtensionHeader -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$RefFrameId
public static final long OFFSET$RefFrameId -
OFFSET$frame_type
public static final long OFFSET$frame_type -
OFFSET$OrderHint
public static final long OFFSET$OrderHint -
OFFSET$pExtensionHeader
public static final long OFFSET$pExtensionHeader
-
-
Constructor Details
-
StdVideoEncodeAV1ReferenceInfo
Creates an instance of aStdVideoEncodeAV1ReferenceInfo
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
flags
-
flags
public StdVideoEncodeAV1ReferenceInfo flags(@NotNull @NotNull StdVideoEncodeAV1ReferenceInfoFlags value) -
flags
public StdVideoEncodeAV1ReferenceInfo flags(Consumer<@NotNull StdVideoEncodeAV1ReferenceInfoFlags> consumer) -
RefFrameId
-
RefFrameId
-
frame_type
-
frame_type
-
OrderHint
-
OrderHint
-
pExtensionHeader
public StdVideoEncodeAV1ReferenceInfo pExtensionHeader(@Nullable @Nullable IStdVideoEncodeAV1ExtensionHeader value) -
pExtensionHeader
-
pExtensionHeader
-
pExtensionHeaderRaw
-
pExtensionHeaderRaw
public void pExtensionHeaderRaw(@Pointer(target=StdVideoEncodeAV1ExtensionHeader.class) MemorySegment value) -
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.
-