C Specification
The VkVideoDecodeH265PictureInfoKHR structure is defined as:
// Provided by VK_KHR_video_decode_h265
typedef struct VkVideoDecodeH265PictureInfoKHR {
VkStructureType sType;
const void* pNext;
const StdVideoDecodeH265PictureInfo* pStdPictureInfo;
uint32_t sliceSegmentCount;
const uint32_t* pSliceSegmentOffsets;
} VkVideoDecodeH265PictureInfoKHR;
Members
-
sTypeis a VkStructureType value identifying this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
pStdPictureInfois a pointer to aStdVideoDecodeH265PictureInfostructure specifying H.265 picture information. -
sliceSegmentCountis the number of elements inpSliceSegmentOffsets. -
pSliceSegmentOffsetsis a pointer to an array ofsliceSegmentCountoffsets specifying the start offset of the slice segments of the picture within the video bitstream buffer range specified in VkVideoDecodeInfoKHR.
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 H.265
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 H.265 Decode Picture Data Access section.
-
The decode output picture is associated with the H.265 picture information provided in
pStdPictureInfo.
-
- Std Picture Information
-
The members of the
StdVideoDecodeH265PictureInfostructure pointed to bypStdPictureInfoare interpreted as follows:-
reservedis used only for padding purposes and is otherwise ignored; -
flags.IrapPicFlagas defined in section 3.73 of the ITU-T H.265 Specification; -
flags.IdrPicFlagas defined in section 3.67 of the ITU-T H.265 Specification; -
flags.IsReferenceas defined in section 3.132 of the ITU-T H.265 Specification; -
sps_video_parameter_set_id,pps_seq_parameter_set_id, andpps_pic_parameter_set_idare used to identify the active parameter sets, as described below; -
PicOrderCntValas defined in section 8.3.1 of the ITU-T H.265 Specification; -
NumBitsForSTRefPicSetInSliceis the number of bits used inst_ref_pic_setwhenshort_term_ref_pic_set_sps_flagis0, or0otherwise, as defined in sections 7.4.7 and 7.4.8 of the ITU-T H.265 Specification; -
NumDeltaPocsOfRefRpsIdxis the value ofNumDeltaPocs[RefRpsIdx]whenshort_term_ref_pic_set_sps_flagis1, or0otherwise, as defined in sections 7.4.7 and 7.4.8 of the ITU-T H.265 Specification; -
RefPicSetStCurrBefore,RefPicSetStCurrAfter, andRefPicSetLtCurrare interpreted as defined in section 8.3.2 of the ITU-T H.265 Specification where each element of these arrays either identifies an active reference picture using its DPB slot index or contains the valueSTD_VIDEO_H265_NO_REFERENCE_PICTUREto indicate “no reference picture”; -
all other members are interpreted as defined in section 8.3.2 of the ITU-T H.265 Specification.
-
Reference picture setup is controlled by the value of
StdVideoDecodeH265PictureInfo::flags.IsReference.
If it is set and a reconstructed
picture is specified, then the latter is used as the target of picture
reconstruction to activate the corresponding
DPB slot.
If StdVideoDecodeH265PictureInfo::flags.IsReference is not set,
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.
- Active Parameter Sets
-
The members of the
StdVideoDecodeH265PictureInfostructure pointed to bypStdPictureInfoare used to select the active parameter sets to use from the bound video session parameters object, as follows:-
The active VPS is the VPS identified by the key specified in
StdVideoDecodeH265PictureInfo::sps_video_parameter_set_id. -
The active SPS is the SPS identified by the key specified by the pair constructed from
StdVideoDecodeH265PictureInfo::sps_video_parameter_set_idandStdVideoDecodeH265PictureInfo::pps_seq_parameter_set_id. -
The active PPS is the PPS identified by the key specified by the triplet constructed from
StdVideoDecodeH265PictureInfo::sps_video_parameter_set_id,StdVideoDecodeH265PictureInfo::pps_seq_parameter_set_id, andStdVideoDecodeH265PictureInfo::pps_pic_parameter_set_id.
-
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.