diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-06-26 18:45:26 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-06-29 12:15:18 +0100 |
commit | 2bb213c70d42e398ef7ea3b6551c8fbb865cf3bd (patch) | |
tree | 450c7583241f2236c82fb8ae5bedbb1c0d664ec3 /source/pdf/pdf-stream.c | |
parent | 051b4932219bed310e17505b2e73029d371a18ce (diff) | |
download | mupdf-2bb213c70d42e398ef7ea3b6551c8fbb865cf3bd.tar.xz |
Further tweaks to fz_image handling.
Ensure that subsampling and caching happen in the generic image
code, not in the specific.
Previously, the subsampling happened only for images that were
decoded from streams. Images that were loaded direct were never
subsampled and hence were always cached at full size. After this
change both classes of image are correctly subsampled, and
the subsampled version kept in the cache.
This produces various image diffs in the cluster, none of which
are noticable to the naked eye.
Diffstat (limited to 'source/pdf/pdf-stream.c')
-rw-r--r-- | source/pdf/pdf-stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-stream.c b/source/pdf/pdf-stream.c index 32440266..4636a1a7 100644 --- a/source/pdf/pdf-stream.c +++ b/source/pdf/pdf-stream.c @@ -349,7 +349,7 @@ pdf_load_compressed_inline_image(fz_context *ctx, pdf_document *doc, pdf_obj *di stm = fz_open_leecher(ctx, stm, bc->buffer); stm = fz_open_image_decomp_stream(ctx, stm, &bc->params, &dummy_l2factor); - image->tile = fz_decomp_image_from_stream(ctx, stm, image, indexed, 0, 0); + image->tile = fz_decomp_image_from_stream(ctx, stm, image, indexed, 0); } fz_catch(ctx) { |