1 module dmagick.c.deprecate; 2 3 import core.vararg; 4 import core.stdc.stdio; 5 6 import dmagick.c.cacheView; 7 import dmagick.c.colorspace; 8 import dmagick.c.constitute; 9 import dmagick.c.draw; 10 import dmagick.c.exception; 11 import dmagick.c.geometry; 12 import dmagick.c.image; 13 import dmagick.c.magickType; 14 import dmagick.c.magickVersion; 15 import dmagick.c.pixel; 16 import dmagick.c.quantize; 17 import dmagick.c.quantum; 18 import dmagick.c.registry; 19 import dmagick.c.resample; 20 import dmagick.c.semaphore; 21 22 alias ptrdiff_t ssize_t; 23 24 deprecated extern(C) 25 { 26 enum MagickLayerMethod 27 { 28 UndefinedMagickLayerMethod 29 } 30 31 alias MagickOffsetType ExtendedSignedIntegralType; 32 alias MagickSizeType ExtendedUnsignedIntegralType; 33 alias MagickRealType ExtendedRationalType; 34 /// The Quantum depth ImageMagick / DMagick is compiled with. 35 alias MagickQuantumDepth MAGICKCORE_QUANTUM_DEPTH; 36 37 static if ( MagickLibVersion >= 0x689 ) 38 { 39 enum MagickRealType MagickHuge = 3.4e+38; 40 } 41 42 struct ViewInfo {} 43 44 alias MagickBooleanType function(const(char)*, const MagickOffsetType, const MagickSizeType, ExceptionInfo*) MonitorHandler; 45 46 struct ImageAttribute 47 { 48 char* 49 key, 50 value; 51 52 MagickBooleanType 53 compression; 54 55 ImageAttribute* 56 previous, 57 next; 58 } 59 60 CacheView* CloseCacheView(CacheView*); 61 CacheView* OpenCacheView(const(Image)*); 62 63 char* AllocateString(const(char)*); 64 char* InterpretImageAttributes(const(ImageInfo)*, Image*, const(char)*); 65 char* PostscriptGeometry(const(char)*); 66 char* TranslateText(const(ImageInfo)*, Image*, const(char)*); 67 68 const(ImageAttribute)* GetImageAttribute(const(Image)*, const(char)*); 69 const(ImageAttribute)* GetImageClippingPathAttribute(Image*); 70 const(ImageAttribute)* GetNextImageAttribute(const(Image)*); 71 72 const(IndexPacket)* AcquireCacheViewIndexes(const(CacheView)*); 73 const(IndexPacket)* AcquireIndexes(const(Image)*); 74 75 const(PixelPacket)* AcquirePixels(const(Image)*); 76 const(PixelPacket)* AcquireCacheViewPixels(const(CacheView)*, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo*); 77 const(PixelPacket)* AcquireImagePixels(const(Image)*, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo*); 78 79 static if ( MagickLibVersion >= 0x673 ) 80 { 81 FILE* OpenMagickStream(const(char)*, const(char)*); 82 } 83 84 Image* AllocateImage(const(ImageInfo)*); 85 86 static if ( MagickLibVersion >= 0x661 ) 87 { 88 Image* AverageImages(const(Image)*, ExceptionInfo*); 89 } 90 91 Image* ExtractSubimageFromImage(Image*, const(Image)*, ExceptionInfo*); 92 Image* GetImageFromMagickRegistry(const(char)*, ssize_t* id, ExceptionInfo*); 93 Image* GetImageList(const(Image)*, const ssize_t, ExceptionInfo*); 94 Image* GetNextImage(const(Image)*); 95 Image* GetPreviousImage(const(Image)*); 96 Image* FlattenImages(Image*, ExceptionInfo*); 97 98 static if ( MagickLibVersion >= 0x661 ) 99 { 100 Image* MaximumImages(const(Image)*, ExceptionInfo*); 101 } 102 103 static if ( MagickLibVersion >= 0x669 ) 104 { 105 Image* MedianFilterImage(const Image*, const double, ExceptionInfo*); 106 Image* ModeImage(const(Image)*, const double, ExceptionInfo*); 107 } 108 109 static if ( MagickLibVersion >= 0x661 ) 110 { 111 Image* MinimumImages(const(Image)*, ExceptionInfo*); 112 } 113 114 Image* MosaicImages(Image*, ExceptionInfo*); 115 Image* PopImageList(Image**); 116 117 static if ( MagickLibVersion >= 0x689 ) 118 { 119 Image* RadialBlurImage(const(Image)*, const double, ExceptionInfo*); 120 Image* RadialBlurImageChannel(const(Image)*, const ChannelType, const double, ExceptionInfo*); 121 } 122 123 static if ( MagickLibVersion >= 0x661 ) 124 { 125 Image* RecolorImage(const(Image)*, const size_t, const(double)*, ExceptionInfo*); 126 } 127 128 static if ( MagickLibVersion >= 0x669 ) 129 { 130 Image* ReduceNoiseImage(const(Image)*, const double, ExceptionInfo*); 131 } 132 133 Image* ShiftImageList(Image**); 134 Image* SpliceImageList(Image*, const ssize_t, const size_t, const(Image)*, ExceptionInfo*); 135 136 static if ( MagickLibVersion >= 0x665 ) 137 { 138 Image* ZoomImage(const(Image)*, const size_t, const size_t, ExceptionInfo*); 139 } 140 141 IndexPacket* GetCacheViewIndexes(CacheView*); 142 IndexPacket* GetIndexes(const(Image)*); 143 IndexPacket ValidateColormapIndex(Image*, const size_t); 144 145 int GetImageGeometry(Image*, const(char)*, const uint, RectangleInfo*); 146 int ParseImageGeometry(const(char)*, ssize_t*, ssize_t*, size_t*, size_t*); 147 148 static if ( MagickLibVersion >= 0x690 ) 149 { 150 int SystemCommand(const MagickBooleanType, const MagickBooleanType, const(char)*, ExceptionInfo*); 151 } 152 153 MagickBooleanType AcquireOneCacheViewPixel(const(CacheView)*, const ssize_t, const ssize_t, PixelPacket*, ExceptionInfo*); 154 MagickBooleanType AcquireOneCacheViewVirtualPixel(const(CacheView)*, const VirtualPixelMethod, const ssize_t, const ssize_t, PixelPacket*, ExceptionInfo*); 155 MagickBooleanType AffinityImage(const(QuantizeInfo)*, Image*, const(Image)*); 156 MagickBooleanType AffinityImages(const(QuantizeInfo)*, Image*, const(Image)*); 157 MagickBooleanType AllocateImageColormap(Image*, const size_t); 158 MagickBooleanType ClipPathImage(Image*, const(char)*, const MagickBooleanType); 159 MagickBooleanType CloneImageAttributes(Image*, const(Image)*); 160 MagickBooleanType ColorFloodfillImage(Image*, const(DrawInfo)*, const PixelPacket, const ssize_t, const ssize_t, const PaintMethod); 161 162 static if ( MagickLibVersion >= 0x689 ) 163 { 164 MagickBooleanType ConstituteComponentGenesis(); 165 } 166 167 MagickBooleanType DeleteImageAttribute(Image*, const(char)*); 168 MagickBooleanType DeleteMagickRegistry(const ssize_t); 169 MagickBooleanType DescribeImage(Image*, FILE*, const MagickBooleanType); 170 MagickBooleanType FormatImageAttribute(Image*, const(char)*, const(char)*, ...); 171 MagickBooleanType FormatImageAttributeList(Image*, const(char)*, const(char)*, va_list); 172 173 static if ( MagickLibVersion >= 0x670 ) 174 { 175 MagickBooleanType FormatImagePropertyList(Image*, const(char)*, const(char)*, va_list); 176 } 177 178 MagickBooleanType FuzzyColorCompare(const(Image)*, const(PixelPacket)*, const(PixelPacket)*); 179 MagickBooleanType FuzzyOpacityCompare(const(Image)*, const(PixelPacket)*, const(PixelPacket)*); 180 181 static if (MagickLibVersion >= 0x689) 182 { 183 MagickBooleanType InitializeModuleList(ExceptionInfo*); 184 MagickBooleanType IsMagickInstantiated(); 185 } 186 187 MagickBooleanType LevelImageColors(Image*, const ChannelType, const(MagickPixelPacket)*, const(MagickPixelPacket)*, const MagickBooleanType); 188 189 static if ( MagickLibVersion >= 0x689 ) 190 { 191 MagickBooleanType LoadMimeLists(const(char)*, ExceptionInfo*); 192 } 193 194 MagickBooleanType MagickMonitor(const(char)*, const MagickOffsetType, const MagickSizeType, void*); 195 MagickBooleanType MapImage(Image*, const(Image)*, const MagickBooleanType); 196 MagickBooleanType MapImages(Image*, const(Image)*, const MagickBooleanType); 197 MagickBooleanType MatteFloodfillImage(Image*, const PixelPacket, const Quantum, const ssize_t, const ssize_t, const PaintMethod); 198 MagickBooleanType OpaqueImage(Image*, const PixelPacket, const PixelPacket); 199 MagickBooleanType PaintFloodfillImage(Image*, const ChannelType, const(MagickPixelPacket)*, const ssize_t, const ssize_t, const(DrawInfo)*, const PaintMethod); 200 MagickBooleanType PaintOpaqueImage(Image*, const(MagickPixelPacket)*, const(MagickPixelPacket)*); 201 MagickBooleanType PaintOpaqueImageChannel(Image*, const ChannelType, const(MagickPixelPacket)*, const(MagickPixelPacket)*); 202 MagickBooleanType PaintTransparentImage(Image*, const(MagickPixelPacket)*, const Quantum); 203 MagickBooleanType SetExceptionInfo(ExceptionInfo*, ExceptionType); 204 MagickBooleanType SetImageAttribute(Image*, const(char)*, const(char)*); 205 MagickBooleanType SyncCacheViewPixels(CacheView*); 206 MagickBooleanType SyncImagePixels(Image*); 207 MagickBooleanType TransparentImage(Image*, const PixelPacket, const Quantum); 208 209 MagickPixelPacket AcquireOneMagickPixel(const(Image)*, const ssize_t, const ssize_t, ExceptionInfo*); 210 211 MonitorHandler GetMonitorHandler(); 212 MonitorHandler SetMonitorHandler(MonitorHandler); 213 214 MagickOffsetType SizeBlob(Image* image); 215 216 MagickPixelPacket InterpolatePixelColor(const(Image)*, CacheView*, const InterpolatePixelMethod, const double, const double, ExceptionInfo*); 217 218 MagickStatusType ParseSizeGeometry(const(Image)*, const(char)*, RectangleInfo*); 219 220 PixelPacket AcquireOnePixel(const(Image)*, const ssize_t, const ssize_t, ExceptionInfo*); 221 PixelPacket AcquireOneVirtualPixel(const(Image)*, const VirtualPixelMethod, const ssize_t, const ssize_t, ExceptionInfo*); 222 PixelPacket* GetCacheView(CacheView*, const ssize_t, const ssize_t, const size_t, const size_t); 223 PixelPacket* GetCacheViewPixels(CacheView*, const ssize_t, const ssize_t, const size_t, const size_t); 224 PixelPacket* GetImagePixels(Image*, const ssize_t, const ssize_t, const size_t, const size_t); 225 PixelPacket GetOnePixel(Image*, const ssize_t, const ssize_t); 226 PixelPacket* GetPixels(const(Image)*); 227 PixelPacket* SetCacheViewPixels(CacheView*, const ssize_t, const ssize_t, const size_t, const size_t); 228 PixelPacket* SetImagePixels(Image*, const ssize_t, const ssize_t, const size_t, const size_t); 229 230 size_t GetImageListSize(const(Image)*); 231 size_t PopImagePixels(Image*, const QuantumType, ubyte*); 232 size_t PushImagePixels(Image*, const QuantumType, const(byte)*); 233 234 static if ( MagickLibVersion >= 0x670 ) 235 { 236 ssize_t FormatMagickString(char*, const size_t, const(char)*, ...); 237 ssize_t FormatMagickStringList(char*, const size_t, const(char)*, va_list); 238 } 239 240 ssize_t GetImageListIndex(const(Image)*); 241 ssize_t SetMagickRegistry(const RegistryType, const(void)*, const size_t, ExceptionInfo*); 242 243 uint ChannelImage(Image*, const ChannelType); 244 uint ChannelThresholdImage(Image*, const(char)*); 245 uint DispatchImage(const(Image)*, const ssize_t, const ssize_t, const size_t, const size_t, const(char)*, const StorageType, void*, ExceptionInfo*); 246 uint FuzzyColorMatch(const(PixelPacket)*, const(PixelPacket)*, const double); 247 uint GetNumberScenes(const(Image)*); 248 uint GetMagickGeometry(const(char)*, ssize_t*, ssize_t*, size_t*, size_t*); 249 uint IsSubimage(const(char)*, const uint); 250 uint PushImageList(Image**, const(Image)*, ExceptionInfo*); 251 uint QuantizationError(Image*); 252 uint RandomChannelThresholdImage(Image*, const(char)*, const(char)*, ExceptionInfo*); 253 uint SetImageList(Image**, const(Image)*, const ssize_t, ExceptionInfo*); 254 uint TransformColorspace(Image*, const ColorspaceType); 255 uint ThresholdImage(Image*, const double); 256 uint ThresholdImageChannel(Image*, const(char)*); 257 uint UnshiftImageList(Image**, const(Image)*, ExceptionInfo*); 258 259 void* AcquireMemory(const size_t); 260 261 static if ( MagickLibVersion >= 0x689 ) 262 { 263 void AcquireSemaphoreInfo(SemaphoreInfo**); 264 } 265 266 void AllocateNextImage(const(ImageInfo)*, Image*); 267 268 static if ( MagickLibVersion >= 0x689 ) 269 { 270 void ConstituteComponentTerminus(); 271 } 272 273 void* CloneMemory(void*, const(void)*, const size_t); 274 275 static if ( MagickLibVersion >= 0x655 ) 276 { 277 void DestroyConstitute(); 278 } 279 280 void DestroyImageAttributes(Image*); 281 void DestroyImages(Image*); 282 void DestroyMagick(); 283 void DestroyMagickRegistry(); 284 void* GetConfigureBlob(const(char)*, char*, size_t*, ExceptionInfo*); 285 286 static if ( MagickLibVersion >= 0x689 ) 287 { 288 void GetExceptionInfo(ExceptionInfo*); 289 } 290 291 void* GetMagickRegistry(const ssize_t, RegistryType*, size_t*, ExceptionInfo*); 292 293 static if ( MagickLibVersion >= 0x694 ) 294 { 295 void GetTokenToken(const(char)*, const(char)**, char*); 296 } 297 298 void IdentityAffine(AffineMatrix*); 299 void LiberateMemory(void**); 300 void LiberateSemaphoreInfo(SemaphoreInfo**); 301 void FormatString(char*, const(char)*, ...); 302 void FormatStringList(char*, const(char)*, va_list); 303 void HSLTransform(const double, const double, const double, Quantum*, Quantum*, Quantum*); 304 void InitializeMagick(const(char)*); 305 void MagickIncarnate(const(char)*); 306 void ReacquireMemory(void**, const size_t); 307 308 static if ( MagickLibVersion >= 0x689 ) 309 { 310 void RelinquishSemaphoreInfo(SemaphoreInfo*); 311 } 312 313 void ResetImageAttributeIterator(const(Image)*); 314 void SetCacheThreshold(const size_t); 315 void SetImage(Image*, const Quantum); 316 void Strip(char*); 317 void TemporaryFilename(char*); 318 void TransformHSL(const Quantum, const Quantum, const Quantum, double*, double*, double*); 319 }