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 record
Represents a pointer to / an array ofVkVideoDecodeAV1PictureInfoKHR
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final SequenceLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final long
static final long
static final long
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 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
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkVideoDecodeAV1PictureInfoKHR
(@NotNull MemorySegment segment) Creates an instance of aVkVideoDecodeAV1PictureInfoKHR
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoInit()
clone
(Arena arena, VkVideoDecodeAV1PictureInfoKHR src) final boolean
Indicates whether some other object is "equal to" this one.int
frameHeaderOffset
(int value) final int
hashCode()
Returns a hash code value for this object.pNext()
void
pNext
(MemorySegment value) @Nullable StdVideoDecodeAV1PictureInfo
pStdPictureInfo
(int assumedCount) pStdPictureInfo
(@Nullable IStdVideoDecodeAV1PictureInfo value) void
pStdPictureInfoRaw
(MemorySegment value) @Nullable IntPtr
Note: the returnedIntPtr
does not have correctIntPtr.size()
property.pTileOffsets
(@Nullable IntPtr value) void
pTileOffsetsRaw
(MemorySegment value) @Nullable IntPtr
Note: the returnedIntPtr
does not have correctIntPtr.size()
property.pTileSizes
(@Nullable IntPtr value) void
pTileSizesRaw
(MemorySegment value) referenceNameSlotIndices
(IntPtr value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
sType()
sType
(int value) int
tileCount
(int value) final String
toString()
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 aVkVideoDecodeAV1PictureInfoKHR
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
-
pNext
-
pStdPictureInfo
public VkVideoDecodeAV1PictureInfoKHR pStdPictureInfo(@Nullable @Nullable IStdVideoDecodeAV1PictureInfo value) -
pStdPictureInfo
-
pStdPictureInfo
-
pStdPictureInfoRaw
-
pStdPictureInfoRaw
public void pStdPictureInfoRaw(@Pointer(target=StdVideoDecodeAV1PictureInfo.class) MemorySegment value) -
referenceNameSlotIndices
-
referenceNameSlotIndices
-
referenceNameSlotIndicesRaw
-
frameHeaderOffset
-
frameHeaderOffset
-
tileCount
-
tileCount
-
pTileOffsets
Note: the returnedIntPtr
does 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 returnedIntPtr
does 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 thesegment
record component.
-