better tiled tiff tilecache on write
This commit is contained in:
parent
037f6cd162
commit
fcc790f6c0
@ -1385,15 +1385,16 @@ make_tiff_write( VipsImage *im, const char *filename,
|
|||||||
else
|
else
|
||||||
tw->tls = VIPS_IMAGE_SIZEOF_PEL( im ) * tw->tilew;
|
tw->tls = VIPS_IMAGE_SIZEOF_PEL( im ) * tw->tilew;
|
||||||
|
|
||||||
/* If we will be writing tiles, we need to cache tileh pixels of the
|
/* If we will be writing tiles, we need to cache tileh lines of the
|
||||||
* input, since we say we're sequential.
|
* input, since we say we're sequential.
|
||||||
*/
|
*/
|
||||||
if( tw->tile ) {
|
if( tw->tile ) {
|
||||||
if( vips_tilecache( tw->im, &tw->cache,
|
if( vips_tilecache( tw->im, &tw->cache,
|
||||||
"tile_width", tw->im->Xsize,
|
"tile_width", tw->im->Xsize,
|
||||||
"tile_height", tw->tileh,
|
"tile_height", 1,
|
||||||
"max_tiles", 1,
|
"max_tiles", 2 * tw->tileh,
|
||||||
NULL ) )
|
"threaded", TRUE,
|
||||||
|
NULL ) )
|
||||||
return( NULL );
|
return( NULL );
|
||||||
|
|
||||||
tw->im = tw->cache;
|
tw->im = tw->cache;
|
||||||
|
Loading…
Reference in New Issue
Block a user