root / ImageMagick / branches / ImageMagick-6.3.5 / magick / deprecate.h

Revision 8022, 7.7 kB (checked in by cristy, 14 months ago)
Line 
1/*
2  Copyright 1999-2007 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(ExcludeMagickDeprecated)
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/quantum.h"
34#include "magick/registry.h"
35#include "magick/semaphore.h"
36
37#if !defined(magick_attribute)
38if !defined(__GNUC__)
39#    define magick_attribute(x) /*nothing*/
40else
41#    define magick_attribute __attribute__
42endif
43#endif
44
45#define Downscale(quantum)  ScaleQuantumToChar(quantum)
46#define LABColorspace LabColorspace
47#define Intensity(color)  PixelIntensityToQuantum(color)
48#define LiberateUniqueFileResource(resource) \
49  RelinquishUniqueFileResource(resource)
50#define LiberateMagickResource(resource)  RelinquishMagickResource(resource)
51#define LiberateSemaphore(semaphore)  RelinquishSemaphore(semaphore)
52#define RunlengthEncodedCompression  RLECompression
53#define Upscale(value)  ScaleCharToQuantum(value)
54#define XDownscale(value)  ScaleShortToQuantum(value)
55#define XUpscale(quantum)  ScaleQuantumToShort(quantum)
56
57typedef struct _DoublePixelPacket
58{
59  double
60    red,
61    green,
62    blue,
63    opacity,
64    index;
65} DoublePixelPacket;
66
67#if !defined(__WINDOWS__)
68#if (SIZEOF_LONG_LONG == 8)
69typedef long long ExtendedSignedIntegralType;
70typedef unsigned long long ExtendedUnsignedIntegralType;
71#else
72typedef long ExtendedSignedIntegralType;
73typedef unsigned long ExtendedUnsignedIntegralType;
74#endif
75#else
76typedef __int64 ExtendedSignedIntegralType;
77typedef unsigned __int64 ExtendedUnsignedIntegralType;
78#endif
79#if defined(HAVE_LONG_DOUBLE)
80typedef long double ExtendedRationalType;
81#else
82typedef double ExtendedRationalType;
83#endif
84
85typedef MagickBooleanType
86  (*MonitorHandler)(const char *,const MagickOffsetType,const MagickSizeType,
87    ExceptionInfo *);
88
89typedef struct _ImageAttribute
90{
91  char
92    *key,
93    *value;
94                                                                               
95  MagickBooleanType
96    compression;
97                                                                               
98  struct _ImageAttribute
99    *previous,
100    *next;  /* deprecated */
101} ImageAttribute;
102
103extern MagickExport char
104  *AllocateString(const char *),
105  *InterpretImageAttributes(const ImageInfo *,Image *,const char *),
106  *PostscriptGeometry(const char *),
107  *TranslateText(const ImageInfo *,Image *,const char *);
108
109extern MagickExport const ImageAttribute
110  *GetImageAttribute(const Image *,const char *),
111  *GetImageClippingPathAttribute(Image *),
112  *GetNextImageAttribute(const Image *);
113
114extern MagickExport Image
115  *GetImageFromMagickRegistry(const char *,long *id,ExceptionInfo *),
116  *GetImageList(const Image *,const long,ExceptionInfo *),
117  *GetNextImage(const Image *),
118  *GetPreviousImage(const Image *),
119  *PopImageList(Image **),
120  *ShiftImageList(Image **),
121  *SpliceImageList(Image *,const long,const unsigned long,const Image *,
122    ExceptionInfo *);
123
124extern MagickExport IndexPacket
125  ValidateColormapIndex(Image *,const unsigned long);
126
127extern MagickExport int
128  GetImageGeometry(Image *,const char *,const unsigned int,RectangleInfo *),
129  ParseImageGeometry(const char *,long *,long *,unsigned long *,
130    unsigned long *);
131
132extern MagickExport long
133  GetImageListIndex(const Image *),
134  SetMagickRegistry(const RegistryType,const void *,const size_t,
135    ExceptionInfo *);
136
137extern MagickExport 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  MatteFloodfillImage(Image *,const PixelPacket,const Quantum,const long,
153    const long,const PaintMethod),
154  OpaqueImage(Image *,const PixelPacket,const PixelPacket),
155  PopImagePixels(Image *,const QuantumType,unsigned char *),
156  PushImagePixels(Image *,const QuantumType,const unsigned char *),
157  SetExceptionInfo(ExceptionInfo *,ExceptionType),
158  SetImageAttribute(Image *,const char *,const char *),
159  TransparentImage(Image *,const PixelPacket,const Quantum);
160
161extern MagickExport MonitorHandler
162  GetMonitorHandler(void),
163  SetMonitorHandler(MonitorHandler);
164
165extern MagickExport MagickOffsetType
166  SizeBlob(const Image *image);
167
168extern MagickExport MagickPixelPacket
169  InterpolatePixelColor(const Image *,ViewInfo *,const InterpolatePixelMethod,
170    const double,const double,ExceptionInfo *);
171
172extern MagickExport PixelPacket
173  *GetCacheView(ViewInfo *,const long,const long,const unsigned long,
174    const unsigned long);
175
176extern MagickExport unsigned int
177  ChannelImage(Image *,const ChannelType),
178  ChannelThresholdImage(Image *,const char *),
179  DispatchImage(const Image *,const long,const long,const unsigned long,
180    const unsigned long,const char *,const StorageType,void *,ExceptionInfo *),
181  FuzzyColorMatch(const PixelPacket *,const PixelPacket *,const double),
182  GetNumberScenes(const Image *),
183  GetMagickGeometry(const char *,long *,long *,unsigned long *,unsigned long *),
184  IsSubimage(const char *,const unsigned int),
185  PushImageList(Image **,const Image *,ExceptionInfo *),
186  QuantizationError(Image *),
187  RandomChannelThresholdImage(Image *,const char *,const char *,
188    ExceptionInfo *),
189  SetImageList(Image **,const Image *,const long,ExceptionInfo *),
190  TransformColorspace(Image *,const ColorspaceType),
191  ThresholdImage(Image *,const double),
192  ThresholdImageChannel(Image *,const char *),
193  UnshiftImageList(Image **,const Image *,ExceptionInfo *);
194
195extern MagickExport unsigned long
196  GetImageListSize(const Image *);
197
198extern MagickExport void
199  *AcquireMemory(const size_t),
200  *CloneMemory(void *,const void *,const size_t),
201  DestroyImageAttributes(Image *),
202  DestroyImages(Image *),
203  DestroyMagick(void),
204  DestroyMagickRegistry(void),
205  *GetConfigureBlob(const char *,char *,size_t *,ExceptionInfo *),
206  *GetMagickRegistry(const long,RegistryType *,size_t *,ExceptionInfo *),
207  IdentityAffine(AffineMatrix *),
208  LiberateMemory(void **),
209  LiberateSemaphoreInfo(SemaphoreInfo **),
210  FormatString(char *,const char *,...) magick_attribute((format (printf,2,3))),
211  FormatStringList(char *,const char *,va_list)
212    magick_attribute((format (printf,2,0))),
213  InitializeMagick(const char *),
214  ReacquireMemory(void **,const size_t),
215  ResetImageAttributeIterator(const Image *),
216  SetCacheThreshold(const unsigned long),
217  SetImage(Image *,const Quantum),
218  Strip(char *),
219  TemporaryFilename(char *);
220#endif
221
222#if defined(__cplusplus) || defined(c_plusplus)
223}
224#endif
225
226#endif
Note: See TracBrowser for help on using the browser.