summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2018-01-22 16:48:33 +0000
committerPaul Gardiner <paul.gardiner@artifex.com>2018-02-02 12:36:13 +0000
commit8ac8d47f25b2868d464be71ed3b9ed04b71cb524 (patch)
treed4acf63922f608b0710127ed98e8406824090eca /include/mupdf/fitz
parent37e3d2aac1a3493171b28aa5c7344833aa5a8303 (diff)
downloadmupdf-8ac8d47f25b2868d464be71ed3b9ed04b71cb524.tar.xz
Generalise the null filter to handle more than a single range.
This is needed to simplify the way the bytes for hashing are passed to pkcs7 functions.
Diffstat (limited to 'include/mupdf/fitz')
-rw-r--r--include/mupdf/fitz/filter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mupdf/fitz/filter.h b/include/mupdf/fitz/filter.h
index dd3c295b..782c4d80 100644
--- a/include/mupdf/fitz/filter.h
+++ b/include/mupdf/fitz/filter.h
@@ -9,7 +9,14 @@
typedef struct fz_jbig2_globals_s fz_jbig2_globals;
+typedef struct
+{
+ int64_t offset;
+ int len;
+} fz_range;
+
fz_stream *fz_open_copy(fz_context *ctx, fz_stream *chain);
+fz_stream *fz_open_null_n(fz_context *ctx, fz_stream *chain, fz_range *ranges, int nranges);
fz_stream *fz_open_null(fz_context *ctx, fz_stream *chain, int len, int64_t offset);
fz_stream *fz_open_concat(fz_context *ctx, int max, int pad);
void fz_concat_push_drop(fz_context *ctx, fz_stream *concat, fz_stream *chain); /* Ownership of chain is passed in */