MagickCore  6.9.11
magick.c File Reference
#include "magick/studio.h"
#include "magick/annotate.h"
#include "magick/blob.h"
#include "magick/blob-private.h"
#include "magick/cache.h"
#include "magick/coder.h"
#include "magick/client.h"
#include "magick/configure.h"
#include "magick/constitute.h"
#include "magick/delegate.h"
#include "magick/draw.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/locale_.h"
#include "magick/log.h"
#include "magick/magic.h"
#include "magick/magick.h"
#include "magick/memory_.h"
#include "magick/mime.h"
#include "magick/module.h"
#include "magick/monitor-private.h"
#include "magick/mutex.h"
#include "magick/nt-base-private.h"
#include "magick/nt-feature.h"
#include "magick/opencl-private.h"
#include "magick/random_.h"
#include "magick/registry.h"
#include "magick/resource_.h"
#include "magick/policy.h"
#include "magick/semaphore.h"
#include "magick/semaphore-private.h"
#include "magick/signature-private.h"
#include "magick/splay-tree.h"
#include "magick/static.h"
#include "magick/string_.h"
#include "magick/string-private.h"
#include "magick/thread_.h"
#include "magick/thread-private.h"
#include "magick/token.h"
#include "magick/utility.h"
#include "magick/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   (4+MAGICKCORE_QUANTUM_DEPTH/8)
 

Typedefs

typedef MAGICKCORE_RETSIGTYPE SignalHandler(int)
 

Functions

static MagickBooleanType IsMagickTreeInstantiated (ExceptionInfo *)
 
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 const char * GetMagickDescription (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 MagickStatusType GetMagickThreadSupport (const MagickInfo *magick_info)
 
static void * DestroyMagickNode (void *magick_info)
 
MagickExport MagickBooleanType IsMagickConflict (const char *magick)
 
MagickExport MagickBooleanType ListMagickInfo (FILE *file, ExceptionInfo *exception)
 
MagickExport MagickBooleanType IsMagickCoreInstantiated (void)
 
MagickExport MagickBooleanType MagickComponentGenesis (void)
 
MagickExport 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 MagickInfoRegisterMagickInfo (MagickInfo *magick_info)
 
MagickExport MagickInfoSetMagickInfo (const char *name)
 
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
 
static volatile MagickBooleanType magick_list_initialized = MagickFalse
 

Macro Definition Documentation

◆ MAGICKCORE_RETSIGTYPE

#define MAGICKCORE_RETSIGTYPE   void

Definition at line 98 of file magick.c.

◆ MagickPrecision

#define MagickPrecision   (4+MAGICKCORE_QUANTUM_DEPTH/8)

Referenced by SetMagickPrecision().

◆ SIG_DFL

#define SIG_DFL   ((SignalHandler *) 0)

Definition at line 101 of file magick.c.

Referenced by RegisterMagickSignalHandler(), and SetMagickSignalHandler().

◆ SIG_ERR

#define SIG_ERR   ((SignalHandler *) -1)

Definition at line 104 of file magick.c.

Referenced by RegisterMagickSignalHandler(), and SetMagickSignalHandler().

◆ SIGMAX

#define SIGMAX   64

Definition at line 107 of file magick.c.

Typedef Documentation

◆ SignalHandler

typedef MAGICKCORE_RETSIGTYPE SignalHandler(int)

Definition at line 114 of file magick.c.

Function Documentation

◆ DestroyMagickNode()

◆ GetImageDecoder()

MagickExport DecodeImageHandler* GetImageDecoder ( const MagickInfo magick_info)

◆ GetImageEncoder()

MagickExport EncodeImageHandler* GetImageEncoder ( const MagickInfo magick_info)

◆ GetImageMagick()

◆ GetMagickAdjoin()

MagickExport MagickBooleanType GetMagickAdjoin ( const MagickInfo magick_info)

◆ GetMagickBlobSupport()

◆ GetMagickDescription()

MagickExport const char* GetMagickDescription ( const MagickInfo magick_info)

◆ GetMagickEndianSupport()

MagickExport MagickBooleanType GetMagickEndianSupport ( const MagickInfo magick_info)

◆ GetMagickInfo()

◆ GetMagickInfoList()

◆ GetMagickList()

◆ GetMagickMimeType()

MagickExport const char* GetMagickMimeType ( const MagickInfo magick_info)

◆ GetMagickPrecision()

◆ GetMagickRawSupport()

MagickExport MagickBooleanType GetMagickRawSupport ( const MagickInfo magick_info)

◆ GetMagickSeekableStream()

MagickExport MagickBooleanType GetMagickSeekableStream ( const MagickInfo magick_info)

◆ GetMagickThreadSupport()

MagickExport MagickStatusType GetMagickThreadSupport ( const MagickInfo magick_info)

◆ IsMagickConflict()

MagickExport MagickBooleanType IsMagickConflict ( const char *  magick)

◆ IsMagickCoreInstantiated()

MagickExport MagickBooleanType IsMagickCoreInstantiated ( void  )

Definition at line 1039 of file magick.c.

References instantiate_magickcore.

Referenced by IsMagickInstantiated().

◆ IsMagickTreeInstantiated()

◆ ListMagickInfo()

◆ MagickCompare()

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

Definition at line 583 of file magick.c.

References LocaleCompare().

Referenced by GetMagickList().

◆ MagickComponentGenesis()

MagickExport MagickBooleanType MagickComponentGenesis ( void  )

Definition at line 1062 of file magick.c.

References AllocateSemaphoreInfo(), magick_semaphore, and MagickTrue.

Referenced by MagickCoreGenesis().

◆ MagickComponentTerminus()

◆ MagickCoreGenesis()

◆ MagickCoreTerminus()

◆ MagickInfoCompare()

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

Definition at line 490 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

◆ SetMagickInfo()

◆ SetMagickPrecision()

MagickExport int SetMagickPrecision ( const int  precision)

◆ SetMagickSignalHandler()

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

Definition at line 1128 of file magick.c.

References SIG_DFL, and SIG_ERR.

Referenced by MagickSignalHandler(), and RegisterMagickSignalHandler().

◆ UnregisterMagickInfo()

Variable Documentation

◆ instantiate_magickcore

volatile MagickBooleanType instantiate_magickcore = MagickFalse
static

Definition at line 129 of file magick.c.

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

◆ magick_list

◆ magick_list_initialized

volatile MagickBooleanType magick_list_initialized = MagickFalse
static

Definition at line 131 of file magick.c.

Referenced by IsMagickTreeInstantiated(), and MagickComponentTerminus().

◆ magick_semaphore

◆ magickcore_signal_in_progress

volatile MagickBooleanType magickcore_signal_in_progress = MagickFalse
static

Definition at line 130 of file magick.c.

Referenced by MagickSignalHandler().

◆ signal_handlers

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

Definition at line 123 of file magick.c.

Referenced by MagickCoreGenesis(), and MagickSignalHandler().