if ((image_info->ping != MagickFalse) && (image_info->number_scenes != 0))
if (image->scene >= (image_info->scene+image_info->number_scenes-1))
break;
- status=SetImageExtent(image,image->columns,image->rows,exception);
- if (status == MagickFalse)
- return(DestroyImageList(image));
/*
Read image data.
*/
ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
bytes_per_line=width*2;
width=(width*16)/bits_per_pixel;
+ image->columns=width;
+ image->rows=height;
+ status=SetImageExtent(image,image->columns,image->rows,exception);
+ if (status == MagickFalse)
+ return(DestroyImageList(image));
tim_pixels=(unsigned char *) AcquireQuantumMemory(image_size,
sizeof(*tim_pixels));
if (tim_pixels == (unsigned char *) NULL)
tim_pixels=(unsigned char *) RelinquishMagickMemory(tim_pixels);
ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
}
- /*
- Initialize image structure.
- */
- image->columns=width;
- image->rows=height;
/*
Convert TIM raster image to pixel packets.
*/
entry=AcquireMagickInfo("TIM","TIM","PSX TIM");
entry->decoder=(DecodeImageHandler *) ReadTIMImage;
- entry->flags|=CoderDecoderSeekableStreamFlag;
(void) RegisterMagickInfo(entry);
return(MagickImageCoderSignature);
}