blob: b48eb40e9b393dfb279c6eacaa5ee3369f0043f7 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
2 Copyright 1999-2009 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/pixel.h"
34#include "magick/quantize.h"
35#include "magick/quantum.h"
36#include "magick/registry.h"
37#include "magick/semaphore.h"
38
39#if !defined(magick_attribute)
40# if !defined(__GNUC__)
41# define magick_attribute(x) /*nothing*/
42# else
43# define magick_attribute __attribute__
44# endif
45#endif
46
47#define Downscale(quantum) ScaleQuantumToChar(quantum)
48#define LABColorspace LabColorspace
49#define Intensity(color) PixelIntensityToQuantum(color)
50#define LiberateUniqueFileResource(resource) \
51 RelinquishUniqueFileResource(resource)
52#define LiberateMagickResource(resource) RelinquishMagickResource(resource)
53#define LiberateSemaphore(semaphore) RelinquishSemaphore(semaphore)
54#define QuantumDepth MAGICKCORE_QUANTUM_DEPTH
55#define RunlengthEncodedCompression RLECompression
56#define Upscale(value) ScaleCharToQuantum(value)
57#define XDownscale(value) ScaleShortToQuantum(value)
58#define XUpscale(quantum) ScaleQuantumToShort(quantum)
59
60typedef struct _DoublePixelPacket
61{
62 double
63 red,
64 green,
65 blue,
66 opacity,
67 index;
68} DoublePixelPacket;
69
70typedef enum
71{
72 UndefinedMagickLayerMethod
73} MagickLayerMethod;
74
75typedef MagickOffsetType ExtendedSignedIntegralType;
76typedef MagickSizeType ExtendedUnsignedIntegralType;
77typedef MagickRealType ExtendedRationalType;
78typedef struct _ViewInfo ViewInfo;
79
80typedef MagickBooleanType
81 (*MonitorHandler)(const char *,const MagickOffsetType,const MagickSizeType,
82 ExceptionInfo *);
83
84typedef struct _ImageAttribute
85{
86 char
87 *key,
88 *value;
89
90 MagickBooleanType
91 compression;
92
93 struct _ImageAttribute
94 *previous,
95 *next; /* deprecated */
96} ImageAttribute;
97
98extern MagickExport char
99 *AllocateString(const char *),
100 *InterpretImageAttributes(const ImageInfo *,Image *,const char *),
101 *PostscriptGeometry(const char *),
102 *TranslateText(const ImageInfo *,Image *,const char *);
103
104extern MagickExport const ImageAttribute
105 *GetImageAttribute(const Image *,const char *),
106 *GetImageClippingPathAttribute(Image *),
107 *GetNextImageAttribute(const Image *);
108
109extern MagickExport const IndexPacket
110 *AcquireCacheViewIndexes(const CacheView *),
111 *AcquireIndexes(const Image *);
112
113extern MagickExport const PixelPacket
114 *AcquirePixels(const Image *),
115 *AcquireCacheViewPixels(const CacheView *,const long,const long,
116 const unsigned long,const unsigned long,ExceptionInfo *),
117 *AcquireImagePixels(const Image *,const long,const long,const unsigned long,
118 const unsigned long,ExceptionInfo *);
119
120extern MagickExport Image
121 *AllocateImage(const ImageInfo *),
122 *ExtractSubimageFromImage(Image *,const Image *,ExceptionInfo *),
123 *GetImageFromMagickRegistry(const char *,long *id,ExceptionInfo *),
124 *GetImageList(const Image *,const long,ExceptionInfo *),
125 *GetNextImage(const Image *),
126 *GetPreviousImage(const Image *),
127 *FlattenImages(Image *,ExceptionInfo *),
128 *MosaicImages(Image *,ExceptionInfo *),
129 *PopImageList(Image **),
130 *ShiftImageList(Image **),
131 *SpliceImageList(Image *,const long,const unsigned long,const Image *,
132 ExceptionInfo *);
133
134extern MagickExport IndexPacket
135 *GetCacheViewIndexes(CacheView *),
136 *GetIndexes(const Image *),
137 ValidateColormapIndex(Image *,const unsigned long);
138
139extern MagickExport int
140 GetImageGeometry(Image *,const char *,const unsigned int,RectangleInfo *),
141 ParseImageGeometry(const char *,long *,long *,unsigned long *,
142 unsigned long *);
143
144extern MagickExport long
145 GetImageListIndex(const Image *),
146 SetMagickRegistry(const RegistryType,const void *,const size_t,
147 ExceptionInfo *);
148
149extern MagickExport MagickBooleanType
150 AcquireOneCacheViewPixel(const CacheView *,const long,const long,
151 PixelPacket *,ExceptionInfo *),
152 AcquireOneCacheViewVirtualPixel(const CacheView *,const VirtualPixelMethod,
153 const long,const long,PixelPacket *,ExceptionInfo *),
154 AffinityImage(const QuantizeInfo *,Image *,const Image *),
155 AffinityImages(const QuantizeInfo *,Image *,const Image *),
156 AllocateImageColormap(Image *,const unsigned long),
157 ClipPathImage(Image *,const char *,const MagickBooleanType),
158 CloneImageAttributes(Image *,const Image *),
159 ColorFloodfillImage(Image *,const DrawInfo *,const PixelPacket,const long,
160 const long,const PaintMethod),
161 DeleteImageAttribute(Image *,const char *),
162 DeleteMagickRegistry(const long),
163 DescribeImage(Image *,FILE *,const MagickBooleanType),
164 FormatImageAttribute(Image *,const char *,const char *,...)
165 magick_attribute((format (printf,3,4))),
166 FormatImageAttributeList(Image *,const char *,const char *,va_list)
167 magick_attribute((format (printf,3,0))),
168 FuzzyColorCompare(const Image *,const PixelPacket *,const PixelPacket *),
169 FuzzyOpacityCompare(const Image *,const PixelPacket *,const PixelPacket *),
170 MagickMonitor(const char *,const MagickOffsetType,const MagickSizeType,
171 void *),
172 MapImage(Image *,const Image *,const MagickBooleanType),
173 MapImages(Image *,const Image *,const MagickBooleanType),
174 MatteFloodfillImage(Image *,const PixelPacket,const Quantum,const long,
175 const long,const PaintMethod),
176 OpaqueImage(Image *,const PixelPacket,const PixelPacket),
177 PaintFloodfillImage(Image *,const ChannelType,const MagickPixelPacket *,
178 const long,const long,const DrawInfo *,const PaintMethod),
179 PaintOpaqueImage(Image *,const MagickPixelPacket *,const MagickPixelPacket *),
180 PaintOpaqueImageChannel(Image *,const ChannelType,const MagickPixelPacket *,
181 const MagickPixelPacket *),
182 PaintTransparentImage(Image *,const MagickPixelPacket *,const Quantum),
183 SetExceptionInfo(ExceptionInfo *,ExceptionType),
184 SetImageAttribute(Image *,const char *,const char *),
185 SyncCacheViewPixels(CacheView *),
186 SyncImagePixels(Image *),
187 TransparentImage(Image *,const PixelPacket,const Quantum);
188
189extern MagickExport MagickPixelPacket
190 AcquireOneMagickPixel(const Image *,const long,const long,ExceptionInfo *);
191
192extern MagickExport MonitorHandler
193 GetMonitorHandler(void),
194 SetMonitorHandler(MonitorHandler);
195
196extern MagickExport MagickOffsetType
197 SizeBlob(Image *image);
198
199extern MagickExport MagickPixelPacket
200 InterpolatePixelColor(const Image *,CacheView *,const InterpolatePixelMethod,
201 const double,const double,ExceptionInfo *);
202
203extern MagickExport MagickStatusType
204 ParseSizeGeometry(const Image *,const char *,RectangleInfo *);
205
206extern MagickExport PixelPacket
207 AcquireOnePixel(const Image *,const long,const long,ExceptionInfo *),
208 AcquireOneVirtualPixel(const Image *,const VirtualPixelMethod,const long,
209 const long,ExceptionInfo *),
210 *GetCacheView(CacheView *,const long,const long,const unsigned long,
211 const unsigned long),
212 *GetCacheViewPixels(CacheView *,const long,const long,const unsigned long,
213 const unsigned long),
214 *GetImagePixels(Image *,const long,const long,const unsigned long,
215 const unsigned long),
216 GetOnePixel(Image *,const long,const long),
217 *GetPixels(const Image *),
218 *SetCacheViewPixels(CacheView *,const long,const long,const unsigned long,
219 const unsigned long),
220 *SetImagePixels(Image *,const long,const long,const unsigned long,
221 const unsigned long);
222
223extern MagickExport size_t
224 PopImagePixels(Image *,const QuantumType,unsigned char *),
225 PushImagePixels(Image *,const QuantumType,const unsigned char *);
226
227extern MagickExport unsigned int
228 ChannelImage(Image *,const ChannelType),
229 ChannelThresholdImage(Image *,const char *),
230 DispatchImage(const Image *,const long,const long,const unsigned long,
231 const unsigned long,const char *,const StorageType,void *,ExceptionInfo *),
232 FuzzyColorMatch(const PixelPacket *,const PixelPacket *,const double),
233 GetNumberScenes(const Image *),
234 GetMagickGeometry(const char *,long *,long *,unsigned long *,unsigned long *),
235 IsSubimage(const char *,const unsigned int),
236 PushImageList(Image **,const Image *,ExceptionInfo *),
237 QuantizationError(Image *),
238 RandomChannelThresholdImage(Image *,const char *,const char *,
239 ExceptionInfo *),
240 SetImageList(Image **,const Image *,const long,ExceptionInfo *),
241 TransformColorspace(Image *,const ColorspaceType),
242 ThresholdImage(Image *,const double),
243 ThresholdImageChannel(Image *,const char *),
244 UnshiftImageList(Image **,const Image *,ExceptionInfo *);
245
246extern MagickExport unsigned long
247 GetImageListSize(const Image *);
248
249extern MagickExport CacheView
250 *CloseCacheView(CacheView *),
251 *OpenCacheView(const Image *);
252
253extern MagickExport void
254 *AcquireMemory(const size_t),
255 AllocateNextImage(const ImageInfo *,Image *),
256 *CloneMemory(void *,const void *,const size_t),
257 DestroyImageAttributes(Image *),
258 DestroyImages(Image *),
259 DestroyMagick(void),
260 DestroyMagickRegistry(void),
261 *GetConfigureBlob(const char *,char *,size_t *,ExceptionInfo *),
262 *GetMagickRegistry(const long,RegistryType *,size_t *,ExceptionInfo *),
263 IdentityAffine(AffineMatrix *),
264 LiberateMemory(void **),
265 LiberateSemaphoreInfo(SemaphoreInfo **),
266 FormatString(char *,const char *,...) magick_attribute((format (printf,2,3))),
267 FormatStringList(char *,const char *,va_list)
268 magick_attribute((format (printf,2,0))),
269 HSLTransform(const double,const double,const double,Quantum *,Quantum *,
270 Quantum *),
271 InitializeMagick(const char *),
272 ReacquireMemory(void **,const size_t),
273 ResetImageAttributeIterator(const Image *),
274 SetCacheThreshold(const unsigned long),
275 SetImage(Image *,const Quantum),
276 Strip(char *),
277 TemporaryFilename(char *),
278 TransformHSL(const Quantum,const Quantum,const Quantum,double *,double *,
279 double *);
280#endif
281
282#if defined(__cplusplus) || defined(c_plusplus)
283}
284#endif
285
286#endif