summaryrefslogtreecommitdiff
path: root/src/transfer_function.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-02 19:46:21 +0200
committerCarl Hetherington <cth@carlh.net>2020-06-02 19:46:21 +0200
commit0e910402791b27e082946d99e8f7bc333ab680a9 (patch)
treeeab9ba0606120caec5d8c4bc4468eb63067b458c /src/transfer_function.h
parente2b0092be00ebcb129a7f75230f76f52901b07b1 (diff)
Add lut_float to TransferFunction.
Diffstat (limited to 'src/transfer_function.h')
-rw-r--r--src/transfer_function.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transfer_function.h b/src/transfer_function.h
index 9d35b281..e497ae8a 100644
--- a/src/transfer_function.h
+++ b/src/transfer_function.h
@@ -55,6 +55,7 @@ public:
/** @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;
+ float const * lut_float (int bit_depth, bool inverse) const;
int const * lut_int (int bit_depth, bool inverse, int multiplier) const;
virtual bool about_equal (boost::shared_ptr<const TransferFunction> other, double epsilon) const = 0;
@@ -67,6 +68,7 @@ private:
double const * lut_unlocked (int bit_depth, bool inverse) const;
mutable std::map<std::pair<int, bool>, double*> _luts;
+ mutable std::map<std::pair<int, bool>, float*> _luts_float;
struct IntDescription {
IntDescription (int bit_depth_, bool inverse_, int multipler_)