11 #define MAGICKCORE_IMPLEMENTATION 1 12 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1 21 : _decoderThreadSupport(false),
23 _encoderThreadSupport(false),
34 : _decoderThreadSupport(coder_._decoderThreadSupport),
35 _description(coder_._description),
36 _encoderThreadSupport(coder_._encoderThreadSupport),
37 _isMultiFrame(coder_._isMultiFrame),
38 _isReadable(coder_._isReadable),
39 _isWritable(coder_._isWritable),
40 _mimeType(coder_._mimeType),
41 _module(coder_._module),
47 : _decoderThreadSupport(false),
49 _encoderThreadSupport(false),
57 const Magick::MagickInfo
61 magickInfo=GetMagickInfo(name_.c_str(),exceptionInfo);
68 _decoderThreadSupport=(GetMagickDecoderThreadSupport(magickInfo) ==
69 MagickTrue) ?
true :
false;
70 _description=std::string(magickInfo->description);
71 _encoderThreadSupport=(GetMagickEncoderThreadSupport(magickInfo) ==
72 MagickTrue) ?
true :
false;
73 _isMultiFrame=(GetMagickAdjoin(magickInfo) == MagickTrue) ?
true :
false;
74 _isReadable=((magickInfo->decoder == (MagickCore::DecodeImageHandler *)
75 NULL) ? false :
true);
76 _isWritable=((magickInfo->encoder == (MagickCore::EncodeImageHandler *)
77 NULL) ? false :
true);
78 _mimeType=std::string(magickInfo->mime_type != (
char *) NULL ?
79 magickInfo->mime_type :
"");
80 _module=std::string(magickInfo->magick_module);
81 _name=std::string(magickInfo->name);
94 _decoderThreadSupport=coder_._decoderThreadSupport;
95 _description=coder_._description;
96 _encoderThreadSupport=coder_._encoderThreadSupport;
97 _isMultiFrame=coder_._isMultiFrame;
98 _isReadable=coder_._isReadable;
99 _isWritable=coder_._isWritable;
100 _mimeType=coder_._mimeType;
101 _module=coder_._module;
109 return(_decoderThreadSupport);
114 return(_encoderThreadSupport);
119 return(_description);
134 return(_isMultiFrame);
154 return(UnregisterMagickInfo(_name.c_str()) != MagickFalse);
CoderInfo & operator=(const CoderInfo &coder_)
bool isReadable(void) const
bool unregister(void) const
bool canWriteMultithreaded(void) const
bool isMultiFrame(void) const
std::string description(void) const
MagickPPExport void throwExceptionExplicit(const MagickCore::ExceptionType severity_, const char *reason_, const char *description_=(char *) NULL)
#define ThrowPPException(quiet)
std::string mimeType(void) const
std::string module(void) const
bool isWritable(void) const
bool canReadMultithreaded(void) const
std::string name(void) const