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;
pub struct ChromaLocation(u32);
impl ChromaLocation {
pub const COSITED_EVEN: Self = 0;
pub const MIDPOINT: Self = 1;
}
#define VkChromaLocationKHR VkChromaLocation
const ChromaLocationKHR: _ = vk::ChromaLocation;
VK_CHROMA_LOCATION_COSITED_EVENspecifies that downsampled chroma samples are aligned with luma samples with even coordinates.VK_CHROMA_LOCATION_MIDPOINTspecifies that downsampled chroma samples are located half way between each even luma sample and the nearest higher odd luma sample.
Parent
VK_VERSION_1_1Type
Enum