C Specification
The codec operations are defined with the VkVideoCodecOperationFlagBitsKHR enum:
// Provided by VK_KHR_video_queue
typedef enum VkVideoCodecOperationFlagBitsKHR {
VK_VIDEO_CODEC_OPERATION_INVALID_BIT_KHR = 0,
#ifdef VK_ENABLE_BETA_EXTENSIONS
// Provided by VK_EXT_video_encode_h264
VK_VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_EXT = 0x00010000,
#endif
#ifdef VK_ENABLE_BETA_EXTENSIONS
// Provided by VK_EXT_video_encode_h265
VK_VIDEO_CODEC_OPERATION_ENCODE_H265_BIT_EXT = 0x00020000,
#endif
#ifdef VK_ENABLE_BETA_EXTENSIONS
// Provided by VK_EXT_video_decode_h264
VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_EXT = 0x00000001,
#endif
#ifdef VK_ENABLE_BETA_EXTENSIONS
// Provided by VK_EXT_video_decode_h265
VK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_EXT = 0x00000002,
#endif
} VkVideoCodecOperationFlagBitsKHR;
Description
Each decode or encode codec-specific extension extends this enumeration with the appropriate bit corresponding to the extension’s codec operation:
-
VK_VIDEO_CODEC_OPERATION_INVALID_BIT_KHR
- No video operations are supported for this queue family. -
VK_VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_EXT
- H.264 video encode operations are supported by this queue family. -
VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_EXT
- H.264 video decode operations are supported by this queue family. -
VK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_EXT
- H.265 video decode operations are supported by this queue family.
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.