MagickCore 6.9.12
|
#include "magick/studio.h"
#include "magick/accelerate-private.h"
#include "magick/annotate.h"
#include "magick/artifact.h"
#include "magick/attribute.h"
#include "magick/cache.h"
#include "magick/cache-view.h"
#include "magick/channel.h"
#include "magick/color.h"
#include "magick/color-private.h"
#include "magick/colorspace.h"
#include "magick/colorspace-private.h"
#include "magick/composite.h"
#include "magick/decorate.h"
#include "magick/distort.h"
#include "magick/draw.h"
#include "magick/effect.h"
#include "magick/enhance.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/fx.h"
#include "magick/fx-private.h"
#include "magick/gem.h"
#include "magick/geometry.h"
#include "magick/layer.h"
#include "magick/list.h"
#include "magick/log.h"
#include "magick/image.h"
#include "magick/image-private.h"
#include "magick/magick.h"
#include "magick/memory_.h"
#include "magick/memory-private.h"
#include "magick/monitor.h"
#include "magick/monitor-private.h"
#include "magick/opencl-private.h"
#include "magick/option.h"
#include "magick/pixel-accessor.h"
#include "magick/pixel-private.h"
#include "magick/property.h"
#include "magick/quantum.h"
#include "magick/quantum-private.h"
#include "magick/random_.h"
#include "magick/random-private.h"
#include "magick/resample.h"
#include "magick/resample-private.h"
#include "magick/resize.h"
#include "magick/resource_.h"
#include "magick/splay-tree.h"
#include "magick/statistic.h"
#include "magick/string_.h"
#include "magick/string-private.h"
#include "magick/thread-private.h"
#include "magick/threshold.h"
#include "magick/token.h"
#include "magick/transform.h"
#include "magick/utility.h"
Go to the source code of this file.
Data Structures | |
struct | _FxInfo |
Macros | |
#define | FxMaxFunctionDepth 200 |
#define | FxMaxParenthesisDepth 58 |
#define | FxMaxSubexpressionDepth 200 |
#define | FxReturn(value) |
#define | FxParseConditional(subexpression, sentinal, p, q) |
#define | FxImageTag "Fx/Image" |
Functions | |
MagickExport FxInfo * | AcquireFxInfo (const Image *images, const char *expression) |
MagickExport FxInfo * | DestroyFxInfo (FxInfo *fx_info) |
static const double * | GetFxSymbolValue (FxInfo *fx_info, const char *symbol) |
static MagickBooleanType | SetFxSymbolValue (FxInfo *magick_restrict fx_info, const char *magick_restrict symbol, const double value) |
static double | FxChannelStatistics (FxInfo *fx_info, const Image *image, ChannelType channel, const char *symbol, ExceptionInfo *exception) |
static double | FxEvaluateSubexpression (FxInfo *, const ChannelType, const ssize_t, const ssize_t, const char *, const size_t, double *, ExceptionInfo *) |
static MagickBooleanType | IsFxFunction (const char *expression, const char *name, const size_t length) |
static double | FxGCD (const double alpha, const double beta, const size_t depth) |
static const char * | FxSubexpression (const char *expression, ExceptionInfo *exception) |
static double | FxGetSymbol (FxInfo *fx_info, const ChannelType channel, const ssize_t x, const ssize_t y, const char *expression, const size_t depth, ExceptionInfo *exception) |
static const char * | FxOperatorPrecedence (const char *expression, ExceptionInfo *exception) |
MagickExport MagickBooleanType | FxEvaluateExpression (FxInfo *fx_info, double *alpha, ExceptionInfo *exception) |
MagickExport MagickBooleanType | FxPreprocessExpression (FxInfo *fx_info, double *alpha, ExceptionInfo *exception) |
MagickExport MagickBooleanType | FxEvaluateChannelExpression (FxInfo *fx_info, const ChannelType channel, const ssize_t x, const ssize_t y, double *alpha, ExceptionInfo *exception) |
static FxInfo ** | DestroyFxTLS (FxInfo **fx_info) |
static FxInfo ** | AcquireFxTLS (const Image *image, const char *expression, ExceptionInfo *exception) |
MagickExport Image * | FxImage (const Image *image, const char *expression, ExceptionInfo *exception) |
MagickExport Image * | FxImageChannel (const Image *image, const ChannelType channel, const char *expression, ExceptionInfo *exception) |
#define FxImageTag "Fx/Image" |
#define FxMaxFunctionDepth 200 |
#define FxMaxParenthesisDepth 58 |
#define FxMaxSubexpressionDepth 200 |
#define FxParseConditional | ( | subexpression, | |
sentinal, | |||
p, | |||
q | |||
) |
#define FxReturn | ( | value | ) |
enum FxOperator |
MagickExport FxInfo * AcquireFxInfo | ( | const Image * | images, |
const char * | expression | ||
) |
Definition at line 177 of file fx.c.
References AcquireCriticalMemory(), AcquireExceptionInfo(), AcquireQuantumMemory(), AcquireRandomInfo(), AcquireVirtualCacheView(), BitwiseAndAssignmentOperator, BitwiseOrAssignmentOperator, _FxInfo::colors, CompareSplayTreeString(), ConstantString(), DecrementAssignmentOperator, DivideAssignmentOperator, EqualOperator, _FxInfo::exception, ExponentialNotation, _FxInfo::expression, _FxInfo::file, GetFirstImageInList(), GetImageListLength(), GreaterThanEqualOperator, _FxInfo::images, IncrementAssignmentOperator, LeftShiftAssignmentOperator, LeftShiftOperator, LessThanEqualOperator, LogicalAndOperator, LogicalOrOperator, ModuloAssignmentOperator, MultiplyAssignmentOperator, NewSplayTree(), _Image::next, NotEqualOperator, PlusAssignmentOperator, PowerAssignmentOperator, _FxInfo::random_info, RelinquishMagickMemory(), ResourceLimitFatalError, RightShiftAssignmentOperator, RightShiftOperator, SubstituteString(), SubtractAssignmentOperator, _FxInfo::symbols, ThrowFatalException, and _FxInfo::view.
Referenced by AcquireFxTLS().
|
static |
Definition at line 2737 of file fx.c.
References AcquireFxInfo(), AcquireQuantumMemory(), ConstantString(), DestroyFxTLS(), DestroyString(), _Image::filename, FileToString(), FxPreprocessExpression(), GetMagickModule, GetMagickResourceLimit(), MagickFalse, ResourceLimitError, ThreadResource, and ThrowMagickException().
Referenced by FxImageChannel().
MagickExport FxInfo * DestroyFxInfo | ( | FxInfo * | fx_info | ) |
Definition at line 292 of file fx.c.
References _FxInfo::colors, DestroyCacheView(), DestroyExceptionInfo(), DestroyRandomInfo(), DestroySplayTree(), DestroyString(), _FxInfo::exception, _FxInfo::expression, GetImageListLength(), _FxInfo::images, _FxInfo::random_info, RelinquishMagickMemory(), _FxInfo::symbols, and _FxInfo::view.
Referenced by DestroyFxTLS(), GetImageProperty(), and InterpretImageProperties().
Definition at line 2724 of file fx.c.
References DestroyFxInfo(), GetMagickResourceLimit(), RelinquishMagickMemory(), and ThreadResource.
Referenced by AcquireFxTLS(), and FxImageChannel().
|
static |
Definition at line 375 of file fx.c.
References CopyMagickString(), FormatLocaleString(), GetFxSymbolValue(), GetImageChannelDepth(), GetImageChannelKurtosis(), GetImageChannelMean(), GetImageChannelRange(), LocaleNCompare(), MagickChannelOptions, MagickFalse, MagickTrue, MaxTextExtent, ParseCommandOption(), QuantumScale, and SetFxSymbolValue().
Referenced by FxGetSymbol().
MagickExport MagickBooleanType FxEvaluateChannelExpression | ( | FxInfo * | fx_info, |
const ChannelType | channel, | ||
const ssize_t | x, | ||
const ssize_t | y, | ||
double * | alpha, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2679 of file fx.c.
References _FxInfo::expression, FxEvaluateSubexpression(), MagickFalse, MagickTrue, OptionError, and _ExceptionInfo::severity.
Referenced by FxEvaluateExpression(), FxImageChannel(), FxPreprocessExpression(), GetImageProperty(), and InterpretImageProperties().
MagickExport MagickBooleanType FxEvaluateExpression | ( | FxInfo * | fx_info, |
double * | alpha, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2653 of file fx.c.
References FxEvaluateChannelExpression(), and GrayChannel.
|
static |
Definition at line 1418 of file fx.c.
References AcquireString(), AlphaChannel, BitwiseAndAssignmentOperator, BitwiseOrAssignmentOperator, BlackChannel, BlueChannel, ClearMagickException(), CMYKColorspace, _Image::colorspace, CopyMagickString(), CyanChannel, DecrementAssignmentOperator, DivideAssignmentOperator, EqualOperator, ErrorException, ExponentialNotation, _FxInfo::file, _Image::filename, FormatLocaleFile(), FxEvaluateSubexpression(), FxGCD(), FxGetSymbol(), FxMaxParenthesisDepth, FxMaxSubexpressionDepth, FxOperatorPrecedence(), FxParseConditional, FxReturn, GetMagickModule, GetMagickPrecision(), GetPseudoRandomValue(), GRAYColorspace, GreaterThanEqualOperator, GreenChannel, _FxInfo::images, IncrementAssignmentOperator, InterpretSiPrefixValue(), IsFxFunction(), IsNaN, LeftShiftAssignmentOperator, LeftShiftOperator, LessThanEqualOperator, LocaleCompare(), LocaleNCompare(), LogicalAndOperator, LogicalOrOperator, MagentaChannel, MagickEpsilon, MagickFalse, MagickPathExtent, MagickPHI, MagickPI, MaxTextExtent, ModuloAssignmentOperator, MultiplyAssignmentOperator, NotEqualOperator, OptionError, PerceptibleReciprocal(), PlusAssignmentOperator, PowerAssignmentOperator, QuantumRange, QuantumScale, _FxInfo::random_info, RedChannel, RightShiftAssignmentOperator, RightShiftOperator, SetFxSymbolValue(), _ExceptionInfo::severity, SubtractAssignmentOperator, ThrowMagickException(), and YellowChannel.
Referenced by FxEvaluateChannelExpression(), FxEvaluateSubexpression(), and FxGetSymbol().
|
inlinestatic |
Definition at line 503 of file fx.c.
References FxGCD(), and FxMaxFunctionDepth.
Referenced by FxEvaluateSubexpression(), and FxGCD().
|
static |
Definition at line 542 of file fx.c.
References AcquireString(), AddValueToSplayTree(), BlackChannel, _MagickPixelPacket::blue, BlueChannel, _GeometryInfo::chi, ChiValue, ClampToQuantum(), CloneMagickPixelPacket(), CMYKColorspace, _FxInfo::colors, _Image::colorspace, _Image::columns, ConstantString(), ConvertRGBToHSL(), CopyMagickString(), CyanChannel, DefaultChannels, DestroyString(), _FxInfo::exception, _Image::extent, _Image::filename, FxChannelStatistics(), FxEvaluateSubexpression(), GetBlobSize(), GetFxSymbolValue(), GetImageArtifact(), GetImageChannelDepth(), GetImageFromList(), GetImageIndexInList(), GetImageListLength(), GetMagickModule, GetMagickPixelIntensity(), GetMagickPixelPacket(), GetPixelAlpha, GetValueFromSplayTree(), _MagickPixelPacket::green, GreenChannel, _RectangleInfo::height, ImageError, _FxInfo::images, _MagickPixelPacket::index, IndexChannel, _Image::interpolate, InterpolateMagickPixelPacket(), IsFxFunction(), LocaleCompare(), LocaleNCompare(), MagentaChannel, MagickFalse, _MagickPixelPacket::matte, MaxTextExtent, _MagickPixelPacket::opacity, OpacityChannel, OptionError, _Image::page, ParseGeometry(), PerceptibleReciprocal(), _GeometryInfo::psi, PsiValue, _Image::quality, QuantumScale, QueryMagickColor(), _MagickPixelPacket::red, RedChannel, _GeometryInfo::rho, RhoValue, _Image::rows, SetFxSymbolValue(), _GeometryInfo::sigma, SigmaValue, StringToDouble(), StripString(), ThrowMagickException(), _FxInfo::view, _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, _Image::x_resolution, _GeometryInfo::xi, XiValue, _PointInfo::y, _RectangleInfo::y, _Image::y_resolution, and YellowChannel.
Referenced by FxEvaluateSubexpression().
MagickExport Image * FxImage | ( | const Image * | image, |
const char * | expression, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2786 of file fx.c.
References FxImageChannel(), and GrayChannel.
MagickExport Image * FxImageChannel | ( | const Image * | image, |
const ChannelType | channel, | ||
const char * | expression, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2796 of file fx.c.
References AcquireAuthenticCacheView(), AcquireFxTLS(), BlueChannel, ClampToQuantum(), CloneImage(), CMYKColorspace, _Image::colorspace, _Image::columns, DestroyCacheView(), DestroyFxTLS(), DestroyImage(), DirectClass, _Image::exception, _Image::filename, FxEvaluateChannelExpression(), FxImageTag, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetOpenMPThreadId(), GreenChannel, IndexChannel, InheritException(), IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::matte, OpacityChannel, _Image::progress_monitor, QuantumRange, RedChannel, _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelBlue, SetPixelGreen, SetPixelIndex, SetPixelOpacity, SetPixelRed, _Image::signature, SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by FxImage().
|
static |
Definition at line 1144 of file fx.c.
References BitwiseAndAssignmentOperator, BitwiseOrAssignmentOperator, DecrementAssignmentOperator, DivideAssignmentOperator, EqualOperator, ExponentialNotation, FxSubexpression(), GreaterThanEqualOperator, IncrementAssignmentOperator, IsFxFunction(), LeftShiftAssignmentOperator, LeftShiftOperator, LessThanEqualOperator, LocaleNCompare(), LogicalAndOperator, LogicalOrOperator, MagickFalse, ModuloAssignmentOperator, MultiplyAssignmentOperator, NotEqualOperator, PlusAssignmentOperator, PowerAssignmentOperator, RightShiftAssignmentOperator, RightShiftOperator, and SubtractAssignmentOperator.
Referenced by FxEvaluateSubexpression().
MagickExport MagickBooleanType FxPreprocessExpression | ( | FxInfo * | fx_info, |
double * | alpha, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2663 of file fx.c.
References _FxInfo::file, FxEvaluateChannelExpression(), and GrayChannel.
Referenced by AcquireFxTLS().
|
inlinestatic |
Definition at line 515 of file fx.c.
References GetMagickModule, OptionError, and ThrowMagickException().
Referenced by FxOperatorPrecedence().
|
inlinestatic |
Definition at line 345 of file fx.c.
References GetValueFromSplayTree(), and _FxInfo::symbols.
Referenced by FxChannelStatistics(), and FxGetSymbol().
|
inlinestatic |
Definition at line 484 of file fx.c.
References LocaleNCompare(), MagickFalse, and MagickTrue.
Referenced by FxEvaluateSubexpression(), FxGetSymbol(), and FxOperatorPrecedence().
|
inlinestatic |
Definition at line 350 of file fx.c.
References AcquireMagickMemory(), AddValueToSplayTree(), ConstantString(), GetMagickModule, GetValueFromSplayTree(), MagickFalse, MagickTrue, ResourceLimitError, and ThrowMagickException().
Referenced by FxChannelStatistics(), FxEvaluateSubexpression(), and FxGetSymbol().