MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/annotate-private.h"
#include "MagickCore/blob.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/cache.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/coder-private.h"
#include "MagickCore/client.h"
#include "MagickCore/color-private.h"
#include "MagickCore/configure-private.h"
#include "MagickCore/constitute-private.h"
#include "MagickCore/delegate-private.h"
#include "MagickCore/draw.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/locale-private.h"
#include "MagickCore/log-private.h"
#include "MagickCore/magic-private.h"
#include "MagickCore/magick.h"
#include "MagickCore/magick-private.h"
#include "MagickCore/memory_.h"
#include "MagickCore/mime-private.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/module.h"
#include "MagickCore/module-private.h"
#include "MagickCore/mutex.h"
#include "MagickCore/nt-base-private.h"
#include "MagickCore/nt-feature.h"
#include "MagickCore/opencl-private.h"
#include "MagickCore/option-private.h"
#include "MagickCore/random-private.h"
#include "MagickCore/registry.h"
#include "MagickCore/registry-private.h"
#include "MagickCore/resource_.h"
#include "MagickCore/resource-private.h"
#include "MagickCore/policy.h"
#include "MagickCore/policy-private.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/semaphore-private.h"
#include "MagickCore/signature-private.h"
#include "MagickCore/splay-tree.h"
#include "MagickCore/static.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread_.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/type-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
#include "MagickCore/xwindow-private.h"
Go to the source code of this file.
Macros | |
#define | SIG_DFL ((SignalHandler *) 0) |
#define | SIG_ERR ((SignalHandler *) -1) |
#define | SIGMAX 64 |
#define | MagickPrecision (4+MAGICKCORE_QUANTUM_DEPTH/8) |
Typedefs | |
typedef void | 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 | magickcore_instantiated = MagickFalse |
static volatile MagickBooleanType | magickcore_signal_in_progress = MagickFalse |
static volatile MagickBooleanType | magick_list_initialized = MagickFalse |
static int | magick_precision = 0 |
#define MagickPrecision (4+MAGICKCORE_QUANTUM_DEPTH/8) |
#define SIG_DFL ((SignalHandler *) 0) |
#define SIG_ERR ((SignalHandler *) -1) |
MagickExport MagickInfo * AcquireMagickInfo | ( | const char * | magick_module, |
const char * | name, | ||
const char * | description | ||
) |
Definition at line 179 of file magick.c.
References AcquireCriticalMemory(), CoderAdjoinFlag, CoderBlobSupportFlag, CoderDecoderThreadSupportFlag, CoderEncoderThreadSupportFlag, CoderUseExtensionFlag, ConstantString(), _MagickInfo::description, _MagickInfo::flags, GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_module, _MagickInfo::magick_module, MagickCoreSignature, MagickFalse, _MagickInfo::name, _MagickInfo::signature, and TraceEvent.
|
static |
Definition at line 1073 of file magick.c.
References _MagickInfo::description, DestroyString(), _MagickInfo::magick_module, _MagickInfo::mime_type, _MagickInfo::name, _MagickInfo::note, RelinquishMagickMemory(), RelinquishSemaphoreInfo(), _MagickInfo::semaphore, and _MagickInfo::version.
Referenced by IsMagickTreeInstantiated().
MagickExport DecodeImageHandler * GetImageDecoder | ( | const MagickInfo * | magick_info | ) |
Definition at line 224 of file magick.c.
References _MagickInfo::decoder, MagickCoreSignature, and _MagickInfo::signature.
Referenced by ReadImage().
MagickExport EncodeImageHandler * GetImageEncoder | ( | const MagickInfo * | magick_info | ) |
Definition at line 254 of file magick.c.
References _MagickInfo::encoder, MagickCoreSignature, and _MagickInfo::signature.
Referenced by WriteImage().
MagickExport MagickBooleanType GetImageMagick | ( | const unsigned char * | magick, |
const size_t | length, | ||
char * | format | ||
) |
Definition at line 291 of file magick.c.
References AcquireExceptionInfo(), CopyMagickString(), DestroyExceptionInfo(), GetMagickInfo(), GetMagickModule, GetNextValueInSplayTree(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), _MagickInfo::magick, magick_list, magick_semaphore, MagickFalse, MagickPathExtent, MagickTrue, _MagickInfo::name, ResetSplayTreeIterator(), TraceEvent, and UnlockSemaphoreInfo().
MagickExport MagickBooleanType GetMagickAdjoin | ( | const MagickInfo * | magick_info | ) |
Definition at line 352 of file magick.c.
References CoderAdjoinFlag, _MagickInfo::flags, MagickCoreSignature, MagickFalse, MagickTrue, and _MagickInfo::signature.
Referenced by ImagesToBlob(), ListMagickInfo(), and SetImageInfo().
MagickExport MagickBooleanType GetMagickBlobSupport | ( | const MagickInfo * | magick_info | ) |
Definition at line 382 of file magick.c.
References CoderBlobSupportFlag, _MagickInfo::flags, MagickCoreSignature, MagickFalse, MagickTrue, and _MagickInfo::signature.
Referenced by BlobToImage(), CustomStreamToImage(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), ImageToCustomStream(), ListMagickInfo(), OpenBlob(), and PingBlob().
MagickExport MagickBooleanType GetMagickDecoderSeekableStream | ( | const MagickInfo * | magick_info | ) |
Definition at line 415 of file magick.c.
References CoderDecoderSeekableStreamFlag, _MagickInfo::flags, MagickCoreSignature, MagickFalse, MagickTrue, and _MagickInfo::signature.
Referenced by ReadImage().
MagickExport MagickBooleanType GetMagickDecoderThreadSupport | ( | const MagickInfo * | magick_info | ) |
Definition at line 449 of file magick.c.
References CoderDecoderThreadSupportFlag, _MagickInfo::flags, MagickCoreSignature, MagickFalse, MagickTrue, and _MagickInfo::signature.
Referenced by ReadImage(), and RegisterMagickInfo().
MagickExport const char * GetMagickDescription | ( | const MagickInfo * | magick_info | ) |
Definition at line 480 of file magick.c.
References _MagickInfo::description, MagickCoreSignature, and _MagickInfo::signature.
Referenced by IdentifyImage().
MagickExport MagickBooleanType GetMagickEncoderSeekableStream | ( | const MagickInfo * | magick_info | ) |
Definition at line 511 of file magick.c.
References CoderEncoderSeekableStreamFlag, _MagickInfo::flags, MagickCoreSignature, MagickFalse, MagickTrue, and _MagickInfo::signature.
Referenced by ImagesToCustomStream(), ImageToCustomStream(), and WriteImage().
MagickExport MagickBooleanType GetMagickEncoderThreadSupport | ( | const MagickInfo * | magick_info | ) |
Definition at line 545 of file magick.c.
References CoderDecoderThreadSupportFlag, _MagickInfo::flags, MagickCoreSignature, MagickFalse, MagickTrue, and _MagickInfo::signature.
Referenced by RegisterMagickInfo(), and WriteImage().
MagickExport MagickBooleanType GetMagickEndianSupport | ( | const MagickInfo * | magick_info | ) |
Definition at line 577 of file magick.c.
References CoderEndianSupportFlag, _MagickInfo::flags, MagickCoreSignature, MagickFalse, MagickTrue, and _MagickInfo::signature.
Referenced by ReadImage(), SetImageInfo(), and WriteImage().
MagickExport const MagickInfo * GetMagickInfo | ( | const char * | name, |
ExceptionInfo * | exception | ||
) |
Definition at line 612 of file magick.c.
References GetRootValueFromSplayTree(), GetValueFromSplayTree(), IsMagickTreeInstantiated(), LocaleCompare(), LockSemaphoreInfo(), magick_list, magick_semaphore, MagickFalse, OpenModule(), OpenModules(), RegisterStaticModule(), RegisterStaticModules(), and UnlockSemaphoreInfo().
Referenced by BlobToImage(), CustomStreamToImage(), GetImageMagick(), GetMagickInfoList(), GetMagickList(), IdentifyImage(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), ImageToCustomStream(), OpenBlob(), PingBlob(), ReadImage(), SetImageInfo(), SetImageInfoFromExtension(), and WriteImage().
MagickExport const MagickInfo ** GetMagickInfoList | ( | const char * | pattern, |
size_t * | number_formats, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 702 of file magick.c.
References AcquireQuantumMemory(), GetMagickInfo(), GetMagickModule, GetMagickStealth(), GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GlobExpression(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), magick_list, magick_semaphore, MagickFalse, MagickInfoCompare(), _MagickInfo::name, ResetSplayTreeIterator(), TraceEvent, and UnlockSemaphoreInfo().
Referenced by ListMagickInfo().
MagickExport char ** GetMagickList | ( | const char * | pattern, |
size_t * | number_formats, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 796 of file magick.c.
References AcquireQuantumMemory(), ConstantString(), GetMagickInfo(), GetMagickModule, GetMagickStealth(), GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GlobExpression(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), magick_list, magick_semaphore, MagickCompare(), MagickFalse, _MagickInfo::name, ResetSplayTreeIterator(), TraceEvent, and UnlockSemaphoreInfo().
MagickExport const char * GetMagickMimeType | ( | const MagickInfo * | magick_info | ) |
Definition at line 862 of file magick.c.
References MagickCoreSignature, _MagickInfo::mime_type, and _MagickInfo::signature.
Referenced by IdentifyImage().
MagickExport const char * GetMagickModuleName | ( | const MagickInfo * | magick_info | ) |
Definition at line 891 of file magick.c.
References _MagickInfo::magick_module, MagickCoreSignature, and _MagickInfo::signature.
MagickExport const char * GetMagickName | ( | const MagickInfo * | magick_info | ) |
Definition at line 920 of file magick.c.
References MagickCoreSignature, _MagickInfo::name, and _MagickInfo::signature.
MagickExport int GetMagickPrecision | ( | void | ) |
Definition at line 946 of file magick.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickFalse, SetMagickPrecision(), and TraceEvent.
Referenced by AcquireResizeFilter(), AutoThresholdImage(), ConcatenateColorComponent(), ConnectedComponentsImage(), DistortImage(), FormatMagickSize(), GetImageDistortion(), GetImageMinimumBoundingBox(), GetMagickProperty(), IdentifyImage(), InitFx(), InterpretImageProperties(), KmeansImage(), ListMagickVersion(), PrintChannelLocations(), PrintChannelMoments(), PrintChannelPerceptualHash(), PrintChannelStatistics(), SetResampleFilter(), and ShowKernelInfo().
MagickExport MagickBooleanType GetMagickRawSupport | ( | const MagickInfo * | magick_info | ) |
Definition at line 975 of file magick.c.
References CoderRawSupportFlag, _MagickInfo::flags, MagickCoreSignature, MagickFalse, MagickTrue, and _MagickInfo::signature.
Referenced by ReadImage(), and WriteImage().
MagickExport MagickBooleanType GetMagickStealth | ( | const MagickInfo * | magick_info | ) |
Definition at line 1007 of file magick.c.
References CoderStealthFlag, _MagickInfo::flags, MagickCoreSignature, MagickFalse, MagickTrue, and _MagickInfo::signature.
Referenced by GetMagickInfoList(), GetMagickList(), and ListMagickInfo().
MagickExport MagickBooleanType GetMagickUseExtension | ( | const MagickInfo * | magick_info | ) |
Definition at line 1040 of file magick.c.
References CoderUseExtensionFlag, _MagickInfo::flags, MagickCoreSignature, MagickFalse, MagickTrue, and _MagickInfo::signature.
Referenced by SetImageInfo().
MagickPrivate MagickBooleanType IsMagickConflict | ( | const char * | magick | ) |
Definition at line 1141 of file magick.c.
References MagickFalse, NTIsMagickConflict(), and VMSIsMagickConflict().
MagickExport MagickBooleanType IsMagickCoreInstantiated | ( | void | ) |
Definition at line 1284 of file magick.c.
References magickcore_instantiated.
|
static |
Definition at line 1096 of file magick.c.
References ActivateSemaphoreInfo(), CompareSplayTreeString(), DestroyMagickNode(), GetModuleInfo(), LockSemaphoreInfo(), magick_list, magick_list_initialized, magick_semaphore, MagickFalse, MagickTrue, NewSplayTree(), and UnlockSemaphoreInfo().
Referenced by GetMagickInfo().
MagickExport MagickBooleanType ListMagickInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
Definition at line 1177 of file magick.c.
References ClearMagickException(), ConcatenateMagickString(), CopyMagickString(), DestroyString(), FormatLocaleFile(), GetMagickAdjoin(), GetMagickBlobSupport(), GetMagickInfoList(), GetMagickStealth(), magick_module, MagickFalse, MagickPathExtent, MagickTrue, _MagickInfo::name, RelinquishMagickMemory(), and StringToList().
|
static |
MagickPrivate MagickBooleanType MagickComponentGenesis | ( | void | ) |
Definition at line 1307 of file magick.c.
References AcquireSemaphoreInfo(), magick_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
MagickPrivate void MagickComponentTerminus | ( | void | ) |
Definition at line 1332 of file magick.c.
References ActivateSemaphoreInfo(), DestroySplayTree(), LockSemaphoreInfo(), magick_list, magick_list_initialized, magick_semaphore, MagickFalse, RelinquishSemaphoreInfo(), and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
MagickExport void MagickCoreGenesis | ( | const char * | path, |
const MagickBooleanType | establish_signal_handlers | ||
) |
Definition at line 1471 of file magick.c.
References AnnotateComponentGenesis(), CacheComponentGenesis(), CoderComponentGenesis(), ColorComponentGenesis(), ConfigureComponentGenesis(), CopyMagickString(), DelegateComponentGenesis(), DestroyString(), DirectorySeparator, ExceptionComponentGenesis(), GetEnvironmentValue(), GetExecutionPath(), GetPathComponent(), HeadPath, InitializeMagickMutex(), IsPathAccessible(), LocaleComponentGenesis(), LockMagickMutex(), LogComponentGenesis(), MagicComponentGenesis(), MagickComponentGenesis(), magickcore_instantiated, MagickFalse, MagickPathExtent, MagickTrue, MimeComponentGenesis(), ModuleComponentGenesis(), MonitorComponentGenesis(), PolicyComponentGenesis(), RandomComponentGenesis(), RegisterMagickSignalHandler(), RegistryComponentGenesis(), ResourceComponentGenesis(), SemaphoreComponentGenesis(), SetClientName(), SetClientPath(), SetLogEventMask(), signal_handlers, TailPath, TypeComponentGenesis(), UnlockMagickMutex(), and XComponentGenesis().
MagickExport void MagickCoreTerminus | ( | void | ) |
Definition at line 1618 of file magick.c.
References AnnotateComponentTerminus(), CacheComponentTerminus(), CoderComponentTerminus(), ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), ExceptionComponentTerminus(), LocaleComponentTerminus(), LogComponentTerminus(), MagicComponentTerminus(), MagickComponentTerminus(), magickcore_instantiated, MagickFalse, MimeComponentTerminus(), ModuleComponentTerminus(), MonitorComponentTerminus(), PolicyComponentTerminus(), RandomComponentTerminus(), RegistryComponentTerminus(), ResourceComponentTerminus(), SemaphoreComponentTerminus(), TypeComponentTerminus(), and UnregisterStaticModules().
Referenced by DefaultFatalErrorHandler().
|
static |
Definition at line 687 of file magick.c.
References LocaleCompare().
Referenced by GetMagickInfoList().
|
static |
Definition at line 1410 of file magick.c.
References AsynchronousResourceComponentTerminus(), magickcore_signal_in_progress, MagickFalse, MagickSignalHandler(), MagickTrue, SetMagickSignalHandler(), and signal_handlers.
Referenced by MagickSignalHandler(), and RegisterMagickSignalHandler().
MagickExport MagickBooleanType RegisterMagickInfo | ( | MagickInfo * | magick_info | ) |
Definition at line 1688 of file magick.c.
References AcquireSemaphoreInfo(), AddValueToSplayTree(), GetMagickDecoderThreadSupport(), GetMagickEncoderThreadSupport(), GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_list, MagickCoreSignature, MagickFalse, _MagickInfo::name, _MagickInfo::semaphore, _MagickInfo::signature, and TraceEvent.
|
static |
Definition at line 1455 of file magick.c.
References ConfigureEvent, GetMagickModule, LogMagickEvent(), MagickSignalHandler(), SetMagickSignalHandler(), SIG_DFL, and SIG_ERR.
Referenced by MagickCoreGenesis().
MagickPrivate void ResetMagickPrecision | ( | void | ) |
Definition at line 1727 of file magick.c.
References magick_precision.
Referenced by SetMagickSecurityPolicyValue().
MagickExport int SetMagickPrecision | ( | const int | precision | ) |
Definition at line 1761 of file magick.c.
References DestroyString(), GetEnvironmentValue(), GetMagickModule, GetPolicyValue(), IsEventLogging(), LogMagickEvent(), magick_precision, MagickFalse, MagickPrecision, StringToInteger(), and TraceEvent.
Referenced by GetMagickPrecision().
|
static |
Definition at line 1373 of file magick.c.
References SIG_DFL, and SIG_ERR.
Referenced by MagickSignalHandler(), and RegisterMagickSignalHandler().
MagickExport MagickBooleanType UnregisterMagickInfo | ( | const char * | name | ) |
Definition at line 1814 of file magick.c.
References DeleteNodeByValueFromSplayTree(), GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), LocaleCompare(), LockSemaphoreInfo(), magick_list, magick_semaphore, MagickFalse, _MagickInfo::name, ResetSplayTreeIterator(), and UnlockSemaphoreInfo().
|
static |
Definition at line 132 of file magick.c.
Referenced by GetImageMagick(), GetMagickInfo(), GetMagickInfoList(), GetMagickList(), IsMagickTreeInstantiated(), MagickComponentTerminus(), RegisterMagickInfo(), and UnregisterMagickInfo().
|
static |
Definition at line 137 of file magick.c.
Referenced by IsMagickTreeInstantiated(), and MagickComponentTerminus().
|
static |
Definition at line 140 of file magick.c.
Referenced by ResetMagickPrecision(), and SetMagickPrecision().
|
static |
Definition at line 126 of file magick.c.
Referenced by GetImageMagick(), GetMagickInfo(), GetMagickInfoList(), GetMagickList(), IsMagickTreeInstantiated(), MagickComponentGenesis(), MagickComponentTerminus(), and UnregisterMagickInfo().
|
static |
Definition at line 135 of file magick.c.
Referenced by IsMagickCoreInstantiated(), MagickCoreGenesis(), and MagickCoreTerminus().
|
static |
Definition at line 136 of file magick.c.
Referenced by MagickSignalHandler().
|
static |
Definition at line 129 of file magick.c.
Referenced by MagickCoreGenesis(), and MagickSignalHandler().