X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fmodified_gamma_transfer_function.h;h=0427dd6170e4de18410c4c265762c21e463cc3c3;hb=refs%2Fheads%2Ftidy-eq-options;hp=b38a16b0c824352a3043227533d5a6cd6237690a;hpb=d39880eef211a296fa8ef4712cdef5945d08527c;p=libdcp.git diff --git a/src/modified_gamma_transfer_function.h b/src/modified_gamma_transfer_function.h index b38a16b0..0427dd61 100644 --- a/src/modified_gamma_transfer_function.h +++ b/src/modified_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,14 +31,18 @@ files in the program, then also delete it here. */ + /** @file src/modified_gamma_transfer_function.h - * @brief ModifiedGammaTransferFunction class. + * @brief ModifiedGammaTransferFunction class */ + #include "transfer_function.h" + namespace dcp { + /** A transfer function which for an input x gives a linear output y where * * y = x / B for x <= threshold @@ -70,10 +74,10 @@ public: return _B; } - bool about_equal (std::shared_ptr, double epsilon) const; + bool about_equal (std::shared_ptr, 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 _power; @@ -82,4 +86,5 @@ private: double _B; }; + }