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 "magick/xml-tree-private.h"
Include dependency graph for color.c:

Data Structures

struct  _ColormapInfo

Defines

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

Typedefs

typedef struct _ColormapInfo ColormapInfo

Functions

static MagickBooleanType IsColorCacheInstantiated (ExceptionInfo *)
static MagickBooleanType LoadColorCache (LinkedListInfo *, const char *, const char *, const size_t, ExceptionInfo *)
static LinkedListInfoAcquireColorCache (const char *filename, ExceptionInfo *exception)
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)
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)
MagickPrivate MagickBooleanType IsIntensitySimilar (const Image *image, const PixelPacket *p, const PixelPacket *q)
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)
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_cache = (LinkedListInfo *) NULL
static SemaphoreInfocolor_semaphore = (SemaphoreInfo *) NULL

Define Documentation

#define ColorFilename   "colors.xml"
#define SearchImageText   " Searching image... "

Referenced by IsImageSimilar().

#define SVGCompliant ( component   ) 

Typedef Documentation

typedef struct _ColormapInfo ColormapInfo

Function Documentation

static LinkedListInfo* AcquireColorCache ( const char *  filename,
ExceptionInfo exception 
) [static]
static int ColorCompare ( const void *  x,
const void *  y 
) [static]

References LocaleCompare().

Referenced by GetColorList().

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

References LocaleCompare().

Referenced by GetColorInfoList().

MagickExport void ConcatenateColorComponent ( const MagickPixelPacket pixel,
const ChannelType  channel,
const ComplianceType  compliance,
char *  tuple 
)
static void ConcatentateHexColorComponent ( const MagickPixelPacket pixel,
const ChannelType  channel,
char *  tuple 
) [static]
static void* DestroyColorElement ( void *  color_info  )  [static]
MagickExport const ColorInfo* GetColorCompliance ( const char *  name,
const ComplianceType  compliance,
ExceptionInfo exception 
)
MagickExport const ColorInfo* GetColorInfo ( const char *  name,
ExceptionInfo exception 
)
MagickExport const ColorInfo** GetColorInfoList ( const char *  pattern,
size_t *  number_colors,
ExceptionInfo exception 
)
MagickExport char** GetColorList ( const char *  pattern,
size_t *  number_colors,
ExceptionInfo exception 
)
MagickExport void GetColorTuple ( const MagickPixelPacket pixel,
const MagickBooleanType  hex,
char *  tuple 
)
static MagickBooleanType IsColorCacheInstantiated ( ExceptionInfo exception  )  [static]
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 
)
MagickPrivate MagickBooleanType IsIntensitySimilar ( const Image image,
const PixelPacket p,
const PixelPacket q 
)
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 LoadColorCache ( LinkedListInfo cache,
const char *  xml,
const char *  filename,
const size_t  depth,
ExceptionInfo exception 
)
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 QueryMagickColor ( const char *  name,
MagickPixelPacket color,
ExceptionInfo exception 
)
MagickExport MagickBooleanType QueryMagickColorCompliance ( const char *  name,
const ComplianceType  compliance,
MagickPixelPacket color,
ExceptionInfo exception 
)
MagickExport MagickBooleanType QueryMagickColorname ( const Image image,
const MagickPixelPacket color,
const ComplianceType  compliance,
char *  name,
ExceptionInfo exception 
)

Variable Documentation

const ColormapInfo Colormap[] [static]

Generated on 19 Aug 2019 for MagickCore by  doxygen 1.6.1