blob: 30c4e399575834357a2818c8de307a7934b9673e [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristy1454be72011-12-19 01:52:48 +00002 Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00003 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)
22extern "C" {
23#endif
24
25#define DegreesToRadians(x) (MagickPI*(x)/180.0)
cristy3ed852e2009-09-05 21:47:34 +000026#define MagickWandId "MagickWand"
cristy3ed852e2009-09-05 21:47:34 +000027#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
32struct _MagickWand
33{
cristybb503372010-05-27 20:51:26 +000034 size_t
cristy3ed852e2009-09-05 21:47:34 +000035 id;
36
37 char
anthonya89dd172011-10-04 13:29:35 +000038 name[MaxTextExtent]; /* Wand name to use for MagickWand Logs */
39
40 Image
41 *images; /* The images in this wand */
42
43 ImageInfo
44 *image_info; /* Global settings used for images in Wand */
45
46 QuantizeInfo
47 *quantize_info; /* for CLI API usage, not used by MagickWand API */
48
49 DrawInfo
50 *draw_info; /* for CLI API usage, not used by MagickWand API */
51
52 MagickBooleanType
53 set_first, /* wand set to first image, prepend new images */
54 image_pending, /* this image is pending Next Iteration */
55 debug; /* Log calls to MagickWand library */
cristy3ed852e2009-09-05 21:47:34 +000056
57 ExceptionInfo
58 *exception;
59
cristybb503372010-05-27 20:51:26 +000060 size_t
cristy3ed852e2009-09-05 21:47:34 +000061 signature;
62};
63
64#if defined(__cplusplus) || defined(c_plusplus)
65}
66#endif
67
68#endif