root / ImageMagick / trunk / magick / deprecate.h

Revision 12610, 8.7 kB (checked in by cristy, 5 days ago)
Line 
1/*
2  Copyright 1999-2008 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License.
6  obtain a copy of the License at
7 
8    http://www.imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15
16  MagickCore deprecated methods.
17*/
18#ifndef _MAGICKCORE_DEPRECATE_H
19#define _MAGICKCORE_DEPRECATE_H
20
21#if defined(__cplusplus) || defined(c_plusplus)
22extern "C" {
23#endif
24
25#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
26
27#include <stdarg.h>
28#include "magick/blob.h"
29#include "magick/cache-view.h"
30#include "magick/draw.h"
31#include "magick/constitute.h"
32#include "magick/magick-config.h"
33#include "magick/quantize.h"
34#include "magick/quantum.h"
35#include "magick/registry.h"
36#include "magick/semaphore.h"
37
38#if !defined(magick_attribute)
39if !defined(__GNUC__)
40#    define magick_attribute(x) /*nothing*/
41else
42#    define magick_attribute __attribute__
43endif
44#endif
45
46#define Downscale(quantum)  ScaleQuantumToChar(quantum)
47#define LABColorspace LabColorspace
48#define Intensity(color)  PixelIntensityToQuantum(color)
49#define LiberateUniqueFileResource(resource) \
50  RelinquishUniqueFileResource(resource)
51#define LiberateMagickResource(resource)  RelinquishMagickResource(resource)
52#define LiberateSemaphore(semaphore)  RelinquishSemaphore(semaphore)
53#define QuantumDepth  MAGICKCORE_QUANTUM_DEPTH
54#define RunlengthEncodedCompression  RLECompression
55#define Upscale(value)  ScaleCharToQuantum(value)
56#define XDownscale(value)  ScaleShortToQuantum(value)
57#define XUpscale(quantum)  ScaleQuantumToShort(quantum)
58
59typedef struct _DoublePixelPacket
60{
61  double
62    red,
63    green,
64    blue,
65    opacity,
66    index;
67} DoublePixelPacket;
68
69typedef enum
70{
71  UndefinedMagickLayerMethod
72} MagickLayerMethod;
73
74typedef MagickOffsetType ExtendedSignedIntegralType;
75typedef MagickSizeType ExtendedUnsignedIntegralType;
76typedef MagickRealType ExtendedRationalType;
77
78typedef MagickBooleanType
79  (*MonitorHandler)(const char *,const MagickOffsetType,const MagickSizeType,
80    ExceptionInfo *);
81
82typedef struct _ImageAttribute
83{
84  char
85    *key,
86    *value;
87                                                                               
88  MagickBooleanType
89    compression;
90                                                                               
91  struct _ImageAttribute
92    *previous,
93    *next;  /* deprecated */
94} ImageAttribute;
95
96extern MagickExport char
97  *AllocateString(const char *),
98  *InterpretImageAttributes(const ImageInfo *,Image *,const char *),
99  *PostscriptGeometry(const char *),
100  *TranslateText(const ImageInfo *,Image *,const char *);
101
102extern MagickExport const ImageAttribute
103  *GetImageAttribute(const Image *,const char *),
104  *GetImageClippingPathAttribute(Image *),
105  *GetNextImageAttribute(const Image *);
106
107extern MagickExport Image
108  *AllocateImage(const ImageInfo *),
109  *GetImageFromMagickRegistry(const char *,long *id,ExceptionInfo *),
110  *GetImageList(const Image *,const long,ExceptionInfo *),
111  *GetNextImage(const Image *),
112  *GetPreviousImage(const Image *),
113  *FlattenImages(Image *,ExceptionInfo *),
114  *MosaicImages(Image *,ExceptionInfo *),
115  *PopImageList(Image **),
116  *ShiftImageList(Image **),
117  *SpliceImageList(Image *,const long,const unsigned long,const Image *,
118    ExceptionInfo *);
119
120extern MagickExport IndexPacket
121  ValidateColormapIndex(Image *,const unsigned long);
122
123extern MagickExport int
124  GetImageGeometry(Image *,const char *,const unsigned int,RectangleInfo *),
125  ParseImageGeometry(const char *,long *,long *,unsigned long *,
126    unsigned long *);
127
128extern MagickExport long
129  GetImageListIndex(const Image *),
130  SetMagickRegistry(const RegistryType,const void *,const size_t,
131    ExceptionInfo *);
132
133extern MagickExport MagickBooleanType
134  AffinityImage(const QuantizeInfo *,Image *,const Image *),
135  AffinityImages(const QuantizeInfo *,Image *,const Image *),
136  AllocateImageColormap(Image *,const unsigned long),
137  ClipPathImage(Image *,const char *,const MagickBooleanType),
138  CloneImageAttributes(Image *,const Image *),
139  ColorFloodfillImage(Image *,const DrawInfo *,const PixelPacket,const long,
140    const long,const PaintMethod),
141  DeleteImageAttribute(Image *,const char *),
142  DeleteMagickRegistry(const long),
143  DescribeImage(Image *,FILE *,const MagickBooleanType),
144  FormatImageAttribute(Image *,const char *,const char *,...)
145    magick_attribute((format (printf,3,4))),
146  FormatImageAttributeList(Image *,const char *,const char *,va_list)
147    magick_attribute((format (printf,3,0))),
148  FuzzyColorCompare(const Image *,const PixelPacket *,const PixelPacket *),
149  FuzzyOpacityCompare(const Image *,const PixelPacket *,const PixelPacket *),
150  MagickMonitor(const char *,const MagickOffsetType,const MagickSizeType,
151    void *),
152  MapImage(Image *,const Image *,const MagickBooleanType),
153  MapImages(Image *,const Image *,const MagickBooleanType),
154  MatteFloodfillImage(Image *,const PixelPacket,const Quantum,const long,
155    const long,const PaintMethod),
156  OpaqueImage(Image *,const PixelPacket,const PixelPacket),
157  PaintFloodfillImage(Image *,const ChannelType,const MagickPixelPacket *,
158    const long,const long,const DrawInfo *,const PaintMethod),
159  PaintOpaqueImage(Image *,const MagickPixelPacket *,const MagickPixelPacket *),
160  PaintOpaqueImageChannel(Image *,const ChannelType,const MagickPixelPacket *,
161    const MagickPixelPacket *),
162  PaintTransparentImage(Image *,const MagickPixelPacket *,const Quantum),
163  SetExceptionInfo(ExceptionInfo *,ExceptionType),
164  SetImageAttribute(Image *,const char *,const char *),
165  SyncCacheViewPixels(ViewInfo *),
166  TransparentImage(Image *,const PixelPacket,const Quantum);
167
168extern MagickExport MonitorHandler
169  GetMonitorHandler(void),
170  SetMonitorHandler(MonitorHandler);
171
172extern MagickExport MagickOffsetType
173  SizeBlob(Image *image);
174
175extern MagickExport MagickPixelPacket
176  InterpolatePixelColor(const Image *,ViewInfo *,const InterpolatePixelMethod,
177    const double,const double,ExceptionInfo *);
178
179extern MagickExport PixelPacket
180  *GetCacheView(ViewInfo *,const long,const long,const unsigned long,
181    const unsigned long);
182
183extern MagickExport size_t
184  PopImagePixels(Image *,const QuantumType,unsigned char *),
185  PushImagePixels(Image *,const QuantumType,const unsigned char *);
186
187extern MagickExport unsigned int
188  ChannelImage(Image *,const ChannelType),
189  ChannelThresholdImage(Image *,const char *),
190  DispatchImage(const Image *,const long,const long,const unsigned long,
191    const unsigned long,const char *,const StorageType,void *,ExceptionInfo *),
192  FuzzyColorMatch(const PixelPacket *,const PixelPacket *,const double),
193  GetNumberScenes(const Image *),
194  GetMagickGeometry(const char *,long *,long *,unsigned long *,unsigned long *),
195  IsSubimage(const char *,const unsigned int),
196  PushImageList(Image **,const Image *,ExceptionInfo *),
197  QuantizationError(Image *),
198  RandomChannelThresholdImage(Image *,const char *,const char *,
199    ExceptionInfo *),
200  SetImageList(Image **,const Image *,const long,ExceptionInfo *),
201  TransformColorspace(Image *,const ColorspaceType),
202  ThresholdImage(Image *,const double),
203  ThresholdImageChannel(Image *,const char *),
204  UnshiftImageList(Image **,const Image *,ExceptionInfo *);
205
206extern MagickExport unsigned long
207  GetImageListSize(const Image *);
208
209extern MagickExport ViewInfo
210  *CloseCacheView(ViewInfo *),
211  *OpenCacheView(const Image *);
212
213extern MagickExport void
214  *AcquireMemory(const size_t),
215  AcquireNextImage(const ImageInfo *,Image *),
216  *CloneMemory(void *,const void *,const size_t),
217  DestroyImageAttributes(Image *),
218  DestroyImages(Image *),
219  DestroyMagick(void),
220  DestroyMagickRegistry(void),
221  *GetConfigureBlob(const char *,char *,size_t *,ExceptionInfo *),
222  *GetMagickRegistry(const long,RegistryType *,size_t *,ExceptionInfo *),
223  IdentityAffine(AffineMatrix *),
224  LiberateMemory(void **),
225  LiberateSemaphoreInfo(SemaphoreInfo **),
226  FormatString(char *,const char *,...) magick_attribute((format (printf,2,3))),
227  FormatStringList(char *,const char *,va_list)
228    magick_attribute((format (printf,2,0))),
229  HSLTransform(const double,const double,const double,Quantum *,Quantum *,
230    Quantum *),
231  InitializeMagick(const char *),
232  ReacquireMemory(void **,const size_t),
233  ResetImageAttributeIterator(const Image *),
234  SetCacheThreshold(const unsigned long),
235  SetImage(Image *,const Quantum),
236  Strip(char *),
237  TemporaryFilename(char *),
238  TransformHSL(const Quantum,const Quantum,const Quantum,double *,double *,
239    double *);
240#endif
241
242#if defined(__cplusplus) || defined(c_plusplus)
243}
244#endif
245
246#endif
Note: See TracBrowser for help on using the browser.