diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-14 23:17:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-14 23:18:01 +0100 |
| commit | d2a71383bf9f47ac4277d8c353914cbfa6ab3a05 (patch) | |
| tree | 0b59b68c2380616522fdfc219ef7a849b73e404f | |
| parent | fd218a6052525bbad23566e9a3be8aada401e576 (diff) | |
Add P3 D60 colour space.v1.10.43
This is the same as P3 DCI except with a D60 white point (~6000K).
(0.32168, 0.33767)
| -rw-r--r-- | src/colour_conversion.cc | 17 | ||||
| -rw-r--r-- | src/colour_conversion.h | 2 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/colour_conversion.cc b/src/colour_conversion.cc index 33176d11..c09c15b7 100644 --- a/src/colour_conversion.cc +++ b/src/colour_conversion.cc @@ -137,6 +137,23 @@ ColourConversion::p3_d65_to_xyz() ColourConversion const & +ColourConversion::p3_d60_to_xyz() +{ + static auto c = new ColourConversion( + make_shared<GammaTransferFunction>(2.6), + YUVToRGB::REC709, + Chromaticity(0.68, 0.32), + Chromaticity(0.265, 0.69), + Chromaticity(0.15, 0.06), + Chromaticity(0.32168, 0.33767), + optional<Chromaticity>(), + make_shared<GammaTransferFunction>(2.6) + ); + return *c; +} + + +ColourConversion const & ColourConversion::rec1886_to_xyz() { /* According to Olivier on DCP-o-matic bug #832, Rec. 1886 is Rec. 709 with diff --git a/src/colour_conversion.h b/src/colour_conversion.h index 73c94cb1..de76b4e8 100644 --- a/src/colour_conversion.h +++ b/src/colour_conversion.h @@ -167,6 +167,8 @@ public: static ColourConversion const & p3_dci_to_xyz(); /** P3 with D65 white point */ static ColourConversion const & p3_d65_to_xyz(); + /** P3 with D60 white point */ + static ColourConversion const & p3_d60_to_xyz(); static ColourConversion const & rec1886_to_xyz(); static ColourConversion const & rec2020_to_xyz(); static ColourConversion const & s_gamut3_to_xyz(); |
