From 88074516976927dbb436888c47ff25ef53578a0d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 18 Nov 2004 07:26:25 +0100 Subject: image bit depths 2 and 4 --- tree/colorspace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tree/colorspace.c') diff --git a/tree/colorspace.c b/tree/colorspace.c index 2a3e8e87..799011f3 100644 --- a/tree/colorspace.c +++ b/tree/colorspace.c @@ -61,12 +61,12 @@ fz_stdconvpixmap(fz_colorspace *srcs, fz_pixmap *src, fz_colorspace *dsts, fz_pi unsigned char *s = src->samples; unsigned char *d = dst->samples; + printf("convert pixmap from %s to %s\n", srcs->name, dsts->name); + assert(src->w == dst->w && src->h == dst->h); assert(src->n == srcs->n + 1); assert(dst->n == dsts->n + 1); - printf("convert pixmap from %s to %s\n", srcs->name, dsts->name); - for (y = 0; y < src->h; y++) { for (x = 0; x < src->w; x++) -- cgit v1.2.3