VkVideoDecodeH265PictureInfoKHR
The VkVideoDecodeH265PictureInfoKHR structure is defined as:
typedef struct VkVideoDecodeH265PictureInfoKHR {
VkStructureType sType;
const void* pNext;
const StdVideoDecodeH265PictureInfo* pStdPictureInfo;
uint32_t sliceSegmentCount;
const uint32_t* pSliceSegmentOffsets;
} VkVideoDecodeH265PictureInfoKHR;
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.
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 pNext chain 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 StdVideoDecodeH265PictureInfo structure pointed to
by pStdPictureInfo are 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 indicateno 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 StdVideoDecodeH265PictureInfo structure pointed to
by pStdPictureInfo are used to select the active parameter sets to use
from the specified inline parameter
sets or
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.
If the bound video session was created with
VK_VIDEO_SESSION_CREATE_INLINE_SESSION_PARAMETERS_BIT_KHR and any of
the active parameter sets are specified
inline, then the corresponding inline
parameter set is used.
Otherwise, the parameter set in question is sourced from the bound video
session parameters object.
Valid Usage (Implicit)
VUID-VkVideoDecodeH265PictureInfoKHR-sType-sType
sType must be VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_PICTURE_INFO_KHR
VUID-VkVideoDecodeH265PictureInfoKHR-pStdPictureInfo-parameter
pStdPictureInfo must be a valid pointer to a valid StdVideoDecodeH265PictureInfo value
VUID-VkVideoDecodeH265PictureInfoKHR-pSliceSegmentOffsets-parameter
pSliceSegmentOffsets must be a valid pointer to an array of sliceSegmentCount uint32_t values
VUID-VkVideoDecodeH265PictureInfoKHR-sliceSegmentCount-arraylength
sliceSegmentCount must be greater than 0