C Specification
The VkVideoDecodeInfoKHR structure is defined as:
// Provided by VK_KHR_video_decode_queue
typedef struct VkVideoDecodeInfoKHR {
VkStructureType sType;
const void* pNext;
VkVideoDecodeFlagsKHR flags;
VkBuffer srcBuffer;
VkDeviceSize srcBufferOffset;
VkDeviceSize srcBufferRange;
VkVideoPictureResourceKHR dstPictureResource;
const VkVideoReferenceSlotKHR* pSetupReferenceSlot;
uint32_t referenceSlotCount;
const VkVideoReferenceSlotKHR* pReferenceSlots;
} VkVideoDecodeInfoKHR;
Members
-
sTypeis the type of this structure. -
pNextisNULLor a pointer to a structure extending this structure. All the codec specific structures related to each frame(picture parameters, quantization matrix, etc.) must be chained here and pass to decode session with the function call vkCmdDecodeVideoKHR. -
flagsis a bitmask of VkVideoDecodeFlagBitsKHR specifying decode flags, reserved for future versions of this specification. -
srcBufferis the source buffer that holds the encoded bitstream. -
srcBufferOffsetis the buffer offset where the valid encoded bitstream starts in srcBuffer. It must meet the alignment requirementminBitstreamBufferOffsetAlignmentwithin VkVideoCapabilitiesKHR queried with the vkGetPhysicalDeviceVideoCapabilitiesKHR function. -
srcBufferRangeis the size of the srcBuffer with valid encoded bitstream, starting fromsrcBufferOffset. It must meet the alignment requirementminBitstreamBufferSizeAlignmentwithin VkVideoCapabilitiesKHR queried with the vkGetPhysicalDeviceVideoCapabilitiesKHR function. -
dstPictureResourceis the destination Decoded Output Picture Resource. -
pSetupReferenceSlotisNULLor a pointer to a VkVideoReferenceSlotKHR structure used for generating a DPB reference slot and Picture Resource.pSetupReferenceSlot->slotIndexspecifies the slot index number to use as a target for producing the DPB data.slotIndexmust reference a valid entry as specified in VkVideoBeginCodingInfoKHR via thepReferenceSlotswithin the vkCmdBeginVideoCodingKHR command that established the Vulkan Video Decode Context for this command. -
referenceSlotCountis the number of the DPB Reference Pictures that will be used when this decoding operation is executing. -
pReferenceSlotsis a pointer to an array of VkVideoReferenceSlotKHR structures specifying the DPB Reference pictures that will be used when this decoding operation is executing.
Description
The coded size of the decode operation is specified in codedExtent of
dstPictureResource.
The coded offset of the decode operation is specified in codedOffset
of dstPictureResource.
The purpose of this field is interpreted based on the codec extension.
When decoding content in H.264 field mode, codedOffset specifies the
line or picture field’s offset within the image.
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.