MagickCore  7.0.3
magick.c File Reference
#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/module.h"
#include "MagickCore/module-private.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/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"
Include dependency graph for magick.c:

Go to the source code of this file.

Macros

#define MAGICKCORE_RETSIGTYPE   void
 
#define SIG_DFL   ((SignalHandler *) 0)
 
#define SIG_ERR   ((SignalHandler *) -1)
 
#define SIGMAX   64
 
#define MagickPrecision   6
 

Typedefs

typedef MAGICKCORE_RETSIGTYPE SignalHandler(int)
 

Functions

static MagickBooleanType IsMagickTreeInstantiated (ExceptionInfo *)
 
MagickExport MagickInfoAcquireMagickInfo (const char *module, const char *name, const char *description)
 
MagickExport DecodeImageHandlerGetImageDecoder (const MagickInfo *magick_info)
 
MagickExport EncodeImageHandlerGetImageEncoder (const MagickInfo *magick_info)
 
MagickExport MagickBooleanType GetImageMagick (const unsigned char *magick, const size_t length, char *format)
 
MagickExport MagickBooleanType GetMagickAdjoin (const MagickInfo *magick_info)
 
MagickExport MagickBooleanType GetMagickBlobSupport (const MagickInfo *magick_info)
 
MagickExport MagickBooleanType GetMagickDecoderThreadSupport (const MagickInfo *magick_info)
 
MagickExport const char * GetMagickDescription (const MagickInfo *magick_info)
 
MagickExport MagickBooleanType GetMagickEncoderThreadSupport (const MagickInfo *magick_info)
 
MagickExport MagickBooleanType GetMagickEndianSupport (const MagickInfo *magick_info)
 
MagickExport const MagickInfoGetMagickInfo (const char *name, ExceptionInfo *exception)
 
static int MagickInfoCompare (const void *x, const void *y)
 
MagickExport const MagickInfo ** GetMagickInfoList (const char *pattern, size_t *number_formats, ExceptionInfo *exception)
 
static int MagickCompare (const void *x, const void *y)
 
MagickExport char ** GetMagickList (const char *pattern, size_t *number_formats, ExceptionInfo *exception)
 
MagickExport const char * GetMagickMimeType (const MagickInfo *magick_info)
 
MagickExport int GetMagickPrecision (void)
 
MagickExport MagickBooleanType GetMagickRawSupport (const MagickInfo *magick_info)
 
MagickExport MagickBooleanType GetMagickSeekableStream (const MagickInfo *magick_info)
 
MagickExport MagickBooleanType GetMagickStealth (const MagickInfo *magick_info)
 
MagickExport MagickBooleanType GetMagickUseExtension (const MagickInfo *magick_info)
 
static void * DestroyMagickNode (void *magick_info)
 
MagickPrivate MagickBooleanType IsMagickConflict (const char *magick)
 
MagickExport MagickBooleanType ListMagickInfo (FILE *file, ExceptionInfo *exception)
 
MagickExport MagickBooleanType IsMagickCoreInstantiated (void)
 
MagickPrivate MagickBooleanType MagickComponentGenesis (void)
 
MagickPrivate void MagickComponentTerminus (void)
 
static SignalHandlerSetMagickSignalHandler (int signal_number, SignalHandler *handler)
 
static void MagickSignalHandler (int signal_number)
 
static SignalHandlerRegisterMagickSignalHandler (int signal_number)
 
MagickExport void MagickCoreGenesis (const char *path, const MagickBooleanType establish_signal_handlers)
 
MagickExport void MagickCoreTerminus (void)
 
MagickExport MagickBooleanType RegisterMagickInfo (MagickInfo *magick_info)
 
MagickExport int SetMagickPrecision (const int precision)
 
MagickExport MagickBooleanType UnregisterMagickInfo (const char *name)
 

Variables

static SemaphoreInfomagick_semaphore = (SemaphoreInfo *) NULL
 
static SignalHandlersignal_handlers [SIGMAX] = { (SignalHandler *) NULL }
 
static SplayTreeInfomagick_list = (SplayTreeInfo *) NULL
 
static volatile MagickBooleanType instantiate_magickcore = MagickFalse
 
static volatile MagickBooleanType magickcore_signal_in_progress = MagickFalse
 

Macro Definition Documentation

§ MAGICKCORE_RETSIGTYPE

#define MAGICKCORE_RETSIGTYPE   void

Definition at line 96 of file magick.c.

§ MagickPrecision

#define MagickPrecision   6

Referenced by SetMagickPrecision().

§ SIG_DFL

#define SIG_DFL   ((SignalHandler *) 0)

Definition at line 99 of file magick.c.

Referenced by RegisterMagickSignalHandler().

§ SIG_ERR

#define SIG_ERR   ((SignalHandler *) -1)

Definition at line 102 of file magick.c.

Referenced by RegisterMagickSignalHandler(), and SetMagickSignalHandler().

§ SIGMAX

#define SIGMAX   64

Definition at line 105 of file magick.c.

Typedef Documentation

§ SignalHandler

typedef MAGICKCORE_RETSIGTYPE SignalHandler(int)

Definition at line 112 of file magick.c.

