projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aeb895
)
Fix rounding error exposed by different test random set.
author
Carl Hetherington
<cth@carlh.net>
Tue, 17 Nov 2015 21:21:30 +0000
(21:21 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 17 Nov 2015 21:21:30 +0000
(21:21 +0000)
src/rgb_xyz.cc
patch
|
blob
|
history
diff --git
a/src/rgb_xyz.cc
b/src/rgb_xyz.cc
index 23c9989797e359a5086e823e7f33b90e34848db2..78083a7da097d03bd0cce6a4682327cf116f7f26 100644
(file)
--- a/
src/rgb_xyz.cc
+++ b/
src/rgb_xyz.cc
@@
-305,9
+305,9
@@
dcp::rgb_to_xyz (
d.z = min (65535.0, d.z);
/* Out gamma LUT */
- *xyz_x++ = l
ut_out[lrint(d.x)] * 4095
;
- *xyz_y++ = l
ut_out[lrint(d.y)] * 4095
;
- *xyz_z++ = l
ut_out[lrint(d.z)] * 4095
;
+ *xyz_x++ = l
rint (lut_out[lrint(d.x)] * 4095)
;
+ *xyz_y++ = l
rint (lut_out[lrint(d.y)] * 4095)
;
+ *xyz_z++ = l
rint (lut_out[lrint(d.z)] * 4095)
;
}
}