diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-21 19:24:44 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-12-14 20:36:25 +0100 |
commit | 5ad76a1961559904bbb9312d92dd15c3ed0c67b5 (patch) | |
tree | 296cc04bdc281244c3f00e9a243696de2d32f67e /include | |
parent | da0dfab07a3e5f0eb80dac5cc32bba8cc5d82473 (diff) | |
download | mupdf-5ad76a1961559904bbb9312d92dd15c3ed0c67b5.tar.xz |
Create a pixmap color converter.
This is in preparation for moving fz_convert_pixmap() out of colorspace.c.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/pixmap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mupdf/fitz/pixmap.h b/include/mupdf/fitz/pixmap.h index 7a972b62..90b876b6 100644 --- a/include/mupdf/fitz/pixmap.h +++ b/include/mupdf/fitz/pixmap.h @@ -346,6 +346,12 @@ void fz_decode_indexed_tile(fz_context *ctx, fz_pixmap *pix, const float *decode void fz_unpack_tile(fz_context *ctx, fz_pixmap *dst, unsigned char * restrict src, int n, int depth, size_t stride, int scale); /* + fz_lookup_pixmap_converter: Color convert a pixmap. +*/ +typedef void (fz_pixmap_converter)(fz_context *ctx, fz_pixmap *dp, fz_pixmap *sp); +fz_pixmap_converter *fz_lookup_pixmap_converter(fz_context *ctx, fz_colorspace *ds, fz_colorspace *ss); + +/* fz_md5_pixmap: Return the md5 digest for a pixmap */ void fz_md5_pixmap(fz_context *ctx, fz_pixmap *pixmap, unsigned char digest[16]); |