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
-
sTypeis a VkStructureType value identifying this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
flagsis reserved for future use. -
videoSessionParametersTemplateisVK_NULL_HANDLEor a valid handle to a VkVideoSessionParametersKHR object used as a template for constructing the new video session parameters object. -
videoSessionis 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
videoSessionwas 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
pParametersAddInfomember of the VkVideoDecodeH264SessionParametersCreateInfoKHR structure provided in thepNextchain is notNULL, then the set ofStdVideoH264SequenceParameterSetentries specified inpParametersAddInfo->pStdSPSsare added tospsAddList; -
If
videoSessionParametersTemplateis notVK_NULL_HANDLE, then eachStdVideoH264SequenceParameterSetentry stored in it withseq_parameter_set_idnot matching any of the entries already inspsAddListis added tospsAddList.
-
-
If
videoSessionwas 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
pParametersAddInfomember of the VkVideoDecodeH264SessionParametersCreateInfoKHR structure provided in thepNextchain is notNULL, then the set ofStdVideoH264PictureParameterSetentries specified inpParametersAddInfo->pStdPPSsare added toppsAddList; -
If
videoSessionParametersTemplateis notVK_NULL_HANDLE, then eachStdVideoH264PictureParameterSetentry stored in it withseq_parameter_set_idorpic_parameter_set_idnot matching any of the entries already inppsAddListis added toppsAddList.
-
-
If
videoSessionwas 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
pParametersAddInfomember of the VkVideoDecodeH265SessionParametersCreateInfoKHR structure provided in thepNextchain is notNULL, then the set ofStdVideoH265VideoParameterSetentries specified inpParametersAddInfo->pStdVPSsare added tovpsAddList; -
If
videoSessionParametersTemplateis notVK_NULL_HANDLE, then eachStdVideoH265VideoParameterSetentry stored in it withvps_video_parameter_set_idnot matching any of the entries already invpsAddListis added tovpsAddList.
-
-
If
videoSessionwas 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
pParametersAddInfomember of the VkVideoDecodeH265SessionParametersCreateInfoKHR structure provided in thepNextchain is notNULL, then the set ofStdVideoH265SequenceParameterSetentries specified inpParametersAddInfo->pStdSPSsare added tospsAddList; -
If
videoSessionParametersTemplateis notVK_NULL_HANDLE, then eachStdVideoH265SequenceParameterSetentry stored in it withsps_video_parameter_set_idorsps_seq_parameter_set_idnot matching any of the entries already inspsAddListis added tospsAddList.
-
-
If
videoSessionwas 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
pParametersAddInfomember of the VkVideoDecodeH265SessionParametersCreateInfoKHR structure provided in thepNextchain is notNULL, then the set ofStdVideoH265PictureParameterSetentries specified inpParametersAddInfo->pStdPPSsare added toppsAddList; -
If
videoSessionParametersTemplateis notVK_NULL_HANDLE, then eachStdVideoH265PictureParameterSetentry stored in it withsps_video_parameter_set_id,pps_seq_parameter_set_id, orpps_pic_parameter_set_idnot matching any of the entries already inppsAddListis added toppsAddList.
-
-
If
videoSessionwas created with an encode operation, then letuint32_t qualityLevelbe the video encode quality level of the created video session parameters object, defined as follows:-
If the
pNextchain of this structure includes a VkVideoEncodeQualityLevelInfoKHR structure, thenqualityLevelis equal to VkVideoEncodeQualityLevelInfoKHR::qualityLevel. -
Otherwise
qualityLevelis0
-
-
If
videoSessionwas created with the codec operationVK_VIDEO_CODEC_OPERATION_ENCODE_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
pParametersAddInfomember of the VkVideoEncodeH264SessionParametersCreateInfoKHR structure provided in thepNextchain is notNULL, then the set ofStdVideoH264SequenceParameterSetentries specified inpParametersAddInfo->pStdSPSsare added tospsAddList; -
If
videoSessionParametersTemplateis notVK_NULL_HANDLE, then eachStdVideoH264SequenceParameterSetentry stored in it withseq_parameter_set_idnot matching any of the entries already inspsAddListis added tospsAddList.
-
-
If
videoSessionwas created with the codec operationVK_VIDEO_CODEC_OPERATION_ENCODE_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
pParametersAddInfomember of the VkVideoEncodeH264SessionParametersCreateInfoKHR structure provided in thepNextchain is notNULL, then the set ofStdVideoH264PictureParameterSetentries specified inpParametersAddInfo->pStdPPSsare added toppsAddList; -
If
videoSessionParametersTemplateis notVK_NULL_HANDLE, then eachStdVideoH264PictureParameterSetentry stored in it withseq_parameter_set_idorpic_parameter_set_idnot matching any of the entries already inppsAddListis added toppsAddList.
-
-
If
videoSessionwas created with the codec operationVK_VIDEO_CODEC_OPERATION_ENCODE_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
pParametersAddInfomember of the VkVideoEncodeH265SessionParametersCreateInfoKHR structure provided in thepNextchain is notNULL, then the set ofStdVideoH265VideoParameterSetentries specified inpParametersAddInfo->pStdVPSsare added tovpsAddList; -
If
videoSessionParametersTemplateis notVK_NULL_HANDLE, then eachStdVideoH265VideoParameterSetentry stored in it withvps_video_parameter_set_idnot matching any of the entries already invpsAddListis added tovpsAddList.
-
-
If
videoSessionwas created with the codec operationVK_VIDEO_CODEC_OPERATION_ENCODE_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
pParametersAddInfomember of the VkVideoEncodeH265SessionParametersCreateInfoKHR structure provided in thepNextchain is notNULL, then the set ofStdVideoH265SequenceParameterSetentries specified inpParametersAddInfo->pStdSPSsare added tospsAddList; -
If
videoSessionParametersTemplateis notVK_NULL_HANDLE, then eachStdVideoH265SequenceParameterSetentry stored in it withsps_video_parameter_set_idorsps_seq_parameter_set_idnot matching any of the entries already inspsAddListis added tospsAddList.
-
-
If
videoSessionwas created with the codec operationVK_VIDEO_CODEC_OPERATION_ENCODE_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
pParametersAddInfomember of the VkVideoEncodeH265SessionParametersCreateInfoKHR structure provided in thepNextchain is notNULL, then the set ofStdVideoH265PictureParameterSetentries specified inpParametersAddInfo->pStdPPSsare added toppsAddList; -
If
videoSessionParametersTemplateis notVK_NULL_HANDLE, then eachStdVideoH265PictureParameterSetentry stored in it withsps_video_parameter_set_id,pps_seq_parameter_set_id, orpps_pic_parameter_set_idnot matching any of the entries already inppsAddListis 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.