00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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)
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 typedef struct _ViewInfo ViewInfo;
00079
00080 typedef MagickBooleanType
00081 (*MonitorHandler)(const char *,const MagickOffsetType,const MagickSizeType,
00082 ExceptionInfo *);
00083
00084 typedef struct _ImageAttribute
00085 {
00086 char
00087 *key,
00088 *value;
00089
00090 MagickBooleanType
00091 compression;
00092
00093 struct _ImageAttribute
00094 *previous,
00095 *next;
00096 } ImageAttribute;
00097
00098 extern MagickExport char
00099 *AllocateString(const char *) magick_attribute((deprecated)),
00100 *InterpretImageAttributes(const ImageInfo *,Image *,const char *)
00101 magick_attribute((deprecated)),
00102 *PostscriptGeometry(const char *) magick_attribute((deprecated)),
00103 *TranslateText(const ImageInfo *,Image *,const char *)
00104 magick_attribute((deprecated));
00105
00106 extern MagickExport const ImageAttribute
00107 *GetImageAttribute(const Image *,const char *),
00108 *GetImageClippingPathAttribute(Image *) magick_attribute((deprecated)),
00109 *GetNextImageAttribute(const Image *) magick_attribute((deprecated));
00110
00111 extern MagickExport const IndexPacket
00112 *AcquireCacheViewIndexes(const CacheView *) magick_attribute((deprecated)),
00113 *AcquireIndexes(const Image *) magick_attribute((deprecated));
00114
00115 extern MagickExport const PixelPacket
00116 *AcquirePixels(const Image *) magick_attribute((deprecated)),
00117 *AcquireCacheViewPixels(const CacheView *,const long,const long,
00118 const unsigned long,const unsigned long,ExceptionInfo *)
00119 magick_attribute((deprecated)),
00120 *AcquireImagePixels(const Image *,const long,const long,const unsigned long,
00121 const unsigned long,ExceptionInfo *) magick_attribute((deprecated));
00122
00123 extern MagickExport Image
00124 *AllocateImage(const ImageInfo *) magick_attribute((deprecated)),
00125 *ExtractSubimageFromImage(Image *,const Image *,ExceptionInfo *)
00126 magick_attribute((deprecated)),
00127 *GetImageFromMagickRegistry(const char *,long *id,ExceptionInfo *)
00128 magick_attribute((deprecated)),
00129 *GetImageList(const Image *,const long,ExceptionInfo *)
00130 magick_attribute((deprecated)),
00131 *GetNextImage(const Image *) magick_attribute((deprecated)),
00132 *GetPreviousImage(const Image *) magick_attribute((deprecated)),
00133 *FlattenImages(Image *,ExceptionInfo *) magick_attribute((deprecated)),
00134 *MosaicImages(Image *,ExceptionInfo *) magick_attribute((deprecated)),
00135 *PopImageList(Image **) magick_attribute((deprecated)),
00136 *ShiftImageList(Image **) magick_attribute((deprecated)),
00137 *SpliceImageList(Image *,const long,const unsigned long,const Image *,
00138 ExceptionInfo *) magick_attribute((deprecated));
00139
00140 extern MagickExport IndexPacket
00141 *GetCacheViewIndexes(CacheView *) magick_attribute((deprecated)),
00142 *GetIndexes(const Image *) magick_attribute((deprecated)),
00143 ValidateColormapIndex(Image *,const unsigned long)
00144 magick_attribute((deprecated));
00145
00146 extern MagickExport int
00147 GetImageGeometry(Image *,const char *,const unsigned int,RectangleInfo *)
00148 magick_attribute((deprecated)),
00149 ParseImageGeometry(const char *,long *,long *,unsigned long *,
00150 unsigned long *) magick_attribute((deprecated));
00151
00152 extern MagickExport long
00153 GetImageListIndex(const Image *) magick_attribute((deprecated)),
00154 SetMagickRegistry(const RegistryType,const void *,const size_t,
00155 ExceptionInfo *) magick_attribute((deprecated));
00156
00157 extern MagickExport MagickBooleanType
00158 AcquireOneCacheViewPixel(const CacheView *,const long,const long,
00159 PixelPacket *,ExceptionInfo *) magick_attribute((deprecated)),
00160 AcquireOneCacheViewVirtualPixel(const CacheView *,const VirtualPixelMethod,
00161 const long,const long,PixelPacket *,ExceptionInfo *)
00162 magick_attribute((deprecated)),
00163 AffinityImage(const QuantizeInfo *,Image *,const Image *)
00164 magick_attribute((deprecated)),
00165 AffinityImages(const QuantizeInfo *,Image *,const Image *)
00166 magick_attribute((deprecated)),
00167 AllocateImageColormap(Image *,const unsigned long)
00168 magick_attribute((deprecated)),
00169 ClipPathImage(Image *,const char *,const MagickBooleanType)
00170 magick_attribute((deprecated)),
00171 CloneImageAttributes(Image *,const Image *) magick_attribute((deprecated)),
00172 ColorFloodfillImage(Image *,const DrawInfo *,const PixelPacket,const long,
00173 const long,const PaintMethod) magick_attribute((deprecated)),
00174 DeleteImageAttribute(Image *,const char *) magick_attribute((deprecated)),
00175 DeleteMagickRegistry(const long) magick_attribute((deprecated)),
00176 DescribeImage(Image *,FILE *,const MagickBooleanType)
00177 magick_attribute((deprecated)),
00178 FormatImageAttribute(Image *,const char *,const char *,...)
00179 magick_attribute((format (printf,3,4))) magick_attribute((deprecated)),
00180 FormatImageAttributeList(Image *,const char *,const char *,va_list)
00181 magick_attribute((format (printf,3,0))) magick_attribute((deprecated)),
00182 FuzzyColorCompare(const Image *,const PixelPacket *,const PixelPacket *)
00183 magick_attribute((deprecated)),
00184 FuzzyOpacityCompare(const Image *,const PixelPacket *,const PixelPacket *)
00185 magick_attribute((deprecated)),
00186 LevelImageColors(Image *,const ChannelType,const MagickPixelPacket *,
00187 const MagickPixelPacket *, const MagickBooleanType)
00188 magick_attribute((deprecated)),
00189 MagickMonitor(const char *,const MagickOffsetType,const MagickSizeType,
00190 void *) magick_attribute((deprecated)),
00191 MapImage(Image *,const Image *,const MagickBooleanType)
00192 magick_attribute((deprecated)),
00193 MapImages(Image *,const Image *,const MagickBooleanType)
00194 magick_attribute((deprecated)),
00195 MatteFloodfillImage(Image *,const PixelPacket,const Quantum,const long,
00196 const long,const PaintMethod) magick_attribute((deprecated)),
00197 OpaqueImage(Image *,const PixelPacket,const PixelPacket)
00198 magick_attribute((deprecated)),
00199 PaintFloodfillImage(Image *,const ChannelType,const MagickPixelPacket *,
00200 const long,const long,const DrawInfo *,const PaintMethod)
00201 magick_attribute((deprecated)),
00202 PaintOpaqueImage(Image *,const MagickPixelPacket *,const MagickPixelPacket *)
00203 magick_attribute((deprecated)),
00204 PaintOpaqueImageChannel(Image *,const ChannelType,const MagickPixelPacket *,
00205 const MagickPixelPacket *) magick_attribute((deprecated)),
00206 PaintTransparentImage(Image *,const MagickPixelPacket *,const Quantum)
00207 magick_attribute((deprecated)),
00208 SetExceptionInfo(ExceptionInfo *,ExceptionType)
00209 magick_attribute((deprecated)),
00210 SetImageAttribute(Image *,const char *,const char *)
00211 magick_attribute((deprecated)),
00212 SyncCacheViewPixels(CacheView *) magick_attribute((deprecated)),
00213 SyncImagePixels(Image *) magick_attribute((deprecated)),
00214 TransparentImage(Image *,const PixelPacket,const Quantum)
00215 magick_attribute((deprecated));
00216
00217 extern MagickExport MagickPixelPacket
00218 AcquireOneMagickPixel(const Image *,const long,const long,ExceptionInfo *)
00219 magick_attribute((deprecated));
00220
00221 extern MagickExport MonitorHandler
00222 GetMonitorHandler(void) magick_attribute((deprecated)),
00223 SetMonitorHandler(MonitorHandler) magick_attribute((deprecated));
00224
00225 extern MagickExport MagickOffsetType
00226 SizeBlob(Image *image) magick_attribute((deprecated));
00227
00228 extern MagickExport MagickPixelPacket
00229 InterpolatePixelColor(const Image *,CacheView *,const InterpolatePixelMethod,
00230 const double,const double,ExceptionInfo *) magick_attribute((deprecated));
00231
00232 extern MagickExport MagickStatusType
00233 ParseSizeGeometry(const Image *,const char *,RectangleInfo *)
00234 magick_attribute((deprecated));
00235
00236 extern MagickExport PixelPacket
00237 AcquireOnePixel(const Image *,const long,const long,ExceptionInfo *)
00238 magick_attribute((deprecated)),
00239 AcquireOneVirtualPixel(const Image *,const VirtualPixelMethod,const long,
00240 const long,ExceptionInfo *) magick_attribute((deprecated)),
00241 *GetCacheView(CacheView *,const long,const long,const unsigned long,
00242 const unsigned long) magick_attribute((deprecated)),
00243 *GetCacheViewPixels(CacheView *,const long,const long,const unsigned long,
00244 const unsigned long) magick_attribute((deprecated)),
00245 *GetImagePixels(Image *,const long,const long,const unsigned long,
00246 const unsigned long) magick_attribute((deprecated)),
00247 GetOnePixel(Image *,const long,const long) magick_attribute((deprecated)),
00248 *GetPixels(const Image *) magick_attribute((deprecated)),
00249 *SetCacheViewPixels(CacheView *,const long,const long,const unsigned long,
00250 const unsigned long) magick_attribute((deprecated)),
00251 *SetImagePixels(Image *,const long,const long,const unsigned long,
00252 const unsigned long) magick_attribute((deprecated));
00253
00254 extern MagickExport size_t
00255 PopImagePixels(Image *,const QuantumType,unsigned char *)
00256 magick_attribute((deprecated)),
00257 PushImagePixels(Image *,const QuantumType,const unsigned char *)
00258 magick_attribute((deprecated));
00259
00260 extern MagickExport unsigned int
00261 ChannelImage(Image *,const ChannelType) magick_attribute((deprecated)),
00262 ChannelThresholdImage(Image *,const char *) magick_attribute((deprecated)),
00263 DispatchImage(const Image *,const long,const long,const unsigned long,
00264 const unsigned long,const char *,const StorageType,void *,ExceptionInfo *)
00265 magick_attribute((deprecated)),
00266 FuzzyColorMatch(const PixelPacket *,const PixelPacket *,const double)
00267 magick_attribute((deprecated)),
00268 GetNumberScenes(const Image *) magick_attribute((deprecated)),
00269 GetMagickGeometry(const char *,long *,long *,unsigned long *,unsigned long *)
00270 magick_attribute((deprecated)),
00271 IsSubimage(const char *,const unsigned int) magick_attribute((deprecated)),
00272 PushImageList(Image **,const Image *,ExceptionInfo *)
00273 magick_attribute((deprecated)),
00274 QuantizationError(Image *) magick_attribute((deprecated)),
00275 RandomChannelThresholdImage(Image *,const char *,const char *,
00276 ExceptionInfo *) magick_attribute((deprecated)),
00277 SetImageList(Image **,const Image *,const long,ExceptionInfo *)
00278 magick_attribute((deprecated)),
00279 TransformColorspace(Image *,const ColorspaceType)
00280 magick_attribute((deprecated)),
00281 ThresholdImage(Image *,const double) magick_attribute((deprecated)),
00282 ThresholdImageChannel(Image *,const char *) magick_attribute((deprecated)),
00283 UnshiftImageList(Image **,const Image *,ExceptionInfo *)
00284 magick_attribute((deprecated));
00285
00286 extern MagickExport unsigned long
00287 GetImageListSize(const Image *) magick_attribute((deprecated));
00288
00289 extern MagickExport CacheView
00290 *CloseCacheView(CacheView *) magick_attribute((deprecated)),
00291 *OpenCacheView(const Image *) magick_attribute((deprecated));
00292
00293 extern MagickExport void
00294 *AcquireMemory(const size_t) magick_attribute((deprecated)),
00295 AllocateNextImage(const ImageInfo *,Image *) magick_attribute((deprecated)),
00296 *CloneMemory(void *,const void *,const size_t) magick_attribute((deprecated)),
00297 DestroyImageAttributes(Image *) magick_attribute((deprecated)),
00298 DestroyImages(Image *) magick_attribute((deprecated)),
00299 DestroyMagick(void) magick_attribute((deprecated)),
00300 DestroyMagickRegistry(void) magick_attribute((deprecated)),
00301 *GetConfigureBlob(const char *,char *,size_t *,ExceptionInfo *)
00302 magick_attribute((deprecated)),
00303 *GetMagickRegistry(const long,RegistryType *,size_t *,ExceptionInfo *)
00304 magick_attribute((deprecated)),
00305 IdentityAffine(AffineMatrix *) magick_attribute((deprecated)),
00306 LiberateMemory(void **) magick_attribute((deprecated)),
00307 LiberateSemaphoreInfo(SemaphoreInfo **) magick_attribute((deprecated)),
00308 FormatString(char *,const char *,...) magick_attribute((format (printf,2,3)))
00309 magick_attribute((deprecated)),
00310 FormatStringList(char *,const char *,va_list)
00311 magick_attribute((format (printf,2,0))) magick_attribute((deprecated)),
00312 HSLTransform(const double,const double,const double,Quantum *,Quantum *,
00313 Quantum *) magick_attribute((deprecated)),
00314 InitializeMagick(const char *) magick_attribute((deprecated)),
00315 ReacquireMemory(void **,const size_t) magick_attribute((deprecated)),
00316 ResetImageAttributeIterator(const Image *) magick_attribute((deprecated)),
00317 SetCacheThreshold(const unsigned long) magick_attribute((deprecated)),
00318 SetImage(Image *,const Quantum) magick_attribute((deprecated)),
00319 Strip(char *) magick_attribute((deprecated)),
00320 TemporaryFilename(char *) magick_attribute((deprecated)),
00321 TransformHSL(const Quantum,const Quantum,const Quantum,double *,double *,
00322 double *) magick_attribute((deprecated));
00323 #endif
00324
00325 #if defined(__cplusplus) || defined(c_plusplus)
00326 }
00327 #endif
00328
00329 #endif