summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-05-23 21:01:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-05-24 09:54:36 +0200
commit4bd3b725cba43c1c2cce2120008d017ac1ebef16 (patch)
tree153eb4459ce35fa9508df6247611194f6d67521e
parentc16652e1ecf0a8cfcd50f361c199ff7598282b9c (diff)
We actually want to divide by 257 here
follow the * 257 suggestion at https://gitlab.com/libtiff/libtiff/-/merge_requests/336 I did think it looked a tiny bit different than the others Change-Id: I92306ae22d2acc485a4162160a8c0464a32591d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134844 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--external/libtiff/libtiff.16bitcielab.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/external/libtiff/libtiff.16bitcielab.patch b/external/libtiff/libtiff.16bitcielab.patch
index cecce9cd8402..968de975f641 100644
--- a/external/libtiff/libtiff.16bitcielab.patch
+++ b/external/libtiff/libtiff.16bitcielab.patch
@@ -34,9 +34,9 @@
+ for( ; h > 0; --h) {
+ for (x = w; x > 0; --x) {
+ TIFFCIELabToXYZ(img->cielab,
-+ wp[0] / 256,
-+ wp[1] / 256,
-+ wp[2] / 256,
++ (uint16_t)wp[0] / 257,
++ (int16_t)wp[1] / 256,
++ (int16_t)wp[2] / 256,
+ &X, &Y, &Z);
+ TIFFXYZToRGB(img->cielab, X, Y, Z, &r, &g, &b);
+ *cp++ = PACK(r, g, b);