summaryrefslogtreecommitdiff
path: root/src/xyz_srgb_lut.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/xyz_srgb_lut.cc')
-rw-r--r--src/xyz_srgb_lut.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/xyz_srgb_lut.cc b/src/xyz_srgb_lut.cc
deleted file mode 100644
index 3d207195..00000000
--- a/src/xyz_srgb_lut.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <iostream>
-#include <cmath>
-#include "xyz_srgb_lut.h"
-
-using namespace libdcp;
-
-LUTCache<XYZsRGBLUT> XYZsRGBLUT::cache;
-
-XYZsRGBLUT::XYZsRGBLUT(int bits, float gamma)
- : LUT<int> (bits, gamma)
-{
- int const bit_length = pow(2, bits);
-
- for (int i = 0; i < bit_length; ++i) {
- float v = float(i) / (bit_length - 1);
- if (v < (0.04045 / 12.92)) {
- v *= 12.92;
- } else {
- v = (1.055 * pow (v, (1 / gamma))) - 0.055;
- }
-
- _lut[i] = int(v * 255);
- }
-}