Fix YUV->RGB for Rec. 2020. rec2020 v1.8.32
authorCarl Hetherington <cth@carlh.net>
Wed, 5 Oct 2022 22:03:59 +0000 (00:03 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 17 Oct 2022 20:31:54 +0000 (22:31 +0200)
src/colour_conversion.cc
src/colour_conversion.h

index 84218d8704ab237ff9bb48549e9be67aa7669b2e..5946273e7ca5f67f9b8bc2c5e95167beeaa033cc 100644 (file)
@@ -142,7 +142,7 @@ ColourConversion::rec2020_to_xyz ()
 {
        static auto c = new ColourConversion (
                make_shared<GammaTransferFunction>(2.4),
-               YUVToRGB::REC709,
+               YUVToRGB::REC2020,
                Chromaticity (0.708, 0.292),
                Chromaticity (0.170, 0.797),
                Chromaticity (0.131, 0.046),
index 83ba3ad32ce9f750a7314318b1eb10f8df2cb020..8501699a4af67ff5ffb1f91d148a13ddaa99de85 100644 (file)
@@ -59,6 +59,7 @@ class TransferFunction;
 enum class YUVToRGB {
        REC601,
        REC709,
+       REC2020,
        COUNT
 };