]> granicus.if.org Git - imagemagick/blob - wand/magick-wand-private.h
(no commit message)
[imagemagick] / wand / magick-wand-private.h
1 /*
2   Copyright 1999-2010 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 MagickPI  3.14159265358979323846264338327950288419716939937510
27 #define MagickWandId  "MagickWand"
28 #define QuantumScale  ((MagickRealType) 1.0/(MagickRealType) QuantumRange)
29 #define QuantumTick(i,span) ((MagickBooleanType) ((((i) & ((i)-1)) == 0) || \
30    (((i) & 0xfff) == 0) || \
31    ((MagickOffsetType) (i) == ((MagickOffsetType) (span)-1))))
32 #define RadiansToDegrees(x) (180.0*(x)/MagickPI)
33
34 struct _MagickWand
35 {
36   size_t
37     id;
38
39   char
40     name[MaxTextExtent];
41
42   ExceptionInfo
43     *exception;
44
45   ImageInfo
46     *image_info;
47
48   QuantizeInfo
49     *quantize_info;
50
51   Image
52     *images;
53
54   MagickBooleanType
55     active,
56     pend,
57     debug;
58
59   size_t
60     signature;
61 };
62
63 #if defined(__cplusplus) || defined(c_plusplus)
64 }
65 #endif
66
67 #endif