MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/artifact.h"
#include "MagickCore/attribute.h"
#include "MagickCore/blob.h"
#include "MagickCore/client.h"
#include "MagickCore/configure.h"
#include "MagickCore/constitute.h"
#include "MagickCore/delegate.h"
#include "MagickCore/delegate-private.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/fx-private.h"
#include "MagickCore/image-private.h"
#include "MagickCore/linked-list.h"
#include "MagickCore/list.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/nt-base-private.h"
#include "MagickCore/option.h"
#include "MagickCore/policy.h"
#include "MagickCore/property.h"
#include "MagickCore/resource_.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/signature.h"
#include "MagickCore/string_.h"
#include "MagickCore/token.h"
#include "MagickCore/token-private.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
#include "MagickCore/xml-tree.h"
#include "MagickCore/xml-tree-private.h"
Go to the source code of this file.
Macros | |
#define | DelegateFilename "delegates.xml" |
#define | WarnNoImageReturn(format, letter) |
#define | WarnNoImageInfoReturn(format, letter) |
#define | ExtendInterpretText(string_length) |
#define | AppendKeyValue2Text(key, value) |
#define | AppendString2Text(string) |
Functions | |
static MagickBooleanType | IsDelegateCacheInstantiated (ExceptionInfo *) |
static MagickBooleanType | LoadDelegateCache (LinkedListInfo *, const char *, const char *, const size_t, ExceptionInfo *) |
static LinkedListInfo * | AcquireDelegateCache (const char *filename, ExceptionInfo *exception) |
MagickPrivate MagickBooleanType | DelegateComponentGenesis (void) |
static void * | DestroyDelegate (void *delegate_info) |
MagickPrivate void | DelegateComponentTerminus (void) |
MagickExport int | ExternalDelegateCommand (const MagickBooleanType asynchronous, const MagickBooleanType verbose, const char *command, char *message, ExceptionInfo *exception) |
static char * | GetMagickPropertyLetter (ImageInfo *image_info, Image *image, const char letter, ExceptionInfo *exception) |
static char * | InterpretDelegateProperties (ImageInfo *image_info, Image *image, const char *embed_text, ExceptionInfo *exception) |
MagickExport char * | GetDelegateCommand (const ImageInfo *image_info, Image *image, const char *decode, const char *encode, ExceptionInfo *exception) |
MagickExport const char * | GetDelegateCommands (const DelegateInfo *delegate_info) |
MagickExport const DelegateInfo * | GetDelegateInfo (const char *decode, const char *encode, ExceptionInfo *exception) |
static int | DelegateInfoCompare (const void *x, const void *y) |
MagickExport const DelegateInfo ** | GetDelegateInfoList (const char *pattern, size_t *number_delegates, ExceptionInfo *exception) |
static int | DelegateCompare (const void *x, const void *y) |
MagickExport char ** | GetDelegateList (const char *pattern, size_t *number_delegates, ExceptionInfo *exception) |
MagickExport ssize_t | GetDelegateMode (const DelegateInfo *delegate_info) |
MagickExport MagickBooleanType | GetDelegateThreadSupport (const DelegateInfo *delegate_info) |
static MagickBooleanType | CopyDelegateFile (const char *source, const char *destination, const MagickBooleanType overwrite) |
MagickExport MagickBooleanType | InvokeDelegate (ImageInfo *image_info, Image *image, const char *decode, const char *encode, ExceptionInfo *exception) |
MagickExport MagickBooleanType | ListDelegateInfo (FILE *file, ExceptionInfo *exception) |
Variables | |
static const char * | DelegateMap |
static LinkedListInfo * | delegate_cache = (LinkedListInfo *) NULL |
static SemaphoreInfo * | delegate_semaphore = (SemaphoreInfo *) NULL |
#define AppendKeyValue2Text | ( | key, | |
value | |||
) |
#define AppendString2Text | ( | string | ) |
#define DelegateFilename "delegates.xml" |
Definition at line 91 of file delegate.c.
#define ExtendInterpretText | ( | string_length | ) |
#define WarnNoImageInfoReturn | ( | format, | |
letter | |||
) |
#define WarnNoImageReturn | ( | format, | |
letter | |||
) |
|
static |
Definition at line 203 of file delegate.c.
References DelegateMap, DestroyConfigureOptions(), GetConfigureOptions(), GetNextValueInLinkedList(), GetStringInfoDatum(), GetStringInfoPath(), IsLinkedListEmpty(), LoadDelegateCache(), magick_unreferenced, MagickFalse, and NewLinkedList().
Referenced by IsDelegateCacheInstantiated().
|
static |
Definition at line 1615 of file delegate.c.
References AcquireQuantumMemory(), GetPathAttributes(), MagickFalse, MagickMaxBufferExtent, MagickMin, MagickTrue, O_BINARY, open_utf8(), RelinquishMagickMemory(), and S_MODE.
Referenced by InvokeDelegate().
|
static |
Definition at line 1421 of file delegate.c.
References LocaleCompare().
Referenced by GetDelegateList().
MagickPrivate MagickBooleanType DelegateComponentGenesis | ( | void | ) |
Definition at line 254 of file delegate.c.
References AcquireSemaphoreInfo(), delegate_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
MagickPrivate void DelegateComponentTerminus | ( | void | ) |
Definition at line 300 of file delegate.c.
References ActivateSemaphoreInfo(), delegate_cache, delegate_semaphore, DestroyDelegate(), DestroyLinkedList(), LockSemaphoreInfo(), RelinquishSemaphoreInfo(), and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
|
static |
Definition at line 1310 of file delegate.c.
References LocaleCompare().
Referenced by GetDelegateInfoList().
|
static |
Definition at line 280 of file delegate.c.
References _DelegateInfo::commands, _DelegateInfo::decode, DestroyString(), _DelegateInfo::encode, _DelegateInfo::path, RelinquishMagickMemory(), RelinquishSemaphoreInfo(), and _DelegateInfo::semaphore.
Referenced by DelegateComponentTerminus().
MagickExport int ExternalDelegateCommand | ( | const MagickBooleanType | asynchronous, |
const MagickBooleanType | verbose, | ||
const char * | command, | ||
char * | message, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 347 of file delegate.c.
References ConcatenateMagickString(), CopyMagickString(), DelegateError, DelegatePolicyDomain, DestroyString(), ExecutePolicyRights, FormatLocaleFile(), GetMagickModule, IsRightsAuthorized(), MagickFalse, MagickMin, MagickPathExtent, PolicyError, popen_utf8(), RelinquishMagickMemory(), SanitizeString(), StringToArgv(), and ThrowMagickException().
Referenced by InvokeDelegate().
MagickExport char * GetDelegateCommand | ( | const ImageInfo * | image_info, |
Image * | image, | ||
const char * | decode, | ||
const char * | encode, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1115 of file delegate.c.
References _DelegateInfo::commands, DelegateError, DestroyString(), _Image::filename, GetDelegateInfo(), GetMagickModule, InterpretDelegateProperties(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, RelinquishMagickMemory(), ResourceLimitError, _Image::signature, _ImageInfo::signature, StringToList(), ThrowMagickException(), and TraceEvent.
MagickExport const char * GetDelegateCommands | ( | const DelegateInfo * | delegate_info | ) |
Definition at line 1185 of file delegate.c.
References _DelegateInfo::commands, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _DelegateInfo::signature, and TraceEvent.
MagickExport const DelegateInfo * GetDelegateInfo | ( | const char * | decode, |
const char * | encode, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1223 of file delegate.c.
References _DelegateInfo::decode, delegate_cache, delegate_semaphore, _DelegateInfo::encode, GetNextValueInLinkedList(), InsertValueInLinkedList(), IsDelegateCacheInstantiated(), LocaleCompare(), LockSemaphoreInfo(), MagickFalse, _DelegateInfo::mode, RemoveElementByValueFromLinkedList(), ResetLinkedListIterator(), and UnlockSemaphoreInfo().
Referenced by GetDelegateCommand(), GetDelegateInfoList(), GetDelegateList(), InvokeDelegate(), ReadImage(), SetImageInfo(), and WriteImage().
MagickExport const DelegateInfo ** GetDelegateInfoList | ( | const char * | pattern, |
size_t * | number_delegates, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1339 of file delegate.c.
References AcquireQuantumMemory(), _DelegateInfo::decode, delegate_cache, delegate_semaphore, DelegateInfoCompare(), _DelegateInfo::encode, GetDelegateInfo(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GlobExpression(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, ResetLinkedListIterator(), _DelegateInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
Referenced by ListDelegateInfo().
MagickExport char ** GetDelegateList | ( | const char * | pattern, |
size_t * | number_delegates, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1436 of file delegate.c.
References AcquireQuantumMemory(), ConstantString(), _DelegateInfo::decode, delegate_cache, delegate_semaphore, DelegateCompare(), _DelegateInfo::encode, GetDelegateInfo(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GlobExpression(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, ResetLinkedListIterator(), _DelegateInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
MagickExport ssize_t GetDelegateMode | ( | const DelegateInfo * | delegate_info | ) |
Definition at line 1505 of file delegate.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _DelegateInfo::mode, _DelegateInfo::signature, and TraceEvent.
Referenced by WriteImage().
MagickExport MagickBooleanType GetDelegateThreadSupport | ( | const DelegateInfo * | delegate_info | ) |
Definition at line 1538 of file delegate.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _DelegateInfo::signature, _DelegateInfo::thread_support, and TraceEvent.
Referenced by ReadImage(), and WriteImage().
|
static |
Definition at line 567 of file delegate.c.
References _Image::alpha_trait, BasePath, _Image::colorspace, _Image::columns, CommandOptionToMnemonic(), _Image::compression, CopyMagickString(), DefaultResolution, _Image::delay, _Image::depth, _Image::dispose, ExtensionPath, _Image::extent, _Image::filename, _ImageInfo::filename, FormatLocaleString(), FormatMagickSize(), GetBlobSize(), GetImageBoundingBox(), GetImageIndexInList(), GetImageListLength(), GetImageOption(), GetImageProperty(), GetMagickModule, GetPathComponent(), HeadPath, _RectangleInfo::height, IsEventLogging(), _Image::iterations, LogMagickEvent(), _Image::magick, _Image::magick_columns, _Image::magick_filename, _Image::magick_rows, MagickClassOptions, MagickColorspaceOptions, MagickCompressOptions, MAGICKCORE_QUANTUM_DEPTH, MagickDisposeOptions, MagickEpsilon, MagickFalse, MagickPathExtent, MagickPixelTraitOptions, MagickResolutionOptions, _ImageInfo::number_scenes, _Image::page, PixelsPerCentimeterResolution, _Image::quality, _Image::resolution, _Image::rows, SanitizeDelegateString(), _Image::scene, SignatureImage(), _Image::storage_class, TailPath, TraceEvent, UndefinedPixelTrait, _ImageInfo::unique, _Image::units, WarnNoImageInfoReturn, WarnNoImageReturn, _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, _PointInfo::y, and _RectangleInfo::y.
Referenced by InterpretDelegateProperties().
|
static |
Definition at line 915 of file delegate.c.
References AcquireString(), AppendString2Text, ConstantString(), DestroyString(), ExtendInterpretText, _Image::filename, GetMagickModule, GetMagickPropertyLetter(), IsEventLogging(), LocaleNCompare(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, OptionWarning, _Image::signature, _ImageInfo::signature, ThrowMagickException(), and TraceEvent.
Referenced by GetDelegateCommand(), and InvokeDelegate().
MagickExport MagickBooleanType InvokeDelegate | ( | ImageInfo * | image_info, |
Image * | image, | ||
const char * | decode, | ||
const char * | encode, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1688 of file delegate.c.
References access_utf8(), AcquireUniqueFilename(), AcquireUniqueSymbolicLink(), _ImageInfo::adjoin, CloneImageInfo(), _DelegateInfo::commands, CopyDelegateFile(), CopyMagickString(), _DelegateInfo::decode, DelegateError, DelegatePolicyDomain, DestroyImageInfo(), DestroyString(), _DelegateInfo::encode, ExecutePolicyRights, ExternalDelegateCommand(), _Image::filename, _ImageInfo::filename, FileOpenError, FormatLocaleString(), GetDelegateInfo(), GetImageListLength(), GetMagickModule, GetNextImageInList(), InterpretDelegateProperties(), InterpretImageProperties(), IsEventLogging(), IsRightsAuthorized(), LocaleCompare(), LocaleUpper(), LogMagickEvent(), _Image::magick, _ImageInfo::magick, MagickCoreSignature, MagickDelay(), MagickFalse, MagickPathExtent, MagickTrue, _DelegateInfo::mode, PolicyError, RelinquishMagickMemory(), RelinquishUniqueFileResource(), ResourceLimitError, SetImageInfo(), _Image::signature, _ImageInfo::signature, _DelegateInfo::spawn, StringToList(), _ImageInfo::temporary, ThrowFileException, ThrowMagickException(), TraceEvent, _ImageInfo::unique, _ImageInfo::verbose, and WriteImage().
Referenced by ReadImage(), and WriteImage().
|
static |
Definition at line 1571 of file delegate.c.
References AcquireDelegateCache(), ActivateSemaphoreInfo(), delegate_cache, delegate_semaphore, DelegateFilename, LockSemaphoreInfo(), MagickFalse, MagickTrue, and UnlockSemaphoreInfo().
Referenced by GetDelegateInfo().
MagickExport MagickBooleanType ListDelegateInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
Definition at line 1955 of file delegate.c.
References ConcatenateMagickString(), CopyMagickString(), DestroyString(), FormatLocaleFile(), GetDelegateInfoList(), LocaleCompare(), MagickFalse, MagickPathExtent, MagickTrue, _DelegateInfo::path, RelinquishMagickMemory(), StringToList(), and StripMagickString().
static MagickBooleanType LoadDelegateCache | ( | LinkedListInfo * | cache, |
const char * | xml, | ||
const char * | filename, | ||
const size_t | depth, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2058 of file delegate.c.
References AcquireCriticalMemory(), AcquireSemaphoreInfo(), AcquireString(), AppendValueToLinkedList(), _DelegateInfo::commands, ConcatenateMagickString(), ConfigureError, ConfigureEvent, ConstantString(), CopyMagickString(), _DelegateInfo::decode, DestroyString(), DirectorySeparator, _DelegateInfo::encode, FileToXML(), GetMagickModule, GetNextToken(), GetPathComponent(), HeadPath, IsStringTrue(), LoadDelegateCache(), LocaleCompare(), LocaleNCompare(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickMaxRecursionDepth, MagickPathExtent, MagickTrue, _DelegateInfo::mode, _DelegateInfo::path, RelinquishMagickMemory(), ResourceLimitError, _DelegateInfo::semaphore, _DelegateInfo::signature, _DelegateInfo::spawn, _DelegateInfo::stealth, SubstituteString(), _DelegateInfo::thread_support, and ThrowMagickException().
Referenced by AcquireDelegateCache(), and LoadDelegateCache().
|
static |
Definition at line 164 of file delegate.c.
Referenced by DelegateComponentTerminus(), GetDelegateInfo(), GetDelegateInfoList(), GetDelegateList(), and IsDelegateCacheInstantiated().
|
static |
Definition at line 167 of file delegate.c.
Referenced by DelegateComponentGenesis(), DelegateComponentTerminus(), GetDelegateInfo(), GetDelegateInfoList(), GetDelegateList(), and IsDelegateCacheInstantiated().
|
static |
Definition at line 97 of file delegate.c.
Referenced by AcquireDelegateCache().