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 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.OfIntstatic final ValueLayout.OfBytestatic final AddressLayoutstatic final ValueLayout.OfIntstatic 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
ConstructorsConstructorDescriptionStdVideoEncodeAV1ReferenceInfo(@NotNull MemorySegment segment) Creates an instance of aStdVideoEncodeAV1ReferenceInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, StdVideoEncodeAV1ReferenceInfo src) final booleanIndicates whether some other object is "equal to" this one.@NotNull StdVideoEncodeAV1ReferenceInfoFlagsflags()flags(@NotNull StdVideoEncodeAV1ReferenceInfoFlags value) flags(Consumer<@NotNull StdVideoEncodeAV1ReferenceInfoFlags> consumer) intframe_type(int value) final inthashCode()Returns a hash code value for this object.byteOrderHint(byte value) @Nullable StdVideoEncodeAV1ExtensionHeaderpExtensionHeader(int assumedCount) pExtensionHeader(@Nullable IStdVideoEncodeAV1ExtensionHeader value) @NotNull MemorySegmentvoidpExtensionHeaderRaw(@NotNull MemorySegment value) intRefFrameId(int value) @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$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 aStdVideoEncodeAV1ReferenceInforecord class.- Parameters:
segment- the value for thesegmentrecord 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
@Pointer(target=StdVideoEncodeAV1ExtensionHeader.class) @NotNull public @NotNull MemorySegment pExtensionHeaderRaw() -
pExtensionHeaderRaw
public void pExtensionHeaderRaw(@Pointer(target=StdVideoEncodeAV1ExtensionHeader.class) @NotNull @NotNull 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 thesegmentrecord component.
-