diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-06-11 16:01:53 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-06-14 12:53:03 +0100 |
commit | c0759acc6e5bd8167ab4983fc51eb1212da6a216 (patch) | |
tree | b46f6a783f5e6dd8e09fc7c0ca318ac34b88fb81 /include | |
parent | 60edbbde3a384401cbefe338e55e7a5f52cad5f4 (diff) | |
download | mupdf-c0759acc6e5bd8167ab4983fc51eb1212da6a216.tar.xz |
Update TIFF LZW decode.
TIFF 5.0 uses a slightly laxer set of rules for TIFF decode.
Specifically, when we hit the maximum code, we are not required
to send a clear code immediately, but it can overrrun.
We don't bother storing codes > 12 bits, because they can never
be used. This avoids the need to extend the table.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/filter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mupdf/fitz/filter.h b/include/mupdf/fitz/filter.h index b5fcf525..3d6a21bd 100644 --- a/include/mupdf/fitz/filter.h +++ b/include/mupdf/fitz/filter.h @@ -23,7 +23,7 @@ fz_stream *fz_open_faxd(fz_context *ctx, 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); fz_stream *fz_open_flated(fz_context *ctx, fz_stream *chain, int window_bits); -fz_stream *fz_open_lzwd(fz_context *ctx, fz_stream *chain, int early_change, int min_bits, int reverse_bits); +fz_stream *fz_open_lzwd(fz_context *ctx, fz_stream *chain, int early_change, int min_bits, int reverse_bits, int old_tiff); fz_stream *fz_open_predict(fz_context *ctx, fz_stream *chain, int predictor, int columns, int colors, int bpc); fz_stream *fz_open_jbig2d(fz_context *ctx, fz_stream *chain, fz_jbig2_globals *globals); |