YUV-RGB data range conversions

If you want to convert from RGB or YUV inputs to YUV or RGB outputs, the expected behavior depends on the input data range:

InputInputInputInputOutputOutputOutputOutputOperation
dataformatRGBnominalRGBnominalformatdata
rangerangerangerangerangerange
0-255YUVN/A2N/A2YUV0-255None
16-235YUVN/A1N/A1YUV16-235None
16-235YUVN/A1N/A2YUV0-255Scale
0-255YUVN/A2N/A1YUV16-235Scale
0-255RGB0N/AN/A1YUV16-235RGBtoYUV
0-255RGB0N/AN/A2YUV0-255RGBtoYUV
16-235YUVN/A10N/ARGB0-255YUVtoRGB
0-255YUVN/A20N/ARGB0-255YUVtoRGB

 

In this case the "nominal range" is the constant value from the DXVAHDDDI_NOMINAL_RANGE enumeration.

See YUV format ranges in Windows 8.1 for definitions of YUV format ranges.

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft