openjpeg-cdist bump again.
[libdcp.git] / src / gamma_lut.h
index 3fefdfd2b4a87d761c4933b3fae5ed56e5af24b0..76a63ccfe8444665a644df6ec18a7bc23d79e548 100644 (file)
@@ -27,7 +27,7 @@ namespace dcp {
 class GammaLUT
 {
 public:
-       GammaLUT (int bit_depth, float gamma);
+       GammaLUT (int bit_depth, float gamma, bool linearised);
 
        ~GammaLUT () {
                delete[] _lut;
@@ -45,12 +45,17 @@ public:
                return _gamma;
        }
 
+       bool linearised () const {
+               return _linearised;
+       }
+
        static LUTCache<GammaLUT> cache;
        
 private:
        float* _lut;
        int _bit_depth;
        float _gamma;
+       bool _linearised;
 };
 
 }