Lines Matching full:image
13 % Read/Write Raw BGR Image Format %
52 #include "MagickCore/image.h"
53 #include "MagickCore/image-private.h"
71 WriteBGRImage(const ImageInfo *,Image *,ExceptionInfo *);
84 % ReadBGRImage() reads an image of raw BGR, or BGRA 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 *ReadBGRImage(const ImageInfo *image_info,
95 % o image_info: the image info.
100 static Image *ReadBGRImage(const ImageInfo *image_info,ExceptionInfo *exception) in ReadBGRImage()
105 Image in ReadBGRImage()
107 *image; in ReadBGRImage() local
135 Open image file. in ReadBGRImage()
144 image=AcquireImage(image_info,exception); in ReadBGRImage()
145 if ((image->columns == 0) || (image->rows == 0)) in ReadBGRImage()
149 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadBGRImage()
152 image=DestroyImageList(image); in ReadBGRImage()
153 return((Image *) NULL); in ReadBGRImage()
155 if (DiscardBlobBytes(image,image->offset) == MagickFalse) in ReadBGRImage()
157 image->filename); in ReadBGRImage()
160 Create virtual canvas to support cropping (i.e. image.rgb[100x100+10+20]). in ReadBGRImage()
162 canvas_image=CloneImage(image,image->extract_info.width,1,MagickFalse, in ReadBGRImage()
164 if (canvas_image == (Image *) NULL) in ReadBGRImage()
178 image->alpha_trait=BlendPixelTrait; in ReadBGRImage()
184 image->alpha_trait=BlendPixelTrait; in ReadBGRImage()
189 while (image->scene < image_info->scene) in ReadBGRImage()
192 Skip to next image. in ReadBGRImage()
194 image->scene++; in ReadBGRImage()
196 for (y=0; y < (ssize_t) image->rows; y++) in ReadBGRImage()
198 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
211 Read pixels to virtual canvas image then push to image. in ReadBGRImage()
214 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadBGRImage()
216 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadBGRImage()
230 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
232 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
247 "UnexpectedEndOfFile",image->filename); in ReadBGRImage()
258 if (((y-image->extract_info.y) >= 0) && in ReadBGRImage()
259 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadBGRImage()
263 q=QueueAuthenticPixels(image,0,y-image->extract_info.y, in ReadBGRImage()
264 image->columns,1,exception); in ReadBGRImage()
268 for (x=0; x < (ssize_t) image->columns; x++) in ReadBGRImage()
270 SetPixelRed(image,GetPixelRed(canvas_image,p),q); in ReadBGRImage()
271 SetPixelGreen(image,GetPixelGreen(canvas_image,p),q); in ReadBGRImage()
272 SetPixelBlue(image,GetPixelBlue(canvas_image,p),q); in ReadBGRImage()
273 SetPixelAlpha(image,OpaqueAlpha,q); in ReadBGRImage()
274 if (image->alpha_trait != UndefinedPixelTrait) in ReadBGRImage()
275 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadBGRImage()
277 q+=GetPixelChannels(image); in ReadBGRImage()
279 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadBGRImage()
282 if (image->previous == (Image *) NULL) in ReadBGRImage()
284 status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, in ReadBGRImage()
285 image->rows); in ReadBGRImage()
289 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
310 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
312 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
327 "UnexpectedEndOfFile",image->filename); in ReadBGRImage()
330 for (i=0; i < (ssize_t) (image->alpha_trait != UndefinedPixelTrait ? 4 : 3); i++) in ReadBGRImage()
341 if (((y-image->extract_info.y) >= 0) && in ReadBGRImage()
342 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadBGRImage()
346 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadBGRImage()
347 image->columns,1,exception); in ReadBGRImage()
351 for (x=0; x < (ssize_t) image->columns; x++) in ReadBGRImage()
357 SetPixelRed(image,GetPixelRed(canvas_image,p),q); in ReadBGRImage()
362 SetPixelGreen(image,GetPixelGreen(canvas_image,p),q); in ReadBGRImage()
367 SetPixelBlue(image,GetPixelBlue(canvas_image,p),q); in ReadBGRImage()
372 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadBGRImage()
377 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadBGRImage()
384 q+=GetPixelChannels(image); in ReadBGRImage()
386 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadBGRImage()
389 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
391 if (image->previous == (Image *) NULL) in ReadBGRImage()
393 status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, in ReadBGRImage()
394 image->rows); in ReadBGRImage()
409 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
411 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
426 "UnexpectedEndOfFile",image->filename); in ReadBGRImage()
437 if (((y-image->extract_info.y) >= 0) && in ReadBGRImage()
438 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadBGRImage()
442 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadBGRImage()
443 image->columns,1,exception); in ReadBGRImage()
447 for (x=0; x < (ssize_t) image->columns; x++) in ReadBGRImage()
449 SetPixelRed(image,GetPixelRed(canvas_image,p),q); in ReadBGRImage()
451 q+=GetPixelChannels(image); in ReadBGRImage()
453 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadBGRImage()
456 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
458 if (image->previous == (Image *) NULL) in ReadBGRImage()
460 status=SetImageProgress(image,LoadImageTag,1,6); in ReadBGRImage()
464 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
479 "UnexpectedEndOfFile",image->filename); in ReadBGRImage()
490 if (((y-image->extract_info.y) >= 0) && in ReadBGRImage()
491 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadBGRImage()
495 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadBGRImage()
496 image->columns,1,exception); in ReadBGRImage()
500 for (x=0; x < (ssize_t) image->columns; x++) in ReadBGRImage()
502 SetPixelGreen(image,GetPixelGreen(canvas_image,p),q); in ReadBGRImage()
504 q+=GetPixelChannels(image); in ReadBGRImage()
506 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadBGRImage()
509 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
511 if (image->previous == (Image *) NULL) in ReadBGRImage()
513 status=SetImageProgress(image,LoadImageTag,2,6); in ReadBGRImage()
517 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
532 "UnexpectedEndOfFile",image->filename); in ReadBGRImage()
543 if (((y-image->extract_info.y) >= 0) && in ReadBGRImage()
544 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadBGRImage()
548 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadBGRImage()
549 image->columns,1,exception); in ReadBGRImage()
553 for (x=0; x < (ssize_t) image->columns; x++) in ReadBGRImage()
555 SetPixelBlue(image,GetPixelBlue(canvas_image,p),q); in ReadBGRImage()
557 q+=GetPixelChannels(image); in ReadBGRImage()
559 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadBGRImage()
562 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
564 if (image->previous == (Image *) NULL) in ReadBGRImage()
566 status=SetImageProgress(image,LoadImageTag,3,6); in ReadBGRImage()
570 if (image->previous == (Image *) NULL) in ReadBGRImage()
572 status=SetImageProgress(image,LoadImageTag,4,6); in ReadBGRImage()
576 if (image->alpha_trait != UndefinedPixelTrait) in ReadBGRImage()
578 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
593 "UnexpectedEndOfFile",image->filename); in ReadBGRImage()
604 if (((y-image->extract_info.y) >= 0) && in ReadBGRImage()
605 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadBGRImage()
610 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadBGRImage()
611 image->columns,1,exception); in ReadBGRImage()
615 for (x=0; x < (ssize_t) image->columns; x++) in ReadBGRImage()
617 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadBGRImage()
619 q+=GetPixelChannels(image); in ReadBGRImage()
621 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadBGRImage()
624 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
626 if (image->previous == (Image *) NULL) in ReadBGRImage()
628 status=SetImageProgress(image,LoadImageTag,5,6); in ReadBGRImage()
633 if (image->previous == (Image *) NULL) in ReadBGRImage()
635 status=SetImageProgress(image,LoadImageTag,6,6); in ReadBGRImage()
646 AppendImageFormat("B",image->filename); in ReadBGRImage()
647 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadBGRImage()
650 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadBGRImage()
654 "UnexpectedEndOfFile",image->filename); in ReadBGRImage()
660 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
662 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
669 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
670 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
685 "UnexpectedEndOfFile",image->filename); in ReadBGRImage()
696 if (((y-image->extract_info.y) >= 0) && in ReadBGRImage()
697 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadBGRImage()
701 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadBGRImage()
702 image->columns,1,exception); in ReadBGRImage()
706 for (x=0; x < (ssize_t) image->columns; x++) in ReadBGRImage()
708 SetPixelRed(image,GetPixelRed(canvas_image,p),q); in ReadBGRImage()
710 q+=GetPixelChannels(image); in ReadBGRImage()
712 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadBGRImage()
715 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
717 if (image->previous == (Image *) NULL) in ReadBGRImage()
719 status=SetImageProgress(image,LoadImageTag,1,5); in ReadBGRImage()
723 (void) CloseBlob(image); in ReadBGRImage()
724 AppendImageFormat("G",image->filename); in ReadBGRImage()
725 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadBGRImage()
731 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
733 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
740 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
741 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
756 "UnexpectedEndOfFile",image->filename); in ReadBGRImage()
767 if (((y-image->extract_info.y) >= 0) && in ReadBGRImage()
768 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadBGRImage()
772 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadBGRImage()
773 image->columns,1,exception); in ReadBGRImage()
777 for (x=0; x < (ssize_t) image->columns; x++) in ReadBGRImage()
779 SetPixelGreen(image,GetPixelGreen(canvas_image,p),q); in ReadBGRImage()
781 q+=GetPixelChannels(image); in ReadBGRImage()
783 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadBGRImage()
786 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
788 if (image->previous == (Image *) NULL) in ReadBGRImage()
790 status=SetImageProgress(image,LoadImageTag,2,5); in ReadBGRImage()
794 (void) CloseBlob(image); in ReadBGRImage()
795 AppendImageFormat("R",image->filename); in ReadBGRImage()
796 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadBGRImage()
802 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
804 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
811 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
812 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
827 "UnexpectedEndOfFile",image->filename); in ReadBGRImage()
838 if (((y-image->extract_info.y) >= 0) && in ReadBGRImage()
839 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadBGRImage()
843 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadBGRImage()
844 image->columns,1,exception); in ReadBGRImage()
848 for (x=0; x < (ssize_t) image->columns; x++) in ReadBGRImage()
850 SetPixelBlue(image,GetPixelBlue(canvas_image,p),q); in ReadBGRImage()
852 q+=GetPixelChannels(image); in ReadBGRImage()
854 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadBGRImage()
857 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
859 if (image->previous == (Image *) NULL) in ReadBGRImage()
861 status=SetImageProgress(image,LoadImageTag,3,5); in ReadBGRImage()
865 if (image->alpha_trait != UndefinedPixelTrait) in ReadBGRImage()
867 (void) CloseBlob(image); in ReadBGRImage()
868 AppendImageFormat("A",image->filename); in ReadBGRImage()
869 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadBGRImage()
875 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
877 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
884 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
885 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadBGRImage()
900 "UnexpectedEndOfFile",image->filename); in ReadBGRImage()
911 if (((y-image->extract_info.y) >= 0) && in ReadBGRImage()
912 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadBGRImage()
916 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadBGRImage()
917 image->columns,1,exception); in ReadBGRImage()
921 for (x=0; x < (ssize_t) image->columns; x++) in ReadBGRImage()
923 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadBGRImage()
925 q+=GetPixelChannels(image); in ReadBGRImage()
927 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadBGRImage()
930 stream=ReadBlobStream(image,length,pixels,&count); in ReadBGRImage()
932 if (image->previous == (Image *) NULL) in ReadBGRImage()
934 status=SetImageProgress(image,LoadImageTag,4,5); in ReadBGRImage()
939 (void) CloseBlob(image); in ReadBGRImage()
940 if (image->previous == (Image *) NULL) in ReadBGRImage()
942 status=SetImageProgress(image,LoadImageTag,5,5); in ReadBGRImage()
951 SetQuantumImageType(image,quantum_type); in ReadBGRImage()
953 Proceed to next image. in ReadBGRImage()
956 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadBGRImage()
961 Allocate next image structure. in ReadBGRImage()
963 AcquireNextImage(image_info,image,exception); in ReadBGRImage()
964 if (GetNextImageInList(image) == (Image *) NULL) in ReadBGRImage()
969 image=SyncNextImageInList(image); in ReadBGRImage()
970 status=SetImageProgress(image,LoadImagesTag,TellBlob(image), in ReadBGRImage()
971 GetBlobSize(image)); in ReadBGRImage()
979 (void) CloseBlob(image); in ReadBGRImage()
981 return(DestroyImageList(image)); in ReadBGRImage()
982 return(GetFirstImageInList(image)); in ReadBGRImage()
996 % RegisterBGRImage() adds attributes for the BGR image format to
997 % the list of supported formats. The attributes include the image format
1072 % WriteBGRImage() writes an image to a file in the BGR or BGRA
1078 % Image *image,ExceptionInfo *exception)
1082 % o image_info: the image info.
1084 % o image: The image.
1089 static MagickBooleanType WriteBGRImage(const ImageInfo *image_info,Image *image, in WriteBGRImage() argument
1122 assert(image != (Image *) NULL); in WriteBGRImage()
1123 assert(image->signature == MagickCoreSignature); in WriteBGRImage()
1124 if (image->debug != MagickFalse) in WriteBGRImage()
1125 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in WriteBGRImage()
1129 Open output image file. in WriteBGRImage()
1133 status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception); in WriteBGRImage()
1141 image->alpha_trait=BlendPixelTrait; in WriteBGRImage()
1144 imageListLength=GetImageListLength(image); in WriteBGRImage()
1150 (void) TransformImageColorspace(image,sRGBColorspace,exception); in WriteBGRImage()
1152 (image->alpha_trait == UndefinedPixelTrait)) in WriteBGRImage()
1153 (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception); in WriteBGRImage()
1154 quantum_info=AcquireQuantumInfo(image_info,image); in WriteBGRImage()
1166 for (y=0; y < (ssize_t) image->rows; y++) in WriteBGRImage()
1171 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteBGRImage()
1174 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1176 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1179 if (image->previous == (Image *) NULL) in WriteBGRImage()
1181 status=SetImageProgress(image,SaveImageTag,(MagickOffsetType) y, in WriteBGRImage()
1182 image->rows); in WriteBGRImage()
1194 for (y=0; y < (ssize_t) image->rows; y++) in WriteBGRImage()
1199 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteBGRImage()
1202 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1204 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1207 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1209 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1212 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1214 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1219 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1221 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1225 if (image->previous == (Image *) NULL) in WriteBGRImage()
1227 status=SetImageProgress(image,SaveImageTag,(MagickOffsetType) y, in WriteBGRImage()
1228 image->rows); in WriteBGRImage()
1240 for (y=0; y < (ssize_t) image->rows; y++) in WriteBGRImage()
1245 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteBGRImage()
1248 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1250 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1254 if (image->previous == (Image *) NULL) in WriteBGRImage()
1256 status=SetImageProgress(image,SaveImageTag,1,6); in WriteBGRImage()
1260 for (y=0; y < (ssize_t) image->rows; y++) in WriteBGRImage()
1265 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteBGRImage()
1268 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1270 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1274 if (image->previous == (Image *) NULL) in WriteBGRImage()
1276 status=SetImageProgress(image,SaveImageTag,2,6); in WriteBGRImage()
1280 for (y=0; y < (ssize_t) image->rows; y++) in WriteBGRImage()
1285 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteBGRImage()
1288 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1290 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1294 if (image->previous == (Image *) NULL) in WriteBGRImage()
1296 status=SetImageProgress(image,SaveImageTag,3,6); in WriteBGRImage()
1302 for (y=0; y < (ssize_t) image->rows; y++) in WriteBGRImage()
1307 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteBGRImage()
1310 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1312 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1316 if (image->previous == (Image *) NULL) in WriteBGRImage()
1318 status=SetImageProgress(image,SaveImageTag,5,6); in WriteBGRImage()
1324 (void) CopyMagickString(image->filename,image_info->filename, in WriteBGRImage()
1326 if (image->previous == (Image *) NULL) in WriteBGRImage()
1328 status=SetImageProgress(image,SaveImageTag,6,6); in WriteBGRImage()
1339 AppendImageFormat("B",image->filename); in WriteBGRImage()
1340 status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode : in WriteBGRImage()
1344 for (y=0; y < (ssize_t) image->rows; y++) in WriteBGRImage()
1349 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteBGRImage()
1352 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1354 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1358 if (image->previous == (Image *) NULL) in WriteBGRImage()
1360 status=SetImageProgress(image,SaveImageTag,1,6); in WriteBGRImage()
1364 (void) CloseBlob(image); in WriteBGRImage()
1365 AppendImageFormat("G",image->filename); in WriteBGRImage()
1366 status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode : in WriteBGRImage()
1370 for (y=0; y < (ssize_t) image->rows; y++) in WriteBGRImage()
1375 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteBGRImage()
1378 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1380 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1384 if (image->previous == (Image *) NULL) in WriteBGRImage()
1386 status=SetImageProgress(image,SaveImageTag,2,6); in WriteBGRImage()
1390 (void) CloseBlob(image); in WriteBGRImage()
1391 AppendImageFormat("R",image->filename); in WriteBGRImage()
1392 status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode : in WriteBGRImage()
1396 for (y=0; y < (ssize_t) image->rows; y++) in WriteBGRImage()
1401 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteBGRImage()
1404 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1406 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1410 if (image->previous == (Image *) NULL) in WriteBGRImage()
1412 status=SetImageProgress(image,SaveImageTag,3,6); in WriteBGRImage()
1416 (void) CloseBlob(image); in WriteBGRImage()
1419 (void) CloseBlob(image); in WriteBGRImage()
1420 AppendImageFormat("A",image->filename); in WriteBGRImage()
1421 status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode : in WriteBGRImage()
1425 for (y=0; y < (ssize_t) image->rows; y++) in WriteBGRImage()
1430 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteBGRImage()
1433 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteBGRImage()
1435 count=WriteBlob(image,length,pixels); in WriteBGRImage()
1439 if (image->previous == (Image *) NULL) in WriteBGRImage()
1441 status=SetImageProgress(image,SaveImageTag,5,6); in WriteBGRImage()
1446 (void) CloseBlob(image); in WriteBGRImage()
1447 (void) CopyMagickString(image->filename,image_info->filename, in WriteBGRImage()
1449 if (image->previous == (Image *) NULL) in WriteBGRImage()
1451 status=SetImageProgress(image,SaveImageTag,6,6); in WriteBGRImage()
1459 if (GetNextImageInList(image) == (Image *) NULL) in WriteBGRImage()
1461 image=SyncNextImageInList(image); in WriteBGRImage()
1462 status=SetImageProgress(image,SaveImagesTag,scene++,imageListLength); in WriteBGRImage()
1466 (void) CloseBlob(image); in WriteBGRImage()