magick-wand-private.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.  You may
00006   obtain a copy of the License at
00007   
00008     https://imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   ImageMagick pixel wand API.
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

Generated on 15 Jun 2020 for MagickWand by  doxygen 1.6.1