MagickCore 6.9.12
|
#include "magick/studio.h"
#include "magick/annotate.h"
#include "magick/blob.h"
#include "magick/blob-private.h"
#include "magick/cache.h"
#include "magick/coder.h"
#include "magick/client.h"
#include "magick/configure.h"
#include "magick/constitute.h"
#include "magick/delegate.h"
#include "magick/draw.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/locale_.h"
#include "magick/log.h"
#include "magick/magic.h"
#include "magick/magick.h"
#include "magick/memory_.h"
#include "magick/mime.h"
#include "magick/module.h"
#include "magick/monitor-private.h"
#include "magick/mutex.h"
#include "magick/nt-base-private.h"
#include "magick/nt-feature.h"
#include "magick/opencl-private.h"
#include "magick/random_.h"
#include "magick/registry.h"
#include "magick/resource_.h"
#include "magick/policy.h"
#include "magick/semaphore.h"
#include "magick/semaphore-private.h"
#include "magick/signature-private.h"
#include "magick/splay-tree.h"
#include "magick/static.h"
#include "magick/string_.h"
#include "magick/string-private.h"
#include "magick/thread_.h"
#include "magick/thread-private.h"
#include "magick/token.h"
#include "magick/utility.h"
#include "magick/xwindow-private.h"
Go to the source code of this file.
Macros | |
#define | MAGICKCORE_RETSIGTYPE void |
#define | SIG_DFL ((SignalHandler *) 0) |
#define | SIG_ERR ((SignalHandler *) -1) |
#define | SIGMAX 64 |
#define | MagickPrecision (4+MAGICKCORE_QUANTUM_DEPTH/8) |
Typedefs | |
typedef MAGICKCORE_RETSIGTYPE | SignalHandler(int) |
Variables | |
static SemaphoreInfo * | magick_semaphore = (SemaphoreInfo *) NULL |
static SignalHandler * | signal_handlers [SIGMAX] = { (SignalHandler *) NULL } |
static SplayTreeInfo * | magick_list = (SplayTreeInfo *) NULL |
static volatile MagickBooleanType | instantiate_magickcore = MagickFalse |
static volatile MagickBooleanType | magickcore_signal_in_progress = MagickFalse |
static volatile MagickBooleanType | magick_list_initialized = MagickFalse |
#define MagickPrecision (4+MAGICKCORE_QUANTUM_DEPTH/8) |
#define SIG_DFL ((SignalHandler *) 0) |
#define SIG_ERR ((SignalHandler *) -1) |
typedef MAGICKCORE_RETSIGTYPE SignalHandler(int) |
|
static |
Definition at line 828 of file magick.c.
References _MagickInfo::description, DestroySemaphoreInfo(), DestroyString(), _MagickInfo::magick_module, _MagickInfo::mime_type, _MagickInfo::name, _MagickInfo::note, RelinquishMagickMemory(), _MagickInfo::semaphore, and _MagickInfo::version.
Referenced by IsMagickTreeInstantiated().
MagickExport DecodeImageHandler * GetImageDecoder | ( | const MagickInfo * | magick_info | ) |
Definition at line 161 of file magick.c.
References _MagickInfo::decoder, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _MagickInfo::signature, and TraceEvent.
Referenced by ReadImage().
MagickExport EncodeImageHandler * GetImageEncoder | ( | const MagickInfo * | magick_info | ) |
Definition at line 192 of file magick.c.
References _MagickInfo::encoder, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _MagickInfo::signature, and TraceEvent.
Referenced by WriteImage().
MagickExport MagickBooleanType GetImageMagick | ( | const unsigned char * | magick, |
const size_t | length, | ||
char * | format | ||
) |
Definition at line 230 of file magick.c.
References AcquireExceptionInfo(), CopyMagickString(), DestroyExceptionInfo(), GetMagickInfo(), GetMagickModule, GetNextValueInSplayTree(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), _MagickInfo::magick, magick_list, magick_semaphore, MagickFalse, MagickTrue, MaxTextExtent, _MagickInfo::name, ResetSplayTreeIterator(), TraceEvent, and UnlockSemaphoreInfo().
MagickExport MagickBooleanType GetMagickAdjoin | ( | const MagickInfo * | magick_info | ) |
Definition at line 291 of file magick.c.
References _MagickInfo::adjoin, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _MagickInfo::signature, and TraceEvent.
Referenced by ImagesToBlob(), and SetImageInfo().
MagickExport MagickBooleanType GetMagickBlobSupport | ( | const MagickInfo * | magick_info | ) |
Definition at line 322 of file magick.c.
References _MagickInfo::blob_support, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _MagickInfo::signature, and TraceEvent.
Referenced by BlobToImage(), ImagesToBlob(), ImageToBlob(), OpenBlob(), and PingBlob().
MagickExport const char * GetMagickDescription | ( | const MagickInfo * | magick_info | ) |
Definition at line 354 of file magick.c.
References _MagickInfo::description, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _MagickInfo::signature, and TraceEvent.
Referenced by IdentifyImage().
MagickExport MagickBooleanType GetMagickEndianSupport | ( | const MagickInfo * | magick_info | ) |
Definition at line 386 of file magick.c.
References _MagickInfo::endian_support, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _MagickInfo::signature, and TraceEvent.
Referenced by ReadImage(), SetImageInfo(), and WriteImage().
MagickExport const MagickInfo * GetMagickInfo | ( | const char * | name, |
ExceptionInfo * | exception | ||
) |
Definition at line 422 of file magick.c.
References GetRootValueFromSplayTree(), GetValueFromSplayTree(), IsMagickTreeInstantiated(), LocaleCompare(), LockSemaphoreInfo(), magick_list, magick_semaphore, MagickFalse, OpenModule(), OpenModules(), RegisterStaticModule(), RegisterStaticModules(), and UnlockSemaphoreInfo().
Referenced by BlobToImage(), GetImageMagick(), GetMagickInfoList(), GetMagickList(), IdentifyImage(), ImagesToBlob(), ImageToBlob(), OpenBlob(), PingBlob(), ReadImage(), SetImageInfo(), and WriteImage().
MagickExport const MagickInfo ** GetMagickInfoList | ( | const char * | pattern, |
size_t * | number_formats, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 512 of file magick.c.
References AcquireQuantumMemory(), GetMagickInfo(), GetMagickModule, GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GlobExpression(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), magick_list, magick_semaphore, MagickFalse, MagickInfoCompare(), _MagickInfo::name, ResetSplayTreeIterator(), _MagickInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
Referenced by ListMagickInfo().
MagickExport char ** GetMagickList | ( | const char * | pattern, |
size_t * | number_formats, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 606 of file magick.c.
References AcquireQuantumMemory(), ConstantString(), GetMagickInfo(), GetMagickModule, GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GlobExpression(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), magick_list, magick_semaphore, MagickCompare(), MagickFalse, _MagickInfo::name, ResetSplayTreeIterator(), _MagickInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
MagickExport const char * GetMagickMimeType | ( | const MagickInfo * | magick_info | ) |
Definition at line 672 of file magick.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _MagickInfo::mime_type, _MagickInfo::signature, and TraceEvent.
Referenced by IdentifyImage().
MagickExport int GetMagickPrecision | ( | void | ) |
Definition at line 700 of file magick.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickFalse, SetMagickPrecision(), and TraceEvent.
Referenced by AcquireResizeFilter(), AutoThresholdImage(), ConcatenateColorComponent(), DistortImage(), FormatMagickSize(), FxEvaluateSubexpression(), GetImageChannelDistortion(), GetImageProperty(), GetMagickProperty(), IdentifyImage(), InterpretImageProperties(), ListMagickVersion(), PrintChannelLocations(), PrintChannelMoments(), PrintChannelPerceptualHash(), PrintChannelStatistics(), SetResampleFilter(), and ShowKernelInfo().
MagickExport MagickBooleanType GetMagickRawSupport | ( | const MagickInfo * | magick_info | ) |
Definition at line 729 of file magick.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _MagickInfo::raw, _MagickInfo::signature, and TraceEvent.
Referenced by ReadImage(), and WriteImage().
MagickExport MagickBooleanType GetMagickSeekableStream | ( | const MagickInfo * | magick_info | ) |
Definition at line 762 of file magick.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _MagickInfo::seekable_stream, _MagickInfo::signature, and TraceEvent.
Referenced by ReadImage(), and WriteImage().
MagickExport MagickStatusType GetMagickThreadSupport | ( | const MagickInfo * | magick_info | ) |
Definition at line 794 of file magick.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _MagickInfo::signature, _MagickInfo::thread_support, and TraceEvent.
Referenced by ReadImage(), and WriteImage().
MagickExport MagickBooleanType IsMagickConflict | ( | const char * | magick | ) |
Definition at line 910 of file magick.c.
References MACIsMagickConflict(), MagickFalse, NTIsMagickConflict(), and VMSIsMagickConflict().
MagickExport MagickBooleanType IsMagickCoreInstantiated | ( | void | ) |
Definition at line 1053 of file magick.c.
References instantiate_magickcore.
Referenced by IsMagickInstantiated().
|
static |
Definition at line 851 of file magick.c.
References ActivateSemaphoreInfo(), AddValueToSplayTree(), CompareSplayTreeString(), DestroyMagickNode(), GetModuleInfo(), LockSemaphoreInfo(), magick_list, magick_list_initialized, magick_semaphore, MagickFalse, MagickTrue, _MagickInfo::name, NewSplayTree(), ResourceLimitFatalError, SetMagickInfo(), _MagickInfo::stealth, ThrowFatalException, and UnlockSemaphoreInfo().
Referenced by GetMagickInfo().
MagickExport MagickBooleanType ListMagickInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
Definition at line 948 of file magick.c.
References _MagickInfo::blob_support, ClearMagickException(), ConcatenateMagickString(), CopyMagickString(), DestroyString(), FormatLocaleFile(), GetMagickInfoList(), magick_module, MagickFalse, MagickTrue, MaxTextExtent, _MagickInfo::name, RelinquishMagickMemory(), and StringToList().
|
static |
MagickExport MagickBooleanType MagickComponentGenesis | ( | void | ) |
Definition at line 1076 of file magick.c.
References AllocateSemaphoreInfo(), magick_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
MagickExport void MagickComponentTerminus | ( | void | ) |
Definition at line 1101 of file magick.c.
References ActivateSemaphoreInfo(), DestroySemaphoreInfo(), DestroySplayTree(), LockSemaphoreInfo(), magick_list, magick_list_initialized, magick_semaphore, MagickFalse, and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
MagickExport void MagickCoreGenesis | ( | const char * | path, |
const MagickBooleanType | establish_signal_handlers | ||
) |
Definition at line 1244 of file magick.c.
References AnnotateComponentGenesis(), CacheComponentGenesis(), CoderComponentGenesis(), ColorComponentGenesis(), ConfigureComponentGenesis(), CopyMagickString(), DelegateComponentGenesis(), DestroyString(), DirectorySeparator, ExceptionComponentGenesis(), GetEnvironmentValue(), GetExecutionPath(), GetPathComponent(), HeadPath, InitializeMagickMutex(), instantiate_magickcore, IsPathAccessible(), LocaleComponentGenesis(), LockMagickMutex(), LogComponentGenesis(), MagicComponentGenesis(), MagickComponentGenesis(), MagickFalse, MagickTrue, MaxTextExtent, MimeComponentGenesis(), ModuleComponentGenesis(), MonitorComponentGenesis(), PolicyComponentGenesis(), RandomComponentGenesis(), RegisterMagickSignalHandler(), RegistryComponentGenesis(), ResourceComponentGenesis(), SemaphoreComponentGenesis(), SetClientName(), SetClientPath(), SetLogEventMask(), signal_handlers, TailPath, TypeComponentGenesis(), UnlockMagickMutex(), and XComponentGenesis().
Referenced by InitializeMagick(), and MagickIncarnate().
MagickExport void MagickCoreTerminus | ( | void | ) |
Definition at line 1388 of file magick.c.
References AnnotateComponentTerminus(), AsynchronousResourceComponentTerminus(), CacheComponentTerminus(), CoderComponentTerminus(), ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), ExceptionComponentTerminus(), InitializeMagickMutex(), instantiate_magickcore, LocaleComponentTerminus(), LockMagickMutex(), LogComponentTerminus(), MagicComponentTerminus(), MagickComponentTerminus(), MagickFalse, MimeComponentTerminus(), ModuleComponentTerminus(), MonitorComponentTerminus(), PolicyComponentTerminus(), RandomComponentTerminus(), RegistryComponentTerminus(), ResourceComponentTerminus(), SemaphoreComponentTerminus(), TypeComponentTerminus(), UnlockMagickMutex(), and UnregisterStaticModules().
Referenced by DefaultFatalErrorHandler(), and DestroyMagick().
|
static |
Definition at line 497 of file magick.c.
References LocaleCompare().
Referenced by GetMagickInfoList().
|
static |
Definition at line 1179 of file magick.c.
References AsynchronousResourceComponentTerminus(), magickcore_signal_in_progress, MagickFalse, MagickSignalHandler(), MagickTrue, SetMagickSignalHandler(), and signal_handlers.
Referenced by MagickSignalHandler(), and RegisterMagickSignalHandler().
MagickExport MagickInfo * RegisterMagickInfo | ( | MagickInfo * | magick_info | ) |
Definition at line 1465 of file magick.c.
References AddValueToSplayTree(), AllocateSemaphoreInfo(), DecoderThreadSupport, EncoderThreadSupport, GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_list, MagickCoreSignature, MagickFalse, _MagickInfo::name, ResourceLimitFatalError, _MagickInfo::semaphore, _MagickInfo::signature, _MagickInfo::thread_support, ThrowFatalException, and TraceEvent.
|
static |
Definition at line 1228 of file magick.c.
References ConfigureEvent, GetMagickModule, LogMagickEvent(), MagickSignalHandler(), SetMagickSignalHandler(), SIG_DFL, and SIG_ERR.
Referenced by MagickCoreGenesis().
MagickExport MagickInfo * SetMagickInfo | ( | const char * | name | ) |
Definition at line 1515 of file magick.c.
References AcquireMagickMemory(), _MagickInfo::adjoin, _MagickInfo::blob_support, ConstantString(), DecoderThreadSupport, EncoderThreadSupport, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _MagickInfo::name, ResourceLimitFatalError, _MagickInfo::signature, _MagickInfo::thread_support, ThrowFatalException, and TraceEvent.
Referenced by IsMagickTreeInstantiated().
MagickExport int SetMagickPrecision | ( | const int | precision | ) |
Definition at line 1565 of file magick.c.
References DestroyString(), GetEnvironmentValue(), GetMagickModule, GetPolicyValue(), IsEventLogging(), LogMagickEvent(), MagickFalse, MagickPrecision, StringToInteger(), and TraceEvent.
Referenced by GetMagickPrecision().
|
static |
Definition at line 1142 of file magick.c.
References SIG_DFL, and SIG_ERR.
Referenced by MagickSignalHandler(), and RegisterMagickSignalHandler().
MagickExport MagickBooleanType UnregisterMagickInfo | ( | const char * | name | ) |
Definition at line 1621 of file magick.c.
References DeleteNodeByValueFromSplayTree(), GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), LocaleCompare(), LockSemaphoreInfo(), magick_list, magick_semaphore, MagickFalse, _MagickInfo::name, ResetSplayTreeIterator(), and UnlockSemaphoreInfo().
|
static |
Definition at line 129 of file magick.c.
Referenced by IsMagickCoreInstantiated(), MagickCoreGenesis(), and MagickCoreTerminus().
|
static |
Definition at line 126 of file magick.c.
Referenced by GetImageMagick(), GetMagickInfo(), GetMagickInfoList(), GetMagickList(), IsMagickTreeInstantiated(), MagickComponentTerminus(), RegisterMagickInfo(), and UnregisterMagickInfo().
|
static |
Definition at line 131 of file magick.c.
Referenced by IsMagickTreeInstantiated(), and MagickComponentTerminus().
|
static |
Definition at line 120 of file magick.c.
Referenced by GetImageMagick(), GetMagickInfo(), GetMagickInfoList(), GetMagickList(), IsMagickTreeInstantiated(), MagickComponentGenesis(), MagickComponentTerminus(), and UnregisterMagickInfo().
|
static |
Definition at line 130 of file magick.c.
Referenced by MagickSignalHandler().
|
static |
Definition at line 123 of file magick.c.
Referenced by MagickCoreGenesis(), and MagickSignalHandler().