diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-12 22:37:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-12 22:37:08 +0100 |
| commit | 749011eb81eeb8f0fbe74055c005b61cc8b1fb9a (patch) | |
| tree | fa637fdbbae050dc840396bce9d6c00cb219d485 /src/lut.h | |
| parent | 414c44166031003b29d1b0b2fd2c9748a63260b4 (diff) | |
Support rgb -> xyz encoding.
Diffstat (limited to 'src/lut.h')
| -rw-r--r-- | src/lut.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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; }; |
