C Specification
The VkVideoEncodeInfoKHR
structure is defined as:
// Provided by VK_KHR_video_encode_queue
typedef struct VkVideoEncodeInfoKHR {
VkStructureType sType;
const void* pNext;
VkVideoEncodeFlagsKHR flags;
VkBuffer dstBuffer;
VkDeviceSize dstBufferOffset;
VkDeviceSize dstBufferRange;
VkVideoPictureResourceInfoKHR srcPictureResource;
const VkVideoReferenceSlotInfoKHR* pSetupReferenceSlot;
uint32_t referenceSlotCount;
const VkVideoReferenceSlotInfoKHR* pReferenceSlots;
uint32_t precedingExternallyEncodedBytes;
} VkVideoEncodeInfoKHR;
Members
-
sType
is a VkStructureType value identifying this structure. -
pNext
is a pointer to a structure extending this structure. -
flags
is reserved for future use. -
dstBuffer
is the destination video bitstream buffer to write the encoded bitstream to. -
dstBufferOffset
is the starting offset in bytes from the start ofdstBuffer
to write the encoded bitstream to. -
dstBufferRange
is the maximum bitstream size in bytes that can be written todstBuffer
, starting fromdstBufferOffset
. -
srcPictureResource
is the video picture resource to use as the encode input picture. -
pSetupReferenceSlot
isNULL
or a pointer to a VkVideoReferenceSlotInfoKHR structure specifying the reconstructed picture information. -
referenceSlotCount
is the number of elements in thepReferenceSlots
array. -
pReferenceSlots
isNULL
or a pointer to an array of VkVideoReferenceSlotInfoKHR structures describing the DPB slots and corresponding reference picture resources to use in this video encode operation (the set of active reference pictures). -
precedingExternallyEncodedBytes
is the number of bytes externally encoded by the application to the video bitstream and is used to update the internal state of the implementation’s rate control algorithm to account for the bitrate budget consumed by these externally encoded bytes.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.