diff options
Diffstat (limited to 'src/transfer_function.h')
| -rw-r--r-- | src/transfer_function.h | 6 |
1 files changed, 3 insertions, 3 deletions
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<const TransferFunction> 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<std::pair<int, bool>, double*> _luts; + mutable std::map<std::string, double*> _luts; /** mutex to protect _luts */ mutable boost::mutex _mutex; }; |
