]> granicus.if.org Git - imagemagick/blob - MagickWand/magick-wand-private.h
(no commit message)
[imagemagick] / MagickWand / magick-wand-private.h
1 /*
2   Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
3   dedicated to making software imaging solutions freely available.
4   
5   You may not use this file except in compliance with the License.
6   obtain a copy of the License at
7   
8     http://www.imagemagick.org/script/license.php
9   
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.
15
16   ImageMagick pixel wand API.
17 */
18 #ifndef _MAGICKWAND_MAGICK_WAND_PRIVATE_H
19 #define _MAGICKWAND_MAGICK_WAND_PRIVATE_H
20
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24
25 #define DegreesToRadians(x)  (MagickPI*(x)/180.0)
26 #define MagickWandId  "MagickWand"
27 #define QuantumTick(i,span) ((MagickBooleanType) ((((i) & ((i)-1)) == 0) || \
28    (((i) & 0xfff) == 0) || \
29    ((MagickOffsetType) (i) == ((MagickOffsetType) (span)-1))))
30 #define RadiansToDegrees(x) (180.0*(x)/MagickPI)
31
32 struct _MagickWand
33 {
34   size_t
35     id;
36
37   char
38     name[MaxTextExtent];  /* Wand name to use for MagickWand Logs */
39
40   Image
41     *images;          /* The images in this wand - also the current image */
42
43   ImageInfo
44     *image_info;      /* Global settings used for images in Wand */
45
46   ExceptionInfo
47     *exception;
48
49   MagickBooleanType
50     insert_before,    /* wand set to first image, prepend new images */
51     image_pending,    /* this image is pending Next/Previous Iteration */
52     debug;            /* Log calls to MagickWand library */
53
54   size_t
55     signature;
56 };
57
58 #if defined(__cplusplus) || defined(c_plusplus)
59 }
60 #endif
61
62 #endif