48 using std::shared_ptr;
52 TransferFunction::~TransferFunction ()
54 boost::mutex::scoped_lock lm (
_mutex);
56 for (
auto const& i: _luts) {
67 boost::mutex::scoped_lock lm (
_mutex);
69 auto i = _luts.find (make_pair (bit_depth, inverse));
70 if (i != _luts.end ()) {
74 _luts[make_pair(bit_depth, inverse)] =
make_lut (bit_depth, inverse);
75 return _luts[make_pair(bit_depth, inverse)];
double const * lut(int bit_depth, bool inverse) const
virtual double * make_lut(int bit_depth, bool inverse) const =0
Namespace for everything in libdcp.