summaryrefslogtreecommitdiff
path: root/src/transfer_function.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/transfer_function.cc')
-rw-r--r--src/transfer_function.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transfer_function.cc b/src/transfer_function.cc
index 00968e2f..237f6844 100644
--- a/src/transfer_function.cc
+++ b/src/transfer_function.cc
@@ -62,15 +62,15 @@ TransferFunction::~TransferFunction ()
double const *
-TransferFunction::lut (int bit_depth, bool inverse) const
+TransferFunction::lut (std::string name, double from, double to, int bit_depth, bool inverse) const
{
boost::mutex::scoped_lock lm (_mutex);
- auto i = _luts.find (make_pair (bit_depth, inverse));
+ auto i = _luts.find (name);
if (i != _luts.end ()) {
return i->second;
}
- _luts[make_pair(bit_depth, inverse)] = make_lut (bit_depth, inverse);
- return _luts[make_pair(bit_depth, inverse)];
+ _luts[name] = make_lut (from, to, bit_depth, inverse);
+ return _luts[name];
}