wider margin for arrayjoin minimise

This patch makes arrayjoin leave a bigger margin off the end of each
input image. This can help some loaders which have large output caches.

See https://github.com/libvips/libvips/issues/2440
This commit is contained in:
John Cupitt 2021-11-04 17:17:17 +00:00
parent 30fdc3df77
commit 778ff7fce5
1 changed files with 3 additions and 1 deletions

View File

@ -126,11 +126,13 @@ vips_arrayjoin_gen( VipsRegion *or, void *seq,
*
* minimise_all is quite expensive, so only trigger once for
* each input.
*
* We don't lock for minimised[], but it's harmless.
*/
for( i = 0; i < n; i++ )
if( !join->minimised[i] &&
r->top > VIPS_RECT_BOTTOM( &join->rects[i] ) +
256 ) {
512 ) {
vips_image_minimise_all( in[i] );
join->minimised[i] = TRUE;
}