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.cc19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/transfer_function.cc b/src/transfer_function.cc
index 00968e2f..dd3512ec 100644
--- a/src/transfer_function.cc
+++ b/src/transfer_function.cc
@@ -41,27 +41,16 @@
#include <cmath>
-using std::pow;
+using std::make_pair;
using std::map;
using std::pair;
-using std::make_pair;
+using std::pow;
using std::shared_ptr;
+using std::vector;
using namespace dcp;
-TransferFunction::~TransferFunction ()
-{
- boost::mutex::scoped_lock lm (_mutex);
-
- for (auto const& i: _luts) {
- delete[] i.second;
- }
-
- _luts.clear ();
-}
-
-
-double const *
+vector<double> const&
TransferFunction::lut (int bit_depth, bool inverse) const
{
boost::mutex::scoped_lock lm (_mutex);