VkVideoEncodeRgbChromaOffsetFlagBitsVALVE(3)

Name

VkVideoEncodeRgbChromaOffsetFlagBitsVALVE - Position of downsampled chroma samples for encode RGB conversion

C Specification

The model-converted values are chroma subsampled and quantized, according to the chromaSubsampling, lumaBitDepth and chromaBitDepth values specified by the bound video session.

The VkVideoEncodeRgbChromaOffsetFlagBitsVALVE enum defines the location of downsampled chroma component samples relative to the luma samples for video encode R′G′B′ conversion, and is defined as:

// Provided by VK_VALVE_video_encode_rgb_conversion
typedef enum VkVideoEncodeRgbChromaOffsetFlagBitsVALVE {
    VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_COSITED_EVEN_BIT_VALVE = 0x00000001,
    VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_MIDPOINT_BIT_VALVE = 0x00000002,
} VkVideoEncodeRgbChromaOffsetFlagBitsVALVE;

Description

The output location of downsampled chroma components are specified by the xChromaOffset and yChromaOffset values of the VkVideoEncodeSessionRgbConversionCreateInfoVALVE structure:

Chroma subsampling is described in more detail in the Chroma Reconstruction section.

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.