X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flut.h;h=3efcaaeddd66e443d8e27d51172603a49a6784eb;hb=ad3d9f8bbe623f87e440bd6a5a12520361a7661f;hp=8363e6a411ff29c8714f15a5b25be05a216bd558;hpb=da0878773b192f52694fe5719fe08bc4fe271c63;p=libdcp.git diff --git a/src/lut.h b/src/lut.h index 8363e6a4..3efcaaed 100644 --- a/src/lut.h +++ b/src/lut.h @@ -24,7 +24,6 @@ namespace libdcp { -template 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; };