diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-05-05 20:31:26 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-05 21:09:40 +0200 |
| commit | ad7244de981a7dd0b9b4f8f3d62d4704f1968012 (patch) | |
| tree | 2d5818563e35585b3a45d42b2a7ffd51584592fc /src/transfer_function.cc | |
| parent | f755fd20c0c026128e23a165e3b524a275d6f803 (diff) | |
Use std::vector for LUTs.
Diffstat (limited to 'src/transfer_function.cc')
| -rw-r--r-- | src/transfer_function.cc | 19 |
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); |
