VkVideoEncodeH264SessionParametersAddInfoEXT(3)

# VkVideoEncodeH264SessionParametersAddInfoEXT(3) Manual Page

## Name

VkVideoEncodeH264SessionParametersAddInfoEXT - Structure specifies H.264 encoder parameter set info

Loading… please wait.

## C Specification

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

## Members

Valid Usage

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

- VUID-VkVideoEncodeH264SessionParametersAddInfoEXT-maxSpsStdCount-04838
  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 the 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-VkVideoEncodeH264SessionParametersAddInfoEXT-maxPpsStdCount-04839
  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 the 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-VkVideoEncodeH264SessionParametersAddInfoEXT-None-04840
  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-VkVideoEncodeH264SessionParametersAddInfoEXT-None-04841
  Parameter entries that already exist in Video Session Parameters object with a particular SPS-PPS IDs cannot be replaced nor updated.

- VUID-VkVideoEncodeH264SessionParametersAddInfoEXT-None-04842
  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-VkVideoEncodeH264SessionParametersAddInfoEXT-None-04843
  SPS/PPS parameters must comply with the limits specified in VkVideoSessionCreateInfoKHR during Video Session creation.

## Description

Valid Usage (Implicit)

- VUID-VkVideoEncodeH264SessionParametersAddInfoEXT-sType-sType
  `sType` must be `VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT`

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

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

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

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

## See Also

VkStructureType, VkVideoEncodeH264SessionParametersCreateInfoEXT

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