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
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
pStdPictureInfo
is a pointer to aStdVideoDecodeH265PictureInfo
structure specifying H.265 picture information. -
sliceSegmentCount
is the number of elements inpSliceSegmentOffsets
. -
pSliceSegmentOffsets
is a pointer to an array ofsliceSegmentCount
offsets 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
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 bypStdPictureInfo
are interpreted as follows:-
reserved
is used only for padding purposes and is otherwise ignored; -
flags.IrapPicFlag
as defined in section 3.73 of the ITU-T H.265 Specification; -
flags.IdrPicFlag
as defined in section 3.67 of the ITU-T H.265 Specification; -
flags.IsReference
as 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_id
are used to identify the active parameter sets, as described below; -
PicOrderCntVal
as defined in section 8.3.1 of the ITU-T H.265 Specification; -
NumBitsForSTRefPicSetInSlice
is the number of bits used inst_ref_pic_set
whenshort_term_ref_pic_set_sps_flag
is0
, or0
otherwise, as defined in sections 7.4.7 and 7.4.8 of the ITU-T H.265 Specification; -
NumDeltaPocsOfRefRpsIdx
is the value ofNumDeltaPocs[RefRpsIdx]
whenshort_term_ref_pic_set_sps_flag
is1
, or0
otherwise, as defined in sections 7.4.7 and 7.4.8 of the ITU-T H.265 Specification; -
RefPicSetStCurrBefore
,RefPicSetStCurrAfter
, andRefPicSetLtCurr
are 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_PICTURE
to 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
StdVideoDecodeH265PictureInfo
structure pointed to bypStdPictureInfo
are 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_id
andStdVideoDecodeH265PictureInfo
::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.