Enum

VkChromaLocation

Position of downsampled chroma samples

The VkChromaLocation enum defines the location of downsampled chroma component samples relative to the luma samples, and is defined as:

typedef enum VkChromaLocation {
    VK_CHROMA_LOCATION_COSITED_EVEN = 0,
    VK_CHROMA_LOCATION_MIDPOINT = 1,
} VkChromaLocation;

or the equivalent

#define VkChromaLocationKHR VkChromaLocation
  • VK_CHROMA_LOCATION_COSITED_EVEN specifies that downsampled chroma samples are aligned with luma samples with even coordinates.
  • VK_CHROMA_LOCATION_MIDPOINT specifies that downsampled chroma samples are located half way between each even luma sample and the nearest higher odd luma sample.