deprecate.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2008 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/pixel.h"
00034 #include "magick/quantize.h"
00035 #include "magick/quantum.h"
00036 #include "magick/registry.h"
00037 #include "magick/semaphore.h"
00038 
00039 #if !defined(magick_attribute)
00040 #  if !defined(__GNUC__)
00041 #    define magick_attribute(x) /*nothing*/
00042 #  else
00043 #    define magick_attribute __attribute__
00044 #  endif
00045 #endif
00046 
00047 #define Downscale(quantum)  ScaleQuantumToChar(quantum)
00048 #define LABColorspace LabColorspace
00049 #define Intensity(color)  PixelIntensityToQuantum(color)
00050 #define LiberateUniqueFileResource(resource) \
00051   RelinquishUniqueFileResource(resource)
00052 #define LiberateMagickResource(resource)  RelinquishMagickResource(resource)
00053 #define LiberateSemaphore(semaphore)  RelinquishSemaphore(semaphore)
00054 #define QuantumDepth  MAGICKCORE_QUANTUM_DEPTH
00055 #define RunlengthEncodedCompression  RLECompression
00056 #define Upscale(value)  ScaleCharToQuantum(value)
00057 #define XDownscale(value)  ScaleShortToQuantum(value)
00058 #define XUpscale(quantum)  ScaleQuantumToShort(quantum)
00059 
00060 typedef struct _DoublePixelPacket
00061 {
00062   double
00063     red,
00064     green,
00065     blue,
00066     opacity,
00067     index;
00068 } DoublePixelPacket;
00069 
00070 typedef enum
00071 {
00072   UndefinedMagickLayerMethod
00073 } MagickLayerMethod;
00074 
00075 typedef MagickOffsetType ExtendedSignedIntegralType;
00076 typedef MagickSizeType ExtendedUnsignedIntegralType;
00077 typedef MagickRealType ExtendedRationalType;
00078 
00079 typedef MagickBooleanType
00080   (*MonitorHandler)(const char *,const MagickOffsetType,const MagickSizeType,
00081     ExceptionInfo *);
00082 
00083 typedef struct _ImageAttribute
00084 {
00085   char
00086     *key,
00087     *value;
00088                                                                                 
00089   MagickBooleanType
00090     compression;
00091                                                                                 
00092   struct _ImageAttribute
00093     *previous,
00094     *next;  /* deprecated */
00095 } ImageAttribute;
00096 
00097 extern MagickExport char
00098   *AllocateString(const char *),
00099   *InterpretImageAttributes(const ImageInfo *,Image *,const char *),
00100   *PostscriptGeometry(const char *),
00101   *TranslateText(const ImageInfo *,Image *,const char *);
00102 
00103 extern MagickExport const ImageAttribute
00104   *GetImageAttribute(const Image *,const char *),
00105   *GetImageClippingPathAttribute(Image *),
00106   *GetNextImageAttribute(const Image *);
00107 
00108 extern MagickExport const IndexPacket
00109   *AcquireCacheViewIndexes(const ViewInfo *),
00110   *AcquireIndexes(const Image *);
00111 
00112 extern MagickExport const PixelPacket
00113   *AcquirePixels(const Image *),
00114   *AcquireCacheViewPixels(const ViewInfo *,const long,const long,
00115     const unsigned long,const unsigned long,ExceptionInfo *),
00116   *AcquireImagePixels(const Image *,const long,const long,const unsigned long,
00117     const unsigned long,ExceptionInfo *);
00118 
00119 extern MagickExport Image
00120   *AllocateImage(const ImageInfo *),
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   *GetCacheViewIndexes(ViewInfo *),
00134   *GetIndexes(const Image *),
00135   ValidateColormapIndex(Image *,const unsigned long);
00136 
00137 extern MagickExport int
00138   GetImageGeometry(Image *,const char *,const unsigned int,RectangleInfo *),
00139   ParseImageGeometry(const char *,long *,long *,unsigned long *,
00140     unsigned long *);
00141 
00142 extern MagickExport long
00143   GetImageListIndex(const Image *),
00144   SetMagickRegistry(const RegistryType,const void *,const size_t,
00145     ExceptionInfo *);
00146 
00147 extern MagickExport MagickBooleanType
00148   AcquireOneCacheViewPixel(const ViewInfo *,const long,const long,
00149     PixelPacket *,ExceptionInfo *),
00150   AcquireOneCacheViewVirtualPixel(const ViewInfo *,const VirtualPixelMethod,
00151     const long,const long,PixelPacket *,ExceptionInfo *),
00152   AffinityImage(const QuantizeInfo *,Image *,const Image *),
00153   AffinityImages(const QuantizeInfo *,Image *,const Image *),
00154   AllocateImageColormap(Image *,const unsigned long),
00155   ClipPathImage(Image *,const char *,const MagickBooleanType),
00156   CloneImageAttributes(Image *,const Image *),
00157   ColorFloodfillImage(Image *,const DrawInfo *,const PixelPacket,const long,
00158     const long,const PaintMethod),
00159   DeleteImageAttribute(Image *,const char *),
00160   DeleteMagickRegistry(const long),
00161   DescribeImage(Image *,FILE *,const MagickBooleanType),
00162   FormatImageAttribute(Image *,const char *,const char *,...)
00163     magick_attribute((format (printf,3,4))),
00164   FormatImageAttributeList(Image *,const char *,const char *,va_list)
00165     magick_attribute((format (printf,3,0))),
00166   FuzzyColorCompare(const Image *,const PixelPacket *,const PixelPacket *),
00167   FuzzyOpacityCompare(const Image *,const PixelPacket *,const PixelPacket *),
00168   MagickMonitor(const char *,const MagickOffsetType,const MagickSizeType,
00169     void *),
00170   MapImage(Image *,const Image *,const MagickBooleanType),
00171   MapImages(Image *,const Image *,const MagickBooleanType),
00172   MatteFloodfillImage(Image *,const PixelPacket,const Quantum,const long,
00173     const long,const PaintMethod),
00174   OpaqueImage(Image *,const PixelPacket,const PixelPacket),
00175   PaintFloodfillImage(Image *,const ChannelType,const MagickPixelPacket *,
00176     const long,const long,const DrawInfo *,const PaintMethod),
00177   PaintOpaqueImage(Image *,const MagickPixelPacket *,const MagickPixelPacket *),
00178   PaintOpaqueImageChannel(Image *,const ChannelType,const MagickPixelPacket *,
00179     const MagickPixelPacket *),
00180   PaintTransparentImage(Image *,const MagickPixelPacket *,const Quantum),
00181   SetExceptionInfo(ExceptionInfo *,ExceptionType),
00182   SetImageAttribute(Image *,const char *,const char *),
00183   SyncCacheViewPixels(ViewInfo *),
00184   SyncImagePixels(Image *),
00185   TransparentImage(Image *,const PixelPacket,const Quantum);
00186 
00187 extern MagickExport MagickPixelPacket
00188   AcquireOneMagickPixel(const Image *,const long,const long,ExceptionInfo *);
00189 
00190 extern MagickExport MonitorHandler
00191   GetMonitorHandler(void),
00192   SetMonitorHandler(MonitorHandler);
00193 
00194 extern MagickExport MagickOffsetType
00195   SizeBlob(Image *image);
00196 
00197 extern MagickExport MagickPixelPacket
00198   InterpolatePixelColor(const Image *,ViewInfo *,const InterpolatePixelMethod,
00199     const double,const double,ExceptionInfo *);
00200 
00201 extern MagickExport PixelPacket
00202   AcquireOnePixel(const Image *,const long,const long,ExceptionInfo *),
00203   AcquireOneVirtualPixel(const Image *,const VirtualPixelMethod,const long,
00204     const long,ExceptionInfo *),
00205   *GetCacheView(ViewInfo *,const long,const long,const unsigned long,
00206     const unsigned long),
00207   *GetCacheViewPixels(ViewInfo *,const long,const long,const unsigned long,
00208     const unsigned long),
00209   *GetImagePixels(Image *,const long,const long,const unsigned long,
00210     const unsigned long),
00211   GetOnePixel(Image *,const long,const long),
00212   *GetPixels(const Image *),
00213   *SetCacheViewPixels(ViewInfo *,const long,const long,const unsigned long,
00214     const unsigned long),
00215   *SetImagePixels(Image *,const long,const long,const unsigned long,
00216     const unsigned long);
00217 
00218 extern MagickExport size_t
00219   PopImagePixels(Image *,const QuantumType,unsigned char *),
00220   PushImagePixels(Image *,const QuantumType,const unsigned char *);
00221 
00222 extern MagickExport unsigned int
00223   ChannelImage(Image *,const ChannelType),
00224   ChannelThresholdImage(Image *,const char *),
00225   DispatchImage(const Image *,const long,const long,const unsigned long,
00226     const unsigned long,const char *,const StorageType,void *,ExceptionInfo *),
00227   FuzzyColorMatch(const PixelPacket *,const PixelPacket *,const double),
00228   GetNumberScenes(const Image *),
00229   GetMagickGeometry(const char *,long *,long *,unsigned long *,unsigned long *),
00230   IsSubimage(const char *,const unsigned int),
00231   PushImageList(Image **,const Image *,ExceptionInfo *),
00232   QuantizationError(Image *),
00233   RandomChannelThresholdImage(Image *,const char *,const char *,
00234     ExceptionInfo *),
00235   SetImageList(Image **,const Image *,const long,ExceptionInfo *),
00236   TransformColorspace(Image *,const ColorspaceType),
00237   ThresholdImage(Image *,const double),
00238   ThresholdImageChannel(Image *,const char *),
00239   UnshiftImageList(Image **,const Image *,ExceptionInfo *);
00240 
00241 extern MagickExport unsigned long
00242   GetImageListSize(const Image *);
00243 
00244 extern MagickExport ViewInfo
00245   *CloseCacheView(ViewInfo *),
00246   *OpenCacheView(const Image *);
00247 
00248 extern MagickExport void
00249   *AcquireMemory(const size_t),
00250   AcquireNextImage(const ImageInfo *,Image *),
00251   *CloneMemory(void *,const void *,const size_t),
00252   DestroyImageAttributes(Image *),
00253   DestroyImages(Image *),
00254   DestroyMagick(void),
00255   DestroyMagickRegistry(void),
00256   *GetConfigureBlob(const char *,char *,size_t *,ExceptionInfo *),
00257   *GetMagickRegistry(const long,RegistryType *,size_t *,ExceptionInfo *),
00258   IdentityAffine(AffineMatrix *),
00259   LiberateMemory(void **),
00260   LiberateSemaphoreInfo(SemaphoreInfo **),
00261   FormatString(char *,const char *,...) magick_attribute((format (printf,2,3))),
00262   FormatStringList(char *,const char *,va_list)
00263     magick_attribute((format (printf,2,0))),
00264   HSLTransform(const double,const double,const double,Quantum *,Quantum *,
00265     Quantum *),
00266   InitializeMagick(const char *),
00267   ReacquireMemory(void **,const size_t),
00268   ResetImageAttributeIterator(const Image *),
00269   SetCacheThreshold(const unsigned long),
00270   SetImage(Image *,const Quantum),
00271   Strip(char *),
00272   TemporaryFilename(char *),
00273   TransformHSL(const Quantum,const Quantum,const Quantum,double *,double *,
00274     double *);
00275 #endif
00276 
00277 #if defined(__cplusplus) || defined(c_plusplus)
00278 }
00279 #endif
00280 
00281 #endif

Generated on Thu Nov 20 21:54:43 2008 for MagickCore by  doxygen 1.5.7.1