C Specification
To update video session parameters object with new parameters, call:
// Provided by VK_KHR_video_queue
VkResult vkUpdateVideoSessionParametersKHR(
VkDevice device,
VkVideoSessionParametersKHR videoSessionParameters,
const VkVideoSessionParametersUpdateInfoKHR* pUpdateInfo);
Parameters
-
device
is the logical device that updates the video session parameters. -
videoSessionParameters
is the video session parameters object to update. -
pUpdateInfo
is a pointer to a VkVideoSessionParametersUpdateInfoKHR structure specifying the parameter update information.
Description
After a successful call to this command, the
update sequence counter of
videoSessionParameters
is changed to the value specified in
pUpdateInfo->updateSequenceCount
.
Note:
As each update issued to a video session parameters object needs to specify the next available update sequence count value, concurrent updates of the same video session parameters object are inherently disallowed. However, recording video coding operations to command buffers referring to parameters previously added to the video session parameters object is allowed, even if there is a concurrent update in progress adding some new entries to the object. |
If videoSessionParameters
was created with the video codec operation
VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR
and the
pUpdateInfo->pNext
chain includes a
VkVideoDecodeH264SessionParametersAddInfoKHR structure, then this
command adds the following parameter entries to
videoSessionParameters
:
-
The H.264 SPS entries specified in VkVideoDecodeH264SessionParametersAddInfoKHR::
pStdSPSs
. -
The H.264 PPS entries specified in VkVideoDecodeH264SessionParametersAddInfoKHR::
pStdPPSs
.
If videoSessionParameters
was created with the video codec operation
VK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR
and the
pUpdateInfo->pNext
chain includes a
VkVideoDecodeH265SessionParametersAddInfoKHR structure, then this
command adds the following parameter entries to
videoSessionParameters
:
-
The H.265 VPS entries specified in VkVideoDecodeH265SessionParametersAddInfoKHR::
pStdVPSs
. -
The H.265 SPS entries specified in VkVideoDecodeH265SessionParametersAddInfoKHR::
pStdSPSs
. -
The H.265 PPS entries specified in VkVideoDecodeH265SessionParametersAddInfoKHR::
pStdPPSs
.
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.