make join use a bit less stack
helps us join slightly larger image arrays
This commit is contained in:
parent
a57cccbf0f
commit
a649ae111d
@ -193,14 +193,19 @@ vips_join_build( VipsObject *object )
|
|||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( vips_extract_area( t, &t2,
|
if( left != 0 ||
|
||||||
left, top, width, height, NULL ) ) {
|
top != 0 ||
|
||||||
|
width != t->Xsize ||
|
||||||
|
height != t->Ysize ) {
|
||||||
|
if( vips_extract_area( t, &t2,
|
||||||
|
left, top, width, height, NULL ) ) {
|
||||||
|
g_object_unref( t );
|
||||||
|
return( -1 );
|
||||||
|
}
|
||||||
g_object_unref( t );
|
g_object_unref( t );
|
||||||
return( -1 );
|
|
||||||
}
|
|
||||||
g_object_unref( t );
|
|
||||||
|
|
||||||
t = t2;
|
t = t2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( vips_image_write( t, conversion->out ) ) {
|
if( vips_image_write( t, conversion->out ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user