diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-05-05 17:38:48 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-05 18:53:39 +0200 |
| commit | 969c9c28c87e83f4e3fcb7b52a921773d363511f (patch) | |
| tree | 361713cfbb0246b75af7442f257375c27655083b /src/transfer_function.h | |
| parent | 504955b1e8036a25b1dc196625e530808ac42e99 (diff) | |
Use two LUTs.inaccurate-gamma
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; }; |
