C Specification
A video profile is defined by VkVideoProfileKHR structure as:
// Provided by VK_KHR_video_queue
typedef struct VkVideoProfileKHR {
VkStructureType sType;
const void* pNext;
VkVideoCodecOperationFlagBitsKHR videoCodecOperation;
VkVideoChromaSubsamplingFlagsKHR chromaSubsampling;
VkVideoComponentBitDepthFlagsKHR lumaBitDepth;
VkVideoComponentBitDepthFlagsKHR chromaBitDepth;
} VkVideoProfileKHR;
Members
-
sType
is the type of this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
videoCodecOperation
is a VkVideoCodecOperationFlagBitsKHR value specifying a video codec operation. -
chromaSubsampling
is a bitmask of VkVideoChromaSubsamplingFlagBitsKHR specifying video chroma subsampling information. -
lumaBitDepth
is a bitmask of VkVideoComponentBitDepthFlagBitsKHR specifying video luma bit depth information. -
chromaBitDepth
is a bitmask of VkVideoComponentBitDepthFlagBitsKHR specifying video chroma bit depth information.
Description
When a VkVideoProfileKHR
structure is specified through the
pProfiles
member of an VkVideoProfilesKHR structure in the
pNext
chain of the input parameter of a query command such as
vkGetPhysicalDeviceVideoCapabilitiesKHR,
vkGetPhysicalDeviceVideoFormatPropertiesKHR, or
vkGetPhysicalDeviceImageFormatProperties2, the following error codes
indicate specific causes of the failure of the query operation:
-
VK_ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR
The requested video picture layout (e.g. through thepictureLayout
member of a VkVideoDecodeH264ProfileEXT structure included in thepNext
chain ofVkVideoProfileKHR
) is not supported. -
VK_ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR
A video profile operation specified byvideoCodecOperation
is not supported. -
VK_ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED_KHR
Format parameters specified bychromaSubsampling
,lumaBitDepth
, orchromaBitDepth
are not supported. -
VK_ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR
Codec-specific parameters corresponding to thevideoCodecOperation
are not provided through thepNext
chain ofVkVideoProfileKHR
, or the specified parameters are not supported.
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.