MagickCore  6.7.5
color.c File Reference
Include dependency graph for color.c:

Go to the source code of this file.

Data Structures

struct  _ColorMapInfo

Defines

#define ColorFilename   "colors.xml"
#define SVGCompliant(component)
#define SearchImageText   " Searching image... "

Typedefs

typedef struct _ColorMapInfo ColorMapInfo

Functions

static MagickBooleanType InitializeColorList (ExceptionInfo *)
static MagickBooleanType LoadColorLists (const char *, ExceptionInfo *)
MagickPrivate MagickBooleanType ColorComponentGenesis (void)
static void * DestroyColorElement (void *color_info)
MagickPrivate void ColorComponentTerminus (void)
MagickExport const ColorInfoGetColorCompliance (const char *name, const ComplianceType compliance, ExceptionInfo *exception)
MagickExport const ColorInfoGetColorInfo (const char *name, ExceptionInfo *exception)
MagickExport void ConcatenateColorComponent (const PixelInfo *pixel, const PixelChannel component, const ComplianceType compliance, char *tuple)
static int ColorInfoCompare (const void *x, const void *y)
MagickExport const ColorInfo ** GetColorInfoList (const char *pattern, size_t *number_colors, ExceptionInfo *exception)
static int ColorCompare (const void *x, const void *y)
MagickExport char ** GetColorList (const char *pattern, size_t *number_colors, ExceptionInfo *exception)
static void ConcatentateHexColorComponent (const PixelInfo *pixel, const PixelChannel channel, char *tuple)
MagickExport void GetColorTuple (const PixelInfo *pixel, const MagickBooleanType hex, char *tuple)
static double MagickMax (const double x, const double y)
MagickExport MagickBooleanType IsEquivalentAlpha (const Image *image, const PixelInfo *p, const PixelInfo *q)
MagickExport MagickBooleanType IsEquivalentImage (const Image *image, const Image *target_image, ssize_t *x_offset, ssize_t *y_offset, ExceptionInfo *exception)
MagickExport MagickBooleanType ListColorInfo (FILE *file, ExceptionInfo *exception)
static MagickBooleanType LoadColorList (const char *xml, const char *filename, const size_t depth, ExceptionInfo *exception)
MagickExport MagickBooleanType QueryColorCompliance (const char *name, const ComplianceType compliance, PixelInfo *color, ExceptionInfo *exception)
static double MagickMin (const double x, const double y)
MagickExport MagickBooleanType QueryColorname (const Image *image, const PixelInfo *color, const ComplianceType compliance, char *name, ExceptionInfo *exception)

Variables

static const ColorMapInfo ColorMap []
static LinkedListInfocolor_list = (LinkedListInfo *) NULL
static SemaphoreInfocolor_semaphore = (SemaphoreInfo *) NULL
static volatile MagickBooleanType instantiate_color = MagickFalse

Define Documentation

#define ColorFilename   "colors.xml"

Definition at line 76 of file color.c.

Referenced by InitializeColorList().

#define SearchImageText   " Searching image... "

Referenced by IsEquivalentImage().

#define SVGCompliant (   component)
Value:
((MagickRealType) \
   ScaleCharToQuantum(ScaleQuantumToChar(ClampToQuantum(component))))

Referenced by GetColorTuple().


Typedef Documentation

typedef struct _ColorMapInfo ColorMapInfo

Function Documentation

static int ColorCompare ( const void *  x,
const void *  y 
) [static]

Definition at line 1239 of file color.c.

References LocaleCompare().

Referenced by GetColorList().

MagickPrivate MagickBooleanType ColorComponentGenesis ( void  )

Definition at line 821 of file color.c.

References AcquireSemaphoreInfo(), color_semaphore, and MagickTrue.

Referenced by MagickCoreGenesis().

static int ColorInfoCompare ( const void *  x,
const void *  y 
) [static]

Definition at line 1144 of file color.c.

References LocaleCompare().

Referenced by GetColorInfoList().

static void* DestroyColorElement ( void *  color_info) [static]
MagickExport const ColorInfo* GetColorInfo ( const char *  name,
ExceptionInfo exception 
)

Definition at line 988 of file color.c.

References GetColorCompliance(), and AllCompliance.

Referenced by GetColorInfoList(), GetColorList(), and QueryColorname().

MagickExport MagickBooleanType IsEquivalentAlpha ( const Image image,
const PixelInfo p,
const PixelInfo q 
)
static double MagickMax ( const double  x,
const double  y 
) [inline, static]

Definition at line 1553 of file color.c.

Referenced by IsEquivalentAlpha().

static double MagickMin ( const double  x,
const double  y 
) [inline, static]

Definition at line 2419 of file color.c.

Referenced by QueryColorname().


Variable Documentation

const ColorMapInfo ColorMap[] [static]

Definition at line 102 of file color.c.

Referenced by LoadColorLists().

volatile MagickBooleanType instantiate_color = MagickFalse [static]

Definition at line 794 of file color.c.

Referenced by ColorComponentTerminus(), GetColorCompliance(), and InitializeColorList().