projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2effb3d
)
Try removing the DCI companding from the xyz->rgb conversion.
author
Carl Hetherington
<cth@carlh.net>
Sun, 24 Mar 2013 20:24:10 +0000
(20:24 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 24 Mar 2013 20:24:10 +0000
(20:24 +0000)
src/util.cc
patch
|
blob
|
history
diff --git
a/src/util.cc
b/src/util.cc
index a6d65374bda63ada66e053b9aaaad3ad04ead33b..d5565245726ca43ae17483b6c9bdf1938277baf0 100644
(file)
--- 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]));