Record Class VkVideoDecodeAV1PictureInfoKHR
- All Implemented Interfaces:
IPointer,IVkVideoDecodeAV1PictureInfoKHR
Represents a pointer to a VkVideoDecodeAV1PictureInfoKHR structure in native memory.
Structure
typedef struct VkVideoDecodeAV1PictureInfoKHR {
VkStructureType sType;
void const* pNext; // optional
StdVideoDecodeAV1PictureInfo const* pStdPictureInfo;
int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR] referenceNameSlotIndices;
uint32_t frameHeaderOffset;
uint32_t tileCount;
uint32_t const* pTileOffsets;
uint32_t const* pTileSizes;
} VkVideoDecodeAV1PictureInfoKHR;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_PICTURE_INFO_KHR
The allocate (allocate(Arena), allocate(Arena, long))
functions will automatically initialize these fields. Also, you may call autoInit()
to initialize these fields manually for non-allocated instances.
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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a pointer to / an array ofVkVideoDecodeAV1PictureInfoKHRstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final SequenceLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic 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 MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkVideoDecodeAV1PictureInfoKHR(@NotNull MemorySegment segment) Creates an instance of aVkVideoDecodeAV1PictureInfoKHRrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidautoInit()clone(Arena arena, VkVideoDecodeAV1PictureInfoKHR src) final booleanIndicates whether some other object is "equal to" this one.intframeHeaderOffset(int value) final inthashCode()Returns a hash code value for this object.@NotNull MemorySegmentpNext()pNext(@NotNull MemorySegment value) @Nullable StdVideoDecodeAV1PictureInfopStdPictureInfo(int assumedCount) pStdPictureInfo(@Nullable IStdVideoDecodeAV1PictureInfo value) @NotNull MemorySegmentvoidpStdPictureInfoRaw(@NotNull MemorySegment value) @Nullable IntPtrNote: the returnedIntPtrdoes not have correctIntPtr.size()property.pTileOffsets(@Nullable IntPtr value) @NotNull MemorySegmentvoidpTileOffsetsRaw(@NotNull MemorySegment value) @Nullable IntPtrNote: the returnedIntPtrdoes not have correctIntPtr.size()property.pTileSizes(@Nullable IntPtr value) @NotNull MemorySegmentvoidpTileSizesRaw(@NotNull MemorySegment value) referenceNameSlotIndices(IntPtr value) referenceNameSlotIndices(@NotNull Consumer<IntPtr> consumer) @NotNull MemorySegment@NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intsType()sType(int value) inttileCount(int value) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$pStdPictureInfo
-
PATH$referenceNameSlotIndices
-
PATH$frameHeaderOffset
-
PATH$tileCount
-
PATH$pTileOffsets
-
PATH$pTileSizes
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$pStdPictureInfo
-
LAYOUT$referenceNameSlotIndices
-
LAYOUT$frameHeaderOffset
-
LAYOUT$tileCount
-
LAYOUT$pTileOffsets
-
LAYOUT$pTileSizes
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$pStdPictureInfo
public static final long SIZE$pStdPictureInfo -
SIZE$referenceNameSlotIndices
public static final long SIZE$referenceNameSlotIndices -
SIZE$frameHeaderOffset
public static final long SIZE$frameHeaderOffset -
SIZE$tileCount
public static final long SIZE$tileCount -
SIZE$pTileOffsets
public static final long SIZE$pTileOffsets -
SIZE$pTileSizes
public static final long SIZE$pTileSizes -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$pStdPictureInfo
public static final long OFFSET$pStdPictureInfo -
OFFSET$referenceNameSlotIndices
public static final long OFFSET$referenceNameSlotIndices -
OFFSET$frameHeaderOffset
public static final long OFFSET$frameHeaderOffset -
OFFSET$tileCount
public static final long OFFSET$tileCount -
OFFSET$pTileOffsets
public static final long OFFSET$pTileOffsets -
OFFSET$pTileSizes
public static final long OFFSET$pTileSizes
-
-
Constructor Details
-
VkVideoDecodeAV1PictureInfoKHR
Creates an instance of aVkVideoDecodeAV1PictureInfoKHRrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
public VkVideoDecodeAV1PictureInfoKHR pNext(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
pNext
-
pStdPictureInfo
public VkVideoDecodeAV1PictureInfoKHR pStdPictureInfo(@Nullable @Nullable IStdVideoDecodeAV1PictureInfo value) -
pStdPictureInfo
-
pStdPictureInfo
-
pStdPictureInfoRaw
@Pointer(target=StdVideoDecodeAV1PictureInfo.class) @NotNull public @NotNull MemorySegment pStdPictureInfoRaw() -
pStdPictureInfoRaw
public void pStdPictureInfoRaw(@Pointer(target=StdVideoDecodeAV1PictureInfo.class) @NotNull @NotNull MemorySegment value) -
referenceNameSlotIndices
-
referenceNameSlotIndices
public VkVideoDecodeAV1PictureInfoKHR referenceNameSlotIndices(@NotNull @NotNull Consumer<IntPtr> consumer) -
referenceNameSlotIndices
-
referenceNameSlotIndicesRaw
-
frameHeaderOffset
-
frameHeaderOffset
-
tileCount
-
tileCount
-
pTileOffsets
Note: the returnedIntPtrdoes not have correctIntPtr.size()property. It's up to user to track the size of the buffer, and useIntPtr.reinterpret(long)to set the size before actually reading from or writing to the buffer. -
pTileOffsets
-
pTileOffsetsRaw
-
pTileOffsetsRaw
-
pTileSizes
Note: the returnedIntPtrdoes not have correctIntPtr.size()property. It's up to user to track the size of the buffer, and useIntPtr.reinterpret(long)to set the size before actually reading from or writing to the buffer. -
pTileSizes
-
pTileSizesRaw
-
pTileSizesRaw
-
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.
-