MagickWand: magick-wand-private.h Source File

# magick-wand-private.h

Go to the documentation of this file.

    00001 /*
    00002   Copyright 1999-2010 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 MagickPI  3.14159265358979323846264338327950288419716939937510
    00027 #define MagickWandId  "MagickWand"
    00028 #define QuantumScale  ((MagickRealType) 1.0/(MagickRealType) QuantumRange)
    00029 #define QuantumTick(i,span) ((MagickBooleanType) ((((i) & ((i)-1)) == 0) || \
    00030    (((i) & 0xfff) == 0) || \
    00031    ((MagickOffsetType) (i) == ((MagickOffsetType) (span)-1))))
    00032 #define RadiansToDegrees(x) (180.0*(x)/MagickPI)
    00033
    00034 struct _MagickWand
    00035 {
    00036   unsigned long
    00037     id;
    00038
    00039   char
    00040     name[MaxTextExtent];
    00041
    00042   ExceptionInfo
    00043     *exception;
    00044
    00045   ImageInfo
    00046     *image_info;
    00047
    00048   QuantizeInfo
    00049     *quantize_info;
    00050
    00051   Image
    00052     *images;
    00053
    00054   MagickBooleanType
    00055     active,
    00056     pend,
    00057     debug;
    00058
    00059   unsigned long
    00060     signature;
    00061 };
    00062
    00063 #if defined(__cplusplus) || defined(c_plusplus)
    00064 }
    00065 #endif
    00066
    00067 #endif