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
-
sTypeis a VkStructureType value identifying this structure. -
pNextis a pointer to a structure extending this structure. -
flagsis a bitmask of VkVideoEncodeFlagBitsKHR indicating video encode command flags. -
dstBufferis the destination video bitstream buffer to write the encoded bitstream to. -
dstBufferOffsetis the starting offset in bytes from the start ofdstBufferto write the encoded bitstream to. -
dstBufferRangeis the maximum bitstream size in bytes that can be written todstBuffer, starting fromdstBufferOffset. -
srcPictureResourceis the video picture resource to use as the encode input picture. -
pSetupReferenceSlotisNULLor a pointer to a VkVideoReferenceSlotInfoKHR structure specifying the reconstructed picture information. -
referenceSlotCountis the number of elements in thepReferenceSlotsarray. -
pReferenceSlotsisNULLor 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). -
precedingExternallyEncodedBytesis 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.