MagickWand  6.7.5
magick-wand-private.h
Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2012 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.
00006   obtain a copy of the License at
00007   
00008     http://www.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 DegreesToRadians(x)  (MagickPI*(x)/180.0)
00026 #define MagickWandId  "MagickWand"
00027 #define QuantumTick(i,span) ((MagickBooleanType) ((((i) & ((i)-1)) == 0) || \
00028    (((i) & 0xfff) == 0) || \
00029    ((MagickOffsetType) (i) == ((MagickOffsetType) (span)-1))))
00030 #define RadiansToDegrees(x) (180.0*(x)/MagickPI)
00031 
00032 struct _MagickWand
00033 {
00034   size_t
00035     id;
00036 
00037   char
00038     name[MaxTextExtent];  /* Wand name to use for MagickWand Logs */
00039 
00040   Image
00041     *images;          /* The images in this wand - also the current image */
00042 
00043   ImageInfo
00044     *image_info;      /* Global settings used for images in Wand */
00045 
00046   QuantizeInfo
00047     *quantize_info;   /* for CLI API usage, not used by MagickWand API */
00048 
00049   DrawInfo
00050     *draw_info;       /* for CLI API usage, not used by MagickWand API */
00051 
00052   MagickBooleanType
00053     set_first,        /* wand set to first image, prepend new images */
00054     image_pending,    /* this image is pending Next Iteration */
00055     debug;            /* Log calls to MagickWand library */
00056 
00057   ExceptionInfo
00058     *exception;
00059 
00060   size_t
00061     signature;
00062 };
00063 
00064 #if defined(__cplusplus) || defined(c_plusplus)
00065 }
00066 #endif
00067 
00068 #endif