diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-08-17 19:39:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-08-17 19:39:18 +0100 |
| commit | fd8cf9e28945c597d3d921bbd108a2ad89cbd857 (patch) | |
| tree | b9b08c69378c8be095d34ca4b597efc4d9627ce3 /src | |
| parent | fcdd2ab7510c41ab17959d8f75cd35bf25e356d8 (diff) | |
Use double rather than float for colour matrices.
Diffstat (limited to 'src')
| -rw-r--r-- | src/colour_matrix.cc | 6 | ||||
| -rw-r--r-- | src/colour_matrix.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/colour_matrix.cc b/src/colour_matrix.cc index 47ebf3e0..c5c5027f 100644 --- a/src/colour_matrix.cc +++ b/src/colour_matrix.cc @@ -23,19 +23,19 @@ EasyDCP player, I think. */ -float const libdcp::colour_matrix::xyz_to_rgb[3][3] = { +double const libdcp::colour_matrix::xyz_to_rgb[3][3] = { { 3.24096989631653, -1.5373831987381, -0.498610764741898 }, { -0.96924364566803, 1.87596750259399, 0.0415550582110882 }, { 0.0556300804018974, -0.203976958990097, 1.05697154998779 } }; -float const libdcp::colour_matrix::srgb_to_xyz[3][3] = { +double const libdcp::colour_matrix::srgb_to_xyz[3][3] = { {0.4124564, 0.3575761, 0.1804375}, {0.2126729, 0.7151522, 0.0721750}, {0.0193339, 0.1191920, 0.9503041} }; -float const libdcp::colour_matrix::rec709_to_xyz[3][3] = { +double const libdcp::colour_matrix::rec709_to_xyz[3][3] = { {0.4124564, 0.3575761, 0.1804375}, {0.2126729, 0.7151522, 0.0721750}, {0.0193339, 0.1191920, 0.9503041} diff --git a/src/colour_matrix.h b/src/colour_matrix.h index 13bbc821..615e8b38 100644 --- a/src/colour_matrix.h +++ b/src/colour_matrix.h @@ -21,9 +21,9 @@ namespace libdcp { namespace colour_matrix { -extern float const xyz_to_rgb[3][3]; -extern float const srgb_to_xyz[3][3]; -extern float const rec709_to_xyz[3][3]; +extern double const xyz_to_rgb[3][3]; +extern double const srgb_to_xyz[3][3]; +extern double const rec709_to_xyz[3][3]; } |
