#include "MagickCore/studio.h"
#include "MagickCore/accelerate-private.h"
#include "MagickCore/annotate.h"
#include "MagickCore/artifact.h"
#include "MagickCore/attribute.h"
#include "MagickCore/cache.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/channel.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/composite.h"
#include "MagickCore/decorate.h"
#include "MagickCore/distort.h"
#include "MagickCore/draw.h"
#include "MagickCore/effect.h"
#include "MagickCore/enhance.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/fx.h"
#include "MagickCore/fx-private.h"
#include "MagickCore/gem.h"
#include "MagickCore/gem-private.h"
#include "MagickCore/geometry.h"
#include "MagickCore/layer.h"
#include "MagickCore/list.h"
#include "MagickCore/log.h"
#include "MagickCore/image.h"
#include "MagickCore/image-private.h"
#include "MagickCore/magick.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/property.h"
#include "MagickCore/quantum.h"
#include "MagickCore/quantum-private.h"
#include "MagickCore/random_.h"
#include "MagickCore/random-private.h"
#include "MagickCore/resample.h"
#include "MagickCore/resample-private.h"
#include "MagickCore/resize.h"
#include "MagickCore/resource_.h"
#include "MagickCore/splay-tree.h"
#include "MagickCore/statistic.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/threshold.h"
#include "MagickCore/transform.h"
#include "MagickCore/transform-private.h"
#include "MagickCore/utility.h"
Data Structures | |
struct | _FxInfo |
Defines | |
#define | LeftShiftOperator 0xf5U |
#define | RightShiftOperator 0xf6U |
#define | LessThanEqualOperator 0xf7U |
#define | GreaterThanEqualOperator 0xf8U |
#define | EqualOperator 0xf9U |
#define | NotEqualOperator 0xfaU |
#define | LogicalAndOperator 0xfbU |
#define | LogicalOrOperator 0xfcU |
#define | ExponentialNotation 0xfdU |
#define | AddNoiseImageTag "AddNoise/Image" |
#define | BlueShiftImageTag "BlueShift/Image" |
#define | ColorizeImageTag "Colorize/Image" |
#define | Colorize(pixel, blend_percentage, colorize) (((pixel)*(100.0-(blend_percentage))+(colorize)*(blend_percentage))/100.0) |
#define | ColorMatrixImageTag "ColorMatrix/Image" |
#define | FxMaxParenthesisDepth 58 |
#define | FxMaxSubexpressionDepth 200 |
#define | FxReturn(value) |
#define | FxImageTag "Fx/Image" |
#define | ImplodeImageTag "Implode/Image" |
#define | MorphImageTag "Morph/Image" |
#define | SepiaToneImageTag "SepiaTone/Image" |
#define | ShadowImageTag "Shadow/Image" |
#define | SolarizeImageTag "Solarize/Image" |
#define | GetBit(alpha, i) ((((size_t) (alpha) >> (size_t) (i)) & 0x01) != 0) |
#define | SetBit(alpha, i, set) |
#define | SteganoImageTag "Stegano/Image" |
#define | StereoImageTag "Stereo/Image" |
#define | SwirlImageTag "Swirl/Image" |
#define | TintImageTag "Tint/Image" |
#define | WaveImageTag "Wave/Image" |
Functions | |
MagickPrivate FxInfo * | AcquireFxInfo (const Image *images, const char *expression, ExceptionInfo *exception) |
MagickExport Image * | AddNoiseImage (const Image *image, const NoiseType noise_type, const double attenuate, ExceptionInfo *exception) |
MagickExport Image * | BlueShiftImage (const Image *image, const double factor, ExceptionInfo *exception) |
MagickExport Image * | CharcoalImage (const Image *image, const double radius, const double sigma, ExceptionInfo *exception) |
MagickExport Image * | ColorizeImage (const Image *image, const char *blend, const PixelInfo *colorize, ExceptionInfo *exception) |
MagickExport Image * | ColorMatrixImage (const Image *image, const KernelInfo *color_matrix, ExceptionInfo *exception) |
MagickPrivate FxInfo * | DestroyFxInfo (FxInfo *fx_info) |
static double | FxChannelStatistics (FxInfo *fx_info, Image *image, PixelChannel channel, const char *symbol, ExceptionInfo *exception) |
static double | FxEvaluateSubexpression (FxInfo *, const PixelChannel, 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 MagickOffsetType | FxGCD (MagickOffsetType alpha, MagickOffsetType beta) |
static const char * | FxSubexpression (const char *expression, ExceptionInfo *exception) |
static double | FxGetSymbol (FxInfo *fx_info, const PixelChannel 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) |
MagickPrivate MagickBooleanType | FxEvaluateExpression (FxInfo *fx_info, double *alpha, ExceptionInfo *exception) |
MagickExport MagickBooleanType | FxPreprocessExpression (FxInfo *fx_info, double *alpha, ExceptionInfo *exception) |
MagickPrivate MagickBooleanType | FxEvaluateChannelExpression (FxInfo *fx_info, const PixelChannel channel, const ssize_t x, const ssize_t y, double *alpha, ExceptionInfo *exception) |
static FxInfo ** | DestroyFxThreadSet (FxInfo **fx_info) |
static FxInfo ** | AcquireFxThreadSet (const Image *image, const char *expression, ExceptionInfo *exception) |
MagickExport Image * | FxImage (const Image *image, const char *expression, ExceptionInfo *exception) |
MagickExport Image * | ImplodeImage (const Image *image, const double amount, const PixelInterpolateMethod method, ExceptionInfo *exception) |
MagickExport Image * | MorphImages (const Image *image, const size_t number_frames, ExceptionInfo *exception) |
static Quantum | PlasmaPixel (RandomInfo *random_info, const double pixel, const double noise) |
static MagickBooleanType | PlasmaImageProxy (Image *image, CacheView *image_view, CacheView *u_view, CacheView *v_view, RandomInfo *random_info, const SegmentInfo *segment, size_t attenuate, size_t depth, ExceptionInfo *exception) |
MagickExport MagickBooleanType | PlasmaImage (Image *image, const SegmentInfo *segment, size_t attenuate, size_t depth, ExceptionInfo *exception) |
MagickExport Image * | PolaroidImage (const Image *image, const DrawInfo *draw_info, const char *caption, const double angle, const PixelInterpolateMethod method, ExceptionInfo *exception) |
MagickExport Image * | SepiaToneImage (const Image *image, const double threshold, ExceptionInfo *exception) |
MagickExport Image * | ShadowImage (const Image *image, const double alpha, const double sigma, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception) |
MagickExport Image * | SketchImage (const Image *image, const double radius, const double sigma, const double angle, ExceptionInfo *exception) |
MagickExport MagickBooleanType | SolarizeImage (Image *image, const double threshold, ExceptionInfo *exception) |
MagickExport Image * | SteganoImage (const Image *image, const Image *watermark, ExceptionInfo *exception) |
MagickExport Image * | StereoImage (const Image *left_image, const Image *right_image, ExceptionInfo *exception) |
MagickExport Image * | StereoAnaglyphImage (const Image *left_image, const Image *right_image, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception) |
MagickExport Image * | SwirlImage (const Image *image, double degrees, const PixelInterpolateMethod method, ExceptionInfo *exception) |
MagickExport Image * | TintImage (const Image *image, const char *blend, const PixelInfo *tint, ExceptionInfo *exception) |
MagickExport Image * | VignetteImage (const Image *image, const double radius, const double sigma, const ssize_t x, const ssize_t y, ExceptionInfo *exception) |
MagickExport Image * | WaveImage (const Image *image, const double amplitude, const double wave_length, const PixelInterpolateMethod method, ExceptionInfo *exception) |
static void | HatTransform (const float *magick_restrict pixels, const size_t stride, const size_t extent, const size_t scale, float *kernel) |
MagickExport Image * | WaveletDenoiseImage (const Image *image, const double threshold, const double softness, ExceptionInfo *exception) |
#define AddNoiseImageTag "AddNoise/Image" |
Referenced by AddNoiseImage(), and WaveletDenoiseImage().
#define BlueShiftImageTag "BlueShift/Image" |
Referenced by BlueShiftImage().
#define Colorize | ( | pixel, | |||
blend_percentage, | |||||
colorize | ) | (((pixel)*(100.0-(blend_percentage))+(colorize)*(blend_percentage))/100.0) |
Referenced by ColorizeImage().
#define ColorizeImageTag "Colorize/Image" |
Referenced by ColorizeImage().
#define ColorMatrixImageTag "ColorMatrix/Image" |
Referenced by ColorMatrixImage().
#define EqualOperator 0xf9U |
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
#define ExponentialNotation 0xfdU |
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
#define FxMaxParenthesisDepth 58 |
Referenced by FxEvaluateSubexpression().
#define FxMaxSubexpressionDepth 200 |
Referenced by FxEvaluateSubexpression().
#define FxReturn | ( | value | ) |
{ \ subexpression=DestroyString(subexpression); \ return(value); \ }
Referenced by FxEvaluateSubexpression().
#define GetBit | ( | alpha, | |||
i | ) | ((((size_t) (alpha) >> (size_t) (i)) & 0x01) != 0) |
Referenced by SteganoImage().
#define GreaterThanEqualOperator 0xf8U |
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
#define ImplodeImageTag "Implode/Image" |
Referenced by ImplodeImage().
#define LeftShiftOperator 0xf5U |
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
#define LessThanEqualOperator 0xf7U |
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
#define LogicalAndOperator 0xfbU |
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
#define LogicalOrOperator 0xfcU |
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
#define MorphImageTag "Morph/Image" |
Referenced by MorphImages().
#define NotEqualOperator 0xfaU |
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
#define RightShiftOperator 0xf6U |
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
#define SepiaToneImageTag "SepiaTone/Image" |
Referenced by SepiaToneImage().
#define SetBit | ( | alpha, | |||
i, | |||||
set | ) |
(Quantum) ((set) != 0 ? (size_t) (alpha) \ | (one << (size_t) (i)) : (size_t) (alpha) & ~(one << (size_t) (i)))
Referenced by SteganoImage().
#define ShadowImageTag "Shadow/Image" |
#define SolarizeImageTag "Solarize/Image" |
Referenced by SolarizeImage().
#define SteganoImageTag "Stegano/Image" |
Referenced by SteganoImage().
#define StereoImageTag "Stereo/Image" |
Referenced by StereoAnaglyphImage().
#define SwirlImageTag "Swirl/Image" |
Referenced by SwirlImage().
#define TintImageTag "Tint/Image" |
Referenced by TintImage().
#define WaveImageTag "Wave/Image" |
Referenced by WaveImage().
MagickPrivate FxInfo* AcquireFxInfo | ( | const Image * | images, | |
const char * | expression, | |||
ExceptionInfo * | exception | |||
) |
References AcquireCriticalMemory(), AcquireExceptionInfo(), AcquireQuantumMemory(), AcquireRandomInfo(), AcquireVirtualCacheView(), _FxInfo::colors, CompareSplayTreeString(), ConstantString(), EqualOperator, _FxInfo::exception, ExponentialNotation, _FxInfo::expression, _FxInfo::file, GetFirstImageInList(), GetImageListLength(), GreaterThanEqualOperator, _FxInfo::images, LeftShiftOperator, LessThanEqualOperator, LogicalAndOperator, LogicalOrOperator, NewSplayTree(), _Image::next, NotEqualOperator, _FxInfo::random_info, RelinquishMagickMemory(), ResourceLimitFatalError, RightShiftOperator, SubstituteString(), _FxInfo::symbols, ThrowFatalException, and _FxInfo::view.
static FxInfo** AcquireFxThreadSet | ( | const Image * | image, | |
const char * | expression, | |||
ExceptionInfo * | exception | |||
) | [static] |
References AcquireFxInfo(), AcquireQuantumMemory(), ConstantString(), DestroyFxThreadSet(), DestroyString(), _Image::filename, FileToString(), FxPreprocessExpression(), GetMagickModule, GetMagickResourceLimit(), MagickFalse, ResourceLimitError, ThreadResource, and ThrowMagickException().
Referenced by FxImage().
MagickExport Image* AddNoiseImage | ( | const Image * | image, | |
const NoiseType | noise_type, | |||
const double | attenuate, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireRandomInfoThreadSet(), AcquireVirtualCacheView(), AddNoiseImageTag, ClampToQuantum(), CloneImage(), _Image::columns, CopyPixelTrait, _Image::debug, DestroyCacheView(), DestroyImage(), DestroyRandomInfoThreadSet(), DirectClass, _Image::filename, GenerateDifferentialNoise(), GetCacheViewVirtualPixels(), GetMagickModule, GetOpenMPThreadId(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetRandomSecretKey(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), random_info, _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and UndefinedPixelTrait.
MagickExport Image* BlueShiftImage | ( | const Image * | image, | |
const double | factor, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), _PixelInfo::blue, BlueShiftImageTag, ClampToQuantum(), CloneImage(), _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelRed(), _PixelInfo::green, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _PixelInfo::red, _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), and TraceEvent.
MagickExport Image* CharcoalImage | ( | const Image * | image, | |
const double | radius, | |||
const double | sigma, | |||
ExceptionInfo * | exception | |||
) |
References BlurImage(), ClampImage(), _Image::debug, DestroyImage(), EdgeImage(), _Image::filename, GetMagickModule, GrayscaleImage(), _Image::intensity, LogMagickEvent(), MagickCoreSignature, MagickFalse, NegateImage(), NormalizeImage(), _ExceptionInfo::signature, _Image::signature, and TraceEvent.
Referenced by PreviewImage().
MagickExport Image* ColorizeImage | ( | const Image * | image, | |
const char * | blend, | |||
const PixelInfo * | colorize, | |||
ExceptionInfo * | exception | |||
) |
References AcquireVirtualCacheView(), _PixelInfo::alpha, _PixelInfo::alpha_trait, _Image::alpha_trait, _PixelInfo::black, _PixelInfo::blue, _GeometryInfo::chi, ChiValue, ClampToQuantum(), CloneImage(), CMYKColorspace, Colorize, ColorizeImageTag, _PixelInfo::colorspace, _Image::colorspace, _Image::columns, CopyPixelTrait, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelChannels(), GetPixelChannelTraits(), GetPixelInfo(), GetPixelInfoChannel(), _PixelInfo::green, IsGrayColorspace(), IsPixelInfoGray(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, OpaqueAlpha, ParseGeometry(), _Image::progress_monitor, _GeometryInfo::psi, PsiValue, _PixelInfo::red, _GeometryInfo::rho, _Image::rows, SetImageAlpha(), SetImageColorspace(), SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), _GeometryInfo::sigma, SigmaValue, _ExceptionInfo::signature, _Image::signature, sRGBColorspace, SyncCacheViewAuthenticPixels(), TraceEvent, TransparentAlpha, UndefinedPixelTrait, _GeometryInfo::xi, and XiValue.
MagickExport Image* ColorMatrixImage | ( | const Image * | image, | |
const KernelInfo * | color_matrix, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireString(), AcquireVirtualCacheView(), _PixelInfo::alpha, _Image::alpha_trait, _PixelInfo::black, _PixelInfo::blue, CloneImage(), CMYKColorspace, ColorMatrixImageTag, _Image::colorspace, _Image::columns, ConcatenateString(), _Image::debug, DestroyCacheView(), DestroyImage(), DestroyString(), DirectClass, _Image::filename, FormatLocaleString(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetMagickModule, GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelInfo(), GetPixelInfoPixel(), GetPixelRed(), _PixelInfo::green, _KernelInfo::height, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, _Image::progress_monitor, QuantumRange, _PixelInfo::red, _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelViaPixelInfo(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, TransformEvent, UndefinedPixelTrait, _KernelInfo::values, and _KernelInfo::width.
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 DestroyFxThreadSet(), and InterpretImageProperties().
References DestroyFxInfo(), GetMagickResourceLimit(), RelinquishMagickMemory(), and ThreadResource.
Referenced by AcquireFxThreadSet(), and FxImage().
static double FxChannelStatistics | ( | FxInfo * | fx_info, | |
Image * | image, | |||
PixelChannel | channel, | |||
const char * | symbol, | |||
ExceptionInfo * | exception | |||
) | [static] |
References AddValueToSplayTree(), ConstantString(), DeleteNodeFromSplayTree(), FormatLocaleString(), GetImageDepth(), GetImageKurtosis(), GetImageMean(), GetImageRange(), GetValueFromSplayTree(), LocaleNCompare(), MagickPathExtent, MagickPixelChannelOptions, MagickTrue, ParseCommandOption(), QuantumScale, SetPixelChannelMask(), StringToDouble(), _FxInfo::symbols, and UndefinedChannel.
Referenced by FxGetSymbol().
MagickPrivate MagickBooleanType FxEvaluateChannelExpression | ( | FxInfo * | fx_info, | |
const PixelChannel | channel, | |||
const ssize_t | x, | |||
const ssize_t | y, | |||
double * | alpha, | |||
ExceptionInfo * | exception | |||
) |
References _FxInfo::expression, FxEvaluateSubexpression(), MagickFalse, MagickTrue, OptionError, and _ExceptionInfo::severity.
Referenced by FxEvaluateExpression(), FxImage(), FxPreprocessExpression(), and InterpretImageProperties().
MagickPrivate MagickBooleanType FxEvaluateExpression | ( | FxInfo * | fx_info, | |
double * | alpha, | |||
ExceptionInfo * | exception | |||
) |
References FxEvaluateChannelExpression(), and GrayPixelChannel.
static double FxEvaluateSubexpression | ( | FxInfo * | fx_info, | |
const PixelChannel | channel, | |||
const ssize_t | x, | |||
const ssize_t | y, | |||
const char * | expression, | |||
const size_t | depth, | |||
double * | beta, | |||
ExceptionInfo * | exception | |||
) | [static] |
References AcquireString(), AddValueToSplayTree(), AlphaPixelChannel, BlackPixelChannel, BluePixelChannel, ClearMagickException(), CMYKColorspace, _Image::colorspace, ConstantString(), CopyMagickString(), CyanPixelChannel, DeleteNodeFromSplayTree(), DestroyString(), EqualOperator, ErrorException, ExponentialNotation, _FxInfo::file, _Image::filename, FormatLocaleFile(), FormatLocaleString(), FxGCD(), FxGetSymbol(), FxMaxParenthesisDepth, FxMaxSubexpressionDepth, FxOperatorPrecedence(), FxReturn, GetMagickModule, GetMagickPrecision(), GetPseudoRandomValue(), GreaterThanEqualOperator, GreenPixelChannel, _FxInfo::images, InterpretSiPrefixValue(), IsFxFunction(), IsNaN, LeftShiftOperator, LessThanEqualOperator, LocaleCompare(), LocaleNCompare(), LogicalAndOperator, LogicalOrOperator, MagentaPixelChannel, MagickEpsilon, MagickFalse, MagickPathExtent, MagickPHI, MagickPI, NotEqualOperator, OptionError, PerceptibleReciprocal(), QuantumRange, QuantumScale, _FxInfo::random_info, RedPixelChannel, RightShiftOperator, _ExceptionInfo::severity, StringToken(), _FxInfo::symbols, ThrowMagickException(), and YellowPixelChannel.
Referenced by FxEvaluateChannelExpression(), and FxGetSymbol().
static MagickOffsetType FxGCD | ( | MagickOffsetType | alpha, | |
MagickOffsetType | beta | |||
) | [static] |
Referenced by FxEvaluateSubexpression().
static double FxGetSymbol | ( | FxInfo * | fx_info, | |
const PixelChannel | channel, | |||
const ssize_t | x, | |||
const ssize_t | y, | |||
const char * | expression, | |||
const size_t | depth, | |||
ExceptionInfo * | exception | |||
) | [static] |
References AcquireString(), AddValueToSplayTree(), AllCompliance, _PixelInfo::alpha, _PixelInfo::alpha_trait, AlphaPixelChannel, _PixelInfo::black, BlackPixelChannel, _PixelInfo::blue, BluePixelChannel, _GeometryInfo::chi, ChiValue, ClonePixelInfo(), CMYKColorspace, _FxInfo::colors, _Image::colorspace, _Image::columns, CompositePixelChannel, ConstantString(), ConvertRGBToHSL(), CopyMagickString(), CyanPixelChannel, DestroyString(), _FxInfo::exception, _Image::extent, _Image::filename, FxChannelStatistics(), FxEvaluateSubexpression(), GetBlobSize(), GetImageDepth(), GetImageFromList(), GetImageIndexInList(), GetImageListLength(), GetMagickModule, GetPixelInfo(), GetPixelIntensity(), GetValueFromSplayTree(), _PixelInfo::green, GreenPixelChannel, _RectangleInfo::height, ImageError, _FxInfo::images, IndexPixelChannel, _Image::interpolate, InterpolatePixelInfo(), IsFxFunction(), LocaleCompare(), LocaleNCompare(), MagentaPixelChannel, MagickFalse, MagickPathExtent, MaxPixelChannels, OptionError, _Image::page, ParseGeometry(), PerceptibleReciprocal(), _GeometryInfo::psi, PsiValue, _Image::quality, QuantumScale, QueryColorCompliance(), _PixelInfo::red, RedPixelChannel, _Image::resolution, _GeometryInfo::rho, RhoValue, _Image::rows, SetPixelViaPixelInfo(), _GeometryInfo::sigma, SigmaValue, StringToDouble(), StripString(), _FxInfo::symbols, ThrowMagickException(), UndefinedPixelTrait, _FxInfo::view, _RectangleInfo::width, _RectangleInfo::x, _PointInfo::x, _GeometryInfo::xi, XiValue, _RectangleInfo::y, _PointInfo::y, and YellowPixelChannel.
Referenced by FxEvaluateSubexpression().
MagickExport Image* FxImage | ( | const Image * | image, | |
const char * | expression, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireFxThreadSet(), AcquireVirtualCacheView(), ClampToQuantum(), CloneImage(), _Image::columns, CopyPixelTrait, _Image::debug, DestroyCacheView(), DestroyFxThreadSet(), DestroyImage(), DirectClass, _Image::filename, FxEvaluateChannelExpression(), FxImageTag, GetCacheViewVirtualPixels(), GetMagickModule, GetOpenMPThreadId(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, QuantumRange, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and UndefinedPixelTrait.
static const char* FxOperatorPrecedence | ( | const char * | expression, | |
ExceptionInfo * | exception | |||
) | [static] |
References EqualOperator, ExponentialNotation, FxSubexpression(), GreaterThanEqualOperator, IsFxFunction(), LeftShiftOperator, LessThanEqualOperator, LocaleNCompare(), LogicalAndOperator, LogicalOrOperator, MagickFalse, NotEqualOperator, and RightShiftOperator.
Referenced by FxEvaluateSubexpression().
MagickExport MagickBooleanType FxPreprocessExpression | ( | FxInfo * | fx_info, | |
double * | alpha, | |||
ExceptionInfo * | exception | |||
) |
References _FxInfo::file, FxEvaluateChannelExpression(), and GrayPixelChannel.
Referenced by AcquireFxThreadSet().
static const char* FxSubexpression | ( | const char * | expression, | |
ExceptionInfo * | exception | |||
) | [inline, static] |
References GetMagickModule, OptionError, and ThrowMagickException().
Referenced by FxOperatorPrecedence().
static void HatTransform | ( | const float *magick_restrict | pixels, | |
const size_t | stride, | |||
const size_t | extent, | |||
const size_t | scale, | |||
float * | kernel | |||
) | [inline, static] |
References magick_restrict.
Referenced by WaveletDenoiseImage().
MagickExport Image* ImplodeImage | ( | const Image * | image, | |
const double | amount, | |||
const PixelInterpolateMethod | method, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), _PixelInfo::alpha, _Image::alpha_trait, _Image::background_color, CloneImage(), _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), ImplodeImageTag, InterpolatePixelChannels(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickPI, MagickTrue, OpaqueAlpha, OpaqueAlphaChannel, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageAlphaChannel(), SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, UndefinedPixelTrait, _PointInfo::x, and _PointInfo::y.
Referenced by PreviewImage().
static MagickBooleanType IsFxFunction | ( | const char * | expression, | |
const char * | name, | |||
const size_t | length | |||
) | [inline, static] |
References LocaleNCompare(), MagickFalse, and MagickTrue.
Referenced by FxEvaluateSubexpression(), FxGetSymbol(), and FxOperatorPrecedence().
MagickExport Image* MorphImages | ( | const Image * | image, | |
const size_t | number_frames, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), AppendImageToList(), ClampToQuantum(), CloneImage(), _Image::columns, CopyPixelTrait, _Image::debug, DestroyCacheView(), DestroyImage(), DestroyImageList(), DirectClass, _Image::filename, _Image::filter, GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetFirstImageInList(), GetImageListLength(), GetLastImageInList(), GetMagickModule, GetNextImageInList(), GetPixelChannel(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MorphImageTag, _Image::progress_monitor, ResizeImage(), _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and UndefinedPixelTrait.
MagickExport MagickBooleanType PlasmaImage | ( | Image * | image, | |
const SegmentInfo * | segment, | |||
size_t | attenuate, | |||
size_t | depth, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireRandomInfo(), AcquireVirtualCacheView(), _Image::debug, DestroyCacheView(), DestroyRandomInfo(), DirectClass, GetMagickModule, LogMagickEvent(), MagickCoreSignature, MagickFalse, PlasmaImageProxy(), random_info, SetImageStorageClass(), _Image::signature, and TraceEvent.
static MagickBooleanType PlasmaImageProxy | ( | Image * | image, | |
CacheView * | image_view, | |||
CacheView * | u_view, | |||
CacheView * | v_view, | |||
RandomInfo * | random_info, | |||
const SegmentInfo * | segment, | |||
size_t | attenuate, | |||
size_t | depth, | |||
ExceptionInfo * | exception | |||
) | [static] |
References GetCacheViewVirtualPixels(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), magick_restrict, MagickEpsilon, MagickFalse, MagickTrue, PlasmaPixel(), QuantumRange, QueueCacheViewAuthenticPixels(), SyncCacheViewAuthenticPixels(), UndefinedPixelTrait, _SegmentInfo::x1, _SegmentInfo::x2, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by PlasmaImage().
static Quantum PlasmaPixel | ( | RandomInfo * | random_info, | |
const double | pixel, | |||
const double | noise | |||
) | [inline, static] |
References ClampToQuantum(), GetPseudoRandomValue(), and QuantumRange.
Referenced by PlasmaImageProxy().
MagickExport Image* PolaroidImage | ( | const Image * | image, | |
const DrawInfo * | draw_info, | |||
const char * | caption, | |||
const double | angle, | |||
const PixelInterpolateMethod | method, | |||
ExceptionInfo * | exception | |||
) |
References AcquireString(), AllCompliance, AnnotateImage(), _TypeMetric::ascent, _Image::background_color, _Image::border_color, CloneDrawInfo(), CloneImage(), CloneString(), _Image::columns, CompositeImage(), _Image::debug, _TypeMetric::descent, DestroyDrawInfo(), DestroyImage(), DestroyString(), _Image::filename, FlopImage(), FormatLocaleString(), FormatMagickCaption(), _DrawInfo::geometry, GetMagickModule, _DrawInfo::gravity, InterpretImageProperties(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickMax, MagickPathExtent, MagickTrue, OpaqueAlphaChannel, OverCompositeOp, QueryColorCompliance(), RotateImage(), _Image::rows, SetImageAlphaChannel(), SetImageBackgroundColor(), SetImageExtent(), ShadowImage(), _ExceptionInfo::signature, _Image::signature, _DrawInfo::text, TraceEvent, TrimImage(), UndefinedGravity, and WaveImage().
MagickExport Image* SepiaToneImage | ( | const Image * | image, | |
const double | threshold, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), ClampToQuantum(), CloneImage(), _Image::columns, ContrastImage(), _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetMagickModule, GetPixelAlpha(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelIntensity(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, NormalizeImage(), _Image::progress_monitor, QuantumRange, _Image::rows, SepiaToneImageTag, SetImageProgress(), SetImageStorageClass(), SetPixelAlpha(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), and TraceEvent.
MagickExport Image* ShadowImage | ( | const Image * | image, | |
const double | alpha, | |||
const double | sigma, | |||
const ssize_t | x_offset, | |||
const ssize_t | y_offset, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AllCompliance, _PixelInfo::alpha, _PixelInfo::alpha_trait, _Image::alpha_trait, AlphaChannel, _Image::background_color, BlendPixelTrait, BlurImage(), _Image::border_color, BorderImage(), CloneImage(), _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), EdgeVirtualPixelMethod, _Image::filename, GetMagickModule, GetPixelAlpha(), GetPixelChannels(), _RectangleInfo::height, IsGrayColorspace(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, OpaqueAlphaChannel, OverCompositeOp, _Image::page, QueryColorCompliance(), QueueCacheViewAuthenticPixels(), _Image::rows, SetImageAlphaChannel(), SetImageChannelMask(), SetImageColorspace(), SetImageVirtualPixelMethod(), SetPixelChannelMask(), SetPixelViaPixelInfo(), _ExceptionInfo::signature, _Image::signature, sRGBColorspace, SyncCacheViewAuthenticPixels(), TraceEvent, UndefinedPixelTrait, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by MontageImageList(), and PolaroidImage().
MagickExport Image* SketchImage | ( | const Image * | image, | |
const double | radius, | |||
const double | sigma, | |||
const double | angle, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireRandomInfoThreadSet(), _Image::alpha_trait, BlendCompositeOp, BlendPixelTrait, ClampImage(), ClampToQuantum(), CloneImage(), ColorDodgeCompositeOp, _Image::columns, CompositeImage(), DestroyCacheView(), DestroyImage(), DestroyRandomInfoThreadSet(), EdgeImage(), GetOpenMPThreadId(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPseudoRandomValue(), GetRandomSecretKey(), magick_restrict, MagickFalse, MagickTrue, MotionBlurImage(), NegateImage(), NormalizeImage(), QuantumRange, QueueCacheViewAuthenticPixels(), random_info, _Image::rows, SetImageAlpha(), SetImageArtifact(), SyncCacheViewAuthenticPixels(), TransformImage(), TransparentAlpha, and UndefinedPixelTrait.
MagickExport MagickBooleanType SolarizeImage | ( | Image * | image, | |
const double | threshold, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), _PixelInfo::blue, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), _PixelInfo::green, IsGrayColorspace(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, PseudoClass, QuantumRange, _PixelInfo::red, _Image::rows, SetImageColorspace(), SetImageProgress(), _Image::signature, SolarizeImageTag, sRGBColorspace, _Image::storage_class, SyncCacheViewAuthenticPixels(), TraceEvent, and UpdatePixelTrait.
Referenced by PreviewImage().
MagickExport Image* SteganoImage | ( | const Image * | image, | |
const Image * | watermark, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), CloneImage(), _Image::columns, _Image::debug, _Image::depth, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetBit, GetCacheViewAuthenticPixels(), GetMagickModule, GetOneCacheViewVirtualPixelInfo(), GetPixelBlue(), GetPixelGreen(), GetPixelInfoIntensity(), GetPixelRed(), LogMagickEvent(), MAGICKCORE_QUANTUM_DEPTH, MagickCoreSignature, MagickFalse, MagickTrue, _Image::offset, _Image::progress_monitor, _Image::rows, SetBit, SetImageProgress(), SetImageStorageClass(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _ExceptionInfo::signature, _Image::signature, SteganoImageTag, SyncCacheViewAuthenticPixels(), and TraceEvent.
MagickExport Image* StereoAnaglyphImage | ( | const Image * | left_image, | |
const Image * | right_image, | |||
const ssize_t | x_offset, | |||
const ssize_t | y_offset, | |||
ExceptionInfo * | exception | |||
) |
References CloneImage(), _Image::columns, CopyPixelTrait, _Image::debug, DestroyImage(), DirectClass, _Image::filename, GetMagickModule, GetPixelAlpha(), GetPixelAlphaTraits(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelRed(), GetVirtualPixels(), ImageError, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, QueueAuthenticPixels(), _Image::rows, SetImageColorspace(), SetImageProgress(), SetImageStorageClass(), SetPixelAlpha(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _ExceptionInfo::signature, _Image::signature, sRGBColorspace, StereoImageTag, SyncAuthenticPixels(), ThrowImageException, and TraceEvent.
Referenced by StereoImage().
MagickExport Image* StereoImage | ( | const Image * | left_image, | |
const Image * | right_image, | |||
ExceptionInfo * | exception | |||
) |
References StereoAnaglyphImage().
MagickExport Image* SwirlImage | ( | const Image * | image, | |
double | degrees, | |||
const PixelInterpolateMethod | method, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), _PixelInfo::alpha_trait, _Image::background_color, CloneImage(), _Image::columns, _Image::debug, DegreesToRadians(), DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), InterpolatePixelChannels(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickMax, MagickTrue, OnAlphaChannel, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageAlphaChannel(), SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), _ExceptionInfo::signature, _Image::signature, SwirlImageTag, SyncCacheViewAuthenticPixels(), TraceEvent, UndefinedPixelTrait, _PointInfo::x, and _PointInfo::y.
Referenced by PreviewImage().
MagickExport Image* TintImage | ( | const Image * | image, | |
const char * | blend, | |||
const PixelInfo * | tint, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), _PixelInfo::alpha, _PixelInfo::black, _PixelInfo::blue, _GeometryInfo::chi, ChiValue, CloneImage(), CMYKColorspace, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelInfo(), GetPixelInfoIntensity(), GetPixelRed(), _PixelInfo::green, IsGrayColorspace(), IsPixelInfoGray(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, OpaqueAlpha, ParseGeometry(), _Image::progress_monitor, _GeometryInfo::psi, PsiValue, QuantumScale, QueueCacheViewAuthenticPixels(), _PixelInfo::red, _GeometryInfo::rho, _Image::rows, SetImageColorspace(), SetImageProgress(), SetImageStorageClass(), SetPixelViaPixelInfo(), _GeometryInfo::sigma, SigmaValue, _ExceptionInfo::signature, _Image::signature, sRGBColorspace, SyncCacheViewAuthenticPixels(), TintImageTag, TraceEvent, _GeometryInfo::xi, and XiValue.
MagickExport Image* VignetteImage | ( | const Image * | image, | |
const double | radius, | |||
const double | sigma, | |||
const ssize_t | x, | |||
const ssize_t | y, | |||
ExceptionInfo * | exception | |||
) |
References AcquireString(), AllCompliance, _Image::alpha_trait, _Image::background_color, BlendPixelTrait, BlurImage(), CloneDrawInfo(), CloneImage(), _Image::colorspace, _Image::columns, CompositeImage(), _Image::debug, DestroyDrawInfo(), DestroyImage(), DirectClass, DrawImage(), _Image::filename, _DrawInfo::fill, FlattenLayer, FormatLocaleString(), GetMagickModule, IntensityCompositeOp, LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, MergeImageLayers(), _DrawInfo::primitive, QueryColorCompliance(), _Image::rows, SetImageBackgroundColor(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, _DrawInfo::stroke, TraceEvent, TransformImageColorspace(), and UndefinedPixelTrait.
MagickExport Image* WaveImage | ( | const Image * | image, | |
const double | amplitude, | |||
const double | wave_length, | |||
const PixelInterpolateMethod | method, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), AcquireVirtualCacheView(), _PixelInfo::alpha, _Image::alpha_trait, _Image::background_color, BackgroundVirtualPixelMethod, CloneImage(), _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelChannels(), InterpolatePixelChannels(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickPI, MagickTrue, OpaqueAlpha, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), RelinquishMagickMemory(), ResourceLimitError, _Image::rows, SetCacheViewVirtualPixelMethod(), SetImageAlpha(), SetImageProgress(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), ThrowImageException, TraceEvent, UndefinedPixelTrait, and WaveImageTag.
Referenced by PolaroidImage(), and PreviewImage().
MagickExport Image* WaveletDenoiseImage | ( | const Image * | image, | |
const double | threshold, | |||
const double | softness, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireMagickResource(), AcquireQuantumMemory(), AcquireVirtualMemory(), AddNoiseImageTag, BluePixelChannel, ClampToQuantum(), CloneImage(), _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetOpenMPMaximumThreads(), GetOpenMPThreadId(), GetPixelChannelChannel(), GetPixelChannelOffset(), GetPixelChannels(), GetPixelChannelTraits(), GetVirtualMemoryBlob(), GreenPixelChannel, HatTransform(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickMax, MagickTrue, _Image::progress_monitor, RedPixelChannel, RelinquishMagickMemory(), RelinquishVirtualMemory(), ResourceLimitError, _Image::rows, SetImageProgress(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), ThrowImageException, TraceEvent, UndefinedPixelTrait, and WidthResource.