From 41e92b9ada33c8290dee16023e21f14cb6452e00 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Fri, 5 Nov 2021 10:09:16 +0000 Subject: [PATCH] tiny arrayjoin polish --- libvips/conversion/arrayjoin.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libvips/conversion/arrayjoin.c b/libvips/conversion/arrayjoin.c index 6c73f1c8..2e80aeba 100644 --- a/libvips/conversion/arrayjoin.c +++ b/libvips/conversion/arrayjoin.c @@ -119,7 +119,7 @@ vips_arrayjoin_gen( VipsRegion *or, void *seq, return( -1 ); } - if( vips_image_is_sequential( conversion->out ) ) { + if( vips_image_is_sequential( conversion->out ) ) /* In sequential mode, we can minimise an input once our * generate point is well past the end of it. This can save a * lot of memory and file descriptors on large image arrays. @@ -132,11 +132,10 @@ vips_arrayjoin_gen( VipsRegion *or, void *seq, for( i = 0; i < n; i++ ) if( !join->minimised[i] && r->top > VIPS_RECT_BOTTOM( &join->rects[i] ) + - 512 ) { - vips_image_minimise_all( in[i] ); + 1024 ) { join->minimised[i] = TRUE; + vips_image_minimise_all( in[i] ); } - } return( 0 ); }