diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-26 21:29:30 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-26 21:29:30 +0000 |
| commit | 6407924747622d6785ecfed24c35db355ca38032 (patch) | |
| tree | 926ee9f17d74d355cac655b4699a2d5f43f8fb1f /src | |
| parent | ab3163255b9713fc40a73fcfc3753b62ee084b8d (diff) | |
Reinstate linearisation of low-end of XYZ->RGB transform.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xyz_srgb_lut.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/xyz_srgb_lut.cc b/src/xyz_srgb_lut.cc index eb443a59..3d207195 100644 --- a/src/xyz_srgb_lut.cc +++ b/src/xyz_srgb_lut.cc @@ -13,15 +13,11 @@ XYZsRGBLUT::XYZsRGBLUT(int bits, float gamma) for (int i = 0; i < bit_length; ++i) { float v = float(i) / (bit_length - 1); -#if 0 if (v < (0.04045 / 12.92)) { v *= 12.92; } else { -#endif v = (1.055 * pow (v, (1 / gamma))) - 0.055; -#if 0 } -#endif _lut[i] = int(v * 255); } |
