MagickCore
6.9.10
Convert, Edit, Or Compose Bitmap Images
|
#include "magick/studio.h"
#include "magick/blob.h"
#include "magick/client.h"
#include "magick/configure.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/hashmap.h"
#include "magick/magic.h"
#include "magick/memory_.h"
#include "magick/semaphore.h"
#include "magick/string_.h"
#include "magick/string-private.h"
#include "magick/token.h"
#include "magick/utility.h"
#include "magick/xml-tree.h"
#include "magick/xml-tree-private.h"
Data Structures | |
struct | _MagicMapInfo |
Macros | |
#define | MagicFilename "magic.xml" |
#define | MagicPattern(magic) (const unsigned char *) (magic), sizeof(magic)-1 |
Typedefs | |
typedef struct _MagicMapInfo | MagicMapInfo |
Functions | |
static MagickBooleanType | IsMagicCacheInstantiated (ExceptionInfo *) |
static MagickBooleanType | LoadMagicCache (LinkedListInfo *, const char *, const char *, const size_t, ExceptionInfo *) |
static int | CompareMagickInfoSize (const void *a, const void *b) |
static LinkedListInfo * | AcquireMagicCache (const char *filename, ExceptionInfo *exception) |
MagickExport const MagicInfo * | GetMagicInfo (const unsigned char *magic, const size_t length, ExceptionInfo *exception) |
static int | MagicInfoCompare (const void *x, const void *y) |
MagickExport const MagicInfo ** | GetMagicInfoList (const char *pattern, size_t *number_aliases, ExceptionInfo *exception) |
static int | MagicCompare (const void *x, const void *y) |
MagickExport char ** | GetMagicList (const char *pattern, size_t *number_aliases, ExceptionInfo *exception) |
MagickExport const char * | GetMagicName (const MagicInfo *magic_info) |
MagickExport MagickBooleanType | ListMagicInfo (FILE *file, ExceptionInfo *exception) |
MagickExport MagickBooleanType | MagicComponentGenesis (void) |
static void * | DestroyMagicElement (void *magic_info) |
MagickExport void | MagicComponentTerminus (void) |
Variables | |
static const MagicMapInfo | MagicMap [] |
static LinkedListInfo * | magic_cache = (LinkedListInfo *) NULL |
static SemaphoreInfo * | magic_semaphore = (SemaphoreInfo *) NULL |
#define MagicFilename "magic.xml" |
Referenced by IsMagicCacheInstantiated().
#define MagicPattern | ( | magic | ) | (const unsigned char *) (magic), sizeof(magic)-1 |
typedef struct _MagicMapInfo MagicMapInfo |
|
static |
References AcquireMagickMemory(), CompareMagickInfoSize(), CopyMagickString(), DestroyConfigureOptions(), _MagicInfo::exempt, GetConfigureOptions(), GetMagickModule, GetNextValueInLinkedList(), GetStringInfoDatum(), GetStringInfoPath(), InsertValueInSortedLinkedList(), _MagicInfo::length, _MagicMapInfo::length, LoadMagicCache(), _MagicInfo::magic, _MagicMapInfo::magic, MagickCoreSignature, MagickFalse, MagickTrue, MagicMap, MaxTextExtent, _MagicInfo::name, _MagicMapInfo::name, NewLinkedList(), _MagicInfo::offset, _MagicMapInfo::offset, _MagicInfo::path, ResourceLimitError, ResourceLimitFatalError, _MagicInfo::signature, _MagicInfo::target, ThrowFatalException, and ThrowMagickException().
Referenced by IsMagicCacheInstantiated().
|
static |
References _MagicInfo::length, and _MagicInfo::offset.
Referenced by AcquireMagicCache().
|
static |
References DestroyString(), _MagicInfo::exempt, _MagicInfo::magic, MagickFalse, _MagicInfo::name, _MagicInfo::path, RelinquishMagickMemory(), and _MagicInfo::target.
Referenced by MagicComponentTerminus().
MagickExport const MagicInfo* GetMagicInfo | ( | const unsigned char * | magic, |
const size_t | length, | ||
ExceptionInfo * | exception | ||
) |
References GetNextValueInLinkedList(), InsertValueInLinkedList(), IsMagicCacheInstantiated(), _MagicInfo::length, LockSemaphoreInfo(), _MagicInfo::magic, magic_cache, magic_semaphore, MagickFalse, _MagicInfo::offset, RemoveElementByValueFromLinkedList(), ResetLinkedListIterator(), and UnlockSemaphoreInfo().
Referenced by GetMagicInfoList(), GetMagicList(), and SetImageInfo().
MagickExport const MagicInfo** GetMagicInfoList | ( | const char * | pattern, |
size_t * | number_aliases, | ||
ExceptionInfo * | exception | ||
) |
References AcquireQuantumMemory(), GetMagicInfo(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), magic_cache, magic_semaphore, MagicInfoCompare(), MagickFalse, _MagicInfo::name, ResetLinkedListIterator(), _MagicInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
Referenced by ListMagicInfo().
MagickExport char** GetMagicList | ( | const char * | pattern, |
size_t * | number_aliases, | ||
ExceptionInfo * | exception | ||
) |
References AcquireQuantumMemory(), ConstantString(), GetMagicInfo(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), magic_cache, magic_semaphore, MagicCompare(), MagickFalse, _MagicInfo::name, ResetLinkedListIterator(), _MagicInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
MagickExport const char* GetMagicName | ( | const MagicInfo * | magic_info | ) |
References GetMagickModule, LogMagickEvent(), MagickCoreSignature, _MagicInfo::name, _MagicInfo::signature, and TraceEvent.
Referenced by SetImageInfo().
|
static |
References AcquireMagicCache(), ActivateSemaphoreInfo(), LockSemaphoreInfo(), magic_cache, magic_semaphore, MagicFilename, MagickFalse, MagickTrue, and UnlockSemaphoreInfo().
Referenced by GetMagicInfo().
MagickExport MagickBooleanType ListMagicInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
|
static |
References AcquireMagickMemory(), AcquireString(), AppendValueToLinkedList(), ConcatenateMagickString(), ConfigureError, ConfigureEvent, ConstantString(), CopyMagickString(), DirectorySeparator, _MagicInfo::exempt, FileToXML(), GetMagickModule, GetNextToken(), GetPathComponent(), HeadPath, IsMagickTrue(), _MagicInfo::length, LocaleCompare(), LocaleNCompare(), LogMagickEvent(), _MagicInfo::magic, MagickCoreSignature, MagickFalse, MagickMaxRecursionDepth, MagickTrue, MaxTextExtent, _MagicInfo::name, _MagicInfo::offset, _MagicInfo::path, RelinquishMagickMemory(), ResourceLimitError, ResourceLimitFatalError, _MagicInfo::signature, _MagicInfo::stealth, StringToLong(), _MagicInfo::target, ThrowFatalException, and ThrowMagickException().
Referenced by AcquireMagicCache().
|
static |
References LocaleCompare().
Referenced by GetMagicList().
MagickExport MagickBooleanType MagicComponentGenesis | ( | void | ) |
References AllocateSemaphoreInfo(), magic_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
MagickExport void MagicComponentTerminus | ( | void | ) |
References ActivateSemaphoreInfo(), DestroyLinkedList(), DestroyMagicElement(), DestroySemaphoreInfo(), LockSemaphoreInfo(), magic_cache, magic_semaphore, and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
|
static |
References LocaleCompare().
Referenced by GetMagicInfoList().
|
static |
Referenced by GetMagicInfo(), GetMagicInfoList(), GetMagicList(), IsMagicCacheInstantiated(), and MagicComponentTerminus().
|
static |
|
static |
Referenced by AcquireMagicCache().