diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-27 12:01:17 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-27 12:01:17 +0000 |
| commit | 2cc2026701c9e8268ba154ec9330c5d56cbdc240 (patch) | |
| tree | 92ea2ca6ebd67eed3f5c87b30220bc5fb71dba3f /test | |
| parent | f4e360fd709a789980201ebb1162eec6fac229fe (diff) | |
Some tidying up.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lut_test.cc | 48 | ||||
| -rw-r--r-- | test/wscript | 1 |
2 files changed, 0 insertions, 49 deletions
diff --git a/test/lut_test.cc b/test/lut_test.cc deleted file mode 100644 index 32dac97a..00000000 --- a/test/lut_test.cc +++ /dev/null @@ -1,48 +0,0 @@ -/* - Copyright (C) 2013 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. - -*/ - -#include <boost/test/unit_test.hpp> -#include "opendcp_lut.h" -#include "opendcp_lut.cc" -#include "srgb_linearised_gamma_lut.h" -#include "rec709_linearised_gamma_lut.h" -#include "gamma_lut.h" - -/* Check that some of our LUTs match the ones from OpenDCP that - DVD-o-matic uses / once used. -*/ -BOOST_AUTO_TEST_CASE (lut_test) -{ - dcp::SRGBLinearisedGammaLUT lut_in_srgb (12, 2.4); - for (int i = 0; i < 4096; ++i) { - /* Hmm; 1% isn't exactly great... */ - BOOST_CHECK_CLOSE (opendcp::lut_in[0][i], lut_in_srgb.lut()[i], 1); - } - - dcp::Rec709LinearisedGammaLUT lut_in_rec709 (12, 1 / 0.45); - for (int i = 0; i < 4096; ++i) { - /* Hmm; 1% isn't exactly great... */ - BOOST_CHECK_CLOSE (opendcp::lut_in[1][i], lut_in_rec709.lut()[i], 1); - } - - dcp::GammaLUT lut_out (16, 1 / 2.6); - for (int i = 0; i < 65536; ++i) { - BOOST_CHECK_CLOSE (opendcp::lut_out[0][i], lut_out.lut()[i] * 4096, 1); - } -} diff --git a/test/wscript b/test/wscript index 0cc0e202..83232216 100644 --- a/test/wscript +++ b/test/wscript @@ -31,7 +31,6 @@ def build(bld): frame_info_test.cc kdm_key_test.cc kdm_test.cc - lut_test.cc read_dcp_test.cc recovery_test.cc round_trip_test.cc |
