Enum
VkVideoEncodeRgbModelConversionFlagBitsVALVE
Color model conversions for encode RGB conversion
The range-compressed values are converted between color models, according to
the color model conversion specified in the rgbModel member of the
VkVideoEncodeSessionRgbConversionCreateInfoVALVE structure.
VkVideoEncodeRgbModelConversionFlagBitsVALVE defines the conversion from the encode input picture's color model to the encode color model.
typedef enum VkVideoEncodeRgbModelConversionFlagBitsVALVE {
VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_RGB_IDENTITY_BIT_VALVE = 0x00000001,
VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_IDENTITY_BIT_VALVE = 0x00000002,
VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_709_BIT_VALVE = 0x00000004,
VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_601_BIT_VALVE = 0x00000008,
VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_2020_BIT_VALVE = 0x00000010,
} VkVideoEncodeRgbModelConversionFlagBitsVALVE;
pub struct VideoEncodeRgbModelConversionFlagBitsVALVE(u32);
impl VideoEncodeRgbModelConversionFlagBitsVALVE {
pub const RGB_IDENTITY: Self = 0x00000001;
pub const YCBCR_IDENTITY: Self = 0x00000002;
pub const YCBCR_709: Self = 0x00000004;
pub const YCBCR_601: Self = 0x00000008;
pub const YCBCR_2020: Self = 0x00000010;
}
VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_RGB_IDENTITY_BIT_VALVEspecifies the color components are not modified by the color model conversion since they are assumed to represent the desired color model for video coding; R′G′B′ range compression is applied to the components.VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_IDENTITY_BIT_VALVEspecifies the color components are not modified by the color model conversion are assumed to be treated as though in Y′CBCR form; video encode R′G′B′ range compression and video encode R′G′B′ chroma subsampling is also ignored.VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_709_BIT_VALVEspecifies the color components are transformed from an R′G′B′ representation to a Y′CBCR representation as described in the BT.709 Y′CBCR conversion section of the Khronos Data Format Specification.VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_601_BIT_VALVEspecifies the color components are transformed from an R′G′B′ representation to a Y′CBCR representation as described in the BT.601 Y′CBCR conversion section of the Khronos Data Format Specification.VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_2020_BIT_VALVEspecifies the color components are transformed from an R′G′B′ representation to a Y′CBCR representation as described in the BT.2020 Y′CBCR conversion section of the Khronos Data Format Specification.
Video encode R′G′B′ model conversion transformations have the inverse
definition of sampler
Y′CBCR model conversion transformations.
The video encode R′G′B′ model conversion step does not apply any
transfer function, only converting from R′G′B′ to Y′CBCR using the
primaries of the specified
rgbModel color model.Type
Enum