Fix minor infringement of XML wrt CPL reel order.
[libdcp.git] / src / lut.h
index 8363e6a411ff29c8714f15a5b25be05a216bd558..ad2914671dcdc9d8a53c75ae71eff220d62f3f6f 100644 (file)
--- a/src/lut.h
+++ b/src/lut.h
 #define LIBDCP_LUT_H
 
 #include <cmath>
+#include <boost/utility.hpp>
 
 namespace libdcp {
 
-template<typename T>
-class LUT
+class LUT : boost::noncopyable
 {
 public:
        LUT(int bit_depth, float gamma)
@@ -33,14 +33,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 +53,7 @@ public:
        }
 
 protected:
-       T* _lut;
+       float* _lut;
        int _bit_depth;
        float _gamma;
 };