MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
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/monitor-private.h"
#include "MagickCore/module.h"
#include "MagickCore/module-private.h"
#include "MagickCore/mutex.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/static.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 SIG_DFL   ((SignalHandler *) 0)
 
#define SIG_ERR   ((SignalHandler *) -1)
 
#define SIGMAX   64
 
#define MagickPrecision   (4+MAGICKCORE_QUANTUM_DEPTH/8)
 

Typedefs

typedef void SignalHandler(int)
 

Functions

static MagickBooleanType IsMagickTreeInstantiated (ExceptionInfo *)
 
MagickExport MagickInfoAcquireMagickInfo (const char *magick_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 GetMagickDecoderSeekableStream (const MagickInfo *magick_info)
 
MagickExport MagickBooleanType GetMagickDecoderThreadSupport (const MagickInfo *magick_info)
 
MagickExport const char * GetMagickDescription (const MagickInfo *magick_info)
 
MagickExport MagickBooleanType GetMagickEncoderSeekableStream (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 const char * GetMagickModuleName (const MagickInfo *magick_info)
 
MagickExport const char * GetMagickName (const MagickInfo *magick_info)
 
MagickExport int GetMagickPrecision (void)
 
MagickExport MagickBooleanType GetMagickRawSupport (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)
 
MagickPrivate void ResetMagickPrecision (void)
 
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 magickcore_instantiated = MagickFalse
 
static volatile MagickBooleanType magickcore_signal_in_progress = MagickFalse
 
static volatile MagickBooleanType magick_list_initialized = MagickFalse
 
static int magick_precision = 0
 

Macro Definition Documentation

◆ MagickPrecision

#define MagickPrecision   (4+MAGICKCORE_QUANTUM_DEPTH/8)

◆ SIG_DFL

#define SIG_DFL   ((SignalHandler *) 0)

Definition at line 108 of file magick.c.

◆ SIG_ERR

#define SIG_ERR   ((SignalHandler *) -1)

Definition at line 111 of file magick.c.

◆ SIGMAX

#define SIGMAX   64

Definition at line 114 of file magick.c.

Typedef Documentation

◆ SignalHandler

typedef void SignalHandler(int)

Definition at line 120 of file magick.c.

Function Documentation

◆ AcquireMagickInfo()

◆ DestroyMagickNode()

◆ GetImageDecoder()

MagickExport DecodeImageHandler * GetImageDecoder ( const MagickInfo magick_info)

Definition at line 224 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 254 of file magick.c.

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

Referenced by WriteImage().

◆ GetImageMagick()

◆ GetMagickAdjoin()

MagickExport MagickBooleanType GetMagickAdjoin ( const MagickInfo magick_info)

◆ GetMagickBlobSupport()

◆ GetMagickDecoderSeekableStream()

MagickExport MagickBooleanType GetMagickDecoderSeekableStream ( const MagickInfo magick_info)

◆ GetMagickDecoderThreadSupport()

MagickExport MagickBooleanType GetMagickDecoderThreadSupport ( const MagickInfo magick_info)

◆ GetMagickDescription()

MagickExport const char * GetMagickDescription ( const MagickInfo magick_info)

Definition at line 480 of file magick.c.

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

Referenced by IdentifyImage().

◆ GetMagickEncoderSeekableStream()

◆ 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 862 of file magick.c.

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

Referenced by IdentifyImage().

◆ GetMagickModuleName()

MagickExport const char * GetMagickModuleName ( const MagickInfo magick_info)

Definition at line 891 of file magick.c.

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

◆ GetMagickName()

MagickExport const char * GetMagickName ( const MagickInfo magick_info)

Definition at line 920 of file magick.c.

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

◆ GetMagickPrecision()

◆ GetMagickRawSupport()

MagickExport MagickBooleanType GetMagickRawSupport ( const MagickInfo magick_info)

◆ GetMagickStealth()

◆ GetMagickUseExtension()

MagickExport MagickBooleanType GetMagickUseExtension ( const MagickInfo magick_info)

◆ IsMagickConflict()

MagickPrivate MagickBooleanType IsMagickConflict ( const char *  magick)

Definition at line 1141 of file magick.c.

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

◆ IsMagickCoreInstantiated()

MagickExport MagickBooleanType IsMagickCoreInstantiated ( void  )

Definition at line 1284 of file magick.c.

References magickcore_instantiated.

◆ IsMagickTreeInstantiated()

◆ ListMagickInfo()

◆ MagickCompare()

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

Definition at line 781 of file magick.c.

References LocaleCompare().

Referenced by GetMagickList().

◆ MagickComponentGenesis()

MagickPrivate MagickBooleanType MagickComponentGenesis ( void  )

Definition at line 1307 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 687 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

◆ ResetMagickPrecision()

MagickPrivate void ResetMagickPrecision ( void  )

Definition at line 1727 of file magick.c.

References magick_precision.

Referenced by SetMagickSecurityPolicyValue().

◆ SetMagickPrecision()

◆ SetMagickSignalHandler()

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

Definition at line 1373 of file magick.c.

References SIG_DFL, and SIG_ERR.

Referenced by MagickSignalHandler(), and RegisterMagickSignalHandler().

◆ UnregisterMagickInfo()

Variable Documentation

◆ magick_list

◆ magick_list_initialized

volatile MagickBooleanType magick_list_initialized = MagickFalse
static

Definition at line 137 of file magick.c.

Referenced by IsMagickTreeInstantiated(), and MagickComponentTerminus().

◆ magick_precision

int magick_precision = 0
static

Definition at line 140 of file magick.c.

Referenced by ResetMagickPrecision(), and SetMagickPrecision().

◆ magick_semaphore

◆ magickcore_instantiated

volatile MagickBooleanType magickcore_instantiated = MagickFalse
static

Definition at line 135 of file magick.c.

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

◆ magickcore_signal_in_progress

volatile MagickBooleanType magickcore_signal_in_progress = MagickFalse
static

Definition at line 136 of file magick.c.

Referenced by MagickSignalHandler().

◆ signal_handlers

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

Definition at line 129 of file magick.c.

Referenced by MagickCoreGenesis(), and MagickSignalHandler().