Set RGB colour matrix from Thomas' email re FH.
authorCarl Hetherington <cth@carlh.net>
Tue, 26 Mar 2013 20:22:05 +0000 (20:22 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 26 Mar 2013 20:22:05 +0000 (20:22 +0000)
src/util.cc

index 7543f8ba288db35d3d553f0443cc461ab05e90a2..2fae85611d7204ee7c54290f3b7c8409b10004bd 100644 (file)
@@ -208,18 +208,11 @@ libdcp::xyz_to_rgb (opj_image_t* xyz_frame, shared_ptr<const GammaLUT> lut_in, s
        float const dci_coefficient = 48.0 / 52.37;
 
         /* sRGB color matrix for XYZ -> RGB */
-#if 0  
-       float const colour_matrix[3][3] = {
-               { 3.240454836, -1.537138850, -0.498531547},
-               {-0.969266390,  1.876010929,  0.041556082},
-               { 0.055643420, -0.204025854,  1.057225162}
-       };
-#endif
 
        float const colour_matrix[3][3] = {
-               { 3.1338561, -1.6168667, -0.4906146 },
-               { -0.9787684, 1.9161415, 0.0334540 },
-               { 0.0719453, -0.2289914, 1.4052427 }
+               {  3.24096989631653,   -1.5373831987381,  -0.498610764741898 },
+               { -0.96924364566803,    1.87596750259399,  0.0415550582110882 },
+               {  0.0556300804018974, -0.203976958990097, 1.05697154998779 }
        };
 
        int const max_colour = pow (2, lut_out->bit_depth()) - 1;