From 5ad76a1961559904bbb9312d92dd15c3ed0c67b5 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Fri, 21 Oct 2016 19:24:44 +0800 Subject: Create a pixmap color converter. This is in preparation for moving fz_convert_pixmap() out of colorspace.c. --- include/mupdf/fitz/pixmap.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 @@ -345,6 +345,12 @@ void fz_decode_tile(fz_context *ctx, fz_pixmap *pix, const float *decode); void fz_decode_indexed_tile(fz_context *ctx, fz_pixmap *pix, const float *decode, int maxval); 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 */ -- cgit v1.2.3