summaryrefslogtreecommitdiff
path: root/src/gamma_lut.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-03-13 16:46:50 +0000
committerCarl Hetherington <cth@carlh.net>2013-03-13 16:46:50 +0000
commit45625f3116a09d3c8415a54bf8d19fdbb3a3aa9b (patch)
tree3619eb2ba2d9e754f9122b367f4eeffe56239bf9 /src/gamma_lut.h
parent6e5411a943ef9b3f23cfb8dd9dcc1a756b55bfbe (diff)
Compute LUTs at run-time.dynamic-lut
Diffstat (limited to 'src/gamma_lut.h')
-rw-r--r--src/gamma_lut.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gamma_lut.h b/src/gamma_lut.h
new file mode 100644
index 00000000..e41cd21f
--- /dev/null
+++ b/src/gamma_lut.h
@@ -0,0 +1,13 @@
+#include "lut.h"
+#include "lut_cache.h"
+
+namespace libdcp {
+
+class GammaLUT : public LUT<float>
+{
+public:
+ GammaLUT (int bit_length, float gamma);
+ static LUTCache<GammaLUT> cache;
+};
+
+}