X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fgamma_transfer_function.h;h=8402d6af23004add106a03484f50bcfcd90873e8;hb=b68a460c3ef877d95c0939b5ee02928f35e9f263;hp=1d17a7c55414f2e780baaf1b21c111ff29f61e0c;hpb=5591a50b918d2dc784a9e15688dfe24eb2b6dfcc;p=libdcp.git diff --git a/src/gamma_transfer_function.h b/src/gamma_transfer_function.h index 1d17a7c5..8402d6af 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. @@ -15,18 +15,36 @@ You should have received a copy of the GNU General Public License along with libdcp. If not, see . + + In addition, as a special exception, the copyright holders give + permission to link the code of portions of this program with the + OpenSSL library under certain conditions as described in each + individual source file, and distribute linked combinations + including the two. + + You must obey the GNU General Public License in all respects + for all of the code used other than OpenSSL. If you modify + file(s) with this exception, you may extend this exception to your + version of the file(s), but you are not obligated to do so. If you + do not wish to do so, delete this exception statement from your + version. If you delete this exception statement from all source + 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 { @@ -37,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; + double * make_lut (int bit_depth, bool inverse) const override; private: double _gamma; }; + }