diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-24 20:24:10 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-24 20:24:10 +0000 |
| commit | 1c4257eacfe62f30f3e08edfe049a954cd7b43a3 (patch) | |
| tree | 570756f5b1dfff52052d99e0f1619e57ad9fc3ad /src | |
| parent | 2effb3dcb769838f5cc44c749bff8fdbcd90d218 (diff) | |
Try removing the DCI companding from the xyz->rgb conversion.
Diffstat (limited to 'src')
| -rw-r--r-- | src/util.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc index a6d65374..d5565245 100644 --- a/src/util.cc +++ b/src/util.cc @@ -242,11 +242,13 @@ libdcp::xyz_to_rgb (opj_image_t* xyz_frame, shared_ptr<const GammaLUT> lut_in, s s.x = lut_in->lut()[*xyz_x++]; s.y = lut_in->lut()[*xyz_y++]; s.z = lut_in->lut()[*xyz_z++]; - + +#if 0 /* DCI companding */ s.x /= dci_coefficient; s.y /= dci_coefficient; s.z /= dci_coefficient; +#endif /* XYZ to RGB */ d.r = ((s.x * colour_matrix[0][0]) + (s.y * colour_matrix[0][1]) + (s.z * colour_matrix[0][2])); |
