summaryrefslogtreecommitdiff
path: root/src/lut_cache.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-02-11 14:30:38 +0000
committerCarl Hetherington <cth@carlh.net>2014-02-11 14:30:38 +0000
commit7dd07caa5fbfabde5563de4ade76b7c11d68c59c (patch)
treef09accda608f459e7f7b0f09a0b69b9fa97cbc37 /src/lut_cache.h
parentabdc11acdaa8f059ad3c664b6d39a2757efaddc5 (diff)
Re-add linearised gamma LUT.
Diffstat (limited to 'src/lut_cache.h')
-rw-r--r--src/lut_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lut_cache.h b/src/lut_cache.h
index e2287775..5c75fe6a 100644
--- a/src/lut_cache.h
+++ b/src/lut_cache.h
@@ -28,7 +28,7 @@ template<class T>
class LUTCache : public boost::noncopyable
{
public:
- boost::shared_ptr<T> get (int bit_depth, float gamma)
+ boost::shared_ptr<T> get (int bit_depth, float gamma, bool linearised)
{
for (typename std::list<boost::shared_ptr<T> >::iterator i = _cache.begin(); i != _cache.end(); ++i) {
if ((*i)->bit_depth() == bit_depth && (*i)->gamma() == gamma) {
@@ -36,7 +36,7 @@ public:
}
}
- boost::shared_ptr<T> lut (new T (bit_depth, gamma));
+ boost::shared_ptr<T> lut (new T (bit_depth, gamma, linearised));
_cache.push_back (lut);
return lut;
}