Function Documentation

§ AcquireMagickInfo()

§ DestroyMagickNode()

§ GetImageDecoder()

MagickExport DecodeImageHandler* GetImageDecoder ( const MagickInfo magick_info)

Definition at line 212 of file magick.c.

References _MagickInfo::decoder, MagickCoreSignature, and _MagickInfo::signature.

Referenced by ReadImage().

§ GetImageEncoder()

MagickExport EncodeImageHandler* GetImageEncoder ( const MagickInfo magick_info)

Definition at line 241 of file magick.c.

References _MagickInfo::encoder, MagickCoreSignature, and _MagickInfo::signature.

Referenced by WriteImage().

§ GetImageMagick()

§ GetMagickAdjoin()

MagickExport MagickBooleanType GetMagickAdjoin ( const MagickInfo magick_info)

§ GetMagickBlobSupport()

§ GetMagickDecoderThreadSupport()

MagickExport MagickBooleanType GetMagickDecoderThreadSupport ( const MagickInfo magick_info)

§ GetMagickDescription()

MagickExport const char* GetMagickDescription ( const MagickInfo magick_info)

Definition at line 431 of file magick.c.

References _MagickInfo::description, MagickCoreSignature, and _MagickInfo::signature.

Referenced by IdentifyImage().

§ GetMagickEncoderThreadSupport()

MagickExport MagickBooleanType GetMagickEncoderThreadSupport ( const MagickInfo magick_info)

§ GetMagickEndianSupport()

MagickExport MagickBooleanType GetMagickEndianSupport ( const MagickInfo magick_info)

§ GetMagickInfo()

§ GetMagickInfoList()

§ GetMagickList()

§ GetMagickMimeType()

MagickExport const char* GetMagickMimeType ( const MagickInfo magick_info)

Definition at line 786 of file magick.c.

References MagickCoreSignature, _MagickInfo::mime_type, and _MagickInfo::signature.

Referenced by IdentifyImage().

§ GetMagickPrecision()

§ GetMagickRawSupport()

MagickExport MagickBooleanType GetMagickRawSupport ( const MagickInfo magick_info)

§ GetMagickSeekableStream()

MagickExport MagickBooleanType GetMagickSeekableStream ( const MagickInfo magick_info)

§ GetMagickStealth()

§ GetMagickUseExtension()

MagickExport MagickBooleanType GetMagickUseExtension ( const MagickInfo magick_info)

§ IsMagickConflict()

MagickPrivate MagickBooleanType IsMagickConflict ( const char *  magick)

Definition at line 1041 of file magick.c.

References MagickFalse, NTIsMagickConflict(), and VMSIsMagickConflict().

§ IsMagickCoreInstantiated()

MagickExport MagickBooleanType IsMagickCoreInstantiated ( void  )

Definition at line 1183 of file magick.c.

References instantiate_magickcore.

§ IsMagickTreeInstantiated()

§ ListMagickInfo()

§ MagickCompare()

static int MagickCompare ( const void *  x,
const void *  y 
)
static

Definition at line 706 of file magick.c.

References LocaleCompare().

Referenced by GetMagickList().

§ MagickComponentGenesis()

MagickPrivate MagickBooleanType MagickComponentGenesis ( void  )

Definition at line 1206 of file magick.c.

References AcquireSemaphoreInfo(), magick_semaphore, and MagickTrue.

Referenced by MagickCoreGenesis().

§ MagickComponentTerminus()

§ MagickCoreGenesis()

§ MagickCoreTerminus()

§ MagickInfoCompare()

static int MagickInfoCompare ( const void *  x,
const void *  y 
)
static

Definition at line 613 of file magick.c.

References LocaleCompare().

Referenced by GetMagickInfoList().

§ MagickSignalHandler()

static void MagickSignalHandler ( int  signal_number)
static

§ RegisterMagickInfo()

§ RegisterMagickSignalHandler()

static SignalHandler* RegisterMagickSignalHandler ( int  signal_number)
static

§ SetMagickPrecision()

MagickExport int SetMagickPrecision ( const int  precision)

§ SetMagickSignalHandler()

static SignalHandler* SetMagickSignalHandler ( int  signal_number,
SignalHandler handler 
)
static

Definition at line 1269 of file magick.c.

References SIG_ERR.

Referenced by MagickSignalHandler(), and RegisterMagickSignalHandler().

§ UnregisterMagickInfo()

Variable Documentation

§ instantiate_magickcore

volatile MagickBooleanType instantiate_magickcore = MagickFalse
static

Definition at line 127 of file magick.c.

Referenced by IsMagickCoreInstantiated(), MagickCoreGenesis(), and MagickCoreTerminus().

§ magick_list

§ magick_semaphore

§ magickcore_signal_in_progress

volatile MagickBooleanType magickcore_signal_in_progress = MagickFalse
static

Definition at line 128 of file magick.c.

Referenced by MagickSignalHandler().

§ signal_handlers

SignalHandler* signal_handlers[SIGMAX] = { (SignalHandler *) NULL }
static

Definition at line 121 of file magick.c.

Referenced by MagickCoreGenesis(), and MagickSignalHandler().