/*
- 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
{
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;
};
+
}