|
MagickCore
6.7.5
|
#include "MagickCore/studio.h"#include "MagickCore/blob.h"#include "MagickCore/client.h"#include "MagickCore/coder.h"#include "MagickCore/coder-private.h"#include "MagickCore/configure.h"#include "MagickCore/draw.h"#include "MagickCore/exception.h"#include "MagickCore/exception-private.h"#include "MagickCore/hashmap.h"#include "MagickCore/log.h"#include "MagickCore/memory_.h"#include "MagickCore/option.h"#include "MagickCore/semaphore.h"#include "MagickCore/string_.h"#include "MagickCore/splay-tree.h"#include "MagickCore/token.h"#include "MagickCore/utility.h"#include "MagickCore/utility-private.h"#include "MagickCore/xml-tree.h"
Go to the source code of this file.
Data Structures | |
| struct | _CoderMapInfo |
Defines | |
| #define | MagickCoderFilename "coder.xml" |
Typedefs | |
| typedef struct _CoderMapInfo | CoderMapInfo |
Functions | |
| static MagickBooleanType | InitializeCoderList (ExceptionInfo *) |
| static MagickBooleanType | LoadCoderLists (const char *, ExceptionInfo *) |
| MagickPrivate MagickBooleanType | CoderComponentGenesis (void) |
| MagickPrivate void | CoderComponentTerminus (void) |
| MagickExport const CoderInfo * | GetCoderInfo (const char *name, ExceptionInfo *exception) |
| static int | CoderInfoCompare (const void *x, const void *y) |
| MagickExport const CoderInfo ** | GetCoderInfoList (const char *pattern, size_t *number_coders, ExceptionInfo *exception) |
| static int | CoderCompare (const void *x, const void *y) |
| MagickExport char ** | GetCoderList (const char *pattern, size_t *number_coders, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | ListCoderInfo (FILE *file, ExceptionInfo *exception) |
| static void * | DestroyCoderNode (void *coder_info) |
| static MagickBooleanType | LoadCoderList (const char *xml, const char *filename, const size_t depth, ExceptionInfo *exception) |
Variables | |
| static const CoderMapInfo | CoderMap [] |
| static SemaphoreInfo * | coder_semaphore = (SemaphoreInfo *) NULL |
| static SplayTreeInfo * | coder_list = (SplayTreeInfo *) NULL |
| static volatile MagickBooleanType | instantiate_coder = MagickFalse |
| #define MagickCoderFilename "coder.xml" |
Definition at line 66 of file coder.c.
Referenced by InitializeCoderList().
| typedef struct _CoderMapInfo CoderMapInfo |
| static int CoderCompare | ( | const void * | x, |
| const void * | y | ||
| ) | [static] |
| MagickPrivate MagickBooleanType CoderComponentGenesis | ( | void | ) |
Definition at line 258 of file coder.c.
References AcquireSemaphoreInfo(), coder_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
| MagickPrivate void CoderComponentTerminus | ( | void | ) |
Definition at line 282 of file coder.c.
References coder_semaphore, AcquireSemaphoreInfo(), LockSemaphoreInfo(), coder_list, DestroySplayTree(), instantiate_coder, MagickFalse, UnlockSemaphoreInfo(), and DestroySemaphoreInfo().
Referenced by MagickCoreTerminus().
| static int CoderInfoCompare | ( | const void * | x, |
| const void * | y | ||
| ) | [static] |
Definition at line 365 of file coder.c.
References LocaleCompare().
Referenced by GetCoderInfoList().
| static void* DestroyCoderNode | ( | void * | coder_info | ) | [static] |
Definition at line 656 of file coder.c.
References _CoderInfo::exempt, MagickFalse, _CoderInfo::path, DestroyString(), _CoderInfo::name, _CoderInfo::magick, and RelinquishMagickMemory().
Referenced by LoadCoderList(), and LoadCoderLists().
| MagickExport const CoderInfo* GetCoderInfo | ( | const char * | name, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 319 of file coder.c.
References coder_list, instantiate_coder, MagickFalse, InitializeCoderList(), GetNumberOfNodesInSplayTree(), LocaleCompare(), ResetSplayTreeIterator(), GetNextValueInSplayTree(), and GetValueFromSplayTree().
Referenced by GetCoderInfoList(), and GetCoderList().
| MagickExport const CoderInfo** GetCoderInfoList | ( | const char * | pattern, |
| size_t * | number_coders, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 378 of file coder.c.
References LogMagickEvent(), TraceEvent, GetMagickModule, GetCoderInfo(), AcquireQuantumMemory(), GetNumberOfNodesInSplayTree(), coder_list, LockSemaphoreInfo(), coder_semaphore, ResetSplayTreeIterator(), GetNextValueInSplayTree(), _CoderInfo::stealth, MagickFalse, GlobExpression(), _CoderInfo::name, UnlockSemaphoreInfo(), and CoderInfoCompare().
Referenced by ListCoderInfo().
| MagickExport char** GetCoderList | ( | const char * | pattern, |
| size_t * | number_coders, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 463 of file coder.c.
References LogMagickEvent(), TraceEvent, GetMagickModule, GetCoderInfo(), AcquireQuantumMemory(), GetNumberOfNodesInSplayTree(), coder_list, LockSemaphoreInfo(), coder_semaphore, ResetSplayTreeIterator(), GetNextValueInSplayTree(), _CoderInfo::stealth, MagickFalse, GlobExpression(), _CoderInfo::name, ConstantString(), UnlockSemaphoreInfo(), and CoderCompare().
| static MagickBooleanType InitializeCoderList | ( | ExceptionInfo * | exception | ) | [static] |
Definition at line 531 of file coder.c.
References coder_list, instantiate_coder, MagickFalse, coder_semaphore, AcquireSemaphoreInfo(), LockSemaphoreInfo(), LoadCoderLists(), MagickCoderFilename, MagickTrue, and UnlockSemaphoreInfo().
Referenced by GetCoderInfo().
| MagickExport MagickBooleanType ListCoderInfo | ( | FILE * | file, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 574 of file coder.c.
References GetCoderInfoList(), MagickFalse, LocaleCompare(), FormatLocaleFile(), _CoderInfo::path, RelinquishMagickMemory(), and MagickTrue.
| static MagickBooleanType LoadCoderList | ( | const char * | xml, |
| const char * | filename, | ||
| const size_t | depth, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 674 of file coder.c.
References MaxTextExtent, LogMagickEvent(), ConfigureEvent, GetMagickModule, MagickFalse, coder_list, NewSplayTree(), CompareSplayTreeString(), RelinquishMagickMemory(), DestroyCoderNode(), ThrowFileException, ResourceLimitError, MagickTrue, AcquireString(), GetMagickToken(), CopyMagickString(), LocaleNCompare(), LocaleCompare(), ThrowMagickException(), ConfigureError, GetPathComponent(), HeadPath, ConcatenateMagickString(), DirectorySeparator, FileToString(), AcquireMagickMemory(), ThrowFatalException, ResourceLimitFatalError, ResetMagickMemory(), _CoderInfo::path, ConstantString(), _CoderInfo::exempt, _CoderInfo::signature, MagickSignature, AddValueToSplayTree(), _CoderInfo::magick, _CoderInfo::name, _CoderInfo::stealth, and IsMagickTrue().
Referenced by LoadCoderLists().
| static MagickBooleanType LoadCoderLists | ( | const char * | filename, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 877 of file coder.c.
References MagickFalse, coder_list, NewSplayTree(), CompareSplayTreeString(), RelinquishMagickMemory(), DestroyCoderNode(), ThrowFileException, ResourceLimitError, CoderMap, AcquireMagickMemory(), ThrowMagickException(), GetMagickModule, _CoderInfo::name, ResetMagickMemory(), _CoderInfo::path, _CoderInfo::magick, _CoderMapInfo::magick, _CoderMapInfo::name, _CoderInfo::exempt, MagickTrue, _CoderInfo::signature, MagickSignature, AddValueToSplayTree(), ConstantString(), GetConfigureOptions(), GetNextValueInLinkedList(), LoadCoderList(), GetStringInfoDatum(), GetStringInfoPath(), and DestroyConfigureOptions().
Referenced by InitializeCoderList().
SplayTreeInfo* coder_list = (SplayTreeInfo *) NULL [static] |
Definition at line 228 of file coder.c.
Referenced by CoderComponentTerminus(), GetCoderInfo(), GetCoderInfoList(), GetCoderList(), InitializeCoderList(), LoadCoderList(), and LoadCoderLists().
SemaphoreInfo* coder_semaphore = (SemaphoreInfo *) NULL [static] |
Definition at line 225 of file coder.c.
Referenced by CoderComponentGenesis(), CoderComponentTerminus(), GetCoderInfoList(), GetCoderList(), and InitializeCoderList().
const CoderMapInfo CoderMap[] [static] |
Definition at line 82 of file coder.c.
Referenced by LoadCoderLists().
volatile MagickBooleanType instantiate_coder = MagickFalse [static] |
Definition at line 231 of file coder.c.
Referenced by CoderComponentTerminus(), GetCoderInfo(), and InitializeCoderList().