blob: fac6a9082e36074b8510308ddf3e3e96898d49ab [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 *),
cristy308b4e62009-09-21 14:40:44 +0000170 LevelImageColors(Image *,const ChannelType,const MagickPixelPacket *,
171 const MagickPixelPacket *, const MagickBooleanType),
cristy3ed852e2009-09-05 21:47:34 +0000172 MagickMonitor(const char *,const MagickOffsetType,const MagickSizeType,
173 void *),
174 MapImage(Image *,const Image *,const MagickBooleanType),
175 MapImages(Image *,const Image *,const MagickBooleanType),
176 MatteFloodfillImage(Image *,const PixelPacket,const Quantum,const long,
177 const long,const PaintMethod),
178 OpaqueImage(Image *,const PixelPacket,const PixelPacket),
179 PaintFloodfillImage(Image *,const ChannelType,const MagickPixelPacket *,
180 const long,const long,const DrawInfo *,const PaintMethod),
181 PaintOpaqueImage(Image *,const MagickPixelPacket *,const MagickPixelPacket *),
182 PaintOpaqueImageChannel(Image *,const ChannelType,const MagickPixelPacket *,
183 const MagickPixelPacket *),
184 PaintTransparentImage(Image *,const MagickPixelPacket *,const Quantum),
185 SetExceptionInfo(ExceptionInfo *,ExceptionType),
186 SetImageAttribute(Image *,const char *,const char *),
187 SyncCacheViewPixels(CacheView *),
188 SyncImagePixels(Image *),
189 TransparentImage(Image *,const PixelPacket,const Quantum);
190
191extern MagickExport MagickPixelPacket
192 AcquireOneMagickPixel(const Image *,const long,const long,ExceptionInfo *);
193
194extern MagickExport MonitorHandler
195 GetMonitorHandler(void),
196 SetMonitorHandler(MonitorHandler);
197
198extern MagickExport MagickOffsetType
199 SizeBlob(Image *image);
200
201extern MagickExport MagickPixelPacket
202 InterpolatePixelColor(const Image *,CacheView *,const InterpolatePixelMethod,
203 const double,const double,ExceptionInfo *);
204
205extern MagickExport MagickStatusType
206 ParseSizeGeometry(const Image *,const char *,RectangleInfo *);
207
208extern MagickExport PixelPacket
209 AcquireOnePixel(const Image *,const long,const long,ExceptionInfo *),
210 AcquireOneVirtualPixel(const Image *,const VirtualPixelMethod,const long,
211 const long,ExceptionInfo *),
212 *GetCacheView(CacheView *,const long,const long,const unsigned long,
213 const unsigned long),
214 *GetCacheViewPixels(CacheView *,const long,const long,const unsigned long,
215 const unsigned long),
216 *GetImagePixels(Image *,const long,const long,const unsigned long,
217 const unsigned long),
218 GetOnePixel(Image *,const long,const long),
219 *GetPixels(const Image *),
220 *SetCacheViewPixels(CacheView *,const long,const long,const unsigned long,
221 const unsigned long),
222 *SetImagePixels(Image *,const long,const long,const unsigned long,
223 const unsigned long);
224
225extern MagickExport size_t
226 PopImagePixels(Image *,const QuantumType,unsigned char *),
227 PushImagePixels(Image *,const QuantumType,const unsigned char *);
228
229extern MagickExport unsigned int
230 ChannelImage(Image *,const ChannelType),
231 ChannelThresholdImage(Image *,const char *),
232 DispatchImage(const Image *,const long,const long,const unsigned long,
233 const unsigned long,const char *,const StorageType,void *,ExceptionInfo *),
234 FuzzyColorMatch(const PixelPacket *,const PixelPacket *,const double),
235 GetNumberScenes(const Image *),
236 GetMagickGeometry(const char *,long *,long *,unsigned long *,unsigned long *),
237 IsSubimage(const char *,const unsigned int),
238 PushImageList(Image **,const Image *,ExceptionInfo *),
239 QuantizationError(Image *),
240 RandomChannelThresholdImage(Image *,const char *,const char *,
241 ExceptionInfo *),
242 SetImageList(Image **,const Image *,const long,ExceptionInfo *),
243 TransformColorspace(Image *,const ColorspaceType),
244 ThresholdImage(Image *,const double),
245 ThresholdImageChannel(Image *,const char *),
246 UnshiftImageList(Image **,const Image *,ExceptionInfo *);
247
248extern MagickExport unsigned long
249 GetImageListSize(const Image *);
250
251extern MagickExport CacheView
252 *CloseCacheView(CacheView *),
253 *OpenCacheView(const Image *);
254
255extern MagickExport void
256 *AcquireMemory(const size_t),
257 AllocateNextImage(const ImageInfo *,Image *),
258 *CloneMemory(void *,const void *,const size_t),
259 DestroyImageAttributes(Image *),
260 DestroyImages(Image *),
261 DestroyMagick(void),
262 DestroyMagickRegistry(void),
263 *GetConfigureBlob(const char *,char *,size_t *,ExceptionInfo *),
264 *GetMagickRegistry(const long,RegistryType *,size_t *,ExceptionInfo *),
265 IdentityAffine(AffineMatrix *),
266 LiberateMemory(void **),
267 LiberateSemaphoreInfo(SemaphoreInfo **),
268 FormatString(char *,const char *,...) magick_attribute((format (printf,2,3))),
269 FormatStringList(char *,const char *,va_list)
270 magick_attribute((format (printf,2,0))),
271 HSLTransform(const double,const double,const double,Quantum *,Quantum *,
272 Quantum *),
273 InitializeMagick(const char *),
274 ReacquireMemory(void **,const size_t),
275 ResetImageAttributeIterator(const Image *),
276 SetCacheThreshold(const unsigned long),
277 SetImage(Image *,const Quantum),
278 Strip(char *),
279 TemporaryFilename(char *),
280 TransformHSL(const Quantum,const Quantum,const Quantum,double *,double *,
281 double *);
282#endif
283
284#if defined(__cplusplus) || defined(c_plusplus)
285}
286#endif
287
288#endif