Lines Matching refs:exception
57 #include "MagickCore/exception.h"
58 #include "MagickCore/exception-private.h"
103 % MagickBooleanType AutoGammaImage(Image *image,ExceptionInfo *exception)
109 % o exception: return any errors or warnings in this structure.
113 ExceptionInfo *exception)
133 (void) GetImageMean(image,&mean,&sans,exception);
135 return(LevelImage(image,0.0,(double) QuantumRange,gamma,exception));
151 status=GetImageMean(image,&mean,&sans,exception);
153 status&=LevelImage(image,0.0,(double) QuantumRange,gamma,exception);
178 % MagickBooleanType AutoLevelImage(Image *image,ExceptionInfo *exception)
184 % o exception: return any errors or warnings in this structure.
188 ExceptionInfo *exception)
190 return(MinMaxStretchImage(image,0.0,0.0,1.0,exception));
212 % const double brightness,const double contrast,ExceptionInfo *exception)
222 % o exception: return any errors or warnings in this structure.
226 const double brightness,const double contrast,ExceptionInfo *exception)
253 status=FunctionImage(image,PolynomialFunction,2,coefficients,exception);
290 % const PixelInterpolateMethod method,ExceptionInfo *exception)
300 % o exception: return any errors or warnings in this structure.
304 const PixelInterpolateMethod method,ExceptionInfo *exception)
333 if( SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
337 (void) SetImageColorspace(image,sRGBColorspace,exception);
348 clut_view=AcquireVirtualCacheView(clut_image,exception);
354 (clut_image->rows-adjust)/MaxMap,clut_map+i,exception);
357 image_view=AcquireAuthenticCacheView(image,exception);
375 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
416 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
435 (void) SetImageAlphaChannel(image,ActivateAlphaChannel,exception);
474 % const char *color_correction_collection,ExceptionInfo *exception)
482 % o exception: return any errors or warnings in this structure.
486 const char *color_correction_collection,ExceptionInfo *exception)
552 ccc=NewXMLTree((const char *) color_correction_collection,exception);
757 image_view=AcquireAuthenticCacheView(image,exception);
775 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
793 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
833 % const MagickBooleanType sharpen,ExceptionInfo *exception)
841 % o exception: return any errors or warnings in this structure.
873 const MagickBooleanType sharpen,ExceptionInfo *exception)
898 if (AccelerateContrastImage(image,sharpen,exception) != MagickFalse)
930 image_view=AcquireAuthenticCacheView(image,exception);
950 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
967 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
1008 % const char *levels,ExceptionInfo *exception)
1021 % o exception: return any errors or warnings in this structure.
1025 const double black_point,const double white_point,ExceptionInfo *exception)
1058 if (SetImageGray(image,exception) != MagickFalse)
1059 (void) SetImageColorspace(image,GRAYColorspace,exception);
1086 image_view=AcquireVirtualCacheView(image,exception);
1097 p=GetCacheViewVirtualPixels(image_view,0,y,image->columns,1,exception);
1218 image_view=AcquireAuthenticCacheView(image,exception);
1233 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
1260 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
1300 % Image *EnhanceImage(const Image *image,ExceptionInfo *exception)
1306 % o exception: return any errors or warnings in this structure.
1309 MagickExport Image *EnhanceImage(const Image *image,ExceptionInfo *exception)
1362 assert(exception != (ExceptionInfo *) NULL);
1363 assert(exception->signature == MagickCoreSignature);
1365 exception);
1368 if (SetImageStorageClass(enhance_image,DirectClass,exception) == MagickFalse)
1378 image_view=AcquireVirtualCacheView(image,exception);
1379 enhance_view=AcquireAuthenticCacheView(enhance_image,exception);
1403 p=GetCacheViewVirtualPixels(image_view,-2,y-2,image->columns+4,5,exception);
1405 exception);
1461 if (SyncCacheViewAuthenticPixels(enhance_view,exception) == MagickFalse)
1499 % MagickBooleanType EqualizeImage(Image *image,ExceptionInfo *exception)
1505 % o exception: return any errors or warnings in this structure.
1509 ExceptionInfo *exception)
1541 if (AccelerateEqualizeImage(image,exception) != MagickFalse)
1570 image_view=AcquireVirtualCacheView(image,exception);
1581 p=GetCacheViewVirtualPixels(image_view,0,y,image->columns,1,exception);
1690 image_view=AcquireAuthenticCacheView(image,exception);
1705 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
1732 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
1776 % ExceptionInfo *exception)
1794 ExceptionInfo *exception)
1873 image_view=AcquireAuthenticCacheView(image,exception);
1888 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
1918 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
1958 % const PixelIntensityMethod method ,ExceptionInfo *exception)
1966 % o exception: return any errors or warnings in this structure.
1970 const PixelIntensityMethod method,ExceptionInfo *exception)
1992 if (SyncImage(image,exception) == MagickFalse)
1994 if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
1998 if (AccelerateGrayscaleImage(image,method,exception) != MagickFalse)
2002 return(SetImageColorspace(image,GRAYColorspace,exception));
2010 image_view=AcquireAuthenticCacheView(image,exception);
2025 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
2127 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
2146 return(SetImageColorspace(image,GRAYColorspace,exception));
2170 % ExceptionInfo *exception)
2178 % o exception: return any errors or warnings in this structure.
2182 const Image *hald_image,ExceptionInfo *exception)
2224 if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
2227 (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
2240 hald_view=AcquireVirtualCacheView(hald_image,exception);
2241 image_view=AcquireAuthenticCacheView(image,exception);
2256 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
2286 fmod(offset,width),floor(offset/width),&pixel1,exception);
2289 fmod(offset+level,width),floor((offset+level)/width),&pixel2,exception);
2295 fmod(offset,width),floor(offset/width),&pixel1,exception);
2297 fmod(offset+level,width),floor((offset+level)/width),&pixel2,exception);
2318 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
2369 % const double white_point,const double gamma,ExceptionInfo *exception)
2379 % o exception: return any errors or warnings in this structure.
2399 const double white_point,const double gamma,ExceptionInfo *exception)
2449 exception);
2464 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
2491 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
2507 (void) ClampImage(image,exception);
2539 % const double white_point,const double gamma,ExceptionInfo *exception)
2551 % o exception: return any errors or warnings in this structure.
2556 ExceptionInfo *exception)
2606 image_view=AcquireAuthenticCacheView(image,exception);
2621 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
2647 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
2693 % const MagickBooleanType invert,ExceptionInfo *exception)
2705 % o exception: return any errors or warnings in this structure.
2710 const MagickBooleanType invert,ExceptionInfo *exception)
2728 (void) SetImageColorspace(image,sRGBColorspace,exception);
2736 exception);
2743 exception);
2750 exception);
2758 exception);
2766 exception);
2776 exception);
2783 exception);
2790 exception);
2798 exception);
2806 exception);
2832 % ExceptionInfo *exception)
2842 % o exception: return any errors or warnings in this structure.
2846 const double black_point,const double white_point,ExceptionInfo *exception)
2878 image_view=AcquireVirtualCacheView(image,exception);
2887 p=GetCacheViewVirtualPixels(image_view,0,y,image->columns,1,exception);
2917 (double) ScaleMapToQuantum((MagickRealType) white),1.0,exception);
2942 % ExceptionInfo *exception)
2950 % o exception: return any errors or warnings in this structure.
3162 ExceptionInfo *exception)
3208 (void) SetImageColorspace(image,sRGBColorspace,exception);
3304 percent_saturation,colorspace,exception) != MagickFalse)
3309 image_view=AcquireAuthenticCacheView(image,exception);
3324 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
3398 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
3435 % const MagickBooleanType grayscale,ExceptionInfo *exception)
3443 % o exception: return any errors or warnings in this structure.
3447 const MagickBooleanType grayscale,ExceptionInfo *exception)
3492 image_view=AcquireAuthenticCacheView(image,exception);
3509 exception);
3536 sync=SyncCacheViewAuthenticPixels(image_view,exception);
3573 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
3599 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
3636 % MagickBooleanType NormalizeImage(Image *image,ExceptionInfo *exception)
3642 % o exception: return any errors or warnings in this structure.
3646 ExceptionInfo *exception)
3654 return(ContrastStretchImage(image,black_point,white_point,exception));
3682 % ExceptionInfo *exception)
3695 % o exception: return any errors or warnings in this structure.
3785 ExceptionInfo *exception)
3864 image_view=AcquireAuthenticCacheView(image,exception);
3879 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
3908 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)