00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef MAGICKWAND_MAGICK_WAND_PRIVATE_H
00019 #define MAGICKWAND_MAGICK_WAND_PRIVATE_H
00020
00021 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024
00025 #define MagickWandId "MagickWand"
00026 #define QuantumTick(i,span) ((MagickBooleanType) ((((i) & ((i)-1)) == 0) || \
00027 (((i) & 0xfff) == 0) || \
00028 ((MagickOffsetType) (i) == ((MagickOffsetType) (span)-1))))
00029 #define ThrowWandException(severity,tag,context) \
00030 { \
00031 (void) ThrowMagickException(wand->exception,GetMagickModule(),severity, \
00032 tag,"`%s'",context); \
00033 return(MagickFalse); \
00034 }
00035 #define ThrowWandFatalException(severity,tag,context) \
00036 { \
00037 ExceptionInfo \
00038 *fatal_exception; \
00039 \
00040 fatal_exception=AcquireExceptionInfo(); \
00041 (void) ThrowMagickException(fatal_exception,GetMagickModule(),severity,tag, \
00042 "`%s'",context); \
00043 CatchException(fatal_exception); \
00044 (void) DestroyExceptionInfo(fatal_exception); \
00045 MagickWandTerminus(); \
00046 _exit((int) (severity-FatalErrorException)+1); \
00047 }
00048
00049 struct _MagickWand
00050 {
00051 size_t
00052 id;
00053
00054 char
00055 name[MagickPathExtent];
00056
00057 Image
00058 *images;
00059
00060 ImageInfo
00061 *image_info;
00062
00063 ExceptionInfo
00064 *exception;
00065
00066 MagickBooleanType
00067 insert_before,
00068 image_pending,
00069 debug;
00070
00071 size_t
00072 signature;
00073 };
00074
00075 #if defined(__cplusplus) || defined(c_plusplus)
00076 }
00077 #endif
00078
00079 #endif