Cleanup: set annotation text in make_simple().
[libdcp.git] / src / gamma_transfer_function.h
index f1a1c13b2d1734a2a08e63ff738645045d332824..e7294000f2214060202ab3a17febd8d21df0cc4f 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 (std::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_lut (double from, double to, int bit_depth, bool inverse) const override;
 
 private:
        double _gamma;
 };
 
+
 }