From dca526405ea6233bbc6694397b5c7dec7f9a78d9 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 25 May 2021 14:06:47 +0100 Subject: [PATCH] revise old comment --- libvips/conversion/zoom.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/libvips/conversion/zoom.c b/libvips/conversion/zoom.c index e5576f04..368f5cd9 100644 --- a/libvips/conversion/zoom.c +++ b/libvips/conversion/zoom.c @@ -52,20 +52,9 @@ */ -/* - * TODO: - * Test for pixel size and use memcpy() on individual pixels once they reach - * sizes of the order of tens of bytes. char-wise copy is quicker than - * memcpy() for smaller pixels. - * - * Also, I haven't tested it but int-wise copying may be faster still, as - * long as alignment permits it. - * - * tcv. 2006-09-01 - */ - -/* Turn on ADDR() range checks. -#define DEBUG 1 +/* +#define DEBUG +#define DEBUG_VERBOSE */ #ifdef HAVE_CONFIG_H @@ -254,6 +243,11 @@ vips_zoom_gen( VipsRegion *or, void *seq, void *a, void *b, gboolean *stop ) int left, right, top, bottom; int width, height; +#ifdef DEBUG_VERBOSE + printf( "vips_zoom_gen: left=%d, top=%d, width=%d, height=%d\n", + r->left, r->top, r->width, r->height ); +#endif /*DEBUG_VERBOSE*/ + /* Area of input we need. We have to round out, as we may have * part-pixels all around the edges. */