Switch to testing on Ubuntu 16.04 and 22.04.
[libdcp.git] / src / modified_gamma_transfer_function.h
index b38a16b0c824352a3043227533d5a6cd6237690a..0427dd6170e4de18410c4c265762c21e463cc3c3 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
+
 /** @file  src/modified_gamma_transfer_function.h
- *  @brief ModifiedGammaTransferFunction class.
+ *  @brief ModifiedGammaTransferFunction class
  */
 
+
 #include "transfer_function.h"
 
+
 namespace dcp {
 
+
 /** A transfer function which for an input x gives a linear output y where
  *
  *  y = x / B                      for x <= threshold
@@ -70,10 +74,10 @@ public:
                return _B;
        }
 
-       bool about_equal (std::shared_ptr<const TransferFunction>, double epsilon) const;
+       bool about_equal (std::shared_ptr<const TransferFunction>, double epsilon) const override;
 
 protected:
-       double * make_lut (int bit_depth, bool inverse) const;
+       std::vector<double> make_lut (double from, double to, int bit_depth, bool inverse) const override;
 
 private:
        double _power;
@@ -82,4 +86,5 @@ private:
        double _B;
 };
 
+
 }