Record Class StdVideoEncodeAV1PictureInfo
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.StdVideoEncodeAV1PictureInfo
- All Implemented Interfaces:
IPointer,IStdVideoEncodeAV1PictureInfo
@ValueBasedCandidate
@UnsafeConstructor
public record StdVideoEncodeAV1PictureInfo(@NotNull MemorySegment segment)
extends Record
implements IStdVideoEncodeAV1PictureInfo
Represents a pointer to a StdVideoEncodeAV1PictureInfo structure in native memory.
Structure
typedef struct StdVideoEncodeAV1PictureInfo {
StdVideoEncodeAV1PictureInfoFlags flags;
StdVideoAV1FrameType frame_type;
uint32_t frame_presentation_time;
uint32_t current_frame_id;
uint8_t order_hint;
uint8_t primary_ref_frame;
uint8_t refresh_frame_flags;
uint8_t coded_denom;
uint16_t render_width_minus_1;
uint16_t render_height_minus_1;
StdVideoAV1InterpolationFilter interpolation_filter;
StdVideoAV1TxMode TxMode;
uint8_t delta_q_res;
uint8_t delta_lf_res;
uint8_t[STD_VIDEO_AV1_NUM_REF_FRAMES] ref_order_hint;
int8_t[STD_VIDEO_AV1_REFS_PER_FRAME] ref_frame_idx;
uint8_t[3] reserved1;
uint32_t[STD_VIDEO_AV1_REFS_PER_FRAME] delta_frame_id_minus_1;
StdVideoAV1TileInfo const* pTileInfo;
StdVideoAV1Quantization const* pQuantization;
StdVideoAV1Segmentation const* pSegmentation;
StdVideoAV1LoopFilter const* pLoopFilter;
StdVideoAV1CDEF const* pCDEF;
StdVideoAV1LoopRestoration const* pLoopRestoration;
StdVideoAV1GlobalMotion const* pGlobalMotion;
StdVideoEncodeAV1ExtensionHeader const* pExtensionHeader;
uint32_t const* pBufferRemovalTimes;
} StdVideoEncodeAV1PictureInfo;
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.OfBytestatic final ValueLayout.OfIntstatic final SequenceLayoutstatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfBytestatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final ValueLayout.OfBytestatic final AddressLayoutstatic final AddressLayoutstatic final SequenceLayoutstatic final SequenceLayoutstatic final ValueLayout.OfBytestatic final ValueLayout.OfShortstatic final ValueLayout.OfShortstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic 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 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 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 longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoEncodeAV1PictureInfo(@NotNull MemorySegment segment) Creates an instance of aStdVideoEncodeAV1PictureInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoEncodeAV1PictureInfostatic StdVideoEncodeAV1PictureInfoclone(Arena arena, StdVideoEncodeAV1PictureInfo src) bytecoded_denom(byte value) intcurrent_frame_id(int value) delta_frame_id_minus_1(IntPtr value) delta_frame_id_minus_1(@NotNull Consumer<IntPtr> consumer) @NotNull MemorySegmentbytedelta_lf_res(byte value) bytedelta_q_res(byte value) final booleanIndicates whether some other object is "equal to" this one.@NotNull StdVideoEncodeAV1PictureInfoFlagsflags()flags(@NotNull StdVideoEncodeAV1PictureInfoFlags value) flags(Consumer<@NotNull StdVideoEncodeAV1PictureInfoFlags> consumer) intframe_presentation_time(int value) intframe_type(int value) final inthashCode()Returns a hash code value for this object.intinterpolation_filter(int value) byteorder_hint(byte value) @Nullable IntPtrNote: the returnedIntPtrdoes not have correctIntPtr.size()property.pBufferRemovalTimes(@Nullable IntPtr value) @NotNull MemorySegmentvoidpBufferRemovalTimesRaw(@NotNull MemorySegment value) @Nullable StdVideoAV1CDEFpCDEF()pCDEF(int assumedCount) pCDEF(@Nullable IStdVideoAV1CDEF value) @NotNull MemorySegmentpCDEFRaw()voidpCDEFRaw(@NotNull MemorySegment value) @Nullable StdVideoEncodeAV1ExtensionHeaderpExtensionHeader(int assumedCount) pExtensionHeader(@Nullable IStdVideoEncodeAV1ExtensionHeader value) @NotNull MemorySegmentvoidpExtensionHeaderRaw(@NotNull MemorySegment value) @Nullable StdVideoAV1GlobalMotionpGlobalMotion(int assumedCount) pGlobalMotion(@Nullable IStdVideoAV1GlobalMotion value) @NotNull MemorySegmentvoidpGlobalMotionRaw(@NotNull MemorySegment value) @Nullable StdVideoAV1LoopFilterpLoopFilter(int assumedCount) pLoopFilter(@Nullable IStdVideoAV1LoopFilter value) @NotNull MemorySegmentvoidpLoopFilterRaw(@NotNull MemorySegment value) @Nullable StdVideoAV1LoopRestorationpLoopRestoration(int assumedCount) pLoopRestoration(@Nullable IStdVideoAV1LoopRestoration value) @NotNull MemorySegmentvoidpLoopRestorationRaw(@NotNull MemorySegment value) @Nullable StdVideoAV1QuantizationpQuantization(int assumedCount) pQuantization(@Nullable IStdVideoAV1Quantization value) @NotNull MemorySegmentvoidpQuantizationRaw(@NotNull MemorySegment value) byteprimary_ref_frame(byte value) @Nullable StdVideoAV1SegmentationpSegmentation(int assumedCount) pSegmentation(@Nullable IStdVideoAV1Segmentation value) @NotNull MemorySegmentvoidpSegmentationRaw(@NotNull MemorySegment value) @Nullable StdVideoAV1TileInfopTileInfo(int assumedCount) pTileInfo(@Nullable IStdVideoAV1TileInfo value) @NotNull MemorySegmentvoidpTileInfoRaw(@NotNull MemorySegment value) ref_frame_idx(BytePtr value) ref_frame_idx(@NotNull Consumer<BytePtr> consumer) @NotNull MemorySegmentref_order_hint(BytePtr value) ref_order_hint(@NotNull Consumer<BytePtr> consumer) @NotNull MemorySegmentbyterefresh_frame_flags(byte value) shortrender_height_minus_1(short value) shortrender_width_minus_1(short value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.intTxMode()TxMode(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$flags
-
PATH$frame_type
-
PATH$frame_presentation_time
-
PATH$current_frame_id
-
PATH$order_hint
-
PATH$primary_ref_frame
-
PATH$refresh_frame_flags
-
PATH$coded_denom
-
PATH$render_width_minus_1
-
PATH$render_height_minus_1
-
PATH$interpolation_filter
-
PATH$TxMode
-
PATH$delta_q_res
-
PATH$delta_lf_res
-
PATH$ref_order_hint
-
PATH$ref_frame_idx
-
PATH$delta_frame_id_minus_1
-
PATH$pTileInfo
-
PATH$pQuantization
-
PATH$pSegmentation
-
PATH$pLoopFilter
-
PATH$pCDEF
-
PATH$pLoopRestoration
-
PATH$pGlobalMotion
-
PATH$pExtensionHeader
-
PATH$pBufferRemovalTimes
-
LAYOUT$flags
-
LAYOUT$frame_type
-
LAYOUT$frame_presentation_time
-
LAYOUT$current_frame_id
-
LAYOUT$order_hint
-
LAYOUT$primary_ref_frame
-
LAYOUT$refresh_frame_flags
-
LAYOUT$coded_denom
-
LAYOUT$render_width_minus_1
-
LAYOUT$render_height_minus_1
-
LAYOUT$interpolation_filter
-
LAYOUT$TxMode
-
LAYOUT$delta_q_res
-
LAYOUT$delta_lf_res
-
LAYOUT$ref_order_hint
-
LAYOUT$ref_frame_idx
-
LAYOUT$delta_frame_id_minus_1
-
LAYOUT$pTileInfo
-
LAYOUT$pQuantization
-
LAYOUT$pSegmentation
-
LAYOUT$pLoopFilter
-
LAYOUT$pCDEF
-
LAYOUT$pLoopRestoration
-
LAYOUT$pGlobalMotion
-
LAYOUT$pExtensionHeader
-
LAYOUT$pBufferRemovalTimes
-
SIZE$flags
public static final long SIZE$flags -
SIZE$frame_type
public static final long SIZE$frame_type -
SIZE$frame_presentation_time
public static final long SIZE$frame_presentation_time -
SIZE$current_frame_id
public static final long SIZE$current_frame_id -
SIZE$order_hint
public static final long SIZE$order_hint -
SIZE$primary_ref_frame
public static final long SIZE$primary_ref_frame -
SIZE$refresh_frame_flags
public static final long SIZE$refresh_frame_flags -
SIZE$coded_denom
public static final long SIZE$coded_denom -
SIZE$render_width_minus_1
public static final long SIZE$render_width_minus_1 -
SIZE$render_height_minus_1
public static final long SIZE$render_height_minus_1 -
SIZE$interpolation_filter
public static final long SIZE$interpolation_filter -
SIZE$TxMode
public static final long SIZE$TxMode -
SIZE$delta_q_res
public static final long SIZE$delta_q_res -
SIZE$delta_lf_res
public static final long SIZE$delta_lf_res -
SIZE$ref_order_hint
public static final long SIZE$ref_order_hint -
SIZE$ref_frame_idx
public static final long SIZE$ref_frame_idx -
SIZE$delta_frame_id_minus_1
public static final long SIZE$delta_frame_id_minus_1 -
SIZE$pTileInfo
public static final long SIZE$pTileInfo -
SIZE$pQuantization
public static final long SIZE$pQuantization -
SIZE$pSegmentation
public static final long SIZE$pSegmentation -
SIZE$pLoopFilter
public static final long SIZE$pLoopFilter -
SIZE$pCDEF
public static final long SIZE$pCDEF -
SIZE$pLoopRestoration
public static final long SIZE$pLoopRestoration -
SIZE$pGlobalMotion
public static final long SIZE$pGlobalMotion -
SIZE$pExtensionHeader
public static final long SIZE$pExtensionHeader -
SIZE$pBufferRemovalTimes
public static final long SIZE$pBufferRemovalTimes -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$frame_type
public static final long OFFSET$frame_type -
OFFSET$frame_presentation_time
public static final long OFFSET$frame_presentation_time -
OFFSET$current_frame_id
public static final long OFFSET$current_frame_id -
OFFSET$order_hint
public static final long OFFSET$order_hint -
OFFSET$primary_ref_frame
public static final long OFFSET$primary_ref_frame -
OFFSET$refresh_frame_flags
public static final long OFFSET$refresh_frame_flags -
OFFSET$coded_denom
public static final long OFFSET$coded_denom -
OFFSET$render_width_minus_1
public static final long OFFSET$render_width_minus_1 -
OFFSET$render_height_minus_1
public static final long OFFSET$render_height_minus_1 -
OFFSET$interpolation_filter
public static final long OFFSET$interpolation_filter -
OFFSET$TxMode
public static final long OFFSET$TxMode -
OFFSET$delta_q_res
public static final long OFFSET$delta_q_res -
OFFSET$delta_lf_res
public static final long OFFSET$delta_lf_res -
OFFSET$ref_order_hint
public static final long OFFSET$ref_order_hint -
OFFSET$ref_frame_idx
public static final long OFFSET$ref_frame_idx -
OFFSET$delta_frame_id_minus_1
public static final long OFFSET$delta_frame_id_minus_1 -
OFFSET$pTileInfo
public static final long OFFSET$pTileInfo -
OFFSET$pQuantization
public static final long OFFSET$pQuantization -
OFFSET$pSegmentation
public static final long OFFSET$pSegmentation -
OFFSET$pLoopFilter
public static final long OFFSET$pLoopFilter -
OFFSET$pCDEF
public static final long OFFSET$pCDEF -
OFFSET$pLoopRestoration
public static final long OFFSET$pLoopRestoration -
OFFSET$pGlobalMotion
public static final long OFFSET$pGlobalMotion -
OFFSET$pExtensionHeader
public static final long OFFSET$pExtensionHeader -
OFFSET$pBufferRemovalTimes
public static final long OFFSET$pBufferRemovalTimes
-
-
Constructor Details
-
StdVideoEncodeAV1PictureInfo
Creates an instance of aStdVideoEncodeAV1PictureInforecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
flags
-
flags
public StdVideoEncodeAV1PictureInfo flags(@NotNull @NotNull StdVideoEncodeAV1PictureInfoFlags value) -
flags
public StdVideoEncodeAV1PictureInfo flags(Consumer<@NotNull StdVideoEncodeAV1PictureInfoFlags> consumer) -
frame_type
-
frame_type
-
frame_presentation_time
-
frame_presentation_time
-
current_frame_id
-
current_frame_id
-
order_hint
-
order_hint
-
-
primary_ref_frame
-
refresh_frame_flags
-
refresh_frame_flags
-
coded_denom
-
coded_denom
-
render_width_minus_1
-
render_width_minus_1
-
render_height_minus_1
-
render_height_minus_1
-
interpolation_filter
-
interpolation_filter
public StdVideoEncodeAV1PictureInfo interpolation_filter(@EnumType(StdVideoAV1InterpolationFilter.class) int value) -
TxMode
-
TxMode
-
delta_q_res
-
delta_q_res
-
delta_lf_res
-
delta_lf_res
-
ref_order_hint
-
ref_order_hint
-
ref_order_hint
-
ref_order_hintRaw
-
ref_frame_idx
-
ref_frame_idx
-
ref_frame_idx
-
ref_frame_idxRaw
-
delta_frame_id_minus_1
-
delta_frame_id_minus_1
public StdVideoEncodeAV1PictureInfo delta_frame_id_minus_1(@NotNull @NotNull Consumer<IntPtr> consumer) -
delta_frame_id_minus_1
-
delta_frame_id_minus_1Raw
-
pTileInfo
-
pTileInfo
-
pTileInfo
-
pTileInfoRaw
-
pTileInfoRaw
public void pTileInfoRaw(@Pointer(target=StdVideoAV1TileInfo.class) @NotNull @NotNull MemorySegment value) -
pQuantization
public StdVideoEncodeAV1PictureInfo pQuantization(@Nullable @Nullable IStdVideoAV1Quantization value) -
pQuantization
-
pQuantization
-
pQuantizationRaw
@Pointer(target=StdVideoAV1Quantization.class) @NotNull public @NotNull MemorySegment pQuantizationRaw() -
pQuantizationRaw
public void pQuantizationRaw(@Pointer(target=StdVideoAV1Quantization.class) @NotNull @NotNull MemorySegment value) -
pSegmentation
public StdVideoEncodeAV1PictureInfo pSegmentation(@Nullable @Nullable IStdVideoAV1Segmentation value) -
pSegmentation
-
pSegmentation
-
pSegmentationRaw
@Pointer(target=StdVideoAV1Segmentation.class) @NotNull public @NotNull MemorySegment pSegmentationRaw() -
pSegmentationRaw
public void pSegmentationRaw(@Pointer(target=StdVideoAV1Segmentation.class) @NotNull @NotNull MemorySegment value) -
pLoopFilter
-
pLoopFilter
-
pLoopFilter
-
pLoopFilterRaw
@Pointer(target=StdVideoAV1LoopFilter.class) @NotNull public @NotNull MemorySegment pLoopFilterRaw() -
pLoopFilterRaw
public void pLoopFilterRaw(@Pointer(target=StdVideoAV1LoopFilter.class) @NotNull @NotNull MemorySegment value) -
pCDEF
-
pCDEF
-
pCDEF
-
pCDEFRaw
-
pCDEFRaw
-
pLoopRestoration
public StdVideoEncodeAV1PictureInfo pLoopRestoration(@Nullable @Nullable IStdVideoAV1LoopRestoration value) -
pLoopRestoration
-
pLoopRestoration
-
pLoopRestorationRaw
@Pointer(target=StdVideoAV1LoopRestoration.class) @NotNull public @NotNull MemorySegment pLoopRestorationRaw() -
pLoopRestorationRaw
public void pLoopRestorationRaw(@Pointer(target=StdVideoAV1LoopRestoration.class) @NotNull @NotNull MemorySegment value) -
pGlobalMotion
public StdVideoEncodeAV1PictureInfo pGlobalMotion(@Nullable @Nullable IStdVideoAV1GlobalMotion value) -
pGlobalMotion
-
pGlobalMotion
-
pGlobalMotionRaw
@Pointer(target=StdVideoAV1GlobalMotion.class) @NotNull public @NotNull MemorySegment pGlobalMotionRaw() -
pGlobalMotionRaw
public void pGlobalMotionRaw(@Pointer(target=StdVideoAV1GlobalMotion.class) @NotNull @NotNull MemorySegment value) -
pExtensionHeader
public StdVideoEncodeAV1PictureInfo 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) -
pBufferRemovalTimes
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. -
pBufferRemovalTimes
-
pBufferRemovalTimesRaw
-
pBufferRemovalTimesRaw
public void pBufferRemovalTimesRaw(@Pointer(comment="uint32_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.
-