summaryrefslogtreecommitdiff
path: root/fitz/fitz-internal.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-03-19 15:19:17 +0000
committerRobin Watts <robin.watts@artifex.com>2012-03-19 15:19:17 +0000
commitd11a38dbd783b746d7a35f03fecfb3cbca65527e (patch)
tree968ced2794aac77e45b1b1cc2567f2ee4f57f838 /fitz/fitz-internal.h
parent3598f93db06f029ce4851cc0b43bdfa9ec182a2d (diff)
downloadmupdf-d11a38dbd783b746d7a35f03fecfb3cbca65527e.tar.xz
Bug 692746; avoid 'double palettes' on jpx images.
It seems that JPX images can be supplied in indexed format, with both a palette internal to the jpx stream, and a palette in the PDF. Googling seems to suggest that the internal palette should be ignored in this case, and the external palette applied. Fortunately, since OpenJPEG-1.5 there is a flag that can be used to tell OpenJPEG not to decode palettes. We update the code here to spot that there is an external palette, and to set this flag.
Diffstat (limited to 'fitz/fitz-internal.h')
-rw-r--r--fitz/fitz-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h
index eda9736a..ae64b89d 100644
--- a/fitz/fitz-internal.h
+++ b/fitz/fitz-internal.h
@@ -639,7 +639,7 @@ struct fz_image_s
fz_pixmap *(*get_pixmap)(fz_context *, fz_image *, int w, int h);
};
-fz_pixmap *fz_load_jpx(fz_context *ctx, unsigned char *data, int size, fz_colorspace *cs);
+fz_pixmap *fz_load_jpx(fz_context *ctx, unsigned char *data, int size, fz_colorspace *cs, int indexed);
fz_pixmap *fz_load_jpeg(fz_context *doc, unsigned char *data, int size);
fz_pixmap *fz_load_png(fz_context *doc, unsigned char *data, int size);
fz_pixmap *fz_load_tiff(fz_context *doc, unsigned char *data, int size);