MagickCore  6.8.5
color.c File Reference
#include "magick/studio.h"
#include "magick/blob.h"
#include "magick/cache-view.h"
#include "magick/cache.h"
#include "magick/color.h"
#include "magick/color-private.h"
#include "magick/colorspace-private.h"
#include "magick/client.h"
#include "magick/configure.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/gem.h"
#include "magick/geometry.h"
#include "magick/image-private.h"
#include "magick/memory_.h"
#include "magick/monitor.h"
#include "magick/monitor-private.h"
#include "magick/option.h"
#include "magick/pixel-private.h"
#include "magick/quantize.h"
#include "magick/quantum.h"
#include "magick/semaphore.h"
#include "magick/string_.h"
#include "magick/token.h"
#include "magick/utility.h"
#include "magick/xml-tree.h"
Include dependency graph for color.c:

Data Structures

struct  _ColorMapInfo

Macros

#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 *)
MagickExport MagickBooleanType ColorComponentGenesis (void)
static void * DestroyColorElement (void *color_info)
MagickExport 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 MagickPixelPacket *pixel, const ChannelType channel, 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 MagickPixelPacket *pixel, const ChannelType channel, char *tuple)
MagickExport void GetColorTuple (const MagickPixelPacket *pixel, const MagickBooleanType hex, char *tuple)
static double MagickMax (const double x, const double y)
MagickExport MagickBooleanType IsColorSimilar (const Image *image, const PixelPacket *p, const PixelPacket *q)
MagickExport MagickBooleanType IsImageSimilar (const Image *image, const Image *target_image, ssize_t *x_offset, ssize_t *y_offset, ExceptionInfo *exception)
MagickExport MagickBooleanType IsMagickColorSimilar (const MagickPixelPacket *p, const MagickPixelPacket *q)
MagickExport MagickBooleanType IsOpacitySimilar (const Image *image, const PixelPacket *p, const PixelPacket *q)
MagickExport MagickBooleanType ListColorInfo (FILE *file, ExceptionInfo *exception)
static MagickBooleanType LoadColorList (const char *xml, const char *filename, const size_t depth, ExceptionInfo *exception)
static double MagickMin (const double x, const double y)
MagickExport MagickBooleanType QueryColorCompliance (const char *name, const ComplianceType compliance, PixelPacket *color, ExceptionInfo *exception)
MagickExport MagickBooleanType QueryColorDatabase (const char *name, PixelPacket *color, ExceptionInfo *exception)
MagickExport MagickBooleanType QueryColorname (const Image *image, const PixelPacket *color, const ComplianceType compliance, char *name, ExceptionInfo *exception)
MagickExport MagickBooleanType QueryMagickColorCompliance (const char *name, const ComplianceType compliance, MagickPixelPacket *color, ExceptionInfo *exception)
MagickExport MagickBooleanType QueryMagickColor (const char *name, MagickPixelPacket *color, ExceptionInfo *exception)
MagickExport MagickBooleanType QueryMagickColorname (const Image *image, const MagickPixelPacket *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

Macro Definition Documentation

#define ColorFilename   "colors.xml"

Referenced by InitializeColorList().

#define SearchImageText   " Searching image... "

Referenced by IsImageSimilar().

#define SVGCompliant (   component)
Value:
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

References LocaleCompare().

Referenced by GetColorList().

MagickExport MagickBooleanType ColorComponentGenesis ( void  )
static int ColorInfoCompare ( const void *  x,
const void *  y 
)
static

References LocaleCompare().

Referenced by GetColorInfoList().

static void* DestroyColorElement ( void *  color_info)
static
MagickExport const ColorInfo* GetColorInfo ( const char *  name,
ExceptionInfo exception 
)
static double MagickMax ( const double  x,
const double  y 
)
inlinestatic
static double MagickMin ( const double  x,
const double  y 
)
inlinestatic
MagickExport MagickBooleanType QueryColorname ( const Image image,
const PixelPacket color,
const ComplianceType  compliance,
char *  name,
ExceptionInfo exception 
)
MagickExport MagickBooleanType QueryMagickColor ( const char *  name,
MagickPixelPacket color,
ExceptionInfo exception 
)

Variable Documentation

const ColorMapInfo ColorMap[]
static

Referenced by LoadColorLists().

volatile MagickBooleanType instantiate_color = MagickFalse
static