# VkVideoEncodeRgbChromaOffsetFlagBitsVALVE(3) Manual Page

## Name

VkVideoEncodeRgbChromaOffsetFlagBitsVALVE - Position of downsampled chroma samples for encode RGB conversion

Loading… please wait.

## 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

- `VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_COSITED_EVEN_BIT_VALVE` specifies that downsampled chroma samples are aligned with luma samples with even coordinates.

- `VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_MIDPOINT_BIT_VALVE` specifies that downsampled chroma samples are located half way between each even luma sample and the nearest higher odd luma sample.

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.

## See Also

VK_VALVE_video_encode_rgb_conversion, VkVideoEncodeRgbChromaOffsetFlagsVALVE, VkVideoEncodeSessionRgbConversionCreateInfoVALVE

## 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.

## Copyright

Copyright 2014-2025 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0