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 recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfShortstatic final StructLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final longstatic 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 MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoAV1TileInfo(@NotNull MemorySegment segment) Creates an instance of aStdVideoAV1TileInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoAV1TileInfostatic StdVideoAV1TileInfo.Ptrstatic StdVideoAV1TileInfoclone(Arena arena, StdVideoAV1TileInfo src) shortcontext_update_tile_id(short value) final booleanIndicates whether some other object is "equal to" this one.@NotNull StdVideoAV1TileInfoFlagsflags()flags(@NotNull StdVideoAV1TileInfoFlags value) flags(Consumer<@NotNull StdVideoAV1TileInfoFlags> consumer) final inthashCode()Returns a hash code value for this object.@Nullable ShortPtrNote: the returnedShortPtrdoes not have correctShortPtr.size()property.pHeightInSbsMinus1(@Nullable ShortPtr value) @NotNull MemorySegmentvoidpHeightInSbsMinus1Raw(@NotNull MemorySegment value) @Nullable ShortPtrNote: the returnedShortPtrdoes not have correctShortPtr.size()property.pMiColStarts(@Nullable ShortPtr value) @NotNull MemorySegmentvoidpMiColStartsRaw(@NotNull MemorySegment value) @Nullable ShortPtrNote: the returnedShortPtrdoes not have correctShortPtr.size()property.pMiRowStarts(@Nullable ShortPtr value) @NotNull MemorySegmentvoidpMiRowStartsRaw(@NotNull MemorySegment value) @Nullable ShortPtrNote: the returnedShortPtrdoes not have correctShortPtr.size()property.pWidthInSbsMinus1(@Nullable ShortPtr value) @NotNull MemorySegmentvoidpWidthInSbsMinus1Raw(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.bytetile_size_bytes_minus_1(byte value) byteTileCols()TileCols(byte value) byteTileRows()TileRows(byte value) final StringtoString()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 aStdVideoAV1TileInforecord class.- Parameters:
segment- the value for thesegmentrecord 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 returnedShortPtrdoes 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 returnedShortPtrdoes 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 returnedShortPtrdoes 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
public void pWidthInSbsMinus1Raw(@Pointer(comment="uint16_t*") @NotNull @NotNull MemorySegment value) -
pHeightInSbsMinus1
Note: the returnedShortPtrdoes 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
public void pHeightInSbsMinus1Raw(@Pointer(comment="uint16_t*") @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.
-