diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-08-29 18:36:14 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-08-30 16:25:59 +0100 |
commit | 8f248600b2834fb121db4990aa756c40da8ddd0e (patch) | |
tree | 5c7e8fe4743637a907a23788f94dd34bb1e84d99 /include/mupdf/fitz/output-png.h | |
parent | 3d8bdbcf696cb9d9ab5ec385bc4e5756adf63757 (diff) | |
download | mupdf-8f248600b2834fb121db4990aa756c40da8ddd0e.tar.xz |
Add simple banding to mudraw.
The most complex part here is to ensure that we can output various
bitmaps in bands.
Diffstat (limited to 'include/mupdf/fitz/output-png.h')
-rw-r--r-- | include/mupdf/fitz/output-png.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mupdf/fitz/output-png.h b/include/mupdf/fitz/output-png.h index 9cf63f6f..47a67c49 100644 --- a/include/mupdf/fitz/output-png.h +++ b/include/mupdf/fitz/output-png.h @@ -27,4 +27,12 @@ void fz_output_png(fz_output *out, const fz_pixmap *pixmap, int savealpha); */ fz_buffer *fz_image_as_png(fz_context *ctx, fz_image *image, int w, int h); +typedef struct fz_png_output_context_s fz_png_output_context; + +fz_png_output_context *fz_output_png_header(fz_output *out, int w, int h, int n, int savealpha); + +void fz_output_png_band(fz_output *out, int w, int h, int n, int band, int bandheight, unsigned char *samples, int savealpha, fz_png_output_context *poc); + +void fz_output_png_trailer(fz_output *out, fz_png_output_context *poc); + #endif |