From d53ab7a97c018aaa0e0adcaabcebcc72c080f724 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 29 Oct 2016 15:53:58 +0800 Subject: Let pixmap colorspace conversion create new pixmap. This moves dropping the converted pixmap into fz_convert_pixmap(), which relieves every caller from doing so. Moreover resolution, position and interpolation are kept. --- source/fitz/colorspace.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'source/fitz/colorspace.c') diff --git a/source/fitz/colorspace.c b/source/fitz/colorspace.c index 2a356020..1a32258b 100644 --- a/source/fitz/colorspace.c +++ b/source/fitz/colorspace.c @@ -1769,19 +1769,6 @@ fz_pixmap_converter *fz_lookup_pixmap_converter(fz_context *ctx, fz_colorspace * else return fz_std_conv_pixmap; } -void -fz_convert_pixmap(fz_context *ctx, fz_pixmap *dp, fz_pixmap *sp) -{ - fz_colorspace *ss = sp->colorspace; - fz_colorspace *ds = dp->colorspace; - fz_pixmap_converter *converter; - - dp->interpolate = sp->interpolate; - - converter = fz_lookup_pixmap_converter(ctx, ds, ss); - converter(ctx, dp, sp); -} - /* Convert a single color */ static void -- cgit v1.2.3