X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fgamma_transfer_function.h;h=e7294000f2214060202ab3a17febd8d21df0cc4f;hb=0573dd642350e16ffdb82887cc3cdc4f1822f320;hp=f1a1c13b2d1734a2a08e63ff738645045d332824;hpb=d39880eef211a296fa8ef4712cdef5945d08527c;p=libdcp.git diff --git a/src/gamma_transfer_function.h b/src/gamma_transfer_function.h index f1a1c13b..e7294000 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 (std::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_lut (double from, double to, int bit_depth, bool inverse) const override; private: double _gamma; }; + }