summaryrefslogtreecommitdiff
path: root/src/colour_conversion.cc
AgeCommit message (Collapse)Author
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.