summaryrefslogtreecommitdiff
path: root/test/rgb_xyz_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-04-22 13:58:16 +0100
committerCarl Hetherington <cth@carlh.net>2015-04-22 13:58:16 +0100
commit86bfdeb77f55b379302a65b22f57fc0583ec6b3c (patch)
tree66ed8eb0e4855c520b1b1a0d9dae052a0ad5bfe6 /test/rgb_xyz_test.cc
parent3c88524c9a2418d6d2d8b8eac29737c95b9a7411 (diff)
Express colour conversions as chromaticities and adjust so that
everything is specified as something_to_xyz and then you can get an inverse LUT if you want one.
Diffstat (limited to 'test/rgb_xyz_test.cc')
-rw-r--r--test/rgb_xyz_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rgb_xyz_test.cc b/test/rgb_xyz_test.cc
index 26411870..0b427893 100644
--- a/test/rgb_xyz_test.cc
+++ b/test/rgb_xyz_test.cc
@@ -134,7 +134,9 @@ BOOST_AUTO_TEST_CASE (xyz_rgb_range_test)
scoped_array<uint8_t> rgb (new uint8_t[2 * 2 * 6]);
notes.clear ();
- dcp::xyz_to_rgb (xyz, dcp::ColourConversion::xyz_to_srgb (), rgb.get(), 2 * 6, boost::optional<dcp::NoteHandler> (boost::bind (&note_handler, _1, _2)));
+ dcp::xyz_to_rgb (
+ xyz, dcp::ColourConversion::srgb_to_xyz (), rgb.get(), 2 * 6, boost::optional<dcp::NoteHandler> (boost::bind (&note_handler, _1, _2))
+ );
/* The 6 out-of-range samples should have been noted */
BOOST_REQUIRE_EQUAL (notes.size(), 6);