C Specification
The VkVideoSessionParametersCreateInfoKHR
structure is defined as:
// Provided by VK_KHR_video_queue
typedef struct VkVideoSessionParametersCreateInfoKHR {
VkStructureType sType;
const void* pNext;
VkVideoSessionParametersCreateFlagsKHR flags;
VkVideoSessionParametersKHR videoSessionParametersTemplate;
VkVideoSessionKHR videoSession;
} VkVideoSessionParametersCreateInfoKHR;
Members
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
flags
is reserved for future use. -
videoSessionParametersTemplate
isVK_NULL_HANDLE
or a valid handle to a VkVideoSessionParametersKHR object used as a template for constructing the new video session parameters object. -
videoSession
is the video session object against which the video session parameters object is going to be created.
Description
Limiting values are defined below that are referenced by the relevant valid usage statements of this structure.
-
If
videoSession
was created with the codec operationVK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR
, then letStdVideoH264SequenceParameterSet spsAddList[]
be the list of H.264 SPS entries to add to the created video session parameters object, defined as follows:-
If the
pParametersAddInfo
member of the VkVideoDecodeH264SessionParametersCreateInfoKHR structure provided in thepNext
chain is notNULL
, then the set ofStdVideoH264SequenceParameterSet
entries specified inpParametersAddInfo->pStdSPSs
are added tospsAddList
; -
If
videoSessionParametersTemplate
is notVK_NULL_HANDLE
, then eachStdVideoH264SequenceParameterSet
entry stored in it withseq_parameter_set_id
not matching any of the entries already inspsAddList
is added tospsAddList
.
-
-
If
videoSession
was created with the codec operationVK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR
, then letStdVideoH264PictureParameterSet ppsAddList[]
be the list of H.264 PPS entries to add to the created video session parameters object, defined as follows:-
If the
pParametersAddInfo
member of the VkVideoDecodeH264SessionParametersCreateInfoKHR structure provided in thepNext
chain is notNULL
, then the set ofStdVideoH264PictureParameterSet
entries specified inpParametersAddInfo->pStdPPSs
are added toppsAddList
; -
If
videoSessionParametersTemplate
is notVK_NULL_HANDLE
, then eachStdVideoH264PictureParameterSet
entry stored in it withseq_parameter_set_id
orpic_parameter_set_id
not matching any of the entries already inppsAddList
is added toppsAddList
.
-
-
If
videoSession
was created with the codec operationVK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR
, then letStdVideoH265VideoParameterSet vpsAddList[]
be the list of H.265 VPS entries to add to the created video session parameters object, defined as follows:-
If the
pParametersAddInfo
member of the VkVideoDecodeH265SessionParametersCreateInfoKHR structure provided in thepNext
chain is notNULL
, then the set ofStdVideoH265VideoParameterSet
entries specified inpParametersAddInfo->pStdVPSs
are added tovpsAddList
; -
If
videoSessionParametersTemplate
is notVK_NULL_HANDLE
, then eachStdVideoH265VideoParameterSet
entry stored in it withvps_video_parameter_set_id
not matching any of the entries already invpsAddList
is added tovpsAddList
.
-
-
If
videoSession
was created with the codec operationVK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR
, then letStdVideoH265SequenceParameterSet spsAddList[]
be the list of H.265 SPS entries to add to the created video session parameters object, defined as follows:-
If the
pParametersAddInfo
member of the VkVideoDecodeH265SessionParametersCreateInfoKHR structure provided in thepNext
chain is notNULL
, then the set ofStdVideoH265SequenceParameterSet
entries specified inpParametersAddInfo->pStdSPSs
are added tospsAddList
; -
If
videoSessionParametersTemplate
is notVK_NULL_HANDLE
, then eachStdVideoH265SequenceParameterSet
entry stored in it withsps_video_parameter_set_id
orsps_seq_parameter_set_id
not matching any of the entries already inspsAddList
is added tospsAddList
.
-
-
If
videoSession
was created with the codec operationVK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR
, then letStdVideoH265PictureParameterSet ppsAddList[]
be the list of H.265 PPS entries to add to the created video session parameters object, defined as follows:-
If the
pParametersAddInfo
member of the VkVideoDecodeH265SessionParametersCreateInfoKHR structure provided in thepNext
chain is notNULL
, then the set ofStdVideoH265PictureParameterSet
entries specified inpParametersAddInfo->pStdPPSs
are added toppsAddList
; -
If
videoSessionParametersTemplate
is notVK_NULL_HANDLE
, then eachStdVideoH265PictureParameterSet
entry stored in it withsps_video_parameter_set_id
,pps_seq_parameter_set_id
, orpps_pic_parameter_set_id
not matching any of the entries already inppsAddList
is added toppsAddList
.
-
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.