summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-06 00:03:59 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-17 22:31:54 +0200
commit7d4aa870201d1b4384b79148df9647274140a00d (patch)
tree6faa1c59f2e77f027cb6610ff1d18c4ae71df005
parent628ecafb65cb23104e5147cc7bf6ce7843ef2dfd (diff)
Fix YUV->RGB for Rec. 2020.v1.8.32rec2020
-rw-r--r--src/colour_conversion.cc2
-rw-r--r--src/colour_conversion.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/colour_conversion.cc b/src/colour_conversion.cc
index 84218d87..5946273e 100644
--- a/src/colour_conversion.cc
+++ b/src/colour_conversion.cc
@@ -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),
diff --git a/src/colour_conversion.h b/src/colour_conversion.h
index 83ba3ad3..8501699a 100644
--- a/src/colour_conversion.h
+++ b/src/colour_conversion.h
@@ -59,6 +59,7 @@ class TransferFunction;
enum class YUVToRGB {
REC601,
REC709,
+ REC2020,
COUNT
};