diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-27 22:50:01 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-27 22:50:01 +0000 |
| commit | 04b4d9f08ee30eb4dc4e62cddc4b332c69d18ac0 (patch) | |
| tree | acdc02ea849b4b6553e073f3cce2574ee59c2403 /src/lut.h | |
| parent | 95de247288c5abfd35347d8ad5fe4d5317eb2252 (diff) | |
Remove LUT parent class.
Diffstat (limited to 'src/lut.h')
| -rw-r--r-- | src/lut.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/lut.h b/src/lut.h deleted file mode 100644 index 154541a7..00000000 --- a/src/lut.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -*/ - -#ifndef LIBDCP_LUT_H -#define LIBDCP_LUT_H - -#include <boost/utility.hpp> -#include <cmath> - -namespace dcp { - -class LUT : boost::noncopyable -{ -public: - LUT(int bit_depth, float gamma) - : _lut(0) - , _bit_depth (bit_depth) - , _gamma (gamma) - { - _lut = new float[int(std::pow(2.0f, _bit_depth))]; - } - - virtual ~LUT() { - delete[] _lut; - } - - float const * lut() const { - return _lut; - } - - int bit_depth () const { - return _bit_depth; - } - - float gamma () const { - return _gamma; - } - -protected: - float* _lut; - int _bit_depth; - float _gamma; -}; - -} - -#endif |
