summaryrefslogtreecommitdiff
path: root/src/colour_conversion.cc
AgeCommit message (Collapse)Author
2025-12-14Add P3 D60 colour space.v1.10.43Carl Hetherington
This is the same as P3 DCI except with a D60 white point (~6000K). (0.32168, 0.33767)
2025-12-14Add P3 D65 colour space.Carl Hetherington
This is the same as P3 DCI except with a D65 white point (~6500K). (0.3127, 0.3290)
2025-12-14Rename p3_to_xyz() -> p3_dci_to_xyz().Carl Hetherington
This is the one we've had for ages, with the ~6300K (0.314, 0.351) white point.
2025-05-04White space: colour_conversion.{cc,h}Carl Hetherington
2022-10-17Fix YUV->RGB for Rec. 2020.v1.8.32rec2020Carl Hetherington
2021-01-24Tidying.Carl Hetherington
2021-01-21Some more use of enum class.Carl Hetherington
2021-01-08std::shared_ptrCarl Hetherington
2017-01-10Remove unused code.Carl Hetherington
2016-12-14Add tentative S-Gamut3/S-Log3 colourspace support.Carl Hetherington
2016-12-14Add function for D65 white point.Carl Hetherington
2016-08-12Try non-linearised gamma of 2.4 for Rec 2020.Carl Hetherington
Some discussion of this on #892. Also influenced by discussions with Dennis (email Tue, 30 Jun 2015) on how the oft-quoted (e.g. by Wikipedia) gamma functions are camera transforms and not intended for uses like ours. Also see ITU-r BT1886 which talks about a gamma of 2.4.
2016-06-13Add OpenSSL licence exception.Carl Hetherington
2016-06-01Still more licence fixups.Carl Hetherington
2016-05-25No-op; Fix GPL address and mention libdcp by name.Carl Hetherington
2016-05-24Add somewhat speculative Rec 1886 and Rec 2020 colour conversions.Carl Hetherington
2015-06-29Return to DCP-o-matic v1's gamma correction for Rec 601/709.Carl Hetherington
Dennis points out that `there definitely *is* no right answer for BT.709 gamma' and `your formula [the DCP-o-matic v2 gamma function before this commmit] is what I'm calling the inverse of the BT.709 camera transfer function. The EBU would not have bothered to write: "Therefore the monitor gamma is not, and never has been, the inverse of the camera gamma." if no-one ever thought of using it'. At least the 2.2 gamma of v1 should not surprise anybody.
2015-06-24No-op: whitespace.Carl Hetherington
2015-04-22Add p3_to_xyz colour conversion preset.Carl Hetherington
2015-04-22Fix crash in previous.Carl Hetherington
2015-04-22Express colour conversions as chromaticities and adjust so thatCarl Hetherington
everything is specified as something_to_xyz and then you can get an inverse LUT if you want one.
2015-02-17Use 2.222222 for the power in the modified Rec. 709 input gammaCarl Hetherington
correction, as per fnordware DCIconverter.
2015-02-17Rec 709 -> XYZ and sRGB -> XYZ matrices are, it seems, the same;Carl Hetherington
I'm getting this from fnordware DCIconverter. https://github.com/fnordware/DCIconverter/blob/master/src/DCIconverter.cpp
2015-02-17Typo causing wrong matrix to be used for Rec. 709.Carl Hetherington
2015-01-04Try to fix static initialisation order problems.Carl Hetherington
2015-01-03Various fixes to XYZ/RGB transforms.Carl Hetherington
2014-12-28Change colourspace handling round a bit:1.0-colour-cleanupCarl Hetherington
- move the essence of GammaLUT into TransferFunction and handle different bit depths more neatly - add ColourConversion to describe input gamma correction, colour transformation and then output gamma correction in one class. - add default ColourConversions for sRGB->XYZ, Rec709->XYZ and XYZ->RGB.