C Specification
The codec operations are defined with the VkVideoCodecOperationFlagBitsKHR enum:
// Provided by VK_KHR_video_queue
typedef enum VkVideoCodecOperationFlagBitsKHR {
VK_VIDEO_CODEC_OPERATION_NONE_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_NONE_KHR
indicates no support for any video codec operations. -
VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_EXT
specifies support for H.264 video decode operations. -
VK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_EXT
specifies support for H.265 video decode operations. -
VK_VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_EXT
specifies support for H.264 video encode operations. -
VK_VIDEO_CODEC_OPERATION_ENCODE_H265_BIT_EXT
specifies support for H.265 video encode operations.
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.