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
.
If videoSessionParameters
was created with the video codec operation
VK_VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR
and the
pUpdateInfo->pNext
chain includes a
VkVideoEncodeH264SessionParametersAddInfoKHR structure, then this
command adds the following parameter entries to
videoSessionParameters
:
-
The H.264 SPS entries specified in VkVideoEncodeH264SessionParametersAddInfoKHR::
pStdSPSs
. -
The H.264 PPS entries specified in VkVideoEncodeH264SessionParametersAddInfoKHR::
pStdPPSs
.
If videoSessionParameters
was created with the video codec operation
VK_VIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR
and the
pUpdateInfo->pNext
chain includes a
VkVideoEncodeH265SessionParametersAddInfoKHR structure, then this
command adds the following parameter entries to
videoSessionParameters
:
-
The H.265 VPS entries specified in VkVideoEncodeH265SessionParametersAddInfoKHR::
pStdVPSs
. -
The H.265 SPS entries specified in VkVideoEncodeH265SessionParametersAddInfoKHR::
pStdSPSs
. -
The H.265 PPS entries specified in VkVideoEncodeH265SessionParametersAddInfoKHR::
pStdPPSs
.
In case of video session parameters objects created with a video encode
operation, implementations may return the
VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR
error if any of the
specified Video Std parameters do not adhere to the syntactic or semantic
requirements of the used video compression standard, or if values derived
from parameters according to the rules defined by the used video compression
standard do not adhere to the capabilities of the video compression standard
or the implementation.
Note
Applications should not rely on the
|
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.