| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | #ifndef _MAGICKCORE_DEPRECATE_H |
|---|
| 19 | #define _MAGICKCORE_DEPRECATE_H |
|---|
| 20 | |
|---|
| 21 | #if defined(__cplusplus) || defined(c_plusplus) |
|---|
| 22 | extern "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) |
|---|
| 38 | # if !defined(__GNUC__) |
|---|
| 39 | # define magick_attribute(x) |
|---|
| 40 | # else |
|---|
| 41 | # define magick_attribute __attribute__ |
|---|
| 42 | # endif |
|---|
| 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 | |
|---|
| 57 | typedef 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) |
|---|
| 69 | typedef long long ExtendedSignedIntegralType; |
|---|
| 70 | typedef unsigned long long ExtendedUnsignedIntegralType; |
|---|
| 71 | #else |
|---|
| 72 | typedef long ExtendedSignedIntegralType; |
|---|
| 73 | typedef unsigned long ExtendedUnsignedIntegralType; |
|---|
| 74 | #endif |
|---|
| 75 | #else |
|---|
| 76 | typedef __int64 ExtendedSignedIntegralType; |
|---|
| 77 | typedef unsigned __int64 ExtendedUnsignedIntegralType; |
|---|
| 78 | #endif |
|---|
| 79 | #if defined(HAVE_LONG_DOUBLE) |
|---|
| 80 | typedef long double ExtendedRationalType; |
|---|
| 81 | #else |
|---|
| 82 | typedef double ExtendedRationalType; |
|---|
| 83 | #endif |
|---|
| 84 | |
|---|
| 85 | typedef MagickBooleanType |
|---|
| 86 | (*MonitorHandler)(const char *,const MagickOffsetType,const MagickSizeType, |
|---|
| 87 | ExceptionInfo *); |
|---|
| 88 | |
|---|
| 89 | typedef struct _ImageAttribute |
|---|
| 90 | { |
|---|
| 91 | char |
|---|
| 92 | *key, |
|---|
| 93 | *value; |
|---|
| 94 | |
|---|
| 95 | MagickBooleanType |
|---|
| 96 | compression; |
|---|
| 97 | |
|---|
| 98 | struct _ImageAttribute |
|---|
| 99 | *previous, |
|---|
| 100 | *next; |
|---|
| 101 | } ImageAttribute; |
|---|
| 102 | |
|---|
| 103 | extern 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 | |
|---|
| 109 | extern MagickExport const ImageAttribute |
|---|
| 110 | *GetImageAttribute(const Image *,const char *), |
|---|
| 111 | *GetImageClippingPathAttribute(Image *), |
|---|
| 112 | *GetNextImageAttribute(const Image *); |
|---|
| 113 | |
|---|
| 114 | extern 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 | |
|---|
| 124 | extern MagickExport IndexPacket |
|---|
| 125 | ValidateColormapIndex(Image *,const unsigned long); |
|---|
| 126 | |
|---|
| 127 | extern MagickExport int |
|---|
| 128 | GetImageGeometry(Image *,const char *,const unsigned int,RectangleInfo *), |
|---|
| 129 | ParseImageGeometry(const char *,long *,long *,unsigned long *, |
|---|
| 130 | unsigned long *); |
|---|
| 131 | |
|---|
| 132 | extern MagickExport long |
|---|
| 133 | GetImageListIndex(const Image *), |
|---|
| 134 | SetMagickRegistry(const RegistryType,const void *,const size_t, |
|---|
| 135 | ExceptionInfo *); |
|---|
| 136 | |
|---|
| 137 | extern 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 | |
|---|
| 161 | extern MagickExport MonitorHandler |
|---|
| 162 | GetMonitorHandler(void), |
|---|
| 163 | SetMonitorHandler(MonitorHandler); |
|---|
| 164 | |
|---|
| 165 | extern MagickExport MagickOffsetType |
|---|
| 166 | SizeBlob(const Image *image); |
|---|
| 167 | |
|---|
| 168 | extern MagickExport MagickPixelPacket |
|---|
| 169 | InterpolatePixelColor(const Image *,ViewInfo *,const InterpolatePixelMethod, |
|---|
| 170 | const double,const double,ExceptionInfo *); |
|---|
| 171 | |
|---|
| 172 | extern MagickExport PixelPacket |
|---|
| 173 | *GetCacheView(ViewInfo *,const long,const long,const unsigned long, |
|---|
| 174 | const unsigned long); |
|---|
| 175 | |
|---|
| 176 | extern 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 | |
|---|
| 195 | extern MagickExport unsigned long |
|---|
| 196 | GetImageListSize(const Image *); |
|---|
| 197 | |
|---|
| 198 | extern 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 |
|---|