MagickCore: deprecate.h Source File

# deprecate.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   MagickCore deprecated methods.
    00017 */
    00018 #ifndef _MAGICKCORE_DEPRECATE_H
    00019 #define _MAGICKCORE_DEPRECATE_H
    00020
    00021 #if defined(__cplusplus) || defined(c_plusplus)
    00022 extern "C" {
    00023 #endif
    00024
    00025 #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
    00026
    00027 #include <stdarg.h>
    00028 #include "magick/blob.h"
    00029 #include "magick/cache-view.h"
    00030 #include "magick/draw.h"
    00031 #include "magick/constitute.h"
    00032 #include "magick/magick-config.h"
    00033 #include "magick/quantum.h"
    00034 #include "magick/registry.h"
    00035 #include "magick/semaphore.h"
    00036
    00037 #if !defined(magick_attribute)
    00038 #  if !defined(__GNUC__)
    00039 #    define magick_attribute(x) /*nothing*/
    00040 #  else
    00041 #    define magick_attribute __attribute__
    00042 #  endif
    00043 #endif
    00044
    00045 #define Downscale(quantum)  ScaleQuantumToChar(quantum)
    00046 #define LABColorspace LabColorspace
    00047 #define Intensity(color)  PixelIntensityToQuantum(color)
    00048 #define LiberateUniqueFileResource(resource) \
    00049   RelinquishUniqueFileResource(resource)
    00050 #define LiberateMagickResource(resource)  RelinquishMagickResource(resource)
    00051 #define LiberateSemaphore(semaphore)  RelinquishSemaphore(semaphore)
    00052 #define QuantumDepth  MAGICKCORE_QUANTUM_DEPTH
    00053 #define RunlengthEncodedCompression  RLECompression
    00054 #define Upscale(value)  ScaleCharToQuantum(value)
    00055 #define XDownscale(value)  ScaleShortToQuantum(value)
    00056 #define XUpscale(quantum)  ScaleQuantumToShort(quantum)
    00057
    00058 typedef struct _DoublePixelPacket
    00059 {
    00060   double
    00061     red,
    00062     green,
    00063     blue,
    00064     opacity,
    00065     index;
    00066 } DoublePixelPacket;
    00067
    00068 typedef enum
    00069 {
    00070   UndefinedMagickLayerMethod
    00071 } MagickLayerMethod;
    00072
    00073 #if !defined(__WINDOWS__)
    00074 #if (MAGICKCORE_SIZEOF_UNSIGNED_LONG_LONG == 8)
    00075 typedef long long ExtendedSignedIntegralType;
    00076 typedef unsigned long long ExtendedUnsignedIntegralType;
    00077 #else
    00078 typedef long ExtendedSignedIntegralType;
    00079 typedef unsigned long ExtendedUnsignedIntegralType;
    00080 #endif
    00081 #else
    00082 typedef __int64 ExtendedSignedIntegralType;
    00083 typedef unsigned __int64 ExtendedUnsignedIntegralType;
    00084 #endif
    00085 #if defined(MAGICKCORE_HAVE_LONG_DOUBLE)
    00086 typedef long double ExtendedRationalType;
    00087 #else
    00088 typedef double ExtendedRationalType;
    00089 #endif
    00090
    00091 typedef MagickBooleanType
    00092   (*MonitorHandler)(const char *,const MagickOffsetType,const MagickSizeType,
    00093     ExceptionInfo *);
    00094
    00095 typedef struct _ImageAttribute
    00096 {
    00097   char
    00098     *key,
    00099     *value;
    00100
    00101   MagickBooleanType
    00102     compression;
    00103
    00104   struct _ImageAttribute
    00105     *previous,
    00106     *next;  /* deprecated */
    00107 } ImageAttribute;
    00108
    00109 extern MagickExport char
    00110   *AllocateString(const char *),
    00111   *InterpretImageAttributes(const ImageInfo *,Image *,const char *),
    00112   *PostscriptGeometry(const char *),
    00113   *TranslateText(const ImageInfo *,Image *,const char *);
    00114
    00115 extern MagickExport const ImageAttribute
    00116   *GetImageAttribute(const Image *,const char *),
    00117   *GetImageClippingPathAttribute(Image *),
    00118   *GetNextImageAttribute(const Image *);
    00119
    00120 extern MagickExport Image
    00121   *GetImageFromMagickRegistry(const char *,long *id,ExceptionInfo *),
    00122   *GetImageList(const Image *,const long,ExceptionInfo *),
    00123   *GetNextImage(const Image *),
    00124   *GetPreviousImage(const Image *),
    00125   *FlattenImages(Image *,ExceptionInfo *),
    00126   *MosaicImages(Image *,ExceptionInfo *),
    00127   *PopImageList(Image **),
    00128   *ShiftImageList(Image **),
    00129   *SpliceImageList(Image *,const long,const unsigned long,const Image *,
    00130     ExceptionInfo *);
    00131
    00132 extern MagickExport IndexPacket
    00133   ValidateColormapIndex(Image *,const unsigned long);
    00134
    00135 extern MagickExport int
    00136   GetImageGeometry(Image *,const char *,const unsigned int,RectangleInfo *),
    00137   ParseImageGeometry(const char *,long *,long *,unsigned long *,
    00138     unsigned long *);
    00139
    00140 extern MagickExport long
    00141   GetImageListIndex(const Image *),
    00142   SetMagickRegistry(const RegistryType,const void *,const size_t,
    00143     ExceptionInfo *);
    00144
    00145 extern MagickExport MagickBooleanType
    00146   ClipPathImage(Image *,const char *,const MagickBooleanType),
    00147   CloneImageAttributes(Image *,const Image *),
    00148   ColorFloodfillImage(Image *,const DrawInfo *,const PixelPacket,const long,
    00149     const long,const PaintMethod),
    00150   DeleteImageAttribute(Image *,const char *),
    00151   DeleteMagickRegistry(const long),
    00152   DescribeImage(Image *,FILE *,const MagickBooleanType),
    00153   FormatImageAttribute(Image *,const char *,const char *,...)
    00154     magick_attribute((format (printf,3,4))),
    00155   FormatImageAttributeList(Image *,const char *,const char *,va_list)
    00156     magick_attribute((format (printf,3,0))),
    00157   FuzzyColorCompare(const Image *,const PixelPacket *,const PixelPacket *),
    00158   FuzzyOpacityCompare(const Image *,const PixelPacket *,const PixelPacket *),
    00159   MagickMonitor(const char *,const MagickOffsetType,const MagickSizeType,
    00160     void *),
    00161   MatteFloodfillImage(Image *,const PixelPacket,const Quantum,const long,
    00162     const long,const PaintMethod),
    00163   OpaqueImage(Image *,const PixelPacket,const PixelPacket),
    00164   PaintFloodfillImage(Image *,const ChannelType,const MagickPixelPacket *,
    00165     const long,const long,const DrawInfo *,const PaintMethod),
    00166   PaintOpaqueImage(Image *,const MagickPixelPacket *,const MagickPixelPacket *),
    00167   PaintOpaqueImageChannel(Image *,const ChannelType,const MagickPixelPacket *,
    00168     const MagickPixelPacket *),
    00169   PaintTransparentImage(Image *,const MagickPixelPacket *,const Quantum),
    00170   PopImagePixels(Image *,const QuantumType,unsigned char *),
    00171   PushImagePixels(Image *,const QuantumType,const unsigned char *),
    00172   SetExceptionInfo(ExceptionInfo *,ExceptionType),
    00173   SetImageAttribute(Image *,const char *,const char *),
    00174   TransparentImage(Image *,const PixelPacket,const Quantum);
    00175
    00176 extern MagickExport MonitorHandler
    00177   GetMonitorHandler(void),
    00178   SetMonitorHandler(MonitorHandler);
    00179
    00180 extern MagickExport MagickOffsetType
    00181   SizeBlob(const Image *image);
    00182
    00183 extern MagickExport MagickPixelPacket
    00184   InterpolatePixelColor(const Image *,CacheView *,const InterpolatePixelMethod,
    00185     const double,const double,ExceptionInfo *);
    00186
    00187 extern MagickExport PixelPacket
    00188   *GetCacheView(CacheView *,const long,const long,const unsigned long,
    00189     const unsigned long);
    00190
    00191 extern MagickExport unsigned int
    00192   ChannelImage(Image *,const ChannelType),
    00193   ChannelThresholdImage(Image *,const char *),
    00194   DispatchImage(const Image *,const long,const long,const unsigned long,
    00195     const unsigned long,const char *,const StorageType,void *,ExceptionInfo *),
    00196   FuzzyColorMatch(const PixelPacket *,const PixelPacket *,const double),
    00197   GetNumberScenes(const Image *),
    00198   GetMagickGeometry(const char *,long *,long *,unsigned long *,unsigned long *),
    00199   IsSubimage(const char *,const unsigned int),
    00200   PushImageList(Image **,const Image *,ExceptionInfo *),
    00201   QuantizationError(Image *),
    00202   RandomChannelThresholdImage(Image *,const char *,const char *,
    00203     ExceptionInfo *),
    00204   SetImageList(Image **,const Image *,const long,ExceptionInfo *),
    00205   TransformColorspace(Image *,const ColorspaceType),
    00206   ThresholdImage(Image *,const double),
    00207   ThresholdImageChannel(Image *,const char *),
    00208   UnshiftImageList(Image **,const Image *,ExceptionInfo *);
    00209
    00210 extern MagickExport unsigned long
    00211   GetImageListSize(const Image *);
    00212
    00213 extern MagickExport void
    00214   *AcquireMemory(const size_t),
    00215   *CloneMemory(void *,const void *,const size_t),
    00216   DestroyImageAttributes(Image *),
    00217   DestroyImages(Image *),
    00218   DestroyMagick(void),
    00219   DestroyMagickRegistry(void),
    00220   *GetConfigureBlob(const char *,char *,size_t *,ExceptionInfo *),
    00221   *GetMagickRegistry(const long,RegistryType *,size_t *,ExceptionInfo *),
    00222   IdentityAffine(AffineMatrix *),
    00223   LiberateMemory(void **),
    00224   LiberateSemaphoreInfo(SemaphoreInfo **),
    00225   FormatString(char *,const char *,...) magick_attribute((format (printf,2,3))),
    00226   FormatStringList(char *,const char *,va_list)
    00227     magick_attribute((format (printf,2,0))),
    00228   InitializeMagick(const char *),
    00229   ReacquireMemory(void **,const size_t),
    00230   ResetImageAttributeIterator(const Image *),
    00231   SetCacheThreshold(const unsigned long),
    00232   SetImage(Image *,const Quantum),
    00233   Strip(char *),
    00234   TemporaryFilename(char *);
    00235 #endif
    00236
    00237 #if defined(__cplusplus) || defined(c_plusplus)
    00238 }
    00239 #endif
    00240
    00241 #endif