Fixes for writing 3D CPLs.
[libdcp.git] / src / lut.h
index 8363e6a411ff29c8714f15a5b25be05a216bd558..3efcaaeddd66e443d8e27d51172603a49a6784eb 100644 (file)
--- 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, _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;
 };