diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-04-12 22:02:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-04-12 22:02:40 +0100 |
| commit | da06d455a31a37abff4a2a82c12540d2e1266ca0 (patch) | |
| tree | 2c0fce24589b7e8b6a25da1e6b1788d4df839b8f | |
| parent | 900e0457fc9f647ff6947ebbef9755ed21118804 (diff) | |
Add Rec 601 RGB->XYZ matrix from Dennis Couzin.
| -rw-r--r-- | src/colour_matrix.cc | 7 | ||||
| -rw-r--r-- | src/colour_matrix.h | 1 |
2 files changed, 8 insertions, 0 deletions
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]; } |
