Class VkVideoEncodeInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoEncodeInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoEncodeInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure to chain codec-specific structures to.Description
Multiple
CmdEncodeVideoKHRcommands may be recorded within a Vulkan Video Encode Context. The execution of eachCmdEncodeVideoKHRcommand will result in generating codec-specific bitstream units. These bitstream units are generated consecutively into the bitstream buffer specified indstBitstreamBufferof aVkVideoEncodeInfoKHRstructure within theCmdBeginVideoCodingKHRcommand. The produced bitstream is the sum of all these bitstream units, including any padding between the bitstream units. Any bitstream padding must be filled with data compliant to the codec standard so as not to cause any syntax errors during decoding of the bitstream units with the padding included. The range of the bitstream buffer written can be queried via video encode bitstream buffer range queries.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_ENCODE_INFO_KHR- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkVideoEncodeH264EmitPictureParametersEXT,VkVideoEncodeH264VclFrameInfoEXT,VkVideoEncodeH265EmitPictureParametersEXT, orVkVideoEncodeH265VclFrameInfoEXT - The
sTypevalue of each struct in thepNextchain must be unique flagsmust be a valid combination ofVkVideoEncodeFlagBitsKHRvaluesdstBitstreamBuffermust be a validVkBufferhandlesrcPictureResourcemust be a validVkVideoPictureResourceKHRstructurepSetupReferenceSlotmust be a valid pointer to a validVkVideoReferenceSlotKHRstructure- If
referenceSlotCountis not 0,pReferenceSlotsmust be a valid pointer to an array ofreferenceSlotCountvalidVkVideoReferenceSlotKHRstructures
See Also
VkExtent2D,VkVideoPictureResourceKHR,VkVideoReferenceSlotKHR,CmdEncodeVideoKHRLayout
struct VkVideoEncodeInfoKHR { VkStructureTypesType(); void const *pNext(); VkVideoEncodeFlagsKHRflags(); uint32_tqualityLevel();VkExtent2DcodedExtent(); VkBufferdstBitstreamBuffer(); VkDeviceSizedstBitstreamBufferOffset(); VkDeviceSizedstBitstreamBufferMaxRange();VkVideoPictureResourceKHRsrcPictureResource();VkVideoReferenceSlotKHRconst *pSetupReferenceSlot(); uint32_treferenceSlotCount();VkVideoReferenceSlotKHRconst *pReferenceSlots(); uint32_tprecedingExternallyEncodedBytes(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoEncodeInfoKHR.BufferAn array ofVkVideoEncodeInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCODEDEXTENT
DSTBITSTREAMBUFFER
DSTBITSTREAMBUFFERMAXRANGE
DSTBITSTREAMBUFFEROFFSET
FLAGS
PNEXT
PRECEDINGEXTERNALLYENCODEDBYTES
PREFERENCESLOTS
PSETUPREFERENCESLOT
QUALITYLEVEL
REFERENCESLOTCOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSRCPICTURERESOURCE
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoEncodeInfoKHR(java.nio.ByteBuffer container)Creates aVkVideoEncodeInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoEncodeInfoKHRcalloc()Returns a newVkVideoEncodeInfoKHRinstance allocated withmemCalloc.static VkVideoEncodeInfoKHR.Buffercalloc(int capacity)Returns a newVkVideoEncodeInfoKHR.Bufferinstance allocated withmemCalloc.static VkVideoEncodeInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.VkExtent2DcodedExtent()the coded size of the encode operations.VkVideoEncodeInfoKHRcodedExtent(java.util.function.Consumer<VkExtent2D> consumer)Passes thecodedExtent()field to the specifiedConsumer.VkVideoEncodeInfoKHRcodedExtent(VkExtent2D value)Copies the specifiedVkExtent2Dto thecodedExtent()field.static VkVideoEncodeInfoKHRcreate()Returns a newVkVideoEncodeInfoKHRinstance allocated withBufferUtils.static VkVideoEncodeInfoKHR.Buffercreate(int capacity)Returns a newVkVideoEncodeInfoKHR.Bufferinstance allocated withBufferUtils.static VkVideoEncodeInfoKHRcreate(long address)Returns a newVkVideoEncodeInfoKHRinstance for the specified memory address.static VkVideoEncodeInfoKHR.Buffercreate(long address, int capacity)Create aVkVideoEncodeInfoKHR.Bufferinstance at the specified memory.static VkVideoEncodeInfoKHRcreateSafe(long address)static VkVideoEncodeInfoKHR.BuffercreateSafe(long address, int capacity)longdstBitstreamBuffer()the buffer where the encoded bitstream output will be produced.VkVideoEncodeInfoKHRdstBitstreamBuffer(long value)Sets the specified value to thedstBitstreamBuffer()field.longdstBitstreamBufferMaxRange()the maximum size of thedstBitstreamBufferthat can be used while the encoded bitstream output is produced.VkVideoEncodeInfoKHRdstBitstreamBufferMaxRange(long value)Sets the specified value to thedstBitstreamBufferMaxRange()field.longdstBitstreamBufferOffset()the offset in thedstBitstreamBufferwhere the encoded bitstream output will start.VkVideoEncodeInfoKHRdstBitstreamBufferOffset(long value)Sets the specified value to thedstBitstreamBufferOffset()field.intflags()a bitmask ofVkVideoEncodeFlagBitsKHRspecifying encode flags, and is reserved for future versions of this specification.VkVideoEncodeInfoKHRflags(int value)Sets the specified value to theflags()field.static VkVideoEncodeInfoKHRmalloc()Returns a newVkVideoEncodeInfoKHRinstance allocated withmemAlloc.static VkVideoEncodeInfoKHR.Buffermalloc(int capacity)Returns a newVkVideoEncodeInfoKHR.Bufferinstance allocated withmemAlloc.static VkVideoEncodeInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoEncodeInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeInfoKHRinstance allocated on the specifiedMemoryStack.static VkExtent2DncodedExtent(long struct)Unsafe version ofcodedExtent().static voidncodedExtent(long struct, VkExtent2D value)Unsafe version ofcodedExtent.static longndstBitstreamBuffer(long struct)Unsafe version ofdstBitstreamBuffer().static voidndstBitstreamBuffer(long struct, long value)Unsafe version ofdstBitstreamBuffer.static longndstBitstreamBufferMaxRange(long struct)Unsafe version ofdstBitstreamBufferMaxRange().static voidndstBitstreamBufferMaxRange(long struct, long value)Unsafe version ofdstBitstreamBufferMaxRange.static longndstBitstreamBufferOffset(long struct)Unsafe version ofdstBitstreamBufferOffset().static voidndstBitstreamBufferOffset(long struct, long value)Unsafe version ofdstBitstreamBufferOffset.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnprecedingExternallyEncodedBytes(long struct)Unsafe version ofprecedingExternallyEncodedBytes().static voidnprecedingExternallyEncodedBytes(long struct, int value)Unsafe version ofprecedingExternallyEncodedBytes.static VkVideoReferenceSlotKHR.BuffernpReferenceSlots(long struct)Unsafe version ofpReferenceSlots().static voidnpReferenceSlots(long struct, VkVideoReferenceSlotKHR.Buffer value)Unsafe version ofpReferenceSlots.static VkVideoReferenceSlotKHRnpSetupReferenceSlot(long struct)Unsafe version ofpSetupReferenceSlot().static voidnpSetupReferenceSlot(long struct, VkVideoReferenceSlotKHR value)Unsafe version ofpSetupReferenceSlot.static intnqualityLevel(long struct)Unsafe version ofqualityLevel().static voidnqualityLevel(long struct, int value)Unsafe version ofqualityLevel.static intnreferenceSlotCount(long struct)Unsafe version ofreferenceSlotCount().static voidnreferenceSlotCount(long struct, int value)Sets the specified value to thereferenceSlotCountfield of the specifiedstruct.static VkVideoPictureResourceKHRnsrcPictureResource(long struct)Unsafe version ofsrcPictureResource().static voidnsrcPictureResource(long struct, VkVideoPictureResourceKHR value)Unsafe version ofsrcPictureResource.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()a pointer to a structure extending this structure.VkVideoEncodeInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoEncodeInfoKHRpNext(VkVideoEncodeH264EmitPictureParametersEXT value)Prepends the specifiedVkVideoEncodeH264EmitPictureParametersEXTvalue to thepNextchain.VkVideoEncodeInfoKHRpNext(VkVideoEncodeH264VclFrameInfoEXT value)Prepends the specifiedVkVideoEncodeH264VclFrameInfoEXTvalue to thepNextchain.VkVideoEncodeInfoKHRpNext(VkVideoEncodeH265EmitPictureParametersEXT value)Prepends the specifiedVkVideoEncodeH265EmitPictureParametersEXTvalue to thepNextchain.VkVideoEncodeInfoKHRpNext(VkVideoEncodeH265VclFrameInfoEXT value)Prepends the specifiedVkVideoEncodeH265VclFrameInfoEXTvalue to thepNextchain.intprecedingExternallyEncodedBytes()the number of bytes externally encoded for insertion in the active video encode session overall bitstream prior to the bitstream that will be generated by the implementation for this instance ofVkVideoEncodeInfoKHR.VkVideoEncodeInfoKHRprecedingExternallyEncodedBytes(int value)Sets the specified value to theprecedingExternallyEncodedBytes()field.VkVideoReferenceSlotKHR.BufferpReferenceSlots()NULLor a pointer to an array ofVkVideoReferenceSlotKHRstructures that will be used when this encoding operation is executing.VkVideoEncodeInfoKHRpReferenceSlots(VkVideoReferenceSlotKHR.Buffer value)Sets the address of the specifiedVkVideoReferenceSlotKHR.Bufferto thepReferenceSlots()field.VkVideoReferenceSlotKHRpSetupReferenceSlot()a pointer to aVkVideoReferenceSlotKHRstructure used for generating a reconstructed reference slot and Picture Resource.VkVideoEncodeInfoKHRpSetupReferenceSlot(VkVideoReferenceSlotKHR value)Sets the address of the specifiedVkVideoReferenceSlotKHRto thepSetupReferenceSlot()field.intqualityLevel()the coding quality level of the encoding.VkVideoEncodeInfoKHRqualityLevel(int value)Sets the specified value to thequalityLevel()field.intreferenceSlotCount()the number of Reconstructed Reference Pictures that will be used when this encoding operation is executing.VkVideoEncodeInfoKHRset(int sType, long pNext, int flags, int qualityLevel, VkExtent2D codedExtent, long dstBitstreamBuffer, long dstBitstreamBufferOffset, long dstBitstreamBufferMaxRange, VkVideoPictureResourceKHR srcPictureResource, VkVideoReferenceSlotKHR pSetupReferenceSlot, VkVideoReferenceSlotKHR.Buffer pReferenceSlots, int precedingExternallyEncodedBytes)Initializes this struct with the specified values.VkVideoEncodeInfoKHRset(VkVideoEncodeInfoKHR src)Copies the specified struct data to this struct.intsizeof()VkVideoPictureResourceKHRsrcPictureResource()the Picture Resource of the Input Picture to be encoded by the operation.VkVideoEncodeInfoKHRsrcPictureResource(java.util.function.Consumer<VkVideoPictureResourceKHR> consumer)Passes thesrcPictureResource()field to the specifiedConsumer.VkVideoEncodeInfoKHRsrcPictureResource(VkVideoPictureResourceKHR value)Copies the specifiedVkVideoPictureResourceKHRto thesrcPictureResource()field.intsType()the type of this structure.VkVideoEncodeInfoKHRsType(int value)Sets the specified value to thesType()field.VkVideoEncodeInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_INFO_KHRvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
STYPE, PNEXT, FLAGS, QUALITYLEVEL, CODEDEXTENT, DSTBITSTREAMBUFFER, DSTBITSTREAMBUFFEROFFSET, DSTBITSTREAMBUFFERMAXRANGE, SRCPICTURERESOURCE, PSETUPREFERENCESLOT, REFERENCESLOTCOUNT, PREFERENCESLOTS, PRECEDINGEXTERNALLYENCODEDBYTES
The struct member offsets.
-
-
Constructor Detail
-
VkVideoEncodeInfoKHR
public VkVideoEncodeInfoKHR(java.nio.ByteBuffer container)
Creates aVkVideoEncodeInfoKHRinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
a pointer to a structure extending this structure. A codec-specific extension structure must be chained to specify what bitstream unit to generate with this encode operation.
-
flags
public int flags()
a bitmask ofVkVideoEncodeFlagBitsKHRspecifying encode flags, and is reserved for future versions of this specification.
-
qualityLevel
public int qualityLevel()
the coding quality level of the encoding. It is defined by the codec-specific extensions.
-
codedExtent
public VkExtent2D codedExtent()
the coded size of the encode operations.
-
dstBitstreamBuffer
public long dstBitstreamBuffer()
the buffer where the encoded bitstream output will be produced.
-
dstBitstreamBufferOffset
public long dstBitstreamBufferOffset()
the offset in thedstBitstreamBufferwhere the encoded bitstream output will start.dstBitstreamBufferOffset’s value must be aligned toVkVideoCapabilitiesKHR::minBitstreamBufferOffsetAlignment, as reported by the implementation.
-
dstBitstreamBufferMaxRange
public long dstBitstreamBufferMaxRange()
the maximum size of thedstBitstreamBufferthat can be used while the encoded bitstream output is produced.dstBitstreamBufferMaxRange’s value must be aligned toVkVideoCapabilitiesKHR::minBitstreamBufferSizeAlignment, as reported by the implementation.
-
srcPictureResource
public VkVideoPictureResourceKHR srcPictureResource()
the Picture Resource of the Input Picture to be encoded by the operation.
-
pSetupReferenceSlot
public VkVideoReferenceSlotKHR pSetupReferenceSlot()
a pointer to aVkVideoReferenceSlotKHRstructure used for generating a reconstructed reference slot and Picture Resource.pSetupReferenceSlot\u2192slotIndexspecifies the slot index number to use as a target for producing the Reconstructed (DPB) data.pSetupReferenceSlotmust be one of the entries provided inVkVideoBeginCodingInfoKHRvia thepReferenceSlotswithin theCmdBeginVideoCodingKHRcommand that established the Vulkan Video Encode Context for this command.
-
referenceSlotCount
public int referenceSlotCount()
the number of Reconstructed Reference Pictures that will be used when this encoding operation is executing.
-
pReferenceSlots
@Nullable public VkVideoReferenceSlotKHR.Buffer pReferenceSlots()
NULLor a pointer to an array ofVkVideoReferenceSlotKHRstructures that will be used when this encoding operation is executing. Each entry inpReferenceSlotsmust be one of the entries provided inVkVideoBeginCodingInfoKHRvia thepReferenceSlotswithin theCmdBeginVideoCodingKHRcommand that established the Vulkan Video Encode Context for this command.
-
precedingExternallyEncodedBytes
public int precedingExternallyEncodedBytes()
the number of bytes externally encoded for insertion in the active video encode session overall bitstream prior to the bitstream that will be generated by the implementation for this instance ofVkVideoEncodeInfoKHR. Valid whenVkVideoEncodeRateControlInfoKHR::rateControlModeis notVIDEO_ENCODE_RATE_CONTROL_MODE_NONE_BIT_KHR. The value provided is used to update the implementation’s rate control algorithm for the rate control layer this instance ofVkVideoEncodeInfoKHRbelongs to, by accounting for the bitrate budget consumed by these externally encoded bytes. SeeVkVideoEncodeRateControlInfoKHRfor additional information about encode rate control.
-
sType
public VkVideoEncodeInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoEncodeInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_INFO_KHRvalue to thesType()field.
-
pNext
public VkVideoEncodeInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkVideoEncodeInfoKHR pNext(VkVideoEncodeH264EmitPictureParametersEXT value)
Prepends the specifiedVkVideoEncodeH264EmitPictureParametersEXTvalue to thepNextchain.
-
pNext
public VkVideoEncodeInfoKHR pNext(VkVideoEncodeH264VclFrameInfoEXT value)
Prepends the specifiedVkVideoEncodeH264VclFrameInfoEXTvalue to thepNextchain.
-
pNext
public VkVideoEncodeInfoKHR pNext(VkVideoEncodeH265EmitPictureParametersEXT value)
Prepends the specifiedVkVideoEncodeH265EmitPictureParametersEXTvalue to thepNextchain.
-
pNext
public VkVideoEncodeInfoKHR pNext(VkVideoEncodeH265VclFrameInfoEXT value)
Prepends the specifiedVkVideoEncodeH265VclFrameInfoEXTvalue to thepNextchain.
-
flags
public VkVideoEncodeInfoKHR flags(int value)
Sets the specified value to theflags()field.
-
qualityLevel
public VkVideoEncodeInfoKHR qualityLevel(int value)
Sets the specified value to thequalityLevel()field.
-
codedExtent
public VkVideoEncodeInfoKHR codedExtent(VkExtent2D value)
Copies the specifiedVkExtent2Dto thecodedExtent()field.
-
codedExtent
public VkVideoEncodeInfoKHR codedExtent(java.util.function.Consumer<VkExtent2D> consumer)
Passes thecodedExtent()field to the specifiedConsumer.
-
dstBitstreamBuffer
public VkVideoEncodeInfoKHR dstBitstreamBuffer(long value)
Sets the specified value to thedstBitstreamBuffer()field.
-
dstBitstreamBufferOffset
public VkVideoEncodeInfoKHR dstBitstreamBufferOffset(long value)
Sets the specified value to thedstBitstreamBufferOffset()field.
-
dstBitstreamBufferMaxRange
public VkVideoEncodeInfoKHR dstBitstreamBufferMaxRange(long value)
Sets the specified value to thedstBitstreamBufferMaxRange()field.
-
srcPictureResource
public VkVideoEncodeInfoKHR srcPictureResource(VkVideoPictureResourceKHR value)
Copies the specifiedVkVideoPictureResourceKHRto thesrcPictureResource()field.
-
srcPictureResource
public VkVideoEncodeInfoKHR srcPictureResource(java.util.function.Consumer<VkVideoPictureResourceKHR> consumer)
Passes thesrcPictureResource()field to the specifiedConsumer.
-
pSetupReferenceSlot
public VkVideoEncodeInfoKHR pSetupReferenceSlot(VkVideoReferenceSlotKHR value)
Sets the address of the specifiedVkVideoReferenceSlotKHRto thepSetupReferenceSlot()field.
-
pReferenceSlots
public VkVideoEncodeInfoKHR pReferenceSlots(@Nullable VkVideoReferenceSlotKHR.Buffer value)
Sets the address of the specifiedVkVideoReferenceSlotKHR.Bufferto thepReferenceSlots()field.
-
precedingExternallyEncodedBytes
public VkVideoEncodeInfoKHR precedingExternallyEncodedBytes(int value)
Sets the specified value to theprecedingExternallyEncodedBytes()field.
-
set
public VkVideoEncodeInfoKHR set(int sType, long pNext, int flags, int qualityLevel, VkExtent2D codedExtent, long dstBitstreamBuffer, long dstBitstreamBufferOffset, long dstBitstreamBufferMaxRange, VkVideoPictureResourceKHR srcPictureResource, VkVideoReferenceSlotKHR pSetupReferenceSlot, @Nullable VkVideoReferenceSlotKHR.Buffer pReferenceSlots, int precedingExternallyEncodedBytes)
Initializes this struct with the specified values.
-
set
public VkVideoEncodeInfoKHR set(VkVideoEncodeInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoEncodeInfoKHR malloc()
Returns a newVkVideoEncodeInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoEncodeInfoKHR calloc()
Returns a newVkVideoEncodeInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoEncodeInfoKHR create()
Returns a newVkVideoEncodeInfoKHRinstance allocated withBufferUtils.
-
create
public static VkVideoEncodeInfoKHR create(long address)
Returns a newVkVideoEncodeInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoEncodeInfoKHR createSafe(long address)
-
malloc
public static VkVideoEncodeInfoKHR.Buffer malloc(int capacity)
Returns a newVkVideoEncodeInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoEncodeInfoKHR.Buffer calloc(int capacity)
Returns a newVkVideoEncodeInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeInfoKHR.Buffer create(int capacity)
Returns a newVkVideoEncodeInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeInfoKHR.Buffer create(long address, int capacity)
Create aVkVideoEncodeInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoEncodeInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoEncodeInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoEncodeInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoEncodeInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoEncodeInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nqualityLevel
public static int nqualityLevel(long struct)
Unsafe version ofqualityLevel().
-
ncodedExtent
public static VkExtent2D ncodedExtent(long struct)
Unsafe version ofcodedExtent().
-
ndstBitstreamBuffer
public static long ndstBitstreamBuffer(long struct)
Unsafe version ofdstBitstreamBuffer().
-
ndstBitstreamBufferOffset
public static long ndstBitstreamBufferOffset(long struct)
Unsafe version ofdstBitstreamBufferOffset().
-
ndstBitstreamBufferMaxRange
public static long ndstBitstreamBufferMaxRange(long struct)
Unsafe version ofdstBitstreamBufferMaxRange().
-
nsrcPictureResource
public static VkVideoPictureResourceKHR nsrcPictureResource(long struct)
Unsafe version ofsrcPictureResource().
-
npSetupReferenceSlot
public static VkVideoReferenceSlotKHR npSetupReferenceSlot(long struct)
Unsafe version ofpSetupReferenceSlot().
-
nreferenceSlotCount
public static int nreferenceSlotCount(long struct)
Unsafe version ofreferenceSlotCount().
-
npReferenceSlots
@Nullable public static VkVideoReferenceSlotKHR.Buffer npReferenceSlots(long struct)
Unsafe version ofpReferenceSlots().
-
nprecedingExternallyEncodedBytes
public static int nprecedingExternallyEncodedBytes(long struct)
Unsafe version ofprecedingExternallyEncodedBytes().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nqualityLevel
public static void nqualityLevel(long struct, int value)Unsafe version ofqualityLevel.
-
ncodedExtent
public static void ncodedExtent(long struct, VkExtent2D value)Unsafe version ofcodedExtent.
-
ndstBitstreamBuffer
public static void ndstBitstreamBuffer(long struct, long value)Unsafe version ofdstBitstreamBuffer.
-
ndstBitstreamBufferOffset
public static void ndstBitstreamBufferOffset(long struct, long value)Unsafe version ofdstBitstreamBufferOffset.
-
ndstBitstreamBufferMaxRange
public static void ndstBitstreamBufferMaxRange(long struct, long value)Unsafe version ofdstBitstreamBufferMaxRange.
-
nsrcPictureResource
public static void nsrcPictureResource(long struct, VkVideoPictureResourceKHR value)Unsafe version ofsrcPictureResource.
-
npSetupReferenceSlot
public static void npSetupReferenceSlot(long struct, VkVideoReferenceSlotKHR value)Unsafe version ofpSetupReferenceSlot.
-
nreferenceSlotCount
public static void nreferenceSlotCount(long struct, int value)Sets the specified value to thereferenceSlotCountfield of the specifiedstruct.
-
npReferenceSlots
public static void npReferenceSlots(long struct, @Nullable VkVideoReferenceSlotKHR.Buffer value)Unsafe version ofpReferenceSlots.
-
nprecedingExternallyEncodedBytes
public static void nprecedingExternallyEncodedBytes(long struct, int value)Unsafe version ofprecedingExternallyEncodedBytes.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-