use VIPS_ARRAY()

This commit is contained in:
Benjamin Gilbert 2011-11-27 21:32:15 -05:00
parent 41915530a7
commit ef5d72e5af
1 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@
* - add OpenSlide properties to image metadata * - add OpenSlide properties to image metadata
* - consolidate setup into one function * - consolidate setup into one function
* - support reading arbitrary layers * - support reading arbitrary layers
* - use VIPS_ARRAY()
*/ */
/* /*
@ -150,8 +151,8 @@ fill_region( VipsRegion *out, void *seq, void *_rslide, void *unused,
uint8_t a; uint8_t a;
int x, y; int x, y;
buf = vips_malloc( NULL, out->valid.width * out->valid.height * buf = VIPS_ARRAY( NULL, out->valid.width * out->valid.height,
sizeof( *buf )); uint32_t );
openslide_read_region( rslide->osr, buf, openslide_read_region( rslide->osr, buf,
out->valid.left * rslide->downsample, out->valid.left * rslide->downsample,
out->valid.top * rslide->downsample, rslide->layer, out->valid.top * rslide->downsample, rslide->layer,