MFNominalRange Enumeration

Specifies whether 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 _MFNominalRange
{
    MFNominalRange_Unknown = 0,
    MFNominalRange_Normal = 1,
    MFNominalRange_Wide = 2,
    MFNominalRange_0_255 = 1,
    MFNominalRange_16_235 = 2,
    MFNominalRange_48_208 = 3,
    MFNominalRange_64_127 = 4,
    MFNominalRange_Last = (MFNominalRange_64_127+1),
    MFNominalRange_ForceDWORD = 0x7fffffff
} MFNominalRange;  

Constants

Constant Description
MFNominalRange_Unknown Unknown nominal range.
MFNominalRange_Normal Equivalent to MFNominalRange_0_255.
MFNominalRange_Wide Equivalent to MFNominalRange_16_235.
MFNominalRange_0_255 The normalized range [0…1] maps to [0…255] for 8-bit samples or [0…1023] for 10-bit samples.
MFNominalRange_16_235 The normalized range [0…1] maps to [16…235] for 8-bit samples or [64…940] for 10-bit samples.
MFNominalRange_48_208 The normalized range [0..1] maps to [48…208] for 8-bit samples or [64…940] for 10-bit samples.
MFNominalRange_64_127 The normalized range [0..1] maps to [64…127] for 8-bit samples or [256…508] for 10-bit samples. This range is used in the xRGB color space.
Note Requires Windows 7 or later.
MFNominalRange_Last The last item in the range.
MFNominalRange_ForceDWORD Forces the range to end at a DWORD boundary.

Remarks

This enumeration is used with the MF_MT_VIDEO_NOMINAL_RANGE attribute.

For more information about these values, see the remarks for the DXVA2_NominalRange enumeration, which is the DirectX Video Acceleration (DXVA) equivalent of this enumeration.

Requirements

Header: Declared in mfobjects.h.