C Specification
The VkVideoDecodeVP9PictureInfoKHR structure is defined as:
// Provided by VK_KHR_video_decode_vp9
typedef struct VkVideoDecodeVP9PictureInfoKHR {
VkStructureType sType;
const void* pNext;
const StdVideoDecodeVP9PictureInfo* pStdPictureInfo;
int32_t referenceNameSlotIndices[VK_MAX_VIDEO_VP9_REFERENCES_PER_FRAME_KHR];
uint32_t uncompressedHeaderOffset;
uint32_t compressedHeaderOffset;
uint32_t tilesOffset;
} VkVideoDecodeVP9PictureInfoKHR;
Members
-
sTypeis a VkStructureType value identifying this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
pStdPictureInfois a pointer to aStdVideoDecodeVP9PictureInfostructure specifying VP9 picture information. -
referenceNameSlotIndicesis an array of three (VK_MAX_VIDEO_VP9_REFERENCES_PER_FRAME_KHR, which is equal to the Video Std definitionSTD_VIDEO_VP9_REFS_PER_FRAME) signed integer values specifying the index of the DPB slot or a negative integer value for each VP9 reference name used for inter coding. In particular, the DPB slot index for the VP9 reference nameframeis specified inreferenceNameSlotIndices[frame-STD_VIDEO_VP9_REFERENCE_NAME_LAST_FRAME]. -
uncompressedHeaderOffsetis the byte offset of the uncompressed frame header, as defined in section 6.2 of the VP9 Specification. -
compressedHeaderOffsetis the byte offset of the compressed frame header, as defined in section 6.3 of the VP9 Specification. -
tilesOffsetis the byte offset of the frame tile data, as defined in section 6.4 of the VP9 Specification.
Description
This structure is specified in the pNext chain of the
VkVideoDecodeInfoKHR structure passed to vkCmdDecodeVideoKHR to
specify the codec-specific picture information for an VP9
decode operation.
- Decode Output Picture Information
-
When this structure is specified in the
pNextchain of the VkVideoDecodeInfoKHR structure passed to vkCmdDecodeVideoKHR, the information related to the decode output picture is defined as follows:-
The image subregion used is determined according to the VP9 Decode Picture Data Access section.
-
The decode output picture is associated with the VP9 picture information provided in
pStdPictureInfo.
-
- Std Picture Information
-
The members of the
StdVideoDecodeVP9PictureInfostructure pointed to bypStdPictureInfoare interpreted as follows:-
flags.reservedandreserved1are used only for padding purposes and are otherwise ignored; -
ref_frame_sign_bias_maskis a bitmask where bit index i corresponds toref_frame_sign_bias[i]as defined in section 7.2 of the VP9 Specification; -
the
StdVideoVP9ColorConfigstructure pointed to bypColorConfigis interpreted as follows:-
flags.reservedandreserved1are used only for padding purposes and are otherwise ignored; -
all other members of
StdVideoVP9ColorConfigare interpreted as defined in sections 6.2, 6.2.2, and 7.2.2 of the VP9 Specification;
-
-
the
StdVideoVP9LoopFilterstructure pointed to bypLoopFilteris interpreted as follows:-
flags.reservedis used only for padding purposes and is otherwise ignored; -
update_ref_deltais a bitmask where bit index i is interpreted as the value ofupdate_ref_deltacorresponding to element i ofloop_filter_ref_deltasas defined in section 7.2.8 of the VP9 Specification; -
update_mode_deltais a bitmask where bit index i is interpreted as the value ofupdate_mode_deltacorresponding to element i ofloop_filter_mode_deltasas defined in section 7.2.8 of the VP9 Specification; -
all other members of
StdVideoVP9LoopFilterare interpreted as defined in section 7.2.8 of the VP9 Specification;NoteIf the syntax elements corresponding to
loop_filter_ref_deltasandloop_filter_mode_deltasare not present, the application should specify the previous values, as defined in section 7.2.8 of the VP9 Specification.
-
-
if
flags.segmentation_enabledis set, then theStdVideoVP9Segmentationstructure pointed to bypSegmentationis interpreted as follows:-
flags.reservedis used only for padding purposes and is otherwise ignored; -
the elements of
FeatureEnabledare bitmasks where bit index j of element i corresponds toFeatureEnabled[i][j]as defined in section 6.2.11 of the VP9 Specification; -
FeatureDatais interpreted as defined in section 6.2.11 of the VP9 Specification; -
all other members of
StdVideoVP9Segmentationare interpreted as defined in section 7.2.10 of the VP9 Specification;
-
-
all other members are interpreted as defined in section 7.2 of the VP9 Specification.
-
Reference picture setup is controlled by the value of
StdVideoDecodeVP9PictureInfo::refresh_frame_flags.
If it is not zero and a reconstructed
picture is specified, then the latter is used as the target of picture
reconstruction to activate the DPB slot
specified in pDecodeInfo->pSetupReferenceSlot->slotIndex.
If StdVideoDecodeVP9PictureInfo::refresh_frame_flags is zero, but
a reconstructed picture is specified,
then the corresponding picture reference associated with the DPB
slot is invalidated, as described in the DPB Slot
States section.
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.