Enum
VkVideoEncodeRgbRangeCompressionFlagBitsVALVE
Range compression operation to perform for encode rgb conversion
The video encode R′G′B′ range compression to be applied to color
component values of the encode input picture before
video coding is defined by the rgbRange member of the
VkVideoEncodeSessionRgbConversionCreateInfoVALVE structure.
The VkVideoEncodeRgbRangeCompressionFlagBitsVALVE enum describes whether color components are encoded using the full range of numerical values or whether values are reserved for headroom and foot room:
typedef enum VkVideoEncodeRgbRangeCompressionFlagBitsVALVE {
VK_VIDEO_ENCODE_RGB_RANGE_COMPRESSION_FULL_RANGE_BIT_VALVE = 0x00000001,
VK_VIDEO_ENCODE_RGB_RANGE_COMPRESSION_NARROW_RANGE_BIT_VALVE = 0x00000002,
} VkVideoEncodeRgbRangeCompressionFlagBitsVALVE;
pub struct VideoEncodeRgbRangeCompressionFlagBitsVALVE(u32);
impl VideoEncodeRgbRangeCompressionFlagBitsVALVE {
pub const FULL_RANGE: Self = 0x00000001;
pub const NARROW_RANGE: Self = 0x00000002;
}
VK_VIDEO_ENCODE_RGB_RANGE_COMPRESSION_FULL_RANGE_BIT_VALVEspecifies the following transformations are applied:These formulae correspond to thefull rangeencoding in theQuantization schemeschapter of the Khronos Data Format Specification.Should any future amendments be made to the ITU specifications from which these equations are derived, the formulae used by Vulkan may also be updated to maintain parity.VK_VIDEO_ENCODE_RGB_RANGE_COMPRESSION_NARROW_RANGE_BIT_VALVEspecifies the following transformations are applied:These formulae correspond to thenarrow rangeencoding in theQuantization schemeschapter of the Khronos Data Format Specification.Unlike sampler Y′CBCR range expansion, no precision guarantees are made for video encode R′G′B′ range compression.- n is the bit-depth of the components in the bound video session’s
pictureFormat.
Video encode R′G′B′ range compression transformations have the inverse
definition of the sampler
Y′CBCR range expansion transformations.
Type
Enum