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
-
sType
is the type of this structure. -
pNext
isNULL
or 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. -
flags
is a bitmask of VkVideoDecodeFlagBitsKHR specifying decode flags, reserved for future versions of this specification. -
srcBuffer
is the source buffer that holds the encoded bitstream. -
srcBufferOffset
is the buffer offset where the valid encoded bitstream starts in srcBuffer. It must meet the alignment requirementminBitstreamBufferOffsetAlignment
within VkVideoCapabilitiesKHR queried with the vkGetPhysicalDeviceVideoCapabilitiesKHR function. -
srcBufferRange
is the size of the srcBuffer with valid encoded bitstream, starting fromsrcBufferOffset
. It must meet the alignment requirementminBitstreamBufferSizeAlignment
within VkVideoCapabilitiesKHR queried with the vkGetPhysicalDeviceVideoCapabilitiesKHR function. -
dstPictureResource
is the destination Decoded Output Picture Resource. -
pSetupReferenceSlot
isNULL
or a pointer to a VkVideoReferenceSlotKHR structure used for generating a DPB reference slot and Picture Resource.pSetupReferenceSlot->slotIndex
specifies the slot index number to use as a target for producing the DPB data.slotIndex
must reference a valid entry as specified in VkVideoBeginCodingInfoKHR via thepReferenceSlots
within the vkCmdBeginVideoCodingKHR command that established the Vulkan Video Decode Context for this command. -
referenceSlotCount
is the number of the DPB Reference Pictures that will be used when this decoding operation is executing. -
pReferenceSlots
is 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.