Record Class VkVideoEncodeAV1PictureInfoKHR
- All Implemented Interfaces:
IPointer,IVkVideoEncodeAV1PictureInfoKHR
Represents a pointer to a VkVideoEncodeAV1PictureInfoKHR structure in native memory.
Structure
typedef struct VkVideoEncodeAV1PictureInfoKHR {
VkStructureType sType;
void const* pNext; // optional
VkVideoEncodeAV1PredictionModeKHR predictionMode;
VkVideoEncodeAV1RateControlGroupKHR rateControlGroup;
uint32_t constantQIndex;
StdVideoEncodeAV1PictureInfo const* pStdPictureInfo;
int32_t[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR] referenceNameSlotIndices;
VkBool32 primaryReferenceCdfOnly;
VkBool32 generateObuExtensionHeader;
} VkVideoEncodeAV1PictureInfoKHR;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_VIDEO_ENCODE_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 ofVkVideoEncodeAV1PictureInfoKHRstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final SequenceLayoutstatic final ValueLayout.OfIntstatic 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
ConstructorsConstructorDescriptionVkVideoEncodeAV1PictureInfoKHR(@NotNull MemorySegment segment) Creates an instance of aVkVideoEncodeAV1PictureInfoKHRrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidautoInit()clone(Arena arena, VkVideoEncodeAV1PictureInfoKHR src) intconstantQIndex(int value) final booleanIndicates whether some other object is "equal to" this one.intgenerateObuExtensionHeader(int value) final inthashCode()Returns a hash code value for this object.@NotNull MemorySegmentpNext()pNext(@NotNull MemorySegment value) intpredictionMode(int value) intprimaryReferenceCdfOnly(int value) @Nullable StdVideoEncodeAV1PictureInfopStdPictureInfo(int assumedCount) pStdPictureInfo(@Nullable IStdVideoEncodeAV1PictureInfo value) @NotNull MemorySegmentvoidpStdPictureInfoRaw(@NotNull MemorySegment value) intrateControlGroup(int value) referenceNameSlotIndices(IntPtr value) referenceNameSlotIndices(@NotNull Consumer<IntPtr> consumer) @NotNull MemorySegment@NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intsType()sType(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$predictionMode
-
PATH$rateControlGroup
-
PATH$constantQIndex
-
PATH$pStdPictureInfo
-
PATH$referenceNameSlotIndices
-
PATH$primaryReferenceCdfOnly
-
PATH$generateObuExtensionHeader
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$predictionMode
-
LAYOUT$rateControlGroup
-
LAYOUT$constantQIndex
-
LAYOUT$pStdPictureInfo
-
LAYOUT$referenceNameSlotIndices
-
LAYOUT$primaryReferenceCdfOnly
-
LAYOUT$generateObuExtensionHeader
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$predictionMode
public static final long SIZE$predictionMode -
SIZE$rateControlGroup
public static final long SIZE$rateControlGroup -
SIZE$constantQIndex
public static final long SIZE$constantQIndex -
SIZE$pStdPictureInfo
public static final long SIZE$pStdPictureInfo -
SIZE$referenceNameSlotIndices
public static final long SIZE$referenceNameSlotIndices -
SIZE$primaryReferenceCdfOnly
public static final long SIZE$primaryReferenceCdfOnly -
SIZE$generateObuExtensionHeader
public static final long SIZE$generateObuExtensionHeader -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$predictionMode
public static final long OFFSET$predictionMode -
OFFSET$rateControlGroup
public static final long OFFSET$rateControlGroup -
OFFSET$constantQIndex
public static final long OFFSET$constantQIndex -
OFFSET$pStdPictureInfo
public static final long OFFSET$pStdPictureInfo -
OFFSET$referenceNameSlotIndices
public static final long OFFSET$referenceNameSlotIndices -
OFFSET$primaryReferenceCdfOnly
public static final long OFFSET$primaryReferenceCdfOnly -
OFFSET$generateObuExtensionHeader
public static final long OFFSET$generateObuExtensionHeader
-
-
Constructor Details
-
VkVideoEncodeAV1PictureInfoKHR
Creates an instance of aVkVideoEncodeAV1PictureInfoKHRrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
public VkVideoEncodeAV1PictureInfoKHR pNext(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
pNext
-
predictionMode
-
predictionMode
public VkVideoEncodeAV1PictureInfoKHR predictionMode(@EnumType(VkVideoEncodeAV1PredictionModeKHR.class) int value) -
rateControlGroup
-
rateControlGroup
public VkVideoEncodeAV1PictureInfoKHR rateControlGroup(@EnumType(VkVideoEncodeAV1RateControlGroupKHR.class) int value) -
constantQIndex
-
constantQIndex
-
pStdPictureInfo
public VkVideoEncodeAV1PictureInfoKHR pStdPictureInfo(@Nullable @Nullable IStdVideoEncodeAV1PictureInfo value) -
pStdPictureInfo
-
pStdPictureInfo
-
pStdPictureInfoRaw
@Pointer(target=StdVideoEncodeAV1PictureInfo.class) @NotNull public @NotNull MemorySegment pStdPictureInfoRaw() -
pStdPictureInfoRaw
public void pStdPictureInfoRaw(@Pointer(target=StdVideoEncodeAV1PictureInfo.class) @NotNull @NotNull MemorySegment value) -
referenceNameSlotIndices
-
referenceNameSlotIndices
public VkVideoEncodeAV1PictureInfoKHR referenceNameSlotIndices(@NotNull @NotNull Consumer<IntPtr> consumer) -
referenceNameSlotIndices
-
referenceNameSlotIndicesRaw
-
-
primaryReferenceCdfOnly
public VkVideoEncodeAV1PictureInfoKHR primaryReferenceCdfOnly(@NativeType("VkBool32") @Unsigned int value) -
generateObuExtensionHeader
-
generateObuExtensionHeader
public VkVideoEncodeAV1PictureInfoKHR generateObuExtensionHeader(@NativeType("VkBool32") @Unsigned int 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.
-