From da06d455a31a37abff4a2a82c12540d2e1266ca0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 12 Apr 2015 22:02:40 +0100 Subject: Add Rec 601 RGB->XYZ matrix from Dennis Couzin. --- src/colour_matrix.cc | 7 +++++++ src/colour_matrix.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/colour_matrix.cc b/src/colour_matrix.cc index 732acc8c..af39377d 100644 --- a/src/colour_matrix.cc +++ b/src/colour_matrix.cc @@ -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. */ diff --git a/src/colour_matrix.h b/src/colour_matrix.h index 615e8b38..a42c8dff 100644 --- a/src/colour_matrix.h +++ b/src/colour_matrix.h @@ -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]; } -- cgit v1.2.3