From ee972fbfa1093fe2e8641dc450e1c20347df2b04 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 24 May 2016 13:46:28 +0100 Subject: Avoid unnecessary alphas when decompressing images from streams. --- include/mupdf/fitz/image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mupdf/fitz/image.h b/include/mupdf/fitz/image.h index 255337ee..9a8d5309 100644 --- a/include/mupdf/fitz/image.h +++ b/include/mupdf/fitz/image.h @@ -72,7 +72,7 @@ fz_image *fz_new_image_from_buffer(fz_context *ctx, fz_buffer *buffer); fz_image *fz_new_image_from_file(fz_context *ctx, const char *path); void fz_drop_image_imp(fz_context *ctx, fz_storable *image); fz_pixmap *fz_decomp_image_from_stream(fz_context *ctx, fz_stream *stm, fz_compressed_image *image, fz_irect *subarea, int indexed, int l2factor); -fz_pixmap *fz_expand_indexed_pixmap(fz_context *ctx, fz_pixmap *src); +fz_pixmap *fz_expand_indexed_pixmap(fz_context *ctx, const fz_pixmap *src, int alpha); size_t fz_image_size(fz_context *ctx, fz_image *im); struct fz_image_s -- cgit v1.2.3