Skip to content

d3d_shaders: generate the YUV to RGB matrices from the standard's values

Steve Lhomme requested to merge robUx4/vlc:d3d_colors into master

The Kr and Kb values are defined in the 601/709/2020 standards. The ranges for Y and U/V values in "studio" mode as well.

The BT2020 matrix is slightly different should give more accurate values.

This allows removal of hacks later in the shader to get back to the proper output levels.

Fixes #25118 (closed)

Tested with various test patterns to verify there's no regression. The BT2020 matrix is different but should give more accurate colors (mostly HDR content).

Merge request reports

Loading