Lines Matching refs:exception
60 #include "MagickCore/exception.h"
61 #include "MagickCore/exception-private.h"
295 % ExceptionInfo *exception)
301 % o exception: return any errors or warnings in this structure.
318 ExceptionInfo *exception)
354 assert(exception != (ExceptionInfo *) NULL);
355 assert(exception->signature == MagickCoreSignature);
356 image=AcquireImage(image_info,exception);
357 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
413 exception);
450 % ExceptionInfo *exception)
456 % o exception: return any errors or warnings in this structure.
470 static MagickBooleanType DecodeLabImage(Image *image,ExceptionInfo *exception)
482 image_view=AcquireAuthenticCacheView(image,exception);
493 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
515 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
523 const unsigned char *datum,ssize_t length,ExceptionInfo *exception)
537 status=SetImageProfile(image,name,profile,exception);
561 *exception;
569 exception=(ExceptionInfo *) GetMagickThreadValue(tiff_exception);
570 if (exception != (ExceptionInfo *) NULL)
571 (void) ThrowMagickException(exception,GetMagickModule(),CoderError,message,
581 ExceptionInfo *exception)
595 (void) ReadProfile(image,"icc",profile,(ssize_t) length,exception);
600 (void) ReadProfile(image,"8bim",profile,(ssize_t) length,exception);
608 (void) ReadProfile(image,"iptc",profile,4L*length,exception);
614 (void) ReadProfile(image,"xmp",profile,(ssize_t) length,exception);
619 exception);
623 (void) ReadProfile(image,"tiff:37724",profile,(ssize_t) length,exception);
626 static void TIFFGetProperties(TIFF *tiff,Image *image,ExceptionInfo *exception)
642 (void) SetImageProperty(image,"tiff:artist",text,exception);
644 (void) SetImageProperty(image,"tiff:copyright",text,exception);
646 (void) SetImageProperty(image,"tiff:timestamp",text,exception);
648 (void) SetImageProperty(image,"tiff:document",text,exception);
650 (void) SetImageProperty(image,"tiff:hostcomputer",text,exception);
652 (void) SetImageProperty(image,"comment",text,exception);
654 (void) SetImageProperty(image,"tiff:make",text,exception);
656 (void) SetImageProperty(image,"tiff:model",text,exception);
662 (void) SetImageProperty(image,"tiff:image-id",message,exception);
665 (void) SetImageProperty(image,"label",text,exception);
667 (void) SetImageProperty(image,"tiff:software",text,exception);
673 (void) SetImageProperty(image,"tiff:kodak-33423",message,exception);
680 (void) SetImageProperty(image,"tiff:kodak-36867",message,exception);
688 exception);
693 (void) SetImageProperty(image,"tiff:subfiletype","PAGE",exception);
698 (void) SetImageProperty(image,"tiff:subfiletype","MASK",exception);
707 (void) SetImageProperty(image,"tiff:tietz_offset",message,exception);
712 ExceptionInfo *exception)
843 (void) SetImageProperty(image,exif_info[i].property,value,exception);
901 *exception;
909 exception=(ExceptionInfo *) GetMagickThreadValue(tiff_exception);
910 if (exception != (ExceptionInfo *) NULL)
911 (void) ThrowMagickException(exception,GetMagickModule(),CoderWarning,
1002 ExceptionInfo *exception)
1048 layers=CloneImage(image,image->columns,image->rows,MagickTrue,exception);
1058 ReadPSDLayers(layers,image_info,&info,MagickFalse,exception);
1078 ExceptionInfo *exception)
1156 assert(exception != (ExceptionInfo *) NULL);
1157 assert(exception->signature == MagickCoreSignature);
1158 image=AcquireImage(image_info,exception);
1159 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
1165 (void) SetMagickThreadValue(tiff_exception,exception);
1192 AcquireNextImage(image_info,image,exception);
1226 exception);
1232 exception);
1238 exception);
1243 (void) SetImageProperty(image,"tiff:photometric","palette",exception);
1248 (void) SetImageProperty(image,"tiff:photometric","RGB",exception);
1253 (void) SetImageProperty(image,"tiff:photometric","CIELAB",exception);
1259 exception);
1264 (void) SetImageProperty(image,"tiff:photometric","LOGLUV",exception);
1270 (void) SetImageProperty(image,"tiff:photometric","MASK",exception);
1276 (void) SetImageProperty(image,"tiff:photometric","separated",exception);
1281 (void) SetImageProperty(image,"tiff:photometric","YCBCR",exception);
1286 (void) SetImageProperty(image,"tiff:photometric","unknown",exception);
1304 exception));
1318 (void) SetImageProperty(image,"tiff:endian","lsb",exception);
1323 (void) SetImageProperty(image,"tiff:endian","msb",exception);
1329 SetImageColorspace(image,GRAYColorspace,exception);
1331 SetImageColorspace(image,CMYKColorspace,exception);
1333 SetImageColorspace(image,LabColorspace,exception);
1334 TIFFGetProfiles(tiff,image,image_info->ping,exception);
1335 TIFFGetProperties(tiff,image,exception);
1338 TIFFGetEXIFProperties(tiff,image,exception);
1417 sampling_factor,exception);
1475 (void) SetImageProperty(image,"tiff:alpha","unspecified",exception);
1489 exception);
1494 exception);
1504 if (AcquireImageColormap(image,colors,exception) == MagickFalse)
1557 image->depth=GetImageDepth(image,exception);
1569 status=SetImageExtent(image,image->columns,image->rows,exception);
1581 (void) SetImageProperty(image,"tiff:rows-per-strip",value,exception);
1657 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception);
1661 quantum_type,pixels,exception);
1662 if (SyncAuthenticPixels(image,exception) == MagickFalse)
1714 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception);
1718 quantum_type,pixels,exception);
1719 if (SyncAuthenticPixels(image,exception) == MagickFalse)
1750 q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
1773 quantum_type,pixels,exception);
1774 if (SyncAuthenticPixels(image,exception) == MagickFalse)
1807 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception);
1824 if (SyncAuthenticPixels(image,exception) == MagickFalse)
1854 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception);
1880 if (SyncAuthenticPixels(image,exception) == MagickFalse)
1911 (void) SetImageStorageClass(image,DirectClass,exception);
1942 exception);
1991 if (SyncAuthenticPixels(image,exception) == MagickFalse)
2047 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception);
2065 if (SyncAuthenticPixels(image,exception) == MagickFalse)
2083 DecodeLabImage(image,exception);
2104 AcquireNextImage(image_info,image,exception);
2118 TIFFReadPhotoshopLayers(image,image_info,exception);
2429 % o exception: return any errors or warnings in this structure.
2433 Image *image,ExceptionInfo *exception)
2478 assert(exception != (ExceptionInfo *) NULL);
2479 assert(exception->signature == MagickCoreSignature);
2480 status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception);
2483 huffman_image=CloneImage(image,0,0,MagickTrue,exception);
2496 ThrowFileException(exception,FileOpenError,"UnableToCreateTemporaryFile",
2502 (void) SetImageType(huffman_image,BilevelType,exception);
2505 (void) SetImageType(image,BilevelType,exception);
2506 (void) SetImageDepth(image,1,exception);
2510 status=WriteTIFFImage(write_info,huffman_image,exception);
2526 ThrowFileException(exception,FileOpenError,"UnableToOpenFile",
2594 % Image *image,ExceptionInfo *exception)
2602 % o exception: return any errors or warnings in this structure.
2606 Image *image,ExceptionInfo *exception)
2635 clone_image=CloneImage(next,0,0,MagickFalse,exception);
2640 (void) SetImageProperty(clone_image,"tiff:subfiletype","none",exception);
2651 pyramid_image=ResizeImage(next,columns,rows,image->filter,exception);
2656 exception);
2668 status=WriteTIFFImage(write_info,images,exception);
2692 % Image *image,ExceptionInfo *exception)
2700 % o exception: return any errors or warnings in this structure.
2726 static MagickBooleanType EncodeLabImage(Image *image,ExceptionInfo *exception)
2738 image_view=AcquireAuthenticCacheView(image,exception);
2749 q=GetCacheViewAuthenticPixels(image_view,0,y,image->columns,1,exception);
2771 if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
2958 Image *image,ExceptionInfo *exception)
2993 value=GetImageProperty(image,"label",exception);
2996 value=GetImageProperty(image,"comment",exception);
3026 ExceptionInfo *exception)
3045 value=GetImageProperty(image,exif_info[i].property,exception);
3095 Image *image,ExceptionInfo *exception)
3160 assert(exception != (ExceptionInfo *) NULL);
3161 assert(exception->signature == MagickCoreSignature);
3162 status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception);
3165 (void) SetMagickThreadValue(tiff_exception,exception);
3205 (void) SetImageType(image,image_info->type,exception);
3216 (void) SetImageType(image,BilevelType,exception);
3217 (void) SetImageDepth(image,1,exception);
3222 (void) SetImageStorageClass(image,DirectClass,exception);
3223 (void) SetImageDepth(image,8,exception);
3234 (IsHighDynamicRangeImage(image,exception) != MagickFalse))
3307 (void) ThrowMagickException(exception,GetMagickModule(),CoderError,
3339 (void) ThrowMagickException(exception,GetMagickModule(),CoderError,
3362 EncodeLabImage(image,exception);
3369 (void) SetImageStorageClass(image,DirectClass,exception);
3370 (void) SetImageDepth(image,8,exception);
3379 (SetImageGray(image,exception) != MagickFalse))
3387 SetImageMonochrome(image,exception);
3522 value=GetImageProperty(image,"jpeg:sampling-factor",exception);
3625 (void) ThrowMagickException(exception,GetMagickModule(),CoderError,
3686 (void) TIFFSetProperties(tiff,image_info,image,exception);
3690 (void) TIFFSetEXIFProperties(tiff,image,exception);
3721 p=GetVirtualPixels(image,0,y,image->columns,1,exception);
3725 quantum_type,pixels,exception);
3750 p=GetVirtualPixels(image,0,y,image->columns,1,exception);
3754 RedQuantum,pixels,exception);
3769 p=GetVirtualPixels(image,0,y,image->columns,1,exception);
3773 GreenQuantum,pixels,exception);
3788 p=GetVirtualPixels(image,0,y,image->columns,1,exception);
3792 BlueQuantum,pixels,exception);
3808 p=GetVirtualPixels(image,0,y,image->columns,1,exception);
3812 quantum_info,AlphaQuantum,pixels,exception);
3836 (void) TransformImageColorspace(image,CMYKColorspace,exception);
3842 p=GetVirtualPixels(image,0,y,image->columns,1,exception);
3846 quantum_type,pixels,exception);
3913 p=GetVirtualPixels(image,0,y,image->columns,1,exception);
3917 quantum_type,pixels,exception);
3933 DecodeLabImage(image,exception);