Record Class StdVideoAV1TileInfo
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.StdVideoAV1TileInfo
- All Implemented Interfaces:
IPointer
,IStdVideoAV1TileInfo
@ValueBasedCandidate
@UnsafeConstructor
public record StdVideoAV1TileInfo(@NotNull MemorySegment segment)
extends Record
implements IStdVideoAV1TileInfo
Represents a pointer to a StdVideoAV1TileInfo
structure in native memory.
Structure
typedef struct StdVideoAV1TileInfo {
StdVideoAV1TileInfoFlags
flags
;
uint8_t TileCols
;
uint8_t TileRows
;
uint16_t context_update_tile_id
;
uint8_t tile_size_bytes_minus_1
;
uint8_t[7] reserved1;
uint16_t const* pMiColStarts
;
uint16_t const* pMiRowStarts
;
uint16_t const* pWidthInSbsMinus1
;
uint16_t const* pHeightInSbsMinus1
;
} StdVideoAV1TileInfo;
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 ValueLayout.OfShort
static final StructLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final ValueLayout.OfByte
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 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 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
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionStdVideoAV1TileInfo
(@NotNull MemorySegment segment) Creates an instance of aStdVideoAV1TileInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoAV1TileInfo
static StdVideoAV1TileInfo.Ptr
static StdVideoAV1TileInfo
clone
(Arena arena, StdVideoAV1TileInfo src) short
context_update_tile_id
(short value) final boolean
Indicates whether some other object is "equal to" this one.@NotNull StdVideoAV1TileInfoFlags
flags()
flags
(@NotNull StdVideoAV1TileInfoFlags value) flags
(Consumer<@NotNull StdVideoAV1TileInfoFlags> consumer) final int
hashCode()
Returns a hash code value for this object.@Nullable ShortPtr
Note: the returnedShortPtr
does not have correctShortPtr.size()
property.pHeightInSbsMinus1
(@Nullable ShortPtr value) void
@Nullable ShortPtr
Note: the returnedShortPtr
does not have correctShortPtr.size()
property.pMiColStarts
(@Nullable ShortPtr value) void
pMiColStartsRaw
(MemorySegment value) @Nullable ShortPtr
Note: the returnedShortPtr
does not have correctShortPtr.size()
property.pMiRowStarts
(@Nullable ShortPtr value) void
pMiRowStartsRaw
(MemorySegment value) @Nullable ShortPtr
Note: the returnedShortPtr
does not have correctShortPtr.size()
property.pWidthInSbsMinus1
(@Nullable ShortPtr value) void
@NotNull MemorySegment
segment()
Returns the value of thesegment
record component.byte
tile_size_bytes_minus_1
(byte value) byte
TileCols()
TileCols
(byte value) byte
TileRows()
TileRows
(byte value) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$flags
-
PATH$TileCols
-
PATH$TileRows
-
PATH$context_update_tile_id
-
PATH$tile_size_bytes_minus_1
-
PATH$pMiColStarts
-
PATH$pMiRowStarts
-
PATH$pWidthInSbsMinus1
-
PATH$pHeightInSbsMinus1
-
LAYOUT$flags
-
LAYOUT$TileCols
-
LAYOUT$TileRows
-
LAYOUT$context_update_tile_id
-
LAYOUT$tile_size_bytes_minus_1
-
LAYOUT$pMiColStarts
-
LAYOUT$pMiRowStarts
-
LAYOUT$pWidthInSbsMinus1
-
LAYOUT$pHeightInSbsMinus1
-
SIZE$flags
public static final long SIZE$flags -
SIZE$TileCols
public static final long SIZE$TileCols -
SIZE$TileRows
public static final long SIZE$TileRows -
SIZE$context_update_tile_id
public static final long SIZE$context_update_tile_id -
SIZE$tile_size_bytes_minus_1
public static final long SIZE$tile_size_bytes_minus_1 -
SIZE$pMiColStarts
public static final long SIZE$pMiColStarts -
SIZE$pMiRowStarts
public static final long SIZE$pMiRowStarts -
SIZE$pWidthInSbsMinus1
public static final long SIZE$pWidthInSbsMinus1 -
SIZE$pHeightInSbsMinus1
public static final long SIZE$pHeightInSbsMinus1 -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$TileCols
public static final long OFFSET$TileCols -
OFFSET$TileRows
public static final long OFFSET$TileRows -
OFFSET$context_update_tile_id
public static final long OFFSET$context_update_tile_id -
OFFSET$tile_size_bytes_minus_1
public static final long OFFSET$tile_size_bytes_minus_1 -
OFFSET$pMiColStarts
public static final long OFFSET$pMiColStarts -
OFFSET$pMiRowStarts
public static final long OFFSET$pMiRowStarts -
OFFSET$pWidthInSbsMinus1
public static final long OFFSET$pWidthInSbsMinus1 -
OFFSET$pHeightInSbsMinus1
public static final long OFFSET$pHeightInSbsMinus1
-
-
Constructor Details
-
StdVideoAV1TileInfo
Creates an instance of aStdVideoAV1TileInfo
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
flags
-
flags
-
flags
-
TileCols
-
TileCols
-
TileRows
-
TileRows
-
context_update_tile_id
-
context_update_tile_id
-
tile_size_bytes_minus_1
-
tile_size_bytes_minus_1
-
pMiColStarts
Note: the returnedShortPtr
does not have correctShortPtr.size()
property. It's up to user to track the size of the buffer, and useShortPtr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
pMiColStarts
-
pMiColStartsRaw
-
pMiColStartsRaw
-
pMiRowStarts
Note: the returnedShortPtr
does not have correctShortPtr.size()
property. It's up to user to track the size of the buffer, and useShortPtr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
pMiRowStarts
-
pMiRowStartsRaw
-
pMiRowStartsRaw
-
pWidthInSbsMinus1
Note: the returnedShortPtr
does not have correctShortPtr.size()
property. It's up to user to track the size of the buffer, and useShortPtr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
pWidthInSbsMinus1
-
pWidthInSbsMinus1Raw
-
pWidthInSbsMinus1Raw
-
pHeightInSbsMinus1
Note: the returnedShortPtr
does not have correctShortPtr.size()
property. It's up to user to track the size of the buffer, and useShortPtr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
pHeightInSbsMinus1
-
pHeightInSbsMinus1Raw
-
pHeightInSbsMinus1Raw
-
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.
-