2 Copyright 1999-2015 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 ImageMagick pixel wand API.
18 #ifndef _MAGICKWAND_MAGICK_WAND_PRIVATE_H
19 #define _MAGICKWAND_MAGICK_WAND_PRIVATE_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #define MagickWandId "MagickWand"
26 #define QuantumTick(i,span) ((MagickBooleanType) ((((i) & ((i)-1)) == 0) || \
27 (((i) & 0xfff) == 0) || \
28 ((MagickOffsetType) (i) == ((MagickOffsetType) (span)-1))))
29 #define ThrowWandException(severity,tag,context) \
31 (void) ThrowMagickException(wand->exception,GetMagickModule(),severity, \
32 tag,"`%s'",context); \
33 return(MagickFalse); \
35 #define ThrowWandFatalException(severity,tag,context) \
40 fatal_exception=AcquireExceptionInfo(); \
41 (void) ThrowMagickException(fatal_exception,GetMagickModule(),severity,tag, \
43 CatchException(fatal_exception); \
44 (void) DestroyExceptionInfo(fatal_exception); \
45 MagickWandTerminus(); \
46 _exit((int) (severity-FatalErrorException)+1); \
55 name[MagickPathExtent]; /* Wand name to use for MagickWand Logs */
58 *images; /* The images in this wand - also the current image */
61 *image_info; /* Global settings used for images in Wand */
67 insert_before, /* wand set to first image, prepend new images */
68 image_pending, /* this image is pending Next/Previous Iteration */
69 debug; /* Log calls to MagickWand library */
75 #if defined(__cplusplus) || defined(c_plusplus)