MagickCore
7.0.9
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/blob.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/cache.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/client.h"
#include "MagickCore/configure.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/gem.h"
#include "MagickCore/gem-private.h"
#include "MagickCore/geometry.h"
#include "MagickCore/image-private.h"
#include "MagickCore/memory_.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/quantize.h"
#include "MagickCore/quantum.h"
#include "MagickCore/quantum-private.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
#include "MagickCore/xml-tree.h"
#include "MagickCore/xml-tree-private.h"
Data Structures | |
struct | _ColormapInfo |
Macros | |
#define | ColorFilename "colors.xml" |
#define | SVGCompliant(component) |
#define | SearchImageText " Searching image... " |
Typedefs | |
typedef struct _ColormapInfo | ColormapInfo |
Variables | |
static const ColormapInfo | Colormap [] |
static LinkedListInfo * | color_cache = (LinkedListInfo *) NULL |
static SemaphoreInfo * | color_semaphore = (SemaphoreInfo *) NULL |
#define ColorFilename "colors.xml" |
Referenced by IsColorCacheInstantiated().
#define SearchImageText " Searching image... " |
Referenced by IsEquivalentImage().
#define SVGCompliant | ( | component | ) |
Referenced by IsSVGCompliant().
typedef struct _ColormapInfo ColormapInfo |
|
static |
References AcquireMagickMemory(), _ColormapInfo::alpha, _PixelInfo::alpha, AppendValueToLinkedList(), _ColormapInfo::blue, _PixelInfo::blue, _ColorInfo::color, Colormap, _ColorInfo::compliance, _ColormapInfo::compliance, DestroyConfigureOptions(), _ColorInfo::exempt, GetConfigureOptions(), GetMagickModule, GetNextValueInLinkedList(), GetPixelInfo(), GetStringInfoDatum(), GetStringInfoPath(), _ColormapInfo::green, _PixelInfo::green, LoadColorCache(), MagickCoreSignature, MagickFalse, MagickTrue, _ColorInfo::name, _ColormapInfo::name, NewLinkedList(), _ColorInfo::path, QuantumRange, _ColormapInfo::red, _PixelInfo::red, ResourceLimitError, _ColorInfo::signature, and ThrowMagickException().
Referenced by IsColorCacheInstantiated().
|
static |
References LocaleCompare().
Referenced by GetColorList().
MagickPrivate MagickBooleanType ColorComponentGenesis | ( | void | ) |
References AcquireSemaphoreInfo(), color_semaphore, and MagickTrue.
MagickPrivate void ColorComponentTerminus | ( | void | ) |
References ActivateSemaphoreInfo(), color_cache, color_semaphore, DestroyColorElement(), DestroyLinkedList(), LockSemaphoreInfo(), RelinquishSemaphoreInfo(), and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
|
static |
References LocaleCompare().
Referenced by GetColorInfoList().
MagickExport void ConcatenateColorComponent | ( | const PixelInfo * | pixel, |
const PixelChannel | channel, | ||
const ComplianceType | compliance, | ||
char * | tuple | ||
) |
References _PixelInfo::alpha, AlphaPixelChannel, _PixelInfo::black, BlackPixelChannel, _PixelInfo::blue, BluePixelChannel, _PixelInfo::colorspace, ConcatenateMagickString(), _PixelInfo::depth, FormatLocaleString(), GetMagickPrecision(), _PixelInfo::green, GreenPixelChannel, _PixelInfo::index, IndexPixelChannel, IsHueCompatibleColorspace(), IssRGBCompatibleColorspace(), LabColorspace, MagickEpsilon, MagickFalse, MagickPathExtent, NoCompliance, QuantumRange, QuantumScale, _PixelInfo::red, and RedPixelChannel.
Referenced by GetColorTuple(), GetNumberColors(), and IdentifyImage().
|
static |
References _PixelInfo::alpha, AlphaPixelChannel, _PixelInfo::black, BlackPixelChannel, _PixelInfo::blue, BluePixelChannel, ClampToQuantum(), ConcatenateMagickString(), _PixelInfo::depth, FormatLocaleString(), _PixelInfo::green, GreenPixelChannel, MagickPathExtent, _PixelInfo::red, and RedPixelChannel.
Referenced by GetColorTuple().
|
static |
References DestroyString(), _ColorInfo::exempt, MagickFalse, _ColorInfo::name, _ColorInfo::path, and RelinquishMagickMemory().
Referenced by ColorComponentTerminus().
MagickExport const ColorInfo* GetColorCompliance | ( | const char * | name, |
const ComplianceType | compliance, | ||
ExceptionInfo * | exception | ||
) |
References color_cache, color_semaphore, _ColorInfo::compliance, CopyMagickString(), GetMagickModule, GetNextValueInLinkedList(), InsertValueInLinkedList(), IsColorCacheInstantiated(), LocaleCompare(), LockSemaphoreInfo(), MagickFalse, MagickPathExtent, _ColorInfo::name, OptionWarning, RemoveElementByValueFromLinkedList(), ResetLinkedListIterator(), ThrowMagickException(), and UnlockSemaphoreInfo().
Referenced by GetColorInfo(), and QueryColorCompliance().
MagickExport const ColorInfo* GetColorInfo | ( | const char * | name, |
ExceptionInfo * | exception | ||
) |
References AllCompliance, and GetColorCompliance().
Referenced by GetColorInfoList(), GetColorList(), and QueryColorname().
MagickExport const ColorInfo** GetColorInfoList | ( | const char * | pattern, |
size_t * | number_colors, | ||
ExceptionInfo * | exception | ||
) |
References AcquireQuantumMemory(), color_cache, color_semaphore, ColorInfoCompare(), GetColorInfo(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, _ColorInfo::name, ResetLinkedListIterator(), _ColorInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
Referenced by ListColorInfo().
MagickExport char** GetColorList | ( | const char * | pattern, |
size_t * | number_colors, | ||
ExceptionInfo * | exception | ||
) |
References AcquireQuantumMemory(), color_cache, color_semaphore, ColorCompare(), ConstantString(), GetColorInfo(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, _ColorInfo::name, ResetLinkedListIterator(), _ColorInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
MagickExport void GetColorTuple | ( | const PixelInfo * | pixel, |
const MagickBooleanType | hex, | ||
char * | tuple | ||
) |
References _PixelInfo::alpha_trait, AlphaPixelChannel, BlackPixelChannel, BluePixelChannel, CMYKColorspace, _PixelInfo::colorspace, CommandOptionToMnemonic(), ConcatenateColorComponent(), ConcatenateMagickString(), ConcatentateHexColorComponent(), _PixelInfo::depth, GetMagickModule, GRAYColorspace, GrayPixelChannel, GreenPixelChannel, IsSVGCompliant(), LinearGRAYColorspace, LocaleLower(), LogMagickEvent(), MagickColorspaceOptions, MagickFalse, MagickPathExtent, RedPixelChannel, SVGCompliance, TraceEvent, and UndefinedPixelTrait.
Referenced by ConnectedComponentsImage(), GetNumberColors(), IdentifyImage(), InterpretImageProperties(), ListColorInfo(), and QueryColorname().
|
static |
References AcquireColorCache(), ActivateSemaphoreInfo(), color_cache, color_semaphore, ColorFilename, LockSemaphoreInfo(), MagickFalse, MagickTrue, and UnlockSemaphoreInfo().
Referenced by GetColorCompliance().
MagickPrivate MagickBooleanType IsEquivalentAlpha | ( | const Image * | image, |
const PixelInfo * | p, | ||
const PixelInfo * | q | ||
) |
References _PixelInfo::alpha, _Image::alpha_trait, _Image::fuzz, MagickFalse, MagickMax, MagickSQ1_2, MagickTrue, and UndefinedPixelTrait.
MagickExport MagickBooleanType IsEquivalentImage | ( | const Image * | image, |
const Image * | target_image, | ||
ssize_t * | x_offset, | ||
ssize_t * | y_offset, | ||
ExceptionInfo * | exception | ||
) |
References AcquireVirtualCacheView(), _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelInfo(), GetPixelInfoPixel(), IsFuzzyEquivalencePixelInfo(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, _Image::rows, SearchImageText, SetImageProgress(), _Image::signature, and TraceEvent.
MagickPrivate MagickBooleanType IsEquivalentIntensity | ( | const Image * | image, |
const PixelInfo * | p, | ||
const PixelInfo * | q | ||
) |
References _Image::fuzz, GetPixelInfoIntensity(), MagickFalse, MagickMax, MagickSQ1_2, and MagickTrue.
|
inlinestatic |
References _PixelInfo::alpha, _PixelInfo::alpha_trait, _PixelInfo::black, _PixelInfo::blue, CMYKColorspace, _PixelInfo::colorspace, _PixelInfo::green, MagickEpsilon, MagickFalse, MagickTrue, _PixelInfo::red, SVGCompliant, and UndefinedPixelTrait.
Referenced by GetColorTuple().
MagickExport MagickBooleanType ListColorInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
|
static |
References AcquireCriticalMemory(), AcquireString(), AllCompliance, AppendValueToLinkedList(), _ColorInfo::color, _ColorInfo::compliance, ConcatenateMagickString(), ConfigureError, ConfigureEvent, ConstantString(), CopyMagickString(), DestroyString(), DirectorySeparator, _ColorInfo::exempt, FileToXML(), GetMagickModule, GetNextToken(), GetPathComponent(), HeadPath, IsStringTrue(), LocaleCompare(), LocaleNCompare(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickMaxRecursionDepth, MagickPathExtent, MagickTrue, _ColorInfo::name, _ColorInfo::path, QueryColorCompliance(), RelinquishMagickMemory(), ResourceLimitError, _ColorInfo::signature, _ColorInfo::stealth, StringLocateSubstring(), SVGCompliance, ThrowMagickException(), X11Compliance, and XPMCompliance.
Referenced by AcquireColorCache().
MagickExport MagickBooleanType QueryColorCompliance | ( | const char * | name, |
const ComplianceType | compliance, | ||
PixelInfo * | color, | ||
ExceptionInfo * | exception | ||
) |
References AcquireString(), AllCompliance, _PixelInfo::alpha, _PixelPacket::alpha, _PixelInfo::alpha_trait, BackgroundColor, _PixelInfo::black, BlendPixelTrait, _PixelInfo::blue, _PixelPacket::blue, _GeometryInfo::chi, ChiValue, ClampToQuantum(), CMYKColorspace, _ColorInfo::color, _PixelInfo::colorspace, ConvertHCLToRGB(), ConvertHSBToRGB(), ConvertHSLToRGB(), ConvertHWBToRGB(), CopyMagickString(), _PixelInfo::depth, DestroyString(), GetColorCompliance(), GetMagickModule, GetPixelInfo(), GetQuantumRange(), GRAYColorspace, _PixelInfo::green, _PixelPacket::green, HCLColorspace, HSBColorspace, HSLColorspace, HWBColorspace, LabColorspace, LocaleCompare(), LocaleLower(), LocaleNCompare(), LogMagickEvent(), MagickColorspaceOptions, MagickFalse, MagickPathExtent, MagickTrue, OpaqueAlpha, OptionWarning, ParseCommandOption(), ParseGeometry(), PercentValue, _GeometryInfo::psi, PsiValue, QuantumRange, _PixelInfo::red, _PixelPacket::red, RGBColorspace, _GeometryInfo::rho, RhoValue, ScaleAnyToQuantum(), SetGeometryInfo(), _GeometryInfo::sigma, SigmaValue, sRGBColorspace, SubstituteString(), ThrowMagickException(), TraceEvent, UndefinedPixelTrait, _GeometryInfo::xi, and XiValue.
Referenced by AcquireImage(), CompareImages(), ConnectedComponentsImage(), DrawBoundingRectangles(), DrawClippingMask(), DrawCompositeMask(), DrawPatternPath(), FloodfillPaintImage(), FxGetSymbol(), GetDrawInfo(), GetEdgeBackgroundFactor(), GetImageInfo(), KmeansImage(), LoadColorCache(), MontageImageList(), PolaroidImage(), PreviewImage(), RenderMVGContent(), SetImageProperty(), ShadowImage(), SyncImageSettings(), and VignetteImage().
MagickExport MagickBooleanType QueryColorname | ( | const Image * | magick_unusedimage, |
const PixelInfo * | color, | ||
const ComplianceType | compliance, | ||
char * | name, | ||
ExceptionInfo * | exception | ||
) |
References _PixelInfo::alpha, _PixelInfo::alpha_trait, _PixelInfo::blue, _ColorInfo::color, color_cache, _PixelInfo::colorspace, _ColorInfo::compliance, CopyMagickString(), _PixelInfo::depth, GetColorInfo(), GetColorTuple(), GetNextValueInLinkedList(), _PixelInfo::green, IssRGBColorspace(), magick_unreferenced, MagickEpsilon, MagickFalse, MagickPathExtent, MagickTrue, _ColorInfo::name, OpaqueAlpha, _PixelInfo::red, ResetLinkedListIterator(), SVGCompliance, UndefinedPixelTrait, and XPMCompliance.
Referenced by AnnotateImage(), GetNumberColors(), IdentifyImage(), and InterpretImageProperties().
|
static |
|
static |
|
static |
Referenced by AcquireColorCache().