summaryrefslogtreecommitdiff
path: root/src/lut.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-12 22:37:08 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-12 22:37:08 +0100
commit749011eb81eeb8f0fbe74055c005b61cc8b1fb9a (patch)
treefa637fdbbae050dc840396bce9d6c00cb219d485 /src/lut.h
parent414c44166031003b29d1b0b2fd2c9748a63260b4 (diff)
Support rgb -> xyz encoding.
Diffstat (limited to 'src/lut.h')
-rw-r--r--src/lut.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lut.h b/src/lut.h
index bdb5f37f..3efcaaed 100644
--- a/src/lut.h
+++ b/src/lut.h
@@ -24,7 +24,6 @@
namespace libdcp {
-template<typename T>
class LUT
{
public:
@@ -33,14 +32,14 @@ public:
, _bit_depth (bit_depth)
, _gamma (gamma)
{
- _lut = new T[int(std::pow(2.0f, _bit_depth))];
+ _lut = new float[int(std::pow(2.0f, _bit_depth))];
}
virtual ~LUT() {
delete[] _lut;
}
- T const * lut() const {
+ float const * lut() const {
return _lut;
}
@@ -53,7 +52,7 @@ public:
}
protected:
- T* _lut;
+ float* _lut;
int _bit_depth;
float _gamma;
};