summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-03-26 21:29:30 +0000
committerCarl Hetherington <cth@carlh.net>2013-03-26 21:29:30 +0000
commit6407924747622d6785ecfed24c35db355ca38032 (patch)
tree926ee9f17d74d355cac655b4699a2d5f43f8fb1f /src
parentab3163255b9713fc40a73fcfc3753b62ee084b8d (diff)
Reinstate linearisation of low-end of XYZ->RGB transform.
Diffstat (limited to 'src')
-rw-r--r--src/xyz_srgb_lut.cc4
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);
}