From 969c9c28c87e83f4e3fcb7b52a921773d363511f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 5 May 2022 17:38:48 +0200 Subject: Use two LUTs. --- src/transfer_function.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/transfer_function.h') diff --git a/src/transfer_function.h b/src/transfer_function.h index a52011ec..5b591901 100644 --- a/src/transfer_function.h +++ b/src/transfer_function.h @@ -63,16 +63,16 @@ public: virtual ~TransferFunction (); /** @return A look-up table (of size 2^bit_depth) whose values range from 0 to 1 */ - double const * lut (int bit_depth, bool inverse) const; + double const * lut (std::string name, double from, double to, int bit_depth, bool inverse) const; virtual bool about_equal (std::shared_ptr other, double epsilon) const = 0; protected: /** Make a LUT and return an array allocated by new */ - virtual double * make_lut (int bit_depth, bool inverse) const = 0; + virtual double * make_lut (double from, double to, int bit_depth, bool inverse) const = 0; private: - mutable std::map, double*> _luts; + mutable std::map _luts; /** mutex to protect _luts */ mutable boost::mutex _mutex; }; -- cgit v1.2.3