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 MagickPI 3.14159265358979323846264338327950288419716939937510
00026 #define MagickWandId "MagickWand"
00027 #define QuantumTick(i,span) ((MagickBooleanType) ((((i) & ((i)-1)) == 0) || \
00028 (((i) & 0xfff) == 0) || \
00029 ((MagickOffsetType) (i) == ((MagickOffsetType) (span)-1))))
00030 #define ThrowWandException(severity,tag,context) \
00031 { \
00032 (void) ThrowMagickException(wand->exception,GetMagickModule(),severity, \
00033 tag,"`%s'",context); \
00034 return(MagickFalse); \
00035 }
00036 #define ThrowWandFatalException(severity,tag,context) \
00037 { \
00038 ExceptionInfo \
00039 *exception; \
00040 \
00041 exception=AcquireExceptionInfo(); \
00042 (void) ThrowMagickException(exception,GetMagickModule(),severity,tag, \
00043 "`%s'",context); \
00044 CatchException(exception); \
00045 (void) DestroyExceptionInfo(exception); \
00046 MagickWandTerminus(); \
00047 _exit((int) (severity-FatalErrorException)+1); \
00048 }
00049
00050 struct _MagickWand
00051 {
00052 size_t
00053 id;
00054
00055 char
00056 name[MaxTextExtent];
00057
00058 ExceptionInfo
00059 *exception;
00060
00061 ImageInfo
00062 *image_info;
00063
00064 QuantizeInfo
00065 *quantize_info;
00066
00067 Image
00068 *images;
00069
00070 MagickBooleanType
00071 insert_before,
00072 image_pending,
00073 debug;
00074
00075 size_t
00076 signature;
00077 };
00078
00079 #if defined(__cplusplus) || defined(c_plusplus)
00080 }
00081 #endif
00082
00083 #endif