magick-wand-private.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2019 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 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];  /* Wand name to use for MagickWand Logs */
00056 
00057   Image
00058     *images;          /* The images in this wand - also the current image */
00059 
00060   ImageInfo
00061     *image_info;      /* Global settings used for images in Wand */
00062 
00063   ExceptionInfo
00064     *exception;
00065 
00066   MagickBooleanType
00067     insert_before,    /* wand set to first image, prepend new images */
00068     image_pending,    /* this image is pending Next/Previous Iteration */
00069     debug;            /* Log calls to MagickWand library */
00070 
00071   size_t
00072     signature;
00073 };
00074 
00075 #if defined(__cplusplus) || defined(c_plusplus)
00076 }
00077 #endif
00078 
00079 #endif

Generated on 17 Jul 2019 for MagickWand by  doxygen 1.6.1