• Home
  • Raw
  • Download

Lines Matching full:image

13 %                     Read/Write Raw RGB Image Format                         %
52 #include "MagickCore/image.h"
53 #include "MagickCore/image-private.h"
71 WriteRGBImage(const ImageInfo *,Image *,ExceptionInfo *);
84 % ReadRGBImage() reads an image of raw RGB, RGBA, or RGBO samples and returns
85 % it. It allocates the memory necessary for the new Image structure and
86 % returns a pointer to the new image.
90 % Image *ReadRGBImage(const ImageInfo *image_info,
95 % o image_info: the image info.
100 static Image *ReadRGBImage(const ImageInfo *image_info,ExceptionInfo *exception) in ReadRGBImage()
105 Image in ReadRGBImage()
107 *image; in ReadRGBImage() local
135 Open image file. in ReadRGBImage()
144 image=AcquireImage(image_info,exception); in ReadRGBImage()
145 if ((image->columns == 0) || (image->rows == 0)) in ReadRGBImage()
149 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadRGBImage()
152 image=DestroyImageList(image); in ReadRGBImage()
153 return((Image *) NULL); in ReadRGBImage()
155 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadRGBImage()
157 image->filename); in ReadRGBImage()
160 Create virtual canvas to support cropping (i.e. image.rgb[100x100+10+20]). in ReadRGBImage()
162 canvas_image=CloneImage(image,image->extract_info.width,1,MagickFalse, in ReadRGBImage()
164 if(canvas_image == (Image *) NULL) in ReadRGBImage()
178 image->alpha_trait=BlendPixelTrait; in ReadRGBImage()
184 image->alpha_trait=BlendPixelTrait; in ReadRGBImage()
189 while (image->scene < image_info->scene) in ReadRGBImage()
192 Skip to next image. in ReadRGBImage()
194 image->scene++; in ReadRGBImage()
196 for (y=0; y < (ssize_t) image->rows; y++) in ReadRGBImage()
198 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
211 Read pixels to virtual canvas image then push to image. in ReadRGBImage()
214 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadRGBImage()
216 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadRGBImage()
230 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
232 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
247 "UnexpectedEndOfFile",image->filename); in ReadRGBImage()
258 if (((y-image->extract_info.y) >= 0) && in ReadRGBImage()
259 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadRGBImage()
263 q=QueueAuthenticPixels(image,0,y-image->extract_info.y, in ReadRGBImage()
264 image->columns,1,exception); in ReadRGBImage()
267 for (x=0; x < (ssize_t) image->columns; x++) in ReadRGBImage()
269 SetPixelRed(image,GetPixelRed(canvas_image,p),q); in ReadRGBImage()
270 SetPixelGreen(image,GetPixelGreen(canvas_image,p),q); in ReadRGBImage()
271 SetPixelBlue(image,GetPixelBlue(canvas_image,p),q); in ReadRGBImage()
272 SetPixelAlpha(image,OpaqueAlpha,q); in ReadRGBImage()
273 if (image->alpha_trait != UndefinedPixelTrait) in ReadRGBImage()
274 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadRGBImage()
276 q+=GetPixelChannels(image); in ReadRGBImage()
278 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadRGBImage()
281 if (image->previous == (Image *) NULL) in ReadRGBImage()
283 status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, in ReadRGBImage()
284 image->rows); in ReadRGBImage()
288 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
311 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
313 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
315 for (i=0; i < (ssize_t) (image->alpha_trait != UndefinedPixelTrait ? 4 : 3); i++) in ReadRGBImage()
330 "UnexpectedEndOfFile",image->filename); in ReadRGBImage()
342 if (((y-image->extract_info.y) >= 0) && in ReadRGBImage()
343 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadRGBImage()
347 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadRGBImage()
348 image->columns,1,exception); in ReadRGBImage()
351 for (x=0; x < (ssize_t) image->columns; x++) in ReadRGBImage()
357 SetPixelRed(image,GetPixelRed(canvas_image,p),q); in ReadRGBImage()
362 SetPixelGreen(image,GetPixelGreen(canvas_image,p),q); in ReadRGBImage()
367 SetPixelBlue(image,GetPixelBlue(canvas_image,p),q); in ReadRGBImage()
372 SetPixelOpacity(image,GetPixelOpacity(canvas_image,p),q); in ReadRGBImage()
377 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadRGBImage()
384 q+=GetPixelChannels(image); in ReadRGBImage()
386 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadRGBImage()
389 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
391 if (image->previous == (Image *) NULL) in ReadRGBImage()
393 status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, in ReadRGBImage()
394 image->rows); in ReadRGBImage()
409 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
411 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
426 "UnexpectedEndOfFile",image->filename); in ReadRGBImage()
437 if (((y-image->extract_info.y) >= 0) && in ReadRGBImage()
438 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadRGBImage()
442 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadRGBImage()
443 image->columns,1,exception); in ReadRGBImage()
446 for (x=0; x < (ssize_t) image->columns; x++) in ReadRGBImage()
448 SetPixelRed(image,GetPixelRed(canvas_image,p),q); in ReadRGBImage()
450 q+=GetPixelChannels(image); in ReadRGBImage()
452 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadRGBImage()
455 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
457 if (image->previous == (Image *) NULL) in ReadRGBImage()
459 status=SetImageProgress(image,LoadImageTag,1,6); in ReadRGBImage()
463 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
478 "UnexpectedEndOfFile",image->filename); in ReadRGBImage()
489 if (((y-image->extract_info.y) >= 0) && in ReadRGBImage()
490 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadRGBImage()
494 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadRGBImage()
495 image->columns,1,exception); in ReadRGBImage()
498 for (x=0; x < (ssize_t) image->columns; x++) in ReadRGBImage()
500 SetPixelGreen(image,GetPixelGreen(canvas_image,p),q); in ReadRGBImage()
502 q+=GetPixelChannels(image); in ReadRGBImage()
504 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadRGBImage()
507 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
509 if (image->previous == (Image *) NULL) in ReadRGBImage()
511 status=SetImageProgress(image,LoadImageTag,2,6); in ReadRGBImage()
515 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
530 "UnexpectedEndOfFile",image->filename); in ReadRGBImage()
541 if (((y-image->extract_info.y) >= 0) && in ReadRGBImage()
542 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadRGBImage()
546 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadRGBImage()
547 image->columns,1,exception); in ReadRGBImage()
550 for (x=0; x < (ssize_t) image->columns; x++) in ReadRGBImage()
552 SetPixelBlue(image,GetPixelBlue(canvas_image,p),q); in ReadRGBImage()
554 q+=GetPixelChannels(image); in ReadRGBImage()
556 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadRGBImage()
559 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
561 if (image->previous == (Image *) NULL) in ReadRGBImage()
563 status=SetImageProgress(image,LoadImageTag,4,6); in ReadRGBImage()
567 if (image->alpha_trait != UndefinedPixelTrait) in ReadRGBImage()
569 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
584 "UnexpectedEndOfFile",image->filename); in ReadRGBImage()
595 if (((y-image->extract_info.y) >= 0) && in ReadRGBImage()
596 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadRGBImage()
601 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadRGBImage()
602 image->columns,1,exception); in ReadRGBImage()
605 for (x=0; x < (ssize_t) image->columns; x++) in ReadRGBImage()
607 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadRGBImage()
609 q+=GetPixelChannels(image); in ReadRGBImage()
611 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadRGBImage()
614 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
616 if (image->previous == (Image *) NULL) in ReadRGBImage()
618 status=SetImageProgress(image,LoadImageTag,5,6); in ReadRGBImage()
623 if (image->previous == (Image *) NULL) in ReadRGBImage()
625 status=SetImageProgress(image,LoadImageTag,6,6); in ReadRGBImage()
636 AppendImageFormat("R",image->filename); in ReadRGBImage()
637 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadRGBImage()
640 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadRGBImage()
644 "UnexpectedEndOfFile",image->filename); in ReadRGBImage()
650 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
652 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
659 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
660 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
675 "UnexpectedEndOfFile",image->filename); in ReadRGBImage()
686 if (((y-image->extract_info.y) >= 0) && in ReadRGBImage()
687 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadRGBImage()
691 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadRGBImage()
692 image->columns,1,exception); in ReadRGBImage()
695 for (x=0; x < (ssize_t) image->columns; x++) in ReadRGBImage()
697 SetPixelRed(image,GetPixelRed(canvas_image,p),q); in ReadRGBImage()
699 q+=GetPixelChannels(image); in ReadRGBImage()
701 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadRGBImage()
704 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
706 if (image->previous == (Image *) NULL) in ReadRGBImage()
708 status=SetImageProgress(image,LoadImageTag,1,5); in ReadRGBImage()
712 (void) CloseBlob(image); in ReadRGBImage()
713 AppendImageFormat("G",image->filename); in ReadRGBImage()
714 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadRGBImage()
720 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
722 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
729 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
730 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
745 "UnexpectedEndOfFile",image->filename); in ReadRGBImage()
756 if (((y-image->extract_info.y) >= 0) && in ReadRGBImage()
757 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadRGBImage()
761 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadRGBImage()
762 image->columns,1,exception); in ReadRGBImage()
765 for (x=0; x < (ssize_t) image->columns; x++) in ReadRGBImage()
767 SetPixelGreen(image,GetPixelGreen(canvas_image,p),q); in ReadRGBImage()
769 q+=GetPixelChannels(image); in ReadRGBImage()
771 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadRGBImage()
774 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
776 if (image->previous == (Image *) NULL) in ReadRGBImage()
778 status=SetImageProgress(image,LoadImageTag,2,5); in ReadRGBImage()
782 (void) CloseBlob(image); in ReadRGBImage()
783 AppendImageFormat("B",image->filename); in ReadRGBImage()
784 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadRGBImage()
790 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
792 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
799 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
800 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
815 "UnexpectedEndOfFile",image->filename); in ReadRGBImage()
826 if (((y-image->extract_info.y) >= 0) && in ReadRGBImage()
827 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadRGBImage()
831 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadRGBImage()
832 image->columns,1,exception); in ReadRGBImage()
835 for (x=0; x < (ssize_t) image->columns; x++) in ReadRGBImage()
837 SetPixelBlue(image,GetPixelBlue(canvas_image,p),q); in ReadRGBImage()
839 q+=GetPixelChannels(image); in ReadRGBImage()
841 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadRGBImage()
844 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
846 if (image->previous == (Image *) NULL) in ReadRGBImage()
848 status=SetImageProgress(image,LoadImageTag,3,5); in ReadRGBImage()
852 if (image->alpha_trait != UndefinedPixelTrait) in ReadRGBImage()
854 (void) CloseBlob(image); in ReadRGBImage()
855 AppendImageFormat("A",image->filename); in ReadRGBImage()
856 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadRGBImage()
862 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
864 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
871 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
872 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGBImage()
887 "UnexpectedEndOfFile",image->filename); in ReadRGBImage()
898 if (((y-image->extract_info.y) >= 0) && in ReadRGBImage()
899 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadRGBImage()
903 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadRGBImage()
904 image->columns,1,exception); in ReadRGBImage()
907 for (x=0; x < (ssize_t) image->columns; x++) in ReadRGBImage()
909 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadRGBImage()
911 q+=GetPixelChannels(image); in ReadRGBImage()
913 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadRGBImage()
916 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGBImage()
918 if (image->previous == (Image *) NULL) in ReadRGBImage()
920 status=SetImageProgress(image,LoadImageTag,4,5); in ReadRGBImage()
925 (void) CloseBlob(image); in ReadRGBImage()
926 if (image->previous == (Image *) NULL) in ReadRGBImage()
928 status=SetImageProgress(image,LoadImageTag,5,5); in ReadRGBImage()
937 SetQuantumImageType(image,quantum_type); in ReadRGBImage()
939 Proceed to next image. in ReadRGBImage()
942 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadRGBImage()
947 Allocate next image structure. in ReadRGBImage()
949 AcquireNextImage(image_info,image,exception); in ReadRGBImage()
950 if (GetNextImageInList(image) == (Image *) NULL) in ReadRGBImage()
955 image=SyncNextImageInList(image); in ReadRGBImage()
956 status=SetImageProgress(image,LoadImagesTag,TellBlob(image), in ReadRGBImage()
957 GetBlobSize(image)); in ReadRGBImage()
965 (void) CloseBlob(image); in ReadRGBImage()
967 return(DestroyImageList(image)); in ReadRGBImage()
968 return(GetFirstImageInList(image)); in ReadRGBImage()
982 % ReadGRAYImage() reads an image of raw RGB 5-6-5 samples and returns it. It
983 % allocates the memory necessary for the new Image structure and returns a
984 % pointer to the new image.
988 % Image *ReadGRAYImage(const ImageInfo *image_info,
993 % o image_info: the image info.
998 static Image *ReadRGB565Image(const ImageInfo *image_info, in ReadRGB565Image()
1004 Image in ReadRGB565Image()
1006 *image; in ReadRGB565Image() local
1031 Open image file. in ReadRGB565Image()
1040 image=AcquireImage(image_info,exception); in ReadRGB565Image()
1041 if ((image->columns == 0) || (image->rows == 0)) in ReadRGB565Image()
1043 image->depth=16; in ReadRGB565Image()
1046 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadRGB565Image()
1049 image=DestroyImageList(image); in ReadRGB565Image()
1050 return((Image *) NULL); in ReadRGB565Image()
1052 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadRGB565Image()
1054 image->filename); in ReadRGB565Image()
1057 Create virtual canvas to support cropping (i.e. image.rgb[100x100+10+20]). in ReadRGB565Image()
1059 canvas_image=CloneImage(image,image->extract_info.width,1,MagickFalse, in ReadRGB565Image()
1061 if(canvas_image == (Image *) NULL) in ReadRGB565Image()
1074 while (image->scene < image_info->scene) in ReadRGB565Image()
1077 Skip to next image. in ReadRGB565Image()
1079 image->scene++; in ReadRGB565Image()
1081 for (y=0; y < (ssize_t) image->rows; y++) in ReadRGB565Image()
1083 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGB565Image()
1096 Read pixels to virtual canvas image then push to image. in ReadRGB565Image()
1099 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadRGB565Image()
1101 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadRGB565Image()
1110 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGB565Image()
1112 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadRGB565Image()
1127 "UnexpectedEndOfFile",image->filename); in ReadRGB565Image()
1137 if (((y-image->extract_info.y) >= 0) && in ReadRGB565Image()
1138 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadRGB565Image()
1142 q=QueueAuthenticPixels(image,0,y-image->extract_info.y, in ReadRGB565Image()
1143 image->columns,1,exception); in ReadRGB565Image()
1146 for (x=0; x < (ssize_t) image->columns; x++) in ReadRGB565Image()
1153 SetPixelRed(image,(Quantum) (((pixel >> 11) & 0x1f) << 11),q); in ReadRGB565Image()
1154 SetPixelGreen(image,(Quantum) (((pixel >> 5) & 0x3f) << 10),q); in ReadRGB565Image()
1155 SetPixelBlue(image,(Quantum) ((pixel & 0x1f) << 11),q); in ReadRGB565Image()
1157 q+=GetPixelChannels(image); in ReadRGB565Image()
1159 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadRGB565Image()
1162 if (image->previous == (Image *) NULL) in ReadRGB565Image()
1164 status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, in ReadRGB565Image()
1165 image->rows); in ReadRGB565Image()
1169 stream=ReadBlobStream(image,length,pixels,&count); in ReadRGB565Image()
1173 SetQuantumImageType(image,quantum_type); in ReadRGB565Image()
1175 Proceed to next image. in ReadRGB565Image()
1178 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadRGB565Image()
1183 Allocate next image structure. in ReadRGB565Image()
1185 AcquireNextImage(image_info,image,exception); in ReadRGB565Image()
1186 if (GetNextImageInList(image) == (Image *) NULL) in ReadRGB565Image()
1191 image=SyncNextImageInList(image); in ReadRGB565Image()
1192 status=SetImageProgress(image,LoadImagesTag,TellBlob(image), in ReadRGB565Image()
1193 GetBlobSize(image)); in ReadRGB565Image()
1201 (void) CloseBlob(image); in ReadRGB565Image()
1203 return(DestroyImageList(image)); in ReadRGB565Image()
1204 return(GetFirstImageInList(image)); in ReadRGB565Image()
1218 % RegisterRGBImage() adds attributes for the RGB image format to
1219 % the list of supported formats. The attributes include the image format
1302 % WriteRGBImage() writes an image to a file in the RGB, RGBA, or RGBO
1308 % Image *image,ExceptionInfo *exception)
1312 % o image_info: the image info.
1314 % o image: The image.
1320 Image *image,ExceptionInfo *exception) in WriteRGBImage() argument
1350 assert(image != (Image *) NULL); in WriteRGBImage()
1351 assert(image->signature == MagickCoreSignature); in WriteRGBImage()
1352 if (image->debug != MagickFalse) in WriteRGBImage()
1353 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in WriteRGBImage()
1357 Open output image file. in WriteRGBImage()
1359 status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception); in WriteRGBImage()
1369 imageListLength=GetImageListLength(image); in WriteRGBImage()
1375 (void) TransformImageColorspace(image,sRGBColorspace,exception); in WriteRGBImage()
1377 (image->alpha_trait == UndefinedPixelTrait)) in WriteRGBImage()
1378 (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception); in WriteRGBImage()
1379 quantum_info=AcquireQuantumInfo(image_info,image); in WriteRGBImage()
1391 for (y=0; y < (ssize_t) image->rows; y++) in WriteRGBImage()
1396 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteRGBImage()
1399 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1401 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1404 if (image->previous == (Image *) NULL) in WriteRGBImage()
1406 status=SetImageProgress(image,SaveImageTag,(MagickOffsetType) y, in WriteRGBImage()
1407 image->rows); in WriteRGBImage()
1419 for (y=0; y < (ssize_t) image->rows; y++) in WriteRGBImage()
1424 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteRGBImage()
1427 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1429 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1432 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1434 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1437 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1439 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1444 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1446 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1452 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1454 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1458 if (image->previous == (Image *) NULL) in WriteRGBImage()
1460 status=SetImageProgress(image,SaveImageTag,(MagickOffsetType) y, in WriteRGBImage()
1461 image->rows); in WriteRGBImage()
1473 for (y=0; y < (ssize_t) image->rows; y++) in WriteRGBImage()
1478 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteRGBImage()
1481 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1483 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1487 if (image->previous == (Image *) NULL) in WriteRGBImage()
1489 status=SetImageProgress(image,SaveImageTag,1,6); in WriteRGBImage()
1493 for (y=0; y < (ssize_t) image->rows; y++) in WriteRGBImage()
1498 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteRGBImage()
1501 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1503 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1507 if (image->previous == (Image *) NULL) in WriteRGBImage()
1509 status=SetImageProgress(image,SaveImageTag,2,6); in WriteRGBImage()
1513 for (y=0; y < (ssize_t) image->rows; y++) in WriteRGBImage()
1518 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteRGBImage()
1521 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1523 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1527 if (image->previous == (Image *) NULL) in WriteRGBImage()
1529 status=SetImageProgress(image,SaveImageTag,3,6); in WriteRGBImage()
1535 for (y=0; y < (ssize_t) image->rows; y++) in WriteRGBImage()
1540 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteRGBImage()
1543 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1545 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1549 if (image->previous == (Image *) NULL) in WriteRGBImage()
1551 status=SetImageProgress(image,SaveImageTag,5,6); in WriteRGBImage()
1557 (void) CopyMagickString(image->filename,image_info->filename, in WriteRGBImage()
1559 if (image->previous == (Image *) NULL) in WriteRGBImage()
1561 status=SetImageProgress(image,SaveImageTag,6,6); in WriteRGBImage()
1572 AppendImageFormat("R",image->filename); in WriteRGBImage()
1573 status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode : in WriteRGBImage()
1577 for (y=0; y < (ssize_t) image->rows; y++) in WriteRGBImage()
1582 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteRGBImage()
1585 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1587 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1591 if (image->previous == (Image *) NULL) in WriteRGBImage()
1593 status=SetImageProgress(image,SaveImageTag,1,6); in WriteRGBImage()
1597 (void) CloseBlob(image); in WriteRGBImage()
1598 AppendImageFormat("G",image->filename); in WriteRGBImage()
1599 status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode : in WriteRGBImage()
1603 for (y=0; y < (ssize_t) image->rows; y++) in WriteRGBImage()
1608 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteRGBImage()
1611 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1613 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1617 if (image->previous == (Image *) NULL) in WriteRGBImage()
1619 status=SetImageProgress(image,SaveImageTag,2,6); in WriteRGBImage()
1623 (void) CloseBlob(image); in WriteRGBImage()
1624 AppendImageFormat("B",image->filename); in WriteRGBImage()
1625 status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode : in WriteRGBImage()
1629 for (y=0; y < (ssize_t) image->rows; y++) in WriteRGBImage()
1634 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteRGBImage()
1637 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1639 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1643 if (image->previous == (Image *) NULL) in WriteRGBImage()
1645 status=SetImageProgress(image,SaveImageTag,3,6); in WriteRGBImage()
1651 (void) CloseBlob(image); in WriteRGBImage()
1652 AppendImageFormat("A",image->filename); in WriteRGBImage()
1653 status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode : in WriteRGBImage()
1657 for (y=0; y < (ssize_t) image->rows; y++) in WriteRGBImage()
1662 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteRGBImage()
1665 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteRGBImage()
1667 count=WriteBlob(image,length,pixels); in WriteRGBImage()
1671 if (image->previous == (Image *) NULL) in WriteRGBImage()
1673 status=SetImageProgress(image,SaveImageTag,5,6); in WriteRGBImage()
1678 (void) CloseBlob(image); in WriteRGBImage()
1679 (void) CopyMagickString(image->filename,image_info->filename, in WriteRGBImage()
1681 if (image->previous == (Image *) NULL) in WriteRGBImage()
1683 status=SetImageProgress(image,SaveImageTag,6,6); in WriteRGBImage()
1691 if (GetNextImageInList(image) == (Image *) NULL) in WriteRGBImage()
1693 image=SyncNextImageInList(image); in WriteRGBImage()
1694 status=SetImageProgress(image,SaveImagesTag,scene++,imageListLength); in WriteRGBImage()
1698 (void) CloseBlob(image); in WriteRGBImage()