2 Copyright 1999-2017 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
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.
16 MagickCore magick methods.
18 #ifndef MAGICKCORE_MAGICK_H
19 #define MAGICKCORE_MAGICK_H
21 #if defined(__cplusplus) || defined(c_plusplus)
26 #include "MagickCore/semaphore.h"
38 CoderAdjoinFlag = 0x0001,
39 CoderBlobSupportFlag = 0x0002,
40 CoderDecoderThreadSupportFlag = 0x0004,
41 CoderEncoderThreadSupportFlag = 0x0008,
42 CoderEndianSupportFlag = 0x0010,
43 CoderRawSupportFlag = 0x0020,
44 CoderSeekableStreamFlag = 0x0040,
45 CoderStealthFlag = 0x0080,
46 CoderUseExtensionFlag = 0x0100
50 *DecodeImageHandler(const ImageInfo *,ExceptionInfo *);
52 typedef MagickBooleanType
53 EncodeImageHandler(const ImageInfo *,Image *,ExceptionInfo *);
55 typedef MagickBooleanType
56 IsImageFormatHandler(const unsigned char *,const size_t);
58 typedef struct _MagickInfo
96 extern MagickExport char
97 **GetMagickList(const char *,size_t *,ExceptionInfo *);
99 extern MagickExport const char
100 *GetMagickDescription(const MagickInfo *),
101 *GetMagickMimeType(const MagickInfo *);
103 extern MagickExport DecodeImageHandler
104 *GetImageDecoder(const MagickInfo *);
106 extern MagickExport EncodeImageHandler
107 *GetImageEncoder(const MagickInfo *);
109 extern MagickExport int
110 GetMagickPrecision(void),
111 SetMagickPrecision(const int);
113 extern MagickExport MagickBooleanType
114 GetImageMagick(const unsigned char *,const size_t,char *),
115 GetMagickAdjoin(const MagickInfo *),
116 GetMagickBlobSupport(const MagickInfo *),
117 GetMagickDecoderThreadSupport(const MagickInfo *),
118 GetMagickEncoderThreadSupport(const MagickInfo *),
119 GetMagickEndianSupport(const MagickInfo *),
120 GetMagickRawSupport(const MagickInfo *),
121 GetMagickSeekableStream(const MagickInfo *),
122 GetMagickStealth(const MagickInfo *),
123 GetMagickUseExtension(const MagickInfo *),
124 IsMagickCoreInstantiated(void),
125 RegisterMagickInfo(MagickInfo *),
126 UnregisterMagickInfo(const char *);
128 extern const MagickExport MagickInfo
129 *GetMagickInfo(const char *,ExceptionInfo *),
130 **GetMagickInfoList(const char *,size_t *,ExceptionInfo *);
132 extern MagickExport MagickInfo
133 *AcquireMagickInfo(const char *, const char *, const char *);
135 extern MagickExport void
136 MagickCoreGenesis(const char *,const MagickBooleanType),
137 MagickCoreTerminus(void);
139 #if defined(__cplusplus) || defined(c_plusplus)