C Specification

The VkVideoEncodeH264SessionParametersAddInfoEXT structure is defined as:

// Provided by VK_EXT_video_encode_h264
typedef struct VkVideoEncodeH264SessionParametersAddInfoEXT {
    VkStructureType                            sType;
    const void*                                pNext;
    uint32_t                                   stdSPSCount;
    const StdVideoH264SequenceParameterSet*    pStdSPSs;
    uint32_t                                   stdPPSCount;
    const StdVideoH264PictureParameterSet*     pStdPPSs;
} VkVideoEncodeH264SessionParametersAddInfoEXT;

Members

  • sType is a VkStructureType value identifying this structure.

  • pNext is NULL or a pointer to a structure extending this structure.

  • stdSPSCount is the number of SPS elements in the pStdSPSs. Its value must be less than or equal to the value of maxStdSPSCount.

  • pStdSPSs is a pointer to an array of StdVideoH264SequenceParameterSet structures representing H.264 sequence parameter sets. Each element of the array must have a unique H.264 SPS ID.

  • stdPPSCount is the number of PPS provided in pStdPPSs. Its value must be less than or equal to the value of maxStdPPSCount.

  • pStdPPSs is a pointer to an array of StdVideoH264PictureParameterSet structures representing H.264 picture parameter sets. Each element of the array must have a unique H.264 SPS-PPS ID pair.

Description

Valid Usage
  • VUID-VkVideoEncodeH264SessionParametersAddInfoEXT-stdSPSCount-04837
    The values of stdSPSCount and stdPPSCount must be less than or equal to the values of maxStdSPSCount and maxStdPPSCount, respectively

  • VUID-VkVideoEncodeH264SessionParametersAddInfoEXT-maxStdSPSCount-04838
    When the maxStdSPSCount 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-maxStdPPSCount-04839
    When the maxStdPPSCount 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

Valid Usage (Implicit)
  • VUID-VkVideoEncodeH264SessionParametersAddInfoEXT-sType-sType
    sType must be VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT

  • VUID-VkVideoEncodeH264SessionParametersAddInfoEXT-pStdSPSs-parameter
    If pStdSPSs is not NULL, pStdSPSs must be a valid pointer to an array of stdSPSCount StdVideoH264SequenceParameterSet values

  • VUID-VkVideoEncodeH264SessionParametersAddInfoEXT-pStdPPSs-parameter
    If pStdPPSs is not NULL, pStdPPSs must be a valid pointer to an array of stdPPSCount StdVideoH264PictureParameterSet values

  • VUID-VkVideoEncodeH264SessionParametersAddInfoEXT-stdSPSCount-arraylength
    stdSPSCount must be greater than 0

  • VUID-VkVideoEncodeH264SessionParametersAddInfoEXT-stdPPSCount-arraylength
    stdPPSCount must be greater than 0

See Also

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 2014-2023 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0