From a8560c74b6b655386c4530383eebda4e7cc239c2 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 19 Nov 2012 16:37:56 +0000 Subject: Tweak image decode downscale factor internals. When calculating the factor to use for image downscales, calculate it as a shift rather than a divisor. --- fitz/fitz-internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fitz/fitz-internal.h') diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h index 043449db..528fb50a 100644 --- a/fitz/fitz-internal.h +++ b/fitz/fitz-internal.h @@ -753,7 +753,7 @@ fz_stream *fz_open_a85d(fz_stream *chain); fz_stream *fz_open_ahxd(fz_stream *chain); fz_stream *fz_open_rld(fz_stream *chain); fz_stream *fz_open_dctd(fz_stream *chain, int color_transform); -fz_stream *fz_open_resized_dctd(fz_stream *chain, int color_transform, int factor); +fz_stream *fz_open_resized_dctd(fz_stream *chain, int color_transform, int l2factor); fz_stream *fz_open_faxd(fz_stream *chain, int k, int end_of_line, int encoded_byte_align, int columns, int rows, int end_of_block, int black_is_1); @@ -845,7 +845,7 @@ typedef struct fz_compressed_buffer_s fz_compressed_buffer; unsigned int fz_compressed_buffer_size(fz_compressed_buffer *buffer); fz_stream *fz_open_compressed_buffer(fz_context *ctx, fz_compressed_buffer *); -fz_stream *fz_open_image_decomp_stream(fz_context *ctx, fz_compressed_buffer *, int *factor); +fz_stream *fz_open_image_decomp_stream(fz_context *ctx, fz_compressed_buffer *, int *l2factor); enum { -- cgit v1.2.3