X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fgamma_transfer_function.h;h=79804ad652afd8b966315dcd2797db9e54049d75;hb=3d53fb23efa153e10c37071a4ecac48b74c2dbd6;hp=7f25c8edce9e6778913d0574713cce7f1955d451;hpb=d927e9b913606f4fc982885c7582ecaf0e3c5a1a;p=libdcp.git diff --git a/src/gamma_transfer_function.h b/src/gamma_transfer_function.h index 7f25c8ed..79804ad6 100644 --- a/src/gamma_transfer_function.h +++ b/src/gamma_transfer_function.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2014 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of libdcp. @@ -31,16 +31,20 @@ 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 other, double epsilon) const; + bool about_equal (std::shared_ptr other, double epsilon) const override; protected: - double * make_lut (int bit_depth, bool inverse) const; + std::vector make_double_lut(double from, double to, int bit_depth, bool inverse) const override; private: double _gamma; }; + }