MagickCore
7.0.10
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/client.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/linked-list.h"
#include "MagickCore/locale_.h"
#include "MagickCore/log.h"
#include "MagickCore/magick.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/string_.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
Macros | |
#define | MaxExceptionList 64 |
Variables | |
static ErrorHandler | error_handler = DefaultErrorHandler |
static FatalErrorHandler | fatal_error_handler = DefaultFatalErrorHandler |
static WarningHandler | warning_handler = DefaultWarningHandler |
static SemaphoreInfo * | exception_semaphore = (SemaphoreInfo *) NULL |
#define MaxExceptionList 64 |
Referenced by ThrowException().
MagickExport ExceptionInfo* AcquireExceptionInfo | ( | void | ) |
References AcquireCriticalMemory(), InitializeExceptionInfo(), MagickTrue, and _ExceptionInfo::relinquish.
Referenced by AcquireFxInfo(), CatchImageException(), CloneDrawInfo(), CloneImageView(), CloseMagickLog(), ExpandFilenames(), FormatImageProperty(), GetConfigureOption(), GetDrawInfo(), GetImageInfo(), GetImageMagick(), GetLocaleMessage(), GetMagickHomeURL(), GetPathTemplate(), GetPolicyValue(), GetXMPProperty(), GlobExpression(), IsRightsAuthorized(), LoadTypeCache(), LogComponentGenesis(), LogMagickEventList(), MagickToMime(), NewImageView(), NewImageViewRegion(), OpenBlob(), OptimizeLayerFrames(), PingImages(), PrintChannelLocations(), ReadImage(), ReadImages(), SetImageInfo(), SetLogEventMask(), SetLogFormat(), SetLogMethod(), TranslateEvent(), WriteImage(), and WriteImages().
MagickExport void CatchException | ( | ExceptionInfo * | exception | ) |
References ClearMagickException(), _ExceptionInfo::description, ErrorException, _ExceptionInfo::exceptions, FatalErrorException, GetNextValueInLinkedList(), LockSemaphoreInfo(), MagickCoreSignature, MagickError(), MagickFatalError(), MagickWarning(), _ExceptionInfo::reason, ResetLinkedListIterator(), _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, UnlockSemaphoreInfo(), and WarningException.
Referenced by CatchImageException(), and RenderPostscript().
MagickExport void ClearMagickException | ( | ExceptionInfo * | exception | ) |
References ClearLinkedList(), _ExceptionInfo::description, DestroyExceptionElement(), _ExceptionInfo::exceptions, LockSemaphoreInfo(), MagickCoreSignature, _ExceptionInfo::reason, _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, UndefinedException, and UnlockSemaphoreInfo().
Referenced by CatchException(), CropImageToTiles(), FxEvaluateSubexpression(), and ListMagickInfo().
MagickExport ExceptionInfo* CloneExceptionInfo | ( | ExceptionInfo * | exception | ) |
|
static |
|
static |
References FormatLocaleFile(), GetClientName(), and magick_unreferenced.
static void DefaultFatalErrorHandler | ( | const ExceptionType | severity, |
const char * | reason, | ||
const char * | description | ||
) |
References FatalErrorException, FormatLocaleFile(), GetClientName(), and MagickCoreTerminus().
static void DefaultWarningHandler | ( | const ExceptionType | , |
const char * | , | ||
const char * | |||
) |
|
static |
References FormatLocaleFile(), GetClientName(), and magick_unreferenced.
|
static |
References _ExceptionInfo::description, DestroyString(), _ExceptionInfo::reason, and RelinquishMagickMemory().
Referenced by ClearMagickException(), and DestroyExceptionInfo().
MagickExport ExceptionInfo* DestroyExceptionInfo | ( | ExceptionInfo * | exception | ) |
References ActivateSemaphoreInfo(), ClearLinkedList(), DestroyExceptionElement(), DestroyLinkedList(), _ExceptionInfo::exceptions, LockSemaphoreInfo(), MagickCoreSignature, MagickFalse, _ExceptionInfo::relinquish, RelinquishMagickMemory(), RelinquishSemaphoreInfo(), _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, UndefinedException, and UnlockSemaphoreInfo().
Referenced by CatchImageException(), CloneDrawInfo(), CloseMagickLog(), DestroyFxInfo(), DestroyImageView(), ExpandFilenames(), FormatImageProperty(), GetConfigureOption(), GetDrawInfo(), GetImageInfo(), GetImageMagick(), GetLocaleMessage(), GetMagickHomeURL(), GetPathTemplate(), GetPolicyValue(), GetXMPProperty(), GlobExpression(), IsRightsAuthorized(), LoadTypeCache(), LogComponentGenesis(), LogMagickEventList(), MagickToMime(), OpenBlob(), OptimizeLayerFrames(), PingImages(), ReadImage(), ReadImages(), SetImageInfo(), SetLogEventMask(), SetLogFormat(), SetLogMethod(), TranslateEvent(), WriteImage(), and WriteImages().
MagickPrivate MagickBooleanType ExceptionComponentGenesis | ( | void | ) |
References AcquireSemaphoreInfo(), exception_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
MagickPrivate void ExceptionComponentTerminus | ( | void | ) |
|
static |
References BlobError, BlobFatalError, BlobWarning, CacheError, CacheFatalError, CacheWarning, CoderError, CoderFatalError, CoderWarning, ConfigureError, ConfigureFatalError, ConfigureWarning, CorruptImageError, CorruptImageFatalError, CorruptImageWarning, DelegateError, DelegateFatalError, DelegateWarning, DrawError, DrawFatalError, DrawWarning, FileOpenError, FileOpenFatalError, FileOpenWarning, FilterError, FilterFatalError, FilterWarning, ImageError, ImageFatalError, ImageWarning, MissingDelegateError, MissingDelegateFatalError, MissingDelegateWarning, ModuleError, ModuleFatalError, ModuleWarning, MonitorError, MonitorFatalError, MonitorWarning, OptionError, OptionFatalError, OptionWarning, PolicyError, PolicyFatalError, PolicyWarning, RegistryError, RegistryFatalError, RegistryWarning, ResourceLimitError, ResourceLimitFatalError, ResourceLimitWarning, StreamError, StreamFatalError, StreamWarning, TypeError, TypeFatalError, TypeWarning, WandError, WandFatalError, WandWarning, XServerError, XServerFatalError, and XServerWarning.
Referenced by GetLocaleExceptionMessage().
MagickExport char* GetExceptionMessage | ( | const int | error | ) |
References ConstantString(), CopyMagickString(), and MagickPathExtent.
MagickExport const char* GetLocaleExceptionMessage | ( | const ExceptionType | severity, |
const char * | tag | ||
) |
References ExceptionSeverityToTag(), FormatLocaleString(), GetLocaleMessage(), and MagickPathExtent.
Referenced by GetImageViewException(), and ThrowMagickExceptionList().
MagickExport void InheritException | ( | ExceptionInfo * | exception, |
const ExceptionInfo * | relative | ||
) |
References _ExceptionInfo::description, _ExceptionInfo::exceptions, GetNextValueInLinkedList(), LockSemaphoreInfo(), MagickCoreSignature, _ExceptionInfo::reason, ResetLinkedListIterator(), _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, ThrowException(), and UnlockSemaphoreInfo().
Referenced by CloneExceptionInfo(), and CloneImageView().
MagickPrivate void InitializeExceptionInfo | ( | ExceptionInfo * | exception | ) |
MagickExport void MagickError | ( | const ExceptionType | error, |
const char * | reason, | ||
const char * | description | ||
) |
References error_handler.
Referenced by CatchException().
MagickExport void MagickFatalError | ( | const ExceptionType | error, |
const char * | reason, | ||
const char * | description | ||
) |
References fatal_error_handler.
Referenced by CatchException().
MagickExport void MagickWarning | ( | const ExceptionType | warning, |
const char * | reason, | ||
const char * | description | ||
) |
References warning_handler.
Referenced by CatchException().
MagickExport ErrorHandler SetErrorHandler | ( | ErrorHandler | handler | ) |
References ActivateSemaphoreInfo(), error_handler, exception_semaphore, LockSemaphoreInfo(), and UnlockSemaphoreInfo().
MagickExport FatalErrorHandler SetFatalErrorHandler | ( | FatalErrorHandler | handler | ) |
References ActivateSemaphoreInfo(), exception_semaphore, fatal_error_handler, LockSemaphoreInfo(), and UnlockSemaphoreInfo().
Referenced by LoadLocaleCache().
MagickExport WarningHandler SetWarningHandler | ( | WarningHandler | handler | ) |
References ActivateSemaphoreInfo(), exception_semaphore, LockSemaphoreInfo(), UnlockSemaphoreInfo(), and warning_handler.
Referenced by IdentifyImage().
MagickExport MagickBooleanType ThrowException | ( | ExceptionInfo * | exception, |
const ExceptionType | severity, | ||
const char * | reason, | ||
const char * | description | ||
) |
References AcquireMagickMemory(), AppendValueToLinkedList(), ConstantString(), _ExceptionInfo::description, ErrorException, _ExceptionInfo::exceptions, GetLastValueInLinkedList(), GetMagickModule, GetNumberOfElementsInLinkedList(), LocaleCompare(), LockSemaphoreInfo(), MagickCoreSignature, MagickTrue, MaxExceptionList, _ExceptionInfo::reason, ResourceLimitFatalError, ResourceLimitWarning, _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, ThrowFatalException, ThrowMagickException(), and UnlockSemaphoreInfo().
Referenced by InheritException(), and ThrowMagickExceptionList().
MagickExport MagickBooleanType ThrowMagickException | ( | ExceptionInfo * | exception, |
const char * | module, | ||
const char * | function, | ||
const size_t | line, | ||
const ExceptionType | severity, | ||
const char * | tag, | ||
const char * | format, | ||
... | |||
) |
References ThrowMagickExceptionList().
Referenced by AcquireCacheNexusPixels(), AcquireCoderCache(), AcquireColorCache(), AcquireFxThreadSet(), AcquireMagicList(), AcquireMatrixInfo(), AcquirePolicyCache(), AcquireStreamPixels(), AnimateImages(), BlobToImage(), ChannelFxImage(), CheckImageColors(), CheckPrimitiveExtent(), CLAHEImage(), ClassifyImageColors(), CloneImage(), CloneImages(), ComplexImages(), CompositeImage(), ConnectPixelCacheServer(), ConstrainColormapIndex(), CropImage(), CustomStreamToImage(), DeleteImages(), DisplayImages(), DistortImage(), EvaluateImages(), ExportBlackQuantum(), ExportCMYKAQuantum(), ExportCMYKOQuantum(), ExportCMYKQuantum(), ExportImagePixels(), ExportIndexAlphaQuantum(), ExportIndexQuantum(), ExternalDelegateCommand(), FileToBlob(), FileToImage(), ForwardFourierTransformImage(), FxEvaluateSubexpression(), FxGetSymbol(), FxSubexpression(), GenerateCoefficients(), GetColorCompliance(), GetConfigureOptions(), GetConfigurePaths(), GetDelegateCommand(), GetEdgeBoundingBox(), GetImageBoundingBox(), GetImageDynamicThreshold(), GetImageFeatures(), GetImageHistogram(), GetImageTotalInkDensity(), GetMultilineTypeMetrics(), GetThresholdMapFile(), GetTypeInfoByFamily(), GetVirtualPixelCacheNexus(), GetVirtualPixelStream(), HorizontalFilter(), ImageListToArray(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), ImageToCustomStream(), ImageToFile(), ImportBlackQuantum(), ImportCMYKAQuantum(), ImportCMYKOQuantum(), ImportCMYKQuantum(), ImportImagePixels(), ImportIndexAlphaQuantum(), ImportIndexQuantum(), InterpretDelegateProperties(), InterpretImageProperties(), InverseFourierTransformImage(), InvokeDelegate(), InvokeDynamicImageFilter(), IsCoderAuthorized(), KapurThreshold(), LiquidRescaleImage(), ListThresholdMapFile(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMimeCache(), LoadPolicyCache(), LoadTypeCache(), MorphologyImage(), NewXMLTree(), OpenBlob(), OpenPixelCache(), OrderedDitherImage(), OTSUThreshold(), ParseAffineGeometry(), ParseCloseTag(), ParseGravityGeometry(), ParseInternalDoctype(), ParsePageGeometry(), ParseRegionGeometry(), PersistPixelCache(), PingBlob(), PolynomialImage(), ProfileImage(), QuantizeImages(), QueryColorCompliance(), QueueAuthenticPixelCacheNexus(), QueueAuthenticPixelsStream(), ReadImage(), RegisterStaticModule(), RemoteDisplayCommand(), RemoveZeroDelayLayers(), RenderFreetype(), RenderMVGContent(), RenderType(), SetFxSymbolValue(), SetImageExtent(), SetImageProfileInternal(), SetImageProperty(), SetImageRegistry(), SetPixelCacheNexusPixels(), SetResampleFilter(), StreamImagePixels(), StringToArrayOfDoubles(), SyncAuthenticPixelsStream(), SyncImage(), ThrowException(), TraceBezier(), TraceEllipse(), ValidateColormapValue(), VerticalFilter(), WriteImage(), XRenderImage(), and ZLIBEncodeImage().
MagickExport MagickBooleanType ThrowMagickExceptionList | ( | ExceptionInfo * | exception, |
const char * | module, | ||
const char * | function, | ||
const size_t | line, | ||
const ExceptionType | severity, | ||
const char * | tag, | ||
const char * | format, | ||
va_list | operands | ||
) |
References ConcatenateMagickString(), CopyMagickString(), ErrorException, ExceptionEvent, FatalErrorException, FormatLocaleString(), GetLocaleExceptionMessage(), GetPathComponent(), LogMagickEvent(), MagickCoreSignature, MagickPathExtent, _ExceptionInfo::signature, TailPath, ThrowException(), and WarningException.
Referenced by ThrowMagickException().
|
static |
Referenced by MagickError(), and SetErrorHandler().
|
static |
|
static |
Referenced by MagickFatalError(), and SetFatalErrorHandler().
|
static |
Referenced by MagickWarning(), and SetWarningHandler().