C Specification
The VkVideoDecodeH264PictureInfoKHR
structure is defined as:
// Provided by VK_KHR_video_decode_h264
typedef struct VkVideoDecodeH264PictureInfoKHR {
VkStructureType sType;
const void* pNext;
const StdVideoDecodeH264PictureInfo* pStdPictureInfo;
uint32_t sliceCount;
const uint32_t* pSliceOffsets;
} VkVideoDecodeH264PictureInfoKHR;
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 aStdVideoDecodeH264PictureInfo
structure specifying H.264 picture information. -
sliceCount
is the number of elements inpSliceOffsets
. -
pSliceOffsets
is a pointer to an array ofsliceCount
offsets specifying the start offset of the slices 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.264
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:-
If
pStdPictureInfo->flags.field_pic_flag
is not set, then the picture represents a frame. -
If
pStdPictureInfo->flags.field_pic_flag
is set, then the picture represents a field. Specifically:-
If
pStdPictureInfo->flags.bottom_field_flag
is not set, then the picture represents the top field of the frame. -
If
pStdPictureInfo->flags.bottom_field_flag
is set, then the picture represents the bottom field of the frame.
-
-
The image subregion used is determined according to the H.264 Decode Picture Data Access section.
-
The decode output picture is associated with the H.264 picture information provided in
pStdPictureInfo
.
-
- Std Picture Information
-
The members of the
StdVideoDecodeH264PictureInfo
structure pointed to bypStdPictureInfo
are interpreted as follows:-
reserved1
andreserved2
are used only for padding purposes and are otherwise ignored; -
flags.is_intra
as defined in section 3.73 of the ITU-T H.264 Specification; -
flags.is_reference
as defined in section 3.136 of the ITU-T H.264 Specification; -
flags.complementary_field_pair
as defined in section 3.35 of the ITU-T H.264 Specification; -
seq_parameter_set_id
andpic_parameter_set_id
are used to identify the active parameter sets, as described below; -
all other members are interpreted as defined in section 7.4.3 of the ITU-T H.264 Specification.
-
- Active Parameter Sets
-
The members of the
StdVideoDecodeH264PictureInfo
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 SPS is the SPS identified by the key specified in
StdVideoDecodeH264PictureInfo
::seq_parameter_set_id
. -
The active PPS is the PPS identified by the key specified by the pair constructed from
StdVideoDecodeH264PictureInfo
::seq_parameter_set_id
andStdVideoDecodeH264PictureInfo
::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.