VkVideoDecodeH264SessionParametersAddInfoEXT(3)

# VkVideoDecodeH264SessionParametersAddInfoEXT(3) Manual Page

## Name

VkVideoDecodeH264SessionParametersAddInfoEXT - Structure specifies H.264 decoder parameter set info

Loading… please wait.

## C Specification

    // Provided by VK_EXT_video_decode_h264
    typedef struct VkVideoDecodeH264SessionParametersAddInfoEXT {
        VkStructureType                            sType;
        const void*                                pNext;
        uint32_t                                   spsStdCount;
        const StdVideoH264SequenceParameterSet*    pSpsStd;
        uint32_t                                   ppsStdCount;
        const StdVideoH264PictureParameterSet*     pPpsStd;
    } VkVideoDecodeH264SessionParametersAddInfoEXT;

## Members

- `sType` is the type of this structure.

- `pNext` is `NULL` or a pointer to a structure extending this structure.

- `spsStdCount` is the number of SPS elements in the `pSpsStd`. Its value must be less than or equal to the value of `maxSpsStdCount`.

- `pSpsStd` is an array of structures representing H.264 sequence parameter sets. Each StdVideoH264SequenceParameterSet entry must have a unique H.264 SPS ID.

- `ppsStdCount` is the number of PPS provided in `pPpsStd`. Its value must be less than or equal to the value of `maxPpsStdCount`.

- `pPpsStd` is an array of structures representing H.264 picture parameter sets. Each StdVideoH264PictureParameterSet entry must have a unique H.264 SPS-PPS ID pair.

## Description

Valid Usage

- VUID-VkVideoDecodeH264SessionParametersAddInfoEXT-spsStdCount-04822
  The values of `spsStdCount` and `ppsStdCount` must be less than or equal to the values of `maxSpsStdCount` and `maxPpsStdCount`, respectively.

- VUID-VkVideoDecodeH264SessionParametersAddInfoEXT-maxSpsStdCount-04823
  When the `maxSpsStdCount` number of parameters of type StdVideoH264SequenceParameterSet in the Video Session Parameters object is reached, no additional parameters of that type can be added to this object. `VK_ERROR_TOO_MANY_OBJECTS` will be returned if an attempt is made to add additional data to this object at this point.

- VUID-VkVideoDecodeH264SessionParametersAddInfoEXT-maxPpsStdCount-04824
  When the `maxPpsStdCount` number of parameters of type StdVideoH264PictureParameterSet in the Video Session Parameters object is reached, no additional parameters of that type can be added to this object. `VK_ERROR_TOO_MANY_OBJECTS` will be returned if an attempt is made to add additional data to this object at this point.

- VUID-VkVideoDecodeH264SessionParametersAddInfoEXT-None-04825
  Each entry to be added must have a unique, to the rest of the parameter array entries and the existing parameters in the Video Session Parameters Object that is being updated, SPS-PPS IDs.

- VUID-VkVideoDecodeH264SessionParametersAddInfoEXT-None-04826
  Parameter entries that already exist in Video Session Parameters object with a particular SPS-PPS IDs cannot be replaced nor updated.

- VUID-VkVideoDecodeH264SessionParametersAddInfoEXT-None-04827
  When creating a new object using a Video Session Parameters as a template, the array’s parameters with the same SPS-PPS IDs as the ones from the template take precedence.

- VUID-VkVideoDecodeH264SessionParametersAddInfoEXT-None-04828
  SPS/PPS parameters must comply with the limits specified in VkVideoSessionCreateInfoKHR during Video Session creation.

Valid Usage (Implicit)

- VUID-VkVideoDecodeH264SessionParametersAddInfoEXT-sType-sType
  `sType` must be `VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT`

- VUID-VkVideoDecodeH264SessionParametersAddInfoEXT-pSpsStd-parameter
  If `pSpsStd` is not `NULL`, `pSpsStd` must be a valid pointer to an array of `spsStdCount` `StdVideoH264SequenceParameterSet` values

- VUID-VkVideoDecodeH264SessionParametersAddInfoEXT-pPpsStd-parameter
  If `pPpsStd` is not `NULL`, `pPpsStd` must be a valid pointer to an array of `ppsStdCount` `StdVideoH264PictureParameterSet` values

- VUID-VkVideoDecodeH264SessionParametersAddInfoEXT-spsStdCount-arraylength
  `spsStdCount` must be greater than `0`

- VUID-VkVideoDecodeH264SessionParametersAddInfoEXT-ppsStdCount-arraylength
  `ppsStdCount` must be greater than `0`

## See Also

VkStructureType, VkVideoDecodeH264SessionParametersCreateInfoEXT

## 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.

## Copyright

Copyright 2014-2021 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0