| 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(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) |
|---|
| 39 | # if !defined(__GNUC__) |
|---|
| 40 | # define magick_attribute(x) |
|---|
| 41 | # else |
|---|
| 42 | # define magick_attribute __attribute__ |
|---|
| 43 | # endif |
|---|
| 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 | |
|---|
| 59 | typedef struct _DoublePixelPacket |
|---|
| 60 | { |
|---|
| 61 | double |
|---|
| 62 | red, |
|---|
| 63 | green, |
|---|
| 64 | blue, |
|---|
| 65 | opacity, |
|---|
| 66 | index; |
|---|
| 67 | } DoublePixelPacket; |
|---|
| 68 | |
|---|
| 69 | typedef enum |
|---|
| 70 | { |
|---|
| 71 | UndefinedMagickLayerMethod |
|---|
| 72 | } MagickLayerMethod; |
|---|
| 73 | |
|---|
| 74 | typedef MagickOffsetType ExtendedSignedIntegralType; |
|---|
| 75 | typedef MagickSizeType ExtendedUnsignedIntegralType; |
|---|
| 76 | typedef MagickRealType ExtendedRationalType; |
|---|
| 77 | |
|---|
| 78 | typedef MagickBooleanType |
|---|
| 79 | (*MonitorHandler)(const char *,const MagickOffsetType,const MagickSizeType, |
|---|
| 80 | ExceptionInfo *); |
|---|
| 81 | |
|---|
| 82 | typedef struct _ImageAttribute |
|---|
| 83 | { |
|---|
| 84 | char |
|---|
| 85 | *key, |
|---|
| 86 | *value; |
|---|
| 87 | |
|---|
| 88 | MagickBooleanType |
|---|
| 89 | compression; |
|---|
| 90 | |
|---|
| 91 | struct _ImageAttribute |
|---|
| 92 | *previous, |
|---|
| 93 | *next; |
|---|
| 94 | } ImageAttribute; |
|---|
| 95 | |
|---|
| 96 | extern 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 | |
|---|
| 102 | extern MagickExport const ImageAttribute |
|---|
| 103 | *GetImageAttribute(const Image *,const char *), |
|---|
| 104 | *GetImageClippingPathAttribute(Image *), |
|---|
| 105 | *GetNextImageAttribute(const Image *); |
|---|
| 106 | |
|---|
| 107 | extern 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 | |
|---|
| 120 | extern MagickExport IndexPacket |
|---|
| 121 | ValidateColormapIndex(Image *,const unsigned long); |
|---|
| 122 | |
|---|
| 123 | extern MagickExport int |
|---|
| 124 | GetImageGeometry(Image *,const char *,const unsigned int,RectangleInfo *), |
|---|
| 125 | ParseImageGeometry(const char *,long *,long *,unsigned long *, |
|---|
| 126 | unsigned long *); |
|---|
| 127 | |
|---|
| 128 | extern MagickExport long |
|---|
| 129 | GetImageListIndex(const Image *), |
|---|
| 130 | SetMagickRegistry(const RegistryType,const void *,const size_t, |
|---|
| 131 | ExceptionInfo *); |
|---|
| 132 | |
|---|
| 133 | extern 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 | |
|---|
| 168 | extern MagickExport MonitorHandler |
|---|
| 169 | GetMonitorHandler(void), |
|---|
| 170 | SetMonitorHandler(MonitorHandler); |
|---|
| 171 | |
|---|
| 172 | extern MagickExport MagickOffsetType |
|---|
| 173 | SizeBlob(Image *image); |
|---|
| 174 | |
|---|
| 175 | extern MagickExport MagickPixelPacket |
|---|
| 176 | InterpolatePixelColor(const Image *,ViewInfo *,const InterpolatePixelMethod, |
|---|
| 177 | const double,const double,ExceptionInfo *); |
|---|
| 178 | |
|---|
| 179 | extern MagickExport PixelPacket |
|---|
| 180 | *GetCacheView(ViewInfo *,const long,const long,const unsigned long, |
|---|
| 181 | const unsigned long); |
|---|
| 182 | |
|---|
| 183 | extern MagickExport size_t |
|---|
| 184 | PopImagePixels(Image *,const QuantumType,unsigned char *), |
|---|
| 185 | PushImagePixels(Image *,const QuantumType,const unsigned char *); |
|---|
| 186 | |
|---|
| 187 | extern 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 | |
|---|
| 206 | extern MagickExport unsigned long |
|---|
| 207 | GetImageListSize(const Image *); |
|---|
| 208 | |
|---|
| 209 | extern MagickExport ViewInfo |
|---|
| 210 | *CloseCacheView(ViewInfo *), |
|---|
| 211 | *OpenCacheView(const Image *); |
|---|
| 212 | |
|---|
| 213 | extern 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 |
|---|