summaryrefslogtreecommitdiff
path: root/src/transfer_function.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-05-05 20:31:26 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-05 21:09:40 +0200
commitad7244de981a7dd0b9b4f8f3d62d4704f1968012 (patch)
tree2d5818563e35585b3a45d42b2a7ffd51584592fc /src/transfer_function.cc
parentf755fd20c0c026128e23a165e3b524a275d6f803 (diff)
Use std::vector for LUTs.
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);