diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-10-17 14:04:38 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-03-22 14:58:01 +0100 |
commit | f11c41bd07e0015cf144f50e3a3ccdbd3844f8a1 (patch) | |
tree | f447dd836e869f048d2a6ce34219aed1ffb976e9 /include/mupdf/fitz | |
parent | 7198221904de877d9b28fb906f850c7b05750477 (diff) | |
download | mupdf-f11c41bd07e0015cf144f50e3a3ccdbd3844f8a1.tar.xz |
Add fz_output encoding filters.
Diffstat (limited to 'include/mupdf/fitz')
-rw-r--r-- | include/mupdf/fitz/output.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/mupdf/fitz/output.h b/include/mupdf/fitz/output.h index e9e13c8e..c3fede3e 100644 --- a/include/mupdf/fitz/output.h +++ b/include/mupdf/fitz/output.h @@ -295,4 +295,23 @@ char *fz_tempfilename(fz_context *ctx, const char *base, const char *hint); */ void fz_save_buffer(fz_context *ctx, fz_buffer *buf, const char *filename); +/* + Compression and other filtering outputs. + + These outputs write encoded data to another output. Create a filter + output with the destination, write to the filter, then drop it when + you're done. These can also be chained together, for example to write + ASCII Hex encoded, Deflate compressed, and RC4 encrypted data to a + buffer output. + + Output streams don't use reference counting, so make sure to drop all + of the filters in the reverse order of creation so that data is flushed + properly. +*/ +fz_output *fz_new_asciihex_output(fz_context *ctx, fz_output *chain); +fz_output *fz_new_ascii85_output(fz_context *ctx, fz_output *chain); +fz_output *fz_new_rle_output(fz_context *ctx, fz_output *chain); +fz_output *fz_new_arc4_output(fz_context *ctx, fz_output *chain, unsigned char *key, size_t keylen); +fz_output *fz_new_deflate_output(fz_context *ctx, fz_output *chain, int effort, int raw); + #endif |