Lines Matching refs:exception
59 #include "MagickCore/exception.h"
60 #include "MagickCore/exception-private.h"
847 LosslessReduceDepthOK(Image *image,ExceptionInfo *exception)
909 p=GetVirtualPixels(image,0,y,image->columns,1,exception);
1270 % Image *ReadPNGImage(const ImageInfo *image_info,ExceptionInfo *exception)
1276 % o exception: return any errors or warnings in this structure.
1320 % being reused, and just point to the original image->exception instead
1366 png_error(png_ptr,"Read Exception");
1410 png_error(png_ptr,"Read Exception");
1636 *exception;
1642 *exception;
1652 exception=error_info->exception;
1657 exception,GetMagickModule(),CoderError,message,
1673 *exception;
1686 exception=error_info->exception;
1690 (void) ThrowMagickException(exception,GetMagickModule(),CoderWarning,
1722 const ImageInfo *image_info, png_textp text,int ii,ExceptionInfo *exception)
1806 (void) SetImageProfile(image,&text[ii].key[17],profile,exception);
1866 ExceptionInfo *exception)
1878 SetImageProperty(image,"png:tIME",timestamp,exception);
1902 % ExceptionInfo *exception)
1910 % o exception: return any errors or warnings in this structure.
1914 const ImageInfo *image_info, ExceptionInfo *exception)
2142 error_info.exception=exception;
2203 * block, use png_error() instead of Throwing an Exception, to ensure
2364 (void) SetImageProperty(image,"png:IHDR.color-type-orig",msg,exception);
2367 (void) SetImageProperty(image,"png:IHDR.bit-depth-orig",msg,exception);
2547 (void) SetImageProfile(image,"icc",profile,exception);
2552 (void) SetImageProfile(image,"icc",profile,exception);
2965 SetImageColorspace(image,GRAYColorspace,exception);
2974 SetImageColorspace(image,GRAYColorspace,exception);
3021 if (AcquireImageColormap(image,image->colors,exception) == MagickFalse)
3076 (void) SetImageProperty(image,"png:IHDR.width,height",msg,exception);
3079 (void) SetImageProperty(image,"png:IHDR.bit_depth",msg,exception);
3084 (void) SetImageProperty(image,"png:IHDR.color_type",msg,exception);
3101 (void) SetImageProperty(image,"png:IHDR.interlace_method",msg,exception);
3108 exception);
3112 read_tIME_chunk(image,ping,ping_info,exception);
3156 status=SetImageExtent(image,image->columns,image->rows,exception);
3216 q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
3223 GrayQuantum,ping_pixels+row_offset,exception);
3227 GrayAlphaQuantum,ping_pixels+row_offset,exception);
3231 RGBAQuantum,ping_pixels+row_offset,exception);
3235 IndexQuantum,ping_pixels+row_offset,exception);
3239 RGBQuantum,ping_pixels+row_offset,exception);
3288 if (SyncAuthenticPixels(image,exception
3344 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception);
3444 q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
3454 if (SyncAuthenticPixels(image,exception) == MagickFalse)
3506 (void) SyncImage(image,exception);
3524 (void) SetImageBackgroundColor(image,exception);
3571 (void) SyncImage(image,exception);
3582 q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
3613 if (SyncAuthenticPixels(image,exception) == MagickFalse)
3651 (int) i,exception);
3687 (void) SetImageProperty(image,text[i].key,value,exception);
3743 exception);
3799 (void) SetImageType(image,GrayscaleAlphaType,exception);
3802 (void) SetImageType(image,PaletteAlphaType,exception);
3805 (void) SetImageType(image,TrueColorAlphaType,exception);
3811 (void) SetImageType(image,GrayscaleType,exception);
3814 (void) SetImageType(image,PaletteType,exception);
3817 (void) SetImageType(image,TrueColorType,exception);
3832 exception);
3840 exception);
3848 exception);
3856 exception);
3865 exception);
3870 exception);
3880 exception);
3890 exception);
3900 exception);
3910 exception);
3915 read_tIME_chunk(image,ping,end_info,exception);
3925 exception);
3945 * Throwing an Exception when an error occurs.
3953 static Image *ReadPNGImage(const ImageInfo *image_info,ExceptionInfo *exception)
3982 assert(exception != (ExceptionInfo *) NULL);
3983 assert(exception->signature == MagickCoreSignature);
3985 image=AcquireImage(image_info,exception);
3987 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
4016 image=ReadOnePNGImage(mng_info,image_info,exception);
4058 SetImageColorspace(image,RGBColorspace,exception);
4101 % ExceptionInfo *exception)
4109 % o exception: return any errors or warnings in this structure.
4113 const ImageInfo *image_info, ExceptionInfo *exception)
4192 AcquireNextImage(image_info,image,exception);
4331 color_image=AcquireImage(color_image_info,exception);
4342 exception);
4356 alpha_image=AcquireImage(alpha_image_info,exception);
4371 exception);
4652 jng_image=ReadImage(color_image_info,exception);
4668 status=SetImageExtent(image,image->columns,image->rows,exception);
4674 s=GetVirtualPixels(jng_image,0,y,image->columns,1,exception);
4675 q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
4685 if (SyncAuthenticPixels(image,exception) == MagickFalse)
4715 jng_image=ReadImage(alpha_image_info,exception);
4721 exception);
4722 q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
4742 if (SyncAuthenticPixels(image,exception) == MagickFalse)
4813 % *exception)
4819 % o exception: return any errors or warnings in this structure.
4823 static Image *ReadJNGImage(const ImageInfo *image_info,ExceptionInfo *exception)
4848 assert(exception != (ExceptionInfo *) NULL);
4849 assert(exception->signature == MagickCoreSignature);
4851 image=AcquireImage(image_info,exception);
4853 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
4882 image=ReadOneJNGImage(mng_info,image_info,exception);
4911 static Image *ReadMNGImage(const ImageInfo *image_info,ExceptionInfo *exception)
5016 assert(exception != (ExceptionInfo *) NULL);
5017 assert(exception->signature == MagickCoreSignature);
5019 image=AcquireImage(image_info,exception);
5021 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
5140 (void) ThrowMagickException(exception,GetMagickModule(),
5151 (void) ThrowMagickException(exception,GetMagickModule(),
5228 AcquireNextImage(image_info,image,exception);
5291 (void) ThrowMagickException(exception,GetMagickModule(),
5305 (void) ThrowMagickException(exception,GetMagickModule(),
5315 (void) ThrowMagickException(exception,GetMagickModule(),
5324 (void) ThrowMagickException(exception,
5553 (void) ThrowMagickException(exception,GetMagickModule(),
5677 AcquireNextImage(image_info,image,exception);
5710 (void) SetImageBackgroundColor(image,exception);
5940 (void) ThrowMagickException(exception,GetMagickModule(),
5976 (void) ThrowMagickException(exception,
6054 (void) ThrowMagickException(exception,
6081 (void) ThrowMagickException(exception,GetMagickModule(),
6091 (void) ThrowMagickException(exception,GetMagickModule(),
6131 (void) ThrowMagickException(exception,GetMagickModule(),
6141 (void) ThrowMagickException(exception,GetMagickModule(),
6252 AcquireNextImage(image_info,image,exception);
6285 (void) SetImageBackgroundColor(image,exception);
6305 AcquireNextImage(image_info,image,exception);
6338 (void) SetImageBackgroundColor(image,exception);
6354 AcquireNextImage(image_info,image,exception);
6416 image=ReadOnePNGImage(mng_info,image_info,exception);
6420 image=ReadOneJNGImage(mng_info,image_info,exception);
6546 AcquireNextImage(image_info,image,exception);
6574 exception);
6589 if (SyncAuthenticPixels(image,exception) == MagickFalse)
6598 (void) SetImageBackgroundColor(large_image,exception);
6603 (void) SetImageBackgroundColor(large_image,exception);
6638 n=GetAuthenticPixels(image,0,0,image->columns,1,exception);
6665 exception);
6678 1,exception);
6796 if (SyncAuthenticPixels(large_image,exception) == 0)
6827 q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
6951 if (SyncAuthenticPixels(image,exception) == MagickFalse)
6962 q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
6977 if (SyncAuthenticPixels(image,exception) == MagickFalse)
7032 im=CropImage(image,&crop_info,exception);
7056 (void) SetImageBackgroundColor(image,exception);
7083 if (LosslessReduceDepthOK(image,exception) != MagickFalse)
7122 AcquireNextImage(image_info,image,exception);
7146 (void) SetImageBackgroundColor(image,exception);
7164 (void) ThrowMagickException(exception,GetMagickModule(),
7178 (void) ThrowMagickException(exception,GetMagickModule(),
7192 (void) ThrowMagickException(exception,GetMagickModule(),
7203 (void) ThrowMagickException(exception,GetMagickModule(),
7278 next_image=CoalesceImages(image,exception);
7352 static Image *ReadPNGImage(const ImageInfo *image_info,ExceptionInfo *exception)
7357 (void) ThrowMagickException(exception,GetMagickModule(),CoderError,
7363 static Image *ReadMNGImage(const ImageInfo *image_info,ExceptionInfo *exception)
7365 return(ReadPNGImage(image_info,exception));
7641 % Image *image,ExceptionInfo *exception)
7649 % o exception: return any errors or warnings in this structure.
7857 const char *date,ExceptionInfo *exception)
7878 (void) ThrowMagickException(exception,GetMagickModule(),CoderError,
7901 const ImageInfo *IMimage_info,Image *IMimage,ExceptionInfo *exception)
8045 image = CloneImage(IMimage,0,0,MagickFalse,exception);
8271 (void) SyncImage(image,exception);
8289 (void) TransformImageColorspace(image,sRGBColorspace,exception);
8296 (void) SyncImage(image,exception);
8322 r=GetAuthenticPixels(image,0,y,image->columns,1,exception);
8333 if (SyncAuthenticPixels(image,exception) == MagickFalse)
8352 r=GetAuthenticPixels(image,0,y,image->columns,1,exception);
8363 if (SyncAuthenticPixels(image,exception) == MagickFalse)
8382 r=GetAuthenticPixels(image,0,y,image->columns,1,exception);
8393 if (SyncAuthenticPixels(image,exception) == MagickFalse)
8427 if (mng_info->write_png8 || LosslessReduceDepthOK(image,exception) != MagickFalse)
8577 q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
8743 q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
8857 if (AcquireImageColormap(image,image_colors,exception) ==
8879 q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
8901 if (SyncAuthenticPixels(image,exception) == MagickFalse)
8997 r=GetAuthenticPixels(image,0,y,image->columns,1,exception);
9014 if (SyncAuthenticPixels(image,exception) == MagickFalse)
9050 r=GetAuthenticPixels(image,0,y,image->columns,1,exception);
9062 if (SyncAuthenticPixels(image,exception) == MagickFalse)
9100 r=GetAuthenticPixels(image,0,y,image->columns,1,exception);
9112 if (SyncAuthenticPixels(image,exception) == MagickFalse)
9153 r=GetAuthenticPixels(image,0,y,image->columns,1,exception);
9165 if (SyncAuthenticPixels(image,exception) == MagickFalse)
9210 r=GetAuthenticPixels(image,0,y,image->columns,1,exception);
9227 if (SyncAuthenticPixels(image,exception) == MagickFalse)
9294 q=GetVirtualPixels(image,0,y,image->columns,1, exception);
9368 (void) ThrowMagickException(exception,GetMagickModule(),CoderError,
9379 error_info.exception=exception;
9431 * block, use png_error() instead of Throwing an Exception, to ensure
10493 (void) SetImageAlpha(image,OpaqueAlpha,exception);
10758 timestamp=GetImageProperty(image,"png:tIME",exception);
10766 timestamp=GetImageProperty(image,"date:modify",exception);
10770 write_tIME_chunk(image,ping,ping_info,timestamp,exception);
10776 if (OpenBlob(image_info,image,WriteBinaryBlobMode,exception) ==
10924 p=GetVirtualPixels(image,0,y,image->columns,1,exception);
10932 quantum_info,GrayQuantum,ping_pixels,exception);
10947 quantum_info,RedQuantum,ping_pixels,exception);
10987 p=GetVirtualPixels(image,0,y,image->columns,1,exception);
10996 quantum_info,GrayQuantum,ping_pixels,exception);
11000 quantum_info,RedQuantum,ping_pixels,exception);
11014 quantum_info,GrayAlphaQuantum,ping_pixels,exception);
11049 p=GetVirtualPixels(image,0,y,image->columns,1, exception);
11058 quantum_info,RedQuantum,ping_pixels,exception);
11062 quantum_info,GrayQuantum,ping_pixels,exception);
11069 exception);
11078 quantum_info,RGBAQuantum,ping_pixels,exception);
11082 quantum_info,RGBQuantum,ping_pixels,exception);
11123 p=GetVirtualPixels(image,0,y,image->columns,1, exception);
11133 quantum_info,GrayQuantum,ping_pixels,exception);
11144 exception);
11150 quantum_info,IndexQuantum,ping_pixels,exception);
11223 value=GetImageProperty(image,property,exception);
11354 (void) SetImageProperty(IMimage,"png:bit-depth-written",s,exception);
11365 * Throwing an Exception when an error occurs.
11392 % Image *image,ExceptionInfo *exception)
11400 % o exception: return any errors or warnings in this structure.
11539 Image *image,ExceptionInfo *exception)
11622 value=GetImageProperty(image,"png:IHDR.bit-depth-orig",exception);
11645 value=GetImageProperty(image,"png:IHDR.color-type-orig",exception);
11684 (void) SetImageType(image,TrueColorAlphaType,exception);
11687 (void) SetImageType(image,TrueColorType,exception);
11689 (void) SyncImage(image,exception);
11699 (void) SetImageType(image,TrueColorAlphaType,exception);
11700 (void) SyncImage(image,exception);
11710 (void) SetImageType(image,TrueColorAlphaType,exception);
11713 (void) SetImageType(image,TrueColorType,exception);
11715 (void) SyncImage(image,exception);
11725 (void) SetImageType(image,TrueColorAlphaType,exception);
11726 (void) SyncImage(image,exception);
11749 (void) ThrowMagickException(exception,
11783 (void) ThrowMagickException(exception,
11906 (void) ThrowMagickException(exception,
11941 (void) ThrowMagickException(exception,
11978 (void) ThrowMagickException(exception,
12201 status=WriteOnePNGImage(mng_info,image_info,image,exception);
12215 const ImageInfo *image_info,Image *image,ExceptionInfo *exception)
12290 jpeg_image=SeparateImage(image,AlphaChannel,exception);
12297 (void) SetImageType(jpeg_image,GrayscaleType,exception);
12313 TrueColorType && SetImageGray(image,exception))
12342 exception);
12358 &length,exception);
12361 value=GetImageProperty(jpeg_image,"png:bit-depth-written",exception);
12370 exception);
12382 exception);
12698 jpeg_image=CloneImage(image,0,0,MagickTrue,exception);
12708 exception);
12731 exception);
12792 % Image *image,ExceptionInfo *exception)
12800 % o exception: return any errors or warnings in this structure.
12805 ExceptionInfo *exception)
12824 status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception);
12846 status=WriteOneJNGImage(mng_info,image_info,image,exception);
12858 ExceptionInfo *exception)
12922 status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception);
13105 if (SetImageGray(image,exception) == MagickFalse)
13189 (void) ThrowMagickException(exception,GetMagickModule(),
13660 status=WriteOneJNGImage(mng_info,write_info,image,exception);
13690 status=WriteOnePNGImage(mng_info,image_info,image,exception);