From 86bfdeb77f55b379302a65b22f57fc0583ec6b3c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 22 Apr 2015 13:58:16 +0100 Subject: 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. --- test/decryption_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/decryption_test.cc') diff --git a/test/decryption_test.cc b/test/decryption_test.cc index 282e74f3..0080fe3e 100644 --- a/test/decryption_test.cc +++ b/test/decryption_test.cc @@ -50,7 +50,7 @@ get_frame (dcp::DCP const & dcp) shared_ptr xyz = j2k_frame->xyz_image(); uint8_t* argb = new uint8_t[xyz->size().width * xyz->size().height * 4]; - dcp::xyz_to_rgba (j2k_frame->xyz_image(), dcp::ColourConversion::xyz_to_srgb(), argb); + dcp::xyz_to_rgba (j2k_frame->xyz_image(), dcp::ColourConversion::srgb_to_xyz(), argb); return make_pair (argb, xyz->size ()); } -- cgit v1.2.3