270
270
int alloc_size = 32 + calc_alloc(w * h, 32);
271
271
ps->image_buf = _TIFFmalloc(alloc_size * sizeof (uint32_t));
272
272
ps->image = (unsigned char*)malloc(alloc_size * sizeof(unsigned char));
277
276
if ((!ps->image)||(!ps->image_buf)) {
278
277
reportError("Problem allocating memory for image %ix%i", w, h);