• Home
  • Raw
  • Download

Lines Matching full:image

13 %                     Read/Write Raw YCbCr Image Format                       %
51 #include "MagickCore/image.h"
52 #include "MagickCore/image-private.h"
70 WriteYCBCRImage(const ImageInfo *,Image *,ExceptionInfo *);
83 % ReadYCBCRImage() reads an image of raw YCbCr or YCbCrA samples and returns
84 % it. It allocates the memory necessary for the new Image structure and
85 % returns a pointer to the new image.
89 % Image *ReadYCBCRImage(const ImageInfo *image_info,
94 % o image_info: the image info.
99 static Image *ReadYCBCRImage(const ImageInfo *image_info, in ReadYCBCRImage()
105 Image in ReadYCBCRImage()
107 *image; in ReadYCBCRImage() local
132 Open image file. in ReadYCBCRImage()
141 image=AcquireImage(image_info,exception); in ReadYCBCRImage()
142 if ((image->columns == 0) || (image->rows == 0)) in ReadYCBCRImage()
144 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadYCBCRImage()
146 return(DestroyImageList(image)); in ReadYCBCRImage()
147 (void) SetImageColorspace(image,YCbCrColorspace,exception); in ReadYCBCRImage()
150 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadYCBCRImage()
153 image=DestroyImageList(image); in ReadYCBCRImage()
154 return((Image *) NULL); in ReadYCBCRImage()
156 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadYCBCRImage()
158 image->filename); in ReadYCBCRImage()
161 Create virtual canvas to support cropping (i.e. image.rgb[100x100+10+20]). in ReadYCBCRImage()
163 canvas_image=CloneImage(image,image->extract_info.width,1,MagickFalse, in ReadYCBCRImage()
165 if (canvas_image == (Image *) NULL) in ReadYCBCRImage()
179 image->alpha_trait=BlendPixelTrait; in ReadYCBCRImage()
183 while (image->scene < image_info->scene) in ReadYCBCRImage()
186 Skip to next image. in ReadYCBCRImage()
188 image->scene++; in ReadYCBCRImage()
190 for (y=0; y < (ssize_t) image->rows; y++) in ReadYCBCRImage()
192 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
205 Read pixels to virtual canvas image then push to image. in ReadYCBCRImage()
208 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadYCBCRImage()
210 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadYCBCRImage()
213 if (SetImageColorspace(image,YCbCrColorspace,exception) == MagickFalse) in ReadYCBCRImage()
226 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
229 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
244 "UnexpectedEndOfFile",image->filename); in ReadYCBCRImage()
255 if (((y-image->extract_info.y) >= 0) && in ReadYCBCRImage()
256 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadYCBCRImage()
260 q=QueueAuthenticPixels(image,0,y-image->extract_info.y, in ReadYCBCRImage()
261 image->columns,1,exception); in ReadYCBCRImage()
265 for (x=0; x < (ssize_t) image->columns; x++) in ReadYCBCRImage()
267 SetPixelRed(image,GetPixelRed(canvas_image,p),q); in ReadYCBCRImage()
268 SetPixelGreen(image,GetPixelGreen(canvas_image,p),q); in ReadYCBCRImage()
269 SetPixelBlue(image,GetPixelBlue(canvas_image,p),q); in ReadYCBCRImage()
270 if (image->alpha_trait != UndefinedPixelTrait) in ReadYCBCRImage()
271 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadYCBCRImage()
273 q+=GetPixelChannels(image); in ReadYCBCRImage()
275 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadYCBCRImage()
278 if (image->previous == (Image *) NULL) in ReadYCBCRImage()
280 status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, in ReadYCBCRImage()
281 image->rows); in ReadYCBCRImage()
285 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
307 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
310 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
312 for (i=0; i < (ssize_t) (image->alpha_trait != UndefinedPixelTrait ? 4 : 3); i++) in ReadYCBCRImage()
327 "UnexpectedEndOfFile",image->filename); in ReadYCBCRImage()
339 if (((y-image->extract_info.y) >= 0) && in ReadYCBCRImage()
340 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadYCBCRImage()
344 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadYCBCRImage()
345 image->columns,1,exception); in ReadYCBCRImage()
349 for (x=0; x < (ssize_t) image->columns; x++) in ReadYCBCRImage()
355 SetPixelRed(image,GetPixelRed(canvas_image,p),q); in ReadYCBCRImage()
360 SetPixelGreen(image,GetPixelGreen(canvas_image,p),q); in ReadYCBCRImage()
365 SetPixelBlue(image,GetPixelBlue(canvas_image,p),q); in ReadYCBCRImage()
370 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadYCBCRImage()
377 q+=GetPixelChannels(image); in ReadYCBCRImage()
379 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadYCBCRImage()
382 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
385 if (image->previous == (Image *) NULL) in ReadYCBCRImage()
387 status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, in ReadYCBCRImage()
388 image->rows); in ReadYCBCRImage()
403 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
406 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
421 "UnexpectedEndOfFile",image->filename); in ReadYCBCRImage()
432 if (((y-image->extract_info.y) >= 0) && in ReadYCBCRImage()
433 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadYCBCRImage()
437 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadYCBCRImage()
438 image->columns,1,exception); in ReadYCBCRImage()
442 for (x=0; x < (ssize_t) image->columns; x++) in ReadYCBCRImage()
444 SetPixelRed(image,GetPixelRed(canvas_image,p),q); in ReadYCBCRImage()
446 q+=GetPixelChannels(image); in ReadYCBCRImage()
448 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadYCBCRImage()
451 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
454 if (image->previous == (Image *) NULL) in ReadYCBCRImage()
456 status=SetImageProgress(image,LoadImageTag,1,5); in ReadYCBCRImage()
460 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
475 "UnexpectedEndOfFile",image->filename); in ReadYCBCRImage()
486 if (((y-image->extract_info.y) >= 0) && in ReadYCBCRImage()
487 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadYCBCRImage()
491 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadYCBCRImage()
492 image->columns,1,exception); in ReadYCBCRImage()
496 for (x=0; x < (ssize_t) image->columns; x++) in ReadYCBCRImage()
498 SetPixelGreen(image,GetPixelGreen(canvas_image,p),q); in ReadYCBCRImage()
500 q+=GetPixelChannels(image); in ReadYCBCRImage()
502 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadYCBCRImage()
505 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
508 if (image->previous == (Image *) NULL) in ReadYCBCRImage()
510 status=SetImageProgress(image,LoadImageTag,2,5); in ReadYCBCRImage()
514 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
529 "UnexpectedEndOfFile",image->filename); in ReadYCBCRImage()
540 if (((y-image->extract_info.y) >= 0) && in ReadYCBCRImage()
541 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadYCBCRImage()
545 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadYCBCRImage()
546 image->columns,1,exception); in ReadYCBCRImage()
550 for (x=0; x < (ssize_t) image->columns; x++) in ReadYCBCRImage()
552 SetPixelBlue(image,GetPixelBlue(canvas_image,p),q); in ReadYCBCRImage()
554 q+=GetPixelChannels(image); in ReadYCBCRImage()
556 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadYCBCRImage()
559 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
562 if (image->previous == (Image *) NULL) in ReadYCBCRImage()
564 status=SetImageProgress(image,LoadImageTag,3,5); in ReadYCBCRImage()
568 if (image->alpha_trait != UndefinedPixelTrait) in ReadYCBCRImage()
570 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
585 "UnexpectedEndOfFile",image->filename); in ReadYCBCRImage()
596 if (((y-image->extract_info.y) >= 0) && in ReadYCBCRImage()
597 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadYCBCRImage()
602 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadYCBCRImage()
603 image->columns,1,exception); in ReadYCBCRImage()
607 for (x=0; x < (ssize_t) image->columns; x++) in ReadYCBCRImage()
609 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadYCBCRImage()
611 q+=GetPixelChannels(image); in ReadYCBCRImage()
613 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadYCBCRImage()
616 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
619 if (image->previous == (Image *) NULL) in ReadYCBCRImage()
621 status=SetImageProgress(image,LoadImageTag,4,5); in ReadYCBCRImage()
626 if (image->previous == (Image *) NULL) in ReadYCBCRImage()
628 status=SetImageProgress(image,LoadImageTag,5,5); in ReadYCBCRImage()
639 AppendImageFormat("Y",image->filename); in ReadYCBCRImage()
640 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadYCBCRImage()
643 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadYCBCRImage()
647 image->filename); in ReadYCBCRImage()
653 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
655 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
663 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
665 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
680 "UnexpectedEndOfFile",image->filename); in ReadYCBCRImage()
691 if (((y-image->extract_info.y) >= 0) && in ReadYCBCRImage()
692 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadYCBCRImage()
696 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadYCBCRImage()
697 image->columns,1,exception); in ReadYCBCRImage()
701 for (x=0; x < (ssize_t) image->columns; x++) in ReadYCBCRImage()
703 SetPixelRed(image,GetPixelRed(canvas_image,p),q); in ReadYCBCRImage()
705 q+=GetPixelChannels(image); in ReadYCBCRImage()
707 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadYCBCRImage()
710 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
713 if (image->previous == (Image *) NULL) in ReadYCBCRImage()
715 status=SetImageProgress(image,LoadImageTag,1,5); in ReadYCBCRImage()
719 (void) CloseBlob(image); in ReadYCBCRImage()
720 AppendImageFormat("Cb",image->filename); in ReadYCBCRImage()
721 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadYCBCRImage()
727 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
729 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
737 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
739 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
754 "UnexpectedEndOfFile",image->filename); in ReadYCBCRImage()
765 if (((y-image->extract_info.y) >= 0) && in ReadYCBCRImage()
766 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadYCBCRImage()
770 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadYCBCRImage()
771 image->columns,1,exception); in ReadYCBCRImage()
775 for (x=0; x < (ssize_t) image->columns; x++) in ReadYCBCRImage()
777 SetPixelGreen(image,GetPixelGreen(canvas_image,p),q); in ReadYCBCRImage()
779 q+=GetPixelChannels(image); in ReadYCBCRImage()
781 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadYCBCRImage()
784 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
787 if (image->previous == (Image *) NULL) in ReadYCBCRImage()
789 status=SetImageProgress(image,LoadImageTag,2,5); in ReadYCBCRImage()
793 (void) CloseBlob(image); in ReadYCBCRImage()
794 AppendImageFormat("Cr",image->filename); in ReadYCBCRImage()
795 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadYCBCRImage()
801 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
803 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
811 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
813 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
828 "UnexpectedEndOfFile",image->filename); in ReadYCBCRImage()
839 if (((y-image->extract_info.y) >= 0) && in ReadYCBCRImage()
840 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadYCBCRImage()
844 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadYCBCRImage()
845 image->columns,1,exception); in ReadYCBCRImage()
849 for (x=0; x < (ssize_t) image->columns; x++) in ReadYCBCRImage()
851 SetPixelBlue(image,GetPixelBlue(canvas_image,p),q); in ReadYCBCRImage()
853 q+=GetPixelChannels(image); in ReadYCBCRImage()
855 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadYCBCRImage()
858 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
861 if (image->previous == (Image *) NULL) in ReadYCBCRImage()
863 status=SetImageProgress(image,LoadImageTag,3,5); in ReadYCBCRImage()
867 if (image->alpha_trait != UndefinedPixelTrait) in ReadYCBCRImage()
869 (void) CloseBlob(image); in ReadYCBCRImage()
870 AppendImageFormat("A",image->filename); in ReadYCBCRImage()
871 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadYCBCRImage()
877 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
879 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
887 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
889 for (y=0; y < (ssize_t) image->extract_info.height; y++) in ReadYCBCRImage()
904 "UnexpectedEndOfFile",image->filename); in ReadYCBCRImage()
915 if (((y-image->extract_info.y) >= 0) && in ReadYCBCRImage()
916 ((y-image->extract_info.y) < (ssize_t) image->rows)) in ReadYCBCRImage()
921 q=GetAuthenticPixels(image,0,y-image->extract_info.y, in ReadYCBCRImage()
922 image->columns,1,exception); in ReadYCBCRImage()
926 for (x=0; x < (ssize_t) image->columns; x++) in ReadYCBCRImage()
928 SetPixelAlpha(image,GetPixelAlpha(canvas_image,p),q); in ReadYCBCRImage()
930 q+=GetPixelChannels(image); in ReadYCBCRImage()
932 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadYCBCRImage()
935 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage()
938 if (image->previous == (Image *) NULL) in ReadYCBCRImage()
940 status=SetImageProgress(image,LoadImageTag,4,5); in ReadYCBCRImage()
945 if (image->previous == (Image *) NULL) in ReadYCBCRImage()
947 status=SetImageProgress(image,LoadImageTag,5,5); in ReadYCBCRImage()
956 SetQuantumImageType(image,quantum_type); in ReadYCBCRImage()
958 Proceed to next image. in ReadYCBCRImage()
961 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadYCBCRImage()
966 Allocate next image structure. in ReadYCBCRImage()
968 AcquireNextImage(image_info,image,exception); in ReadYCBCRImage()
969 if (GetNextImageInList(image) == (Image *) NULL) in ReadYCBCRImage()
974 image=SyncNextImageInList(image); in ReadYCBCRImage()
975 status=SetImageProgress(image,LoadImagesTag,TellBlob(image), in ReadYCBCRImage()
976 GetBlobSize(image)); in ReadYCBCRImage()
984 (void) CloseBlob(image); in ReadYCBCRImage()
986 return(DestroyImageList(image)); in ReadYCBCRImage()
987 return(GetFirstImageInList(image)); in ReadYCBCRImage()
1001 % RegisterYCBCRImage() adds attributes for the YCbCr or YCbCrA image format to
1002 % the list of supported formats. The attributes include the image format
1069 % WriteYCBCRImage() writes an image to a file in the YCbCr or YCbCrA
1075 % Image *image,ExceptionInfo *exception)
1079 % o image_info: the image info.
1081 % o image: The image.
1087 Image *image,ExceptionInfo *exception) in WriteYCBCRImage() argument
1120 assert(image != (Image *) NULL); in WriteYCBCRImage()
1121 assert(image->signature == MagickCoreSignature); in WriteYCBCRImage()
1122 if (image->debug != MagickFalse) in WriteYCBCRImage()
1123 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in WriteYCBCRImage()
1127 Open output image file. in WriteYCBCRImage()
1131 status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception); in WriteYCBCRImage()
1139 image->alpha_trait=BlendPixelTrait; in WriteYCBCRImage()
1142 imageListLength=GetImageListLength(image); in WriteYCBCRImage()
1148 if (image->colorspace != YCbCrColorspace) in WriteYCBCRImage()
1149 (void) TransformImageColorspace(image,YCbCrColorspace,exception); in WriteYCBCRImage()
1151 (image->alpha_trait == UndefinedPixelTrait)) in WriteYCBCRImage()
1152 (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception); in WriteYCBCRImage()
1153 quantum_info=AcquireQuantumInfo(image_info,image); in WriteYCBCRImage()
1165 for (y=0; y < (ssize_t) image->rows; y++) in WriteYCBCRImage()
1167 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteYCBCRImage()
1170 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1172 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1175 if (image->previous == (Image *) NULL) in WriteYCBCRImage()
1177 status=SetImageProgress(image,SaveImageTag,(MagickOffsetType) y, in WriteYCBCRImage()
1178 image->rows); in WriteYCBCRImage()
1190 for (y=0; y < (ssize_t) image->rows; y++) in WriteYCBCRImage()
1192 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteYCBCRImage()
1195 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1197 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1200 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1202 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1205 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1207 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1212 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1214 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1218 if (image->previous == (Image *) NULL) in WriteYCBCRImage()
1220 status=SetImageProgress(image,SaveImageTag,(MagickOffsetType) y, in WriteYCBCRImage()
1221 image->rows); in WriteYCBCRImage()
1233 for (y=0; y < (ssize_t) image->rows; y++) in WriteYCBCRImage()
1235 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteYCBCRImage()
1238 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1240 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1244 if (image->previous == (Image *) NULL) in WriteYCBCRImage()
1246 status=SetImageProgress(image,SaveImageTag,1,5); in WriteYCBCRImage()
1250 for (y=0; y < (ssize_t) image->rows; y++) in WriteYCBCRImage()
1252 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteYCBCRImage()
1255 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1257 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1261 if (image->previous == (Image *) NULL) in WriteYCBCRImage()
1263 status=SetImageProgress(image,SaveImageTag,2,5); in WriteYCBCRImage()
1267 for (y=0; y < (ssize_t) image->rows; y++) in WriteYCBCRImage()
1269 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteYCBCRImage()
1272 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1274 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1278 if (image->previous == (Image *) NULL) in WriteYCBCRImage()
1280 status=SetImageProgress(image,SaveImageTag,3,5); in WriteYCBCRImage()
1286 for (y=0; y < (ssize_t) image->rows; y++) in WriteYCBCRImage()
1288 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteYCBCRImage()
1291 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1293 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1299 (void) CopyMagickString(image->filename,image_info->filename, in WriteYCBCRImage()
1301 if (image->previous == (Image *) NULL) in WriteYCBCRImage()
1303 status=SetImageProgress(image,SaveImageTag,5,5); in WriteYCBCRImage()
1314 AppendImageFormat("Y",image->filename); in WriteYCBCRImage()
1315 status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode : in WriteYCBCRImage()
1319 for (y=0; y < (ssize_t) image->rows; y++) in WriteYCBCRImage()
1321 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteYCBCRImage()
1324 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1326 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1330 if (image->previous == (Image *) NULL) in WriteYCBCRImage()
1332 status=SetImageProgress(image,SaveImageTag,1,5); in WriteYCBCRImage()
1336 (void) CloseBlob(image); in WriteYCBCRImage()
1337 AppendImageFormat("Cb",image->filename); in WriteYCBCRImage()
1338 status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode : in WriteYCBCRImage()
1342 for (y=0; y < (ssize_t) image->rows; y++) in WriteYCBCRImage()
1344 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteYCBCRImage()
1347 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1349 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1353 if (image->previous == (Image *) NULL) in WriteYCBCRImage()
1355 status=SetImageProgress(image,SaveImageTag,2,5); in WriteYCBCRImage()
1359 (void) CloseBlob(image); in WriteYCBCRImage()
1360 AppendImageFormat("Cr",image->filename); in WriteYCBCRImage()
1361 status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode : in WriteYCBCRImage()
1365 for (y=0; y < (ssize_t) image->rows; y++) in WriteYCBCRImage()
1367 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteYCBCRImage()
1370 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1372 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1376 if (image->previous == (Image *) NULL) in WriteYCBCRImage()
1378 status=SetImageProgress(image,SaveImageTag,3,5); in WriteYCBCRImage()
1384 (void) CloseBlob(image); in WriteYCBCRImage()
1385 AppendImageFormat("A",image->filename); in WriteYCBCRImage()
1386 status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode : in WriteYCBCRImage()
1390 for (y=0; y < (ssize_t) image->rows; y++) in WriteYCBCRImage()
1392 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WriteYCBCRImage()
1395 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteYCBCRImage()
1397 count=WriteBlob(image,length,pixels); in WriteYCBCRImage()
1401 if (image->previous == (Image *) NULL) in WriteYCBCRImage()
1403 status=SetImageProgress(image,SaveImageTag,4,5); in WriteYCBCRImage()
1408 (void) CloseBlob(image); in WriteYCBCRImage()
1409 (void) CopyMagickString(image->filename,image_info->filename, in WriteYCBCRImage()
1411 if (image->previous == (Image *) NULL) in WriteYCBCRImage()
1413 status=SetImageProgress(image,SaveImageTag,5,5); in WriteYCBCRImage()
1421 if (GetNextImageInList(image) == (Image *) NULL) in WriteYCBCRImage()
1423 image=SyncNextImageInList(image); in WriteYCBCRImage()
1424 status=SetImageProgress(image,SaveImagesTag,scene++,imageListLength); in WriteYCBCRImage()
1428 (void) CloseBlob(image); in WriteYCBCRImage()