C Specification
When vkGetPhysicalDeviceVideoCapabilitiesKHR is called to query the
capabilities with parameter videoCodecOperation specified as
VK_VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_EXT, an instance of
VkVideoEncodeH264CapabilitiesEXT structure can be chained to
VkVideoCapabilitiesKHR to retrieve H.264 extension specific
capabilities.
The VkVideoEncodeH264CapabilitiesEXT structure is defined as:
// Provided by VK_EXT_video_encode_h264
typedef struct VkVideoEncodeH264CapabilitiesEXT {
VkStructureType sType;
const void* pNext;
VkVideoEncodeH264CapabilitiesFlagsEXT flags;
VkVideoEncodeH264InputModeFlagsEXT inputModeFlags;
VkVideoEncodeH264OutputModeFlagsEXT outputModeFlags;
VkExtent2D minPictureSizeInMbs;
VkExtent2D maxPictureSizeInMbs;
VkExtent2D inputImageDataAlignment;
uint8_t maxNumL0ReferenceForP;
uint8_t maxNumL0ReferenceForB;
uint8_t maxNumL1Reference;
uint8_t qualityLevelCount;
VkExtensionProperties stdExtensionVersion;
} VkVideoEncodeH264CapabilitiesEXT;
Members
-
sTypeis the type of this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
flagsreports various encoding tools supported from those defined in VkVideoEncodeH264CapabilitiesFlagBitsEXT. -
inputModeFlagsreports supported command buffer input granularities/modes from those defined in VkVideoEncodeH264InputModeFlagBitsEXT. -
outputModeFlagsreports supported output (bitstream size reporting) granularities/modes from those defined in VkVideoEncodeH264OutputModeFlagBitsEXT. -
maxPictureSizeInMbsreports the maximum encoded picture width and height in Macroblocks. -
minPictureSizeInMbsreports the minimum encoded picture width and height in Macroblocks. -
inputImageDataAlignmentreports alignment of data that must be filled in the input image horizontally and vertically in pixels. Max is 16: Data must be filled up to Macroblock boundary (no extrapolation/filling is supported by implementation). Min is 1: The implementation will take care of all needed extrapolation/filling up to the next Macroblock boundary. -
maxNumL0ReferenceForPreports the maximum number of reference pictures the encoder supports as list0 references for P pictures. -
maxNumL0ReferenceForBreports the maximum number of reference pictures the encoder supports as list0 references for B pictures. Reports 0 if B pictures are not supported. -
maxNumL1Referencereports the maximum number of reference pictures the encoder supports as list1 references if B pictures are supported. Reports 0 if B pictures are not supported. -
qualityLevelCountis the number of discrete quality levels supported. -
stdExtensionVersionis the specific H.264 extension name and version supported by this implementation.
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.