Enum
VkVideoEncodeRgbChromaOffsetFlagBitsVALVE
Position of downsampled chroma samples for encode RGB conversion
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:
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;
pub struct VideoEncodeRgbChromaOffsetFlagBitsVALVE(u32);
impl VideoEncodeRgbChromaOffsetFlagBitsVALVE {
pub const COSITED_EVEN: Self = 0x00000001;
pub const MIDPOINT: Self = 0x00000002;
}
VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_COSITED_EVEN_BIT_VALVEspecifies that downsampled chroma samples are aligned with luma samples with even coordinates.VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_MIDPOINT_BIT_VALVEspecifies 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.
Type
Enum