eAVEncVideoColorNominalRange enumeration (codecapi.h)
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
Specifies the nominal range for a video source. This enumeration is used with the AVEncVideoInputChromaSubsampling and AVEncVideoOutputChromaSubsampling properties.
The nominal range describes how luma components normalized to a range of [0..1] map to 8-bit or 10-bit samples. The mapping determines whether the color data includes headroom and toeroom. Headroom allows for values beyond 1.0 white ("whiter than white"), and toeroom allows for values below reference 0.0 black ("blacker than black").
Syntax
typedef enum eAVEncVideoColorNominalRange {
eAVEncVideoColorNominalRange_SameAsSource = 0,
eAVEncVideoColorNominalRange_0_255 = 1,
eAVEncVideoColorNominalRange_16_235 = 2,
eAVEncVideoColorNominalRange_48_208 = 3
} ;
Constants
eAVEncVideoColorNominalRange_SameAsSource Value: 0 Use the same nominal range as the input video. This flag applies to the AVEncVideoOutputChromaSubsampling property only. |
eAVEncVideoColorNominalRange_0_255 Value: 1 The normalized range [0..1] maps to [0...255] for 8-bit samples, or [0..1023] for 10-bit samples. |
eAVEncVideoColorNominalRange_16_235 Value: 2 The normalized range [0..1] maps to [16...235] for 8-bit samples, or [64..940] for 10-bit samples. |
eAVEncVideoColorNominalRange_48_208 Value: 3 The normalized range [0..1] maps to [48...208] for 8-bit samples. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
Header | codecapi.h |