In-line run of subs_in_out so that it gets the environment more easily.
[libdcp.git] / src / gamma_transfer_function.h
index 7f25c8edce9e6778913d0574713cce7f1955d451..79804ad652afd8b966315dcd2797db9e54049d75 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/gamma_transfer_function.h
- *  @brief GammaTransferFunction class.
+ *  @brief GammaTransferFunction class
  */
 
+
 #include "transfer_function.h"
 
+
 namespace dcp {
 
-/** A description of a gamma function of the f(x) = x^g where
- *  g is the gamma.
+
+/** @class GammaTransferFunction
+ *  @brief A description of a gamma function of the f(x) = x^g where g is the gamma
  */
 class GammaTransferFunction : public TransferFunction
 {
@@ -51,13 +55,14 @@ public:
                return _gamma;
        }
 
-       bool about_equal (boost::shared_ptr<const TransferFunction> other, double epsilon) const;
+       bool about_equal (std::shared_ptr<const TransferFunction> other, double epsilon) const override;
 
 protected:
-       double * make_lut (int bit_depth, bool inverse) const;
+       std::vector<double> make_double_lut(double from, double to, int bit_depth, bool inverse) const override;
 
 private:
        double _gamma;
 };
 
+
 }