Add Rec 601 RGB->XYZ matrix from Dennis Couzin.
authorCarl Hetherington <cth@carlh.net>
Sun, 12 Apr 2015 21:02:40 +0000 (22:02 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 12 Apr 2015 21:02:40 +0000 (22:02 +0100)
src/colour_matrix.cc
src/colour_matrix.h

index 732acc8c86e5beda927ebf65ca80cdd36bf60f97..af39377d011fac8f9f3fc3065f5e558d0dc0164d 100644 (file)
@@ -29,6 +29,13 @@ double const libdcp::colour_matrix::xyz_to_rgb[3][3] = {
        {  0.0556300804018974, -0.203976958990097, 1.05697154998779 }
 };
 
+/* From Dennis Couzin via email */
+double const libdcp::colour_matrix::rec601_to_xyz[3][3] = {
+       { 0.3935276, 0.3652562, 0.1916771 },
+       { 0.2123800, 0.7010562, 0.0865638 },
+       { 0.0187394, 0.1119333, 0.9583854 }
+};
+
 /* These are the same, but kept as two separate variables for backwards compatibility;
    the confusion is fixed in the 1.0 branch.
 */
index 615e8b38d63ef278ab99b8b55c836d18631ab8b1..a42c8dfffd698337e3633ff8b217b7a1403ca97d 100644 (file)
@@ -23,6 +23,7 @@ namespace colour_matrix {
 
 extern double const xyz_to_rgb[3][3];
 extern double const srgb_to_xyz[3][3];
+extern double const rec601_to_xyz[3][3];
 extern double const rec709_to_xyz[3][3];
 
 }