Lines Matching refs:image
103 *image; in ReadTIMImage() local
151 image=AcquireImage(image_info,exception); in ReadTIMImage()
152 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadTIMImage()
155 image=DestroyImageList(image); in ReadTIMImage()
161 tim_info.id=ReadBlobLSBLong(image); in ReadTIMImage()
169 tim_info.flag=ReadBlobLSBLong(image); in ReadTIMImage()
180 image->depth=8; in ReadTIMImage()
189 (void)ReadBlobLSBLong(image); in ReadTIMImage()
190 (void)ReadBlobLSBShort(image); in ReadTIMImage()
191 (void)ReadBlobLSBShort(image); in ReadTIMImage()
192 width=ReadBlobLSBShort(image); in ReadTIMImage()
193 height=ReadBlobLSBShort(image); in ReadTIMImage()
194 image->columns=width; in ReadTIMImage()
195 image->rows=height; in ReadTIMImage()
196 if (AcquireImageColormap(image,pixel_mode == 1 ? 256UL : 16UL,exception) == MagickFalse) in ReadTIMImage()
198 tim_colormap=(unsigned char *) AcquireQuantumMemory(image->colors, in ReadTIMImage()
202 count=ReadBlob(image,2*image->colors,tim_colormap); in ReadTIMImage()
203 if (count != (ssize_t) (2*image->colors)) in ReadTIMImage()
210 for (i=0; i < (ssize_t) image->colors; i++) in ReadTIMImage()
214 image->colormap[i].blue=ScaleCharToQuantum( in ReadTIMImage()
216 image->colormap[i].green=ScaleCharToQuantum( in ReadTIMImage()
218 image->colormap[i].red=ScaleCharToQuantum( in ReadTIMImage()
224 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadTIMImage()
229 (void) ReadBlobLSBLong(image); in ReadTIMImage()
230 (void) ReadBlobLSBShort(image); in ReadTIMImage()
231 (void) ReadBlobLSBShort(image); in ReadTIMImage()
232 width=ReadBlobLSBShort(image); in ReadTIMImage()
233 height=ReadBlobLSBShort(image); in ReadTIMImage()
235 if (image_size > GetBlobSize(image)) in ReadTIMImage()
239 image->columns=width; in ReadTIMImage()
240 image->rows=height; in ReadTIMImage()
241 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadTIMImage()
243 return(DestroyImageList(image)); in ReadTIMImage()
244 status=ResetImagePixels(image,exception); in ReadTIMImage()
246 return(DestroyImageList(image)); in ReadTIMImage()
251 count=ReadBlob(image,image_size,tim_pixels); in ReadTIMImage()
267 for (y=(ssize_t) image->rows-1; y >= 0; y--) in ReadTIMImage()
269 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in ReadTIMImage()
273 for (x=0; x < ((ssize_t) image->columns-1); x+=2) in ReadTIMImage()
275 SetPixelIndex(image,(*p) & 0x0f,q); in ReadTIMImage()
276 q+=GetPixelChannels(image); in ReadTIMImage()
277 SetPixelIndex(image,(*p >> 4) & 0x0f,q); in ReadTIMImage()
279 q+=GetPixelChannels(image); in ReadTIMImage()
281 if ((image->columns % 2) != 0) in ReadTIMImage()
283 SetPixelIndex(image,(*p >> 4) & 0x0f,q); in ReadTIMImage()
285 q+=GetPixelChannels(image); in ReadTIMImage()
287 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadTIMImage()
289 if (image->previous == (Image *) NULL) in ReadTIMImage()
291 status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, in ReadTIMImage()
292 image->rows); in ReadTIMImage()
304 for (y=(ssize_t) image->rows-1; y >= 0; y--) in ReadTIMImage()
306 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in ReadTIMImage()
310 for (x=0; x < (ssize_t) image->columns; x++) in ReadTIMImage()
312 SetPixelIndex(image,*p++,q); in ReadTIMImage()
313 q+=GetPixelChannels(image); in ReadTIMImage()
315 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadTIMImage()
317 if (image->previous == (Image *) NULL) in ReadTIMImage()
319 status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, in ReadTIMImage()
320 image->rows); in ReadTIMImage()
332 for (y=(ssize_t) image->rows-1; y >= 0; y--) in ReadTIMImage()
335 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in ReadTIMImage()
338 for (x=0; x < (ssize_t) image->columns; x++) in ReadTIMImage()
342 SetPixelBlue(image,ScaleCharToQuantum(ScaleColor5to8( in ReadTIMImage()
344 SetPixelGreen(image,ScaleCharToQuantum(ScaleColor5to8( in ReadTIMImage()
346 SetPixelRed(image,ScaleCharToQuantum(ScaleColor5to8( in ReadTIMImage()
348 q+=GetPixelChannels(image); in ReadTIMImage()
350 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadTIMImage()
352 if (image->previous == (Image *) NULL) in ReadTIMImage()
354 status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, in ReadTIMImage()
355 image->rows); in ReadTIMImage()
367 for (y=(ssize_t) image->rows-1; y >= 0; y--) in ReadTIMImage()
370 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in ReadTIMImage()
373 for (x=0; x < (ssize_t) image->columns; x++) in ReadTIMImage()
375 SetPixelRed(image,ScaleCharToQuantum(*p++),q); in ReadTIMImage()
376 SetPixelGreen(image,ScaleCharToQuantum(*p++),q); in ReadTIMImage()
377 SetPixelBlue(image,ScaleCharToQuantum(*p++),q); in ReadTIMImage()
378 q+=GetPixelChannels(image); in ReadTIMImage()
380 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadTIMImage()
382 if (image->previous == (Image *) NULL) in ReadTIMImage()
384 status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, in ReadTIMImage()
385 image->rows); in ReadTIMImage()
398 if (image->storage_class == PseudoClass) in ReadTIMImage()
399 (void) SyncImage(image,exception); in ReadTIMImage()
401 if (EOFBlob(image) != MagickFalse) in ReadTIMImage()
404 image->filename); in ReadTIMImage()
411 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadTIMImage()
413 tim_info.id=ReadBlobLSBLong(image); in ReadTIMImage()
419 AcquireNextImage(image_info,image,exception); in ReadTIMImage()
420 if (GetNextImageInList(image) == (Image *) NULL) in ReadTIMImage()
425 image=SyncNextImageInList(image); in ReadTIMImage()
426 status=SetImageProgress(image,LoadImagesTag,TellBlob(image), in ReadTIMImage()
427 GetBlobSize(image)); in ReadTIMImage()
432 (void) CloseBlob(image); in ReadTIMImage()
434 return(DestroyImageList(image)); in ReadTIMImage()
435 return(GetFirstImageInList(image)); in ReadTIMImage()