diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-29 23:40:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-29 23:40:29 +0100 |
| commit | 5769392a51631355fff96854911700b85d98eae5 (patch) | |
| tree | 8e26b30302043f850ddff6ee8b06adf9bda27732 /src | |
| parent | 93d06f01683ec7ad351db329627b02d4fb23f4fa (diff) | |
Return to DCP-o-matic v1's gamma correction for Rec 601/709.
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/colour_conversion.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/colour_conversion.cc b/src/colour_conversion.cc index 1fbed166..8c48c2e1 100644 --- a/src/colour_conversion.cc +++ b/src/colour_conversion.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington <cth@carlh.net> + Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -51,7 +51,7 @@ ColourConversion const & ColourConversion::rec601_to_xyz () { static ColourConversion* c = new ColourConversion ( - shared_ptr<const TransferFunction> (new ModifiedGammaTransferFunction (1 / 0.45, 0.081, 0.099, 4.5)), + shared_ptr<const TransferFunction> (new GammaTransferFunction (2.2)), YUV_TO_RGB_REC601, Chromaticity (0.64, 0.33), Chromaticity (0.3, 0.6), @@ -68,7 +68,7 @@ ColourConversion const & ColourConversion::rec709_to_xyz () { static ColourConversion* c = new ColourConversion ( - shared_ptr<const TransferFunction> (new ModifiedGammaTransferFunction (1 / 0.45, 0.081, 0.099, 4.5)), + shared_ptr<const TransferFunction> (new GammaTransferFunction (2.2)), YUV_TO_RGB_REC709, Chromaticity (0.64, 0.33), Chromaticity (0.3, 0.6), |
