#include "magick/studio.h"#include "magick/annotate.h"#include "magick/artifact.h"#include "magick/attribute.h"#include "magick/cache.h"#include "magick/cache-view.h"#include "magick/color.h"#include "magick/color-private.h"#include "magick/composite.h"#include "magick/decorate.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/monitor.h"#include "magick/monitor-private.h"#include "magick/option.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/shear.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/transform.h"#include "magick/utility.h"
Go to the source code of this file.
Data Structures | |
| struct | _FxInfo |
Defines | |
| #define | LeftShiftOperator 0xf5 |
| #define | RightShiftOperator 0xf6 |
| #define | LessThanEqualOperator 0xf7 |
| #define | GreaterThanEqualOperator 0xf8 |
| #define | EqualOperator 0xf9 |
| #define | NotEqualOperator 0xfa |
| #define | LogicalAndOperator 0xfb |
| #define | LogicalOrOperator 0xfc |
| #define | ExponentialNotation 0xfd |
| #define | AddNoiseImageTag "AddNoise/Image" |
| #define | BlueShiftImageTag "BlueShift/Image" |
| #define | ColorizeImageTag "Colorize/Image" |
| #define | ColorMatrixImageTag "ColorMatrix/Image" |
| #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) |
| #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 | |
| MagickExport FxInfo * | AcquireFxInfo (const Image *image, const char *expression) |
| MagickExport Image * | AddNoiseImage (const Image *image, const NoiseType noise_type, ExceptionInfo *exception) |
| MagickExport Image * | AddNoiseImageChannel (const Image *image, const ChannelType channel, const NoiseType noise_type, 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 *opacity, const PixelPacket colorize, ExceptionInfo *exception) |
| MagickExport Image * | ColorMatrixImage (const Image *image, const KernelInfo *color_matrix, ExceptionInfo *exception) |
| MagickExport FxInfo * | DestroyFxInfo (FxInfo *fx_info) |
| static double | MagickMax (const double x, const double y) |
| static double | MagickMin (const double x, const double y) |
| static MagickRealType | FxChannelStatistics (FxInfo *fx_info, const Image *image, ChannelType channel, const char *symbol, ExceptionInfo *exception) |
| static MagickRealType | FxEvaluateSubexpression (FxInfo *, const ChannelType, const ssize_t, const ssize_t, const char *, MagickRealType *, ExceptionInfo *) |
| static MagickRealType | FxMax (FxInfo *fx_info, const ChannelType channel, const ssize_t x, const ssize_t y, const char *expression, ExceptionInfo *exception) |
| static MagickRealType | FxMin (FxInfo *fx_info, ChannelType channel, const ssize_t x, const ssize_t y, const char *expression, ExceptionInfo *exception) |
| static const char * | FxSubexpression (const char *expression, ExceptionInfo *exception) |
| static MagickRealType | FxGetSymbol (FxInfo *fx_info, const ChannelType channel, const ssize_t x, const ssize_t y, const char *expression, ExceptionInfo *exception) |
| static const char * | FxOperatorPrecedence (const char *expression, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | FxEvaluateExpression (FxInfo *fx_info, MagickRealType *alpha, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | FxPreprocessExpression (FxInfo *fx_info, MagickRealType *alpha, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | FxEvaluateChannelExpression (FxInfo *fx_info, const ChannelType channel, const ssize_t x, const ssize_t y, MagickRealType *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 * | FxImageChannel (const Image *image, const ChannelType channel, const char *expression, ExceptionInfo *exception) |
| MagickExport Image * | ImplodeImage (const Image *image, const double amount, ExceptionInfo *exception) |
| MagickExport Image * | MorphImages (const Image *image, const size_t number_frames, ExceptionInfo *exception) |
| static Quantum | PlasmaPixel (RandomInfo *random_info, const MagickRealType pixel, const MagickRealType noise) |
| MagickExport MagickBooleanType | PlasmaImageProxy (Image *image, RandomInfo *random_info, const SegmentInfo *segment, size_t attenuate, size_t depth) |
| MagickExport MagickBooleanType | PlasmaImage (Image *image, const SegmentInfo *segment, size_t attenuate, size_t depth) |
| MagickExport Image * | PolaroidImage (const Image *image, const DrawInfo *draw_info, const double angle, ExceptionInfo *exception) |
| MagickExport Image * | SepiaToneImage (const Image *image, const double threshold, ExceptionInfo *exception) |
| MagickExport Image * | ShadowImage (const Image *image, const double opacity, 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) |
| 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, ExceptionInfo *exception) |
| MagickExport Image * | TintImage (const Image *image, const char *opacity, const PixelPacket 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, ExceptionInfo *exception) |
| #define AddNoiseImageTag "AddNoise/Image" |
Referenced by AddNoiseImageChannel().
| #define BlueShiftImageTag "BlueShift/Image" |
Referenced by BlueShiftImage().
| #define ColorizeImageTag "Colorize/Image" |
Referenced by ColorizeImage().
| #define ColorMatrixImageTag "ColorMatrix/Image" |
Referenced by ColorMatrixImage().
| #define EqualOperator 0xf9 |
Definition at line 97 of file fx.c.
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
| #define ExponentialNotation 0xfd |
Definition at line 101 of file fx.c.
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
| #define FxImageTag "Fx/Image" |
Referenced by FxImageChannel().
| #define GetBit | ( | alpha, | ||
| i | ||||
| ) |
((((size_t) (alpha) >> (size_t) \ (i)) & 0x01) != 0)
Referenced by SteganoImage().
| #define GreaterThanEqualOperator 0xf8 |
Definition at line 96 of file fx.c.
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
| #define ImplodeImageTag "Implode/Image" |
Referenced by ImplodeImage().
| #define LeftShiftOperator 0xf5 |
Definition at line 93 of file fx.c.
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
| #define LessThanEqualOperator 0xf7 |
Definition at line 95 of file fx.c.
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
| #define LogicalAndOperator 0xfb |
Definition at line 99 of file fx.c.
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
| #define LogicalOrOperator 0xfc |
Definition at line 100 of file fx.c.
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
| #define MorphImageTag "Morph/Image" |
Referenced by MorphImages().
| #define NotEqualOperator 0xfa |
Definition at line 98 of file fx.c.
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
| #define RightShiftOperator 0xf6 |
Definition at line 94 of file fx.c.
Referenced by AcquireFxInfo(), FxEvaluateSubexpression(), and FxOperatorPrecedence().
| #define SepiaToneImageTag "SepiaTone/Image" |
Referenced by SepiaToneImage().
| #define SetBit | ( | alpha, | ||
| i, | ||||
| set | ||||
| ) |
(alpha)=(Quantum) ((set) != 0 ? (size_t) (alpha) \ | (one << (size_t) (i)) : (size_t) (alpha) & ~(one << (size_t) (i)))
Referenced by SteganoImage().
| #define ShadowImageTag "Shadow/Image" |
Referenced by ShadowImage().
| #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().
Definition at line 154 of file fx.c.
References AcquireAlignedMemory(), AcquireExceptionInfo(), AcquireQuantumMemory(), AcquireRandomInfo(), AcquireResampleFilter(), _FxInfo::colors, CompareSplayTreeString(), ConstantString(), EqualOperator, _FxInfo::exception, ExponentialNotation, _FxInfo::expression, _FxInfo::file, GetImageFromList(), GetImageListLength(), GreaterThanEqualOperator, _FxInfo::images, LeftShiftOperator, LessThanEqualOperator, LogicalAndOperator, LogicalOrOperator, _Image::matte, _FxInfo::matte, NewSplayTree(), NotEqualOperator, PointFilter, _FxInfo::random_info, RelinquishMagickMemory(), _FxInfo::resample_filter, ResetMagickMemory(), ResourceLimitFatalError, RightShiftOperator, SetResampleFilter(), SubstituteString(), _FxInfo::symbols, and ThrowFatalException.
| static FxInfo** AcquireFxThreadSet | ( | const Image * | image, | |
| const char * | expression, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 2860 of file fx.c.
References AcquireAlignedMemory(), AcquireFxInfo(), ConstantString(), DestroyFxThreadSet(), DestroyString(), FileToString(), FxPreprocessExpression(), GetOpenMPMaximumThreads(), and ResetMagickMemory().
Referenced by FxImageChannel().
| MagickExport Image* AddNoiseImage | ( | const Image * | image, | |
| const NoiseType | noise_type, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 274 of file fx.c.
References AddNoiseImageChannel(), and DefaultChannels.
| MagickExport Image* AddNoiseImageChannel | ( | const Image * | image, | |
| const ChannelType | channel, | |||
| const NoiseType | noise_type, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 284 of file fx.c.
References AcquireCacheView(), AcquireRandomInfoThreadSet(), AddNoiseImageTag, BlueChannel, ClampToQuantum(), CloneImage(), _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DestroyRandomInfoThreadSet(), DirectClass, _Image::exception, _Image::filename, GenerateDifferentialNoise(), GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualIndexQueue(), GetCacheViewVirtualPixels(), GetImageArtifact(), GetMagickModule, GetOpenMPThreadId(), GreenChannel, IndexChannel, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, OpacityChannel, _Image::progress_monitor, random_info, RedChannel, restrict, _Image::rows, SetImageProgress(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, StringToDouble(), SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by AddNoiseImage().
| MagickExport Image* BlueShiftImage | ( | const Image * | image, | |
| const double | factor, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 457 of file fx.c.
References AcquireCacheView(), _MagickPixelPacket::blue, BlueShiftImageTag, ClampBluePixelComponent, ClampGreenPixelComponent, ClampRedPixelComponent, CloneImage(), _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, _Image::exception, _Image::filename, GetBluePixelComponent, GetCacheViewVirtualPixels(), GetGreenPixelComponent, GetMagickModule, GetRedPixelComponent, _MagickPixelPacket::green, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _MagickPixelPacket::red, restrict, _Image::rows, SetBluePixelComponent, SetGreenPixelComponent, SetImageProgress(), SetImageStorageClass(), SetRedPixelComponent, _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), and TraceEvent.
| MagickExport Image* CharcoalImage | ( | const Image * | image, | |
| const double | radius, | |||
| const double | sigma, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 616 of file fx.c.
References BlurImage(), CloneImage(), _Image::debug, DestroyImage(), EdgeImage(), _Image::filename, GetMagickModule, GrayscaleType, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, NegateImage(), NormalizeImage(), SetImageType(), _ExceptionInfo::signature, _Image::signature, and TraceEvent.
Referenced by PreviewImage().
| MagickExport Image* ColorizeImage | ( | const Image * | image, | |
| const char * | opacity, | |||
| const PixelPacket | colorize, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 681 of file fx.c.
References AcquireCacheView(), _PixelPacket::blue, _MagickPixelPacket::blue, CloneImage(), ColorizeImageTag, _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, _Image::exception, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, _PixelPacket::green, _MagickPixelPacket::green, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _PixelPacket::opacity, _MagickPixelPacket::opacity, OpaqueOpacity, ParseGeometry(), _Image::progress_monitor, _GeometryInfo::psi, PsiValue, QueueCacheViewAuthenticPixels(), _PixelPacket::red, _MagickPixelPacket::red, restrict, _GeometryInfo::rho, _Image::rows, SetImageProgress(), SetImageStorageClass(), _GeometryInfo::sigma, SigmaValue, _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, _GeometryInfo::xi, and XiValue.
| MagickExport Image* ColorMatrixImage | ( | const Image * | image, | |
| const KernelInfo * | color_matrix, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 849 of file fx.c.
References AcquireCacheView(), AcquireString(), ClampToQuantum(), CloneImage(), CMYKColorspace, ColorMatrixImageTag, _Image::colorspace, _Image::columns, ConcatenateString(), _Image::debug, DestroyCacheView(), DestroyImage(), DestroyString(), DirectClass, _Image::exception, _Image::filename, FormatMagickString(), GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualIndexQueue(), GetCacheViewVirtualPixels(), GetMagickModule, KernelInfo::height, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, MaxTextExtent, _Image::progress_monitor, QuantumRange, restrict, _Image::rows, SetImageProgress(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, TransformEvent, KernelInfo::values, and KernelInfo::width.
Referenced by RecolorImage().
Definition at line 1066 of file fx.c.
References _FxInfo::colors, DestroyExceptionInfo(), DestroyRandomInfo(), DestroyResampleFilter(), DestroySplayTree(), DestroyString(), _FxInfo::exception, _FxInfo::expression, GetImageListLength(), _FxInfo::images, _FxInfo::random_info, RelinquishMagickMemory(), _FxInfo::resample_filter, and _FxInfo::symbols.
Referenced by DestroyFxThreadSet(), and GetImageProperty().
Definition at line 2847 of file fx.c.
References DestroyFxInfo(), GetOpenMPMaximumThreads(), and RelinquishAlignedMemory().
Referenced by AcquireFxThreadSet(), and FxImageChannel().
| static MagickRealType FxChannelStatistics | ( | FxInfo * | fx_info, | |
| const Image * | image, | |||
| ChannelType | channel, | |||
| const char * | symbol, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 1135 of file fx.c.
References AddValueToSplayTree(), ConstantString(), DeleteNodeFromSplayTree(), FormatMagickString(), GetImageChannelDepth(), GetImageChannelKurtosis(), GetImageChannelMean(), GetImageChannelRange(), GetValueFromSplayTree(), LocaleNCompare(), MaxTextExtent, QuantumScale, StringToDouble(), and _FxInfo::symbols.
Referenced by FxGetSymbol().
| MagickExport MagickBooleanType FxEvaluateChannelExpression | ( | FxInfo * | fx_info, | |
| const ChannelType | channel, | |||
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| MagickRealType * | alpha, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2802 of file fx.c.
References _FxInfo::expression, FxEvaluateSubexpression(), MagickFalse, MagickTrue, OptionError, and _ExceptionInfo::severity.
Referenced by FxEvaluateExpression(), FxImageChannel(), FxPreprocessExpression(), and GetImageProperty().
| MagickExport MagickBooleanType FxEvaluateExpression | ( | FxInfo * | fx_info, | |
| MagickRealType * | alpha, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2776 of file fx.c.
References FxEvaluateChannelExpression(), and GrayChannel.
| static MagickRealType FxEvaluateSubexpression | ( | FxInfo * | fx_info, | |
| const ChannelType | channel, | |||
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| const char * | expression, | |||
| MagickRealType * | beta, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 2073 of file fx.c.
References AddValueToSplayTree(), BlackChannel, BlueChannel, ClearMagickException(), CMYKColorspace, _Image::colorspace, ConstantString(), CopyMagickString(), CyanChannel, DeleteNodeFromSplayTree(), EqualOperator, ExponentialNotation, _FxInfo::file, _Image::filename, FormatMagickString(), FxGetSymbol(), FxMax(), FxMin(), FxOperatorPrecedence(), GetMagickModule, GetMagickPrecision(), GetPseudoRandomValue(), GreaterThanEqualOperator, GreenChannel, hypot, _FxInfo::images, LeftShiftOperator, LessThanEqualOperator, LocaleCompare(), LocaleNCompare(), LogicalAndOperator, LogicalOrOperator, MagentaChannel, MagickEpsilon, MagickPI, MaxTextExtent, NotEqualOperator, OpacityChannel, QuantumRange, QuantumScale, _FxInfo::random_info, RedChannel, RightShiftOperator, _ExceptionInfo::severity, StringToken(), _FxInfo::symbols, ThrowMagickException(), UndefinedException, and YellowChannel.
Referenced by FxEvaluateChannelExpression(), FxGetSymbol(), FxMax(), and FxMin().
| static MagickRealType FxGetSymbol | ( | FxInfo * | fx_info, | |
| const ChannelType | channel, | |||
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| const char * | expression, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 1295 of file fx.c.
References AddValueToSplayTree(), BlackChannel, _MagickPixelPacket::blue, BlueChannel, _GeometryInfo::chi, ChiValue, ClampToQuantum(), CloneMagickPixelPacket(), CMYKColorspace, _FxInfo::colors, _Image::colorspace, _Image::columns, ConstantString(), ConvertRGBToHSL(), CopyMagickString(), CyanChannel, _FxInfo::exception, _Image::filename, FxChannelStatistics(), FxEvaluateSubexpression(), GetAlphaPixelComponent, GetImageChannelDepth(), GetImageFromList(), GetImageIndexInList(), GetImageListLength(), GetMagickModule, GetValueFromSplayTree(), _MagickPixelPacket::green, GreenChannel, _RectangleInfo::height, _FxInfo::images, _MagickPixelPacket::index, IndexChannel, LocaleCompare(), LocaleNCompare(), MagentaChannel, MagickFalse, MagickPixelIntensityToQuantum(), _FxInfo::matte, _MagickPixelPacket::matte, MaxTextExtent, _MagickPixelPacket::opacity, OpacityChannel, _Image::page, ParseGeometry(), _GeometryInfo::psi, PsiValue, QuantumScale, QueryMagickColor(), _MagickPixelPacket::red, RedChannel, _FxInfo::resample_filter, ResamplePixelColor(), _GeometryInfo::rho, RhoValue, _Image::rows, _Image::scene, _GeometryInfo::sigma, SigmaValue, StringToDouble(), StripString(), _FxInfo::symbols, ThrowMagickException(), _RectangleInfo::width, _RectangleInfo::x, _PointInfo::x, _Image::x_resolution, _GeometryInfo::xi, XiValue, _RectangleInfo::y, _PointInfo::y, _Image::y_resolution, and YellowChannel.
Referenced by FxEvaluateSubexpression().
| MagickExport Image* FxImage | ( | const Image * | image, | |
| const char * | expression, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2898 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 2908 of file fx.c.
References AcquireCacheView(), AcquireFxThreadSet(), BlueChannel, ClampToQuantum(), CloneImage(), CMYKColorspace, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), DestroyFxThreadSet(), DestroyImage(), DirectClass, _Image::exception, _Image::filename, FxEvaluateChannelExpression(), FxImageTag, FxPreprocessExpression(), GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetOpenMPThreadId(), GreenChannel, IndexChannel, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, OpacityChannel, _Image::progress_monitor, QuantumRange, RedChannel, ResourceLimitError, restrict, _Image::rows, SetImageProgress(), SetImageStorageClass(), _Image::signature, SyncCacheViewAuthenticPixels(), ThrowImageException, and TraceEvent.
Referenced by FxImage().
| static MagickRealType FxMax | ( | FxInfo * | fx_info, | |
| const ChannelType | channel, | |||
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| const char * | expression, | |||
| ExceptionInfo * | exception | |||
| ) | [inline, static] |
Definition at line 1244 of file fx.c.
References FxEvaluateSubexpression(), and MagickMax().
Referenced by FxEvaluateSubexpression().
| static MagickRealType FxMin | ( | FxInfo * | fx_info, | |
| ChannelType | channel, | |||
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| const char * | expression, | |||
| ExceptionInfo * | exception | |||
| ) | [inline, static] |
Definition at line 1256 of file fx.c.
References FxEvaluateSubexpression(), and MagickMin().
Referenced by FxEvaluateSubexpression().
| static const char* FxOperatorPrecedence | ( | const char * | expression, | |
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 1848 of file fx.c.
References EqualOperator, ExponentialNotation, FxSubexpression(), GreaterThanEqualOperator, LeftShiftOperator, LessThanEqualOperator, LocaleNCompare(), LogicalAndOperator, LogicalOrOperator, NotEqualOperator, and RightShiftOperator.
Referenced by FxEvaluateSubexpression().
| MagickExport MagickBooleanType FxPreprocessExpression | ( | FxInfo * | fx_info, | |
| MagickRealType * | alpha, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2786 of file fx.c.
References _FxInfo::file, FxEvaluateChannelExpression(), and GrayChannel.
Referenced by AcquireFxThreadSet(), and FxImageChannel().
| static const char* FxSubexpression | ( | const char * | expression, | |
| ExceptionInfo * | exception | |||
| ) | [inline, static] |
Definition at line 1268 of file fx.c.
References GetMagickModule, and ThrowMagickException().
Referenced by FxOperatorPrecedence().
| MagickExport Image* ImplodeImage | ( | const Image * | image, | |
| const double | amount, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 3094 of file fx.c.
References AcquireCacheView(), AcquireResampleFilterThreadSet(), _Image::background_color, CloneImage(), _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DestroyResampleFilterThreadSet(), DirectClass, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetMagickPixelPacket(), GetOpenMPThreadId(), ImplodeImageTag, InheritException(), LogMagickEvent(), MagickFalse, MagickPI, MagickSignature, MagickTrue, _Image::matte, _PixelPacket::opacity, OpaqueOpacity, _Image::progress_monitor, ResamplePixelColor(), restrict, _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelPacket(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, UndefinedVirtualPixelMethod, _PointInfo::x, and _PointInfo::y.
Referenced by PreviewImage().
| static double MagickMax | ( | const double | x, | |
| const double | y | |||
| ) | [inline, static] |
Definition at line 1121 of file fx.c.
Referenced by FxMax(), PolaroidImage(), and SwirlImage().
| static double MagickMin | ( | const double | x, | |
| const double | y | |||
| ) | [inline, static] |
| MagickExport Image* MorphImages | ( | const Image * | image, | |
| const size_t | number_frames, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 3292 of file fx.c.
References AcquireCacheView(), AppendImageToList(), ClampToQuantum(), CloneImage(), _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DestroyImageList(), DirectClass, _Image::exception, _Image::filename, GetBluePixelComponent, GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetFirstImageInList(), GetGreenPixelComponent, GetImageListLength(), GetLastImageInList(), GetMagickModule, GetNextImageInList(), GetOpacityPixelComponent, GetRedPixelComponent, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MorphImageTag, _Image::progress_monitor, restrict, _Image::rows, SetImageProgress(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and ZoomImage().
| MagickExport MagickBooleanType PlasmaImage | ( | Image * | image, | |
| const SegmentInfo * | segment, | |||
| size_t | attenuate, | |||
| size_t | depth | |||
| ) |
Definition at line 3715 of file fx.c.
References AcquireRandomInfo(), _Image::debug, DestroyRandomInfo(), GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, PlasmaImageProxy(), random_info, _Image::signature, and TraceEvent.
| MagickExport MagickBooleanType PlasmaImageProxy | ( | Image * | image, | |
| RandomInfo * | random_info, | |||
| const SegmentInfo * | segment, | |||
| size_t | attenuate, | |||
| size_t | depth | |||
| ) |
Definition at line 3526 of file fx.c.
References _PixelPacket::blue, DirectClass, _Image::exception, GetOneVirtualPixel(), _PixelPacket::green, MagickFalse, MagickTrue, PlasmaPixel(), QuantumRange, QueueAuthenticPixels(), _PixelPacket::red, restrict, SetImageStorageClass(), SyncAuthenticPixels(), _SegmentInfo::x1, _SegmentInfo::x2, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by PlasmaImage().
| static Quantum PlasmaPixel | ( | RandomInfo * | random_info, | |
| const MagickRealType | pixel, | |||
| const MagickRealType | noise | |||
| ) | [inline, static] |
Definition at line 3515 of file fx.c.
References ClampToQuantum(), and GetPseudoRandomValue().
Referenced by PlasmaImageProxy().
| MagickExport Image* PolaroidImage | ( | const Image * | image, | |
| const DrawInfo * | draw_info, | |||
| const double | angle, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 3765 of file fx.c.
References AcquireString(), AnnotateImage(), _TypeMetric::ascent, _Image::background_color, _Image::border_color, CloneDrawInfo(), CloneImage(), CloneString(), _Image::columns, CompositeImage(), _Image::debug, _TypeMetric::descent, DestroyDrawInfo(), DestroyImage(), DestroyString(), _Image::exception, _Image::filename, FlopImage(), FormatMagickCaption(), FormatMagickString(), _DrawInfo::geometry, GetImageProperty(), GetMagickModule, _DrawInfo::gravity, InheritException(), InterpretImageProperties(), LogMagickEvent(), MagickFalse, MagickMax(), MagickSignature, MagickTrue, MaxTextExtent, OpaqueAlphaChannel, OverCompositeOp, QueryColorDatabase(), 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 | |||
| ) |
Definition at line 3948 of file fx.c.
References AcquireCacheView(), ClampToQuantum(), CloneImage(), _Image::columns, ContrastImage(), _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, _Image::exception, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, NormalizeImage(), PixelIntensityToQuantum(), _Image::progress_monitor, QuantumRange, QueueCacheViewAuthenticPixels(), restrict, _Image::rows, SepiaToneImageTag, SetImageProgress(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), and TraceEvent.
| MagickExport Image* ShadowImage | ( | const Image * | image, | |
| const double | opacity, | |||
| const double | sigma, | |||
| const ssize_t | x_offset, | |||
| const ssize_t | y_offset, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4100 of file fx.c.
References AcquireCacheView(), AlphaChannel, _Image::background_color, _PixelPacket::blue, BlurImageChannel(), _Image::border_color, BorderImage(), ClampToQuantum(), CloneImage(), _Image::columns, _Image::compose, _Image::debug, DestroyCacheView(), DestroyImage(), EdgeVirtualPixelMethod, _Image::filename, GetAlphaPixelComponent, GetCacheViewAuthenticPixels(), GetMagickModule, _PixelPacket::green, _RectangleInfo::height, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, _PixelPacket::opacity, OpaqueAlphaChannel, _Image::page, _Image::progress_monitor, QuantumRange, QueryColorDatabase(), _PixelPacket::red, restrict, _Image::rows, SetImageAlphaChannel(), SetImageProgress(), SetImageVirtualPixelMethod(), ShadowImageTag, _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, _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 | |||
| ) |
Definition at line 4254 of file fx.c.
References AcquireCacheView(), AcquireRandomInfoThreadSet(), BlendCompositeOp, _MagickPixelPacket::blue, CloneImage(), CMYKColorspace, ColorDodgeCompositeOp, _Image::colorspace, _Image::columns, CompositeImage(), DestroyCacheView(), DestroyImage(), DestroyRandomInfoThreadSet(), EdgeImage(), GetCacheViewAuthenticIndexQueue(), GetMagickPixelPacket(), GetOpenMPThreadId(), GetPseudoRandomValue(), _MagickPixelPacket::green, _MagickPixelPacket::index, MagickFalse, MagickTrue, MotionBlurImage(), NegateImage(), NormalizeImage(), QuantumRange, QueueCacheViewAuthenticPixels(), random_info, _MagickPixelPacket::red, restrict, _Image::rows, SetImageArtifact(), SetPixelPacket(), SyncCacheViewAuthenticPixels(), and TransformImage().
| MagickExport MagickBooleanType SolarizeImage | ( | Image * | image, | |
| const double | threshold | |||
| ) |
Definition at line 4401 of file fx.c.
References AcquireCacheView(), _PixelPacket::blue, _Image::colormap, _Image::colors, _Image::columns, _Image::debug, DestroyCacheView(), _Image::exception, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, _PixelPacket::green, LogMagickEvent(), MagickFalse, MagickSignature, _Image::progress_monitor, PseudoClass, QuantumRange, _PixelPacket::red, restrict, _Image::rows, SetImageProgress(), _Image::signature, SolarizeImageTag, _Image::storage_class, SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by PreviewImage().
| MagickExport Image* SteganoImage | ( | const Image * | image, | |
| const Image * | watermark, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4530 of file fx.c.
References _PixelPacket::blue, CloneImage(), _Image::columns, _Image::debug, _Image::depth, DestroyImage(), DirectClass, _Image::exception, _Image::filename, GetAuthenticPixels(), GetBit, GetMagickModule, GetOneVirtualPixel(), _PixelPacket::green, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::offset, PixelIntensityToQuantum(), _Image::progress_monitor, PseudoClass, _PixelPacket::red, _Image::rows, SetBit, SetImageProgress(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, SteganoImageTag, _Image::storage_class, SyncAuthenticPixels(), SyncImage(), 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 | |||
| ) |
Definition at line 4701 of file fx.c.
References CloneImage(), _Image::columns, _Image::debug, DestroyImage(), DirectClass, _Image::exception, _Image::filename, GetMagickModule, GetRedPixelComponent, GetVirtualPixels(), ImageError, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::progress_monitor, QueueAuthenticPixels(), restrict, _Image::rows, SetImageProgress(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, StereoImageTag, SyncAuthenticPixels(), ThrowImageException, and TraceEvent.
Referenced by StereoImage().
| MagickExport Image* StereoImage | ( | const Image * | left_image, | |
| const Image * | right_image, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4695 of file fx.c.
References StereoAnaglyphImage().
| MagickExport Image* SwirlImage | ( | const Image * | image, | |
| double | degrees, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4823 of file fx.c.
References AcquireCacheView(), AcquireResampleFilterThreadSet(), _Image::background_color, CloneImage(), _Image::columns, _Image::debug, DegreesToRadians(), DestroyCacheView(), DestroyImage(), DestroyResampleFilterThreadSet(), DirectClass, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetMagickPixelPacket(), GetOpenMPThreadId(), InheritException(), LogMagickEvent(), MagickFalse, MagickMax(), MagickSignature, MagickTrue, _Image::matte, _PixelPacket::opacity, OpaqueOpacity, _Image::progress_monitor, ResamplePixelColor(), restrict, _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelPacket(), _ExceptionInfo::signature, _Image::signature, SwirlImageTag, SyncCacheViewAuthenticPixels(), TraceEvent, UndefinedVirtualPixelMethod, _PointInfo::x, and _PointInfo::y.
Referenced by PreviewImage().
| MagickExport Image* TintImage | ( | const Image * | image, | |
| const char * | opacity, | |||
| const PixelPacket | tint, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 5021 of file fx.c.
References AcquireCacheView(), _PixelPacket::blue, _MagickPixelPacket::blue, ClampBluePixelComponent, ClampGreenPixelComponent, ClampRedPixelComponent, CloneImage(), _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, _Image::exception, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetOpacityPixelComponent, _PixelPacket::green, _MagickPixelPacket::green, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _MagickPixelPacket::opacity, OpaqueOpacity, ParseGeometry(), PixelIntensity(), _Image::progress_monitor, _GeometryInfo::psi, PsiValue, QuantumScale, QueueCacheViewAuthenticPixels(), _PixelPacket::red, _MagickPixelPacket::red, restrict, _GeometryInfo::rho, _Image::rows, SetBluePixelComponent, SetGreenPixelComponent, SetImageProgress(), SetImageStorageClass(), SetOpacityPixelComponent, SetRedPixelComponent, _GeometryInfo::sigma, SigmaValue, _ExceptionInfo::signature, _Image::signature, 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 | |||
| ) |
Definition at line 5203 of file fx.c.
References AcquireString(), _Image::background_color, BlurImage(), CloneDrawInfo(), CloneImage(), _Image::columns, CompositeImage(), CopyOpacityCompositeOp, _Image::debug, DestroyDrawInfo(), DestroyImage(), DirectClass, DrawImage(), _Image::exception, _Image::filename, _DrawInfo::fill, FlattenLayer, FormatMagickString(), GetMagickModule, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, MaxTextExtent, MergeImageLayers(), _DrawInfo::primitive, QueryColorDatabase(), _Image::rows, SetImageBackgroundColor(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, _DrawInfo::stroke, and TraceEvent.
| MagickExport Image* WaveImage | ( | const Image * | image, | |
| const double | amplitude, | |||
| const double | wave_length, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 5297 of file fx.c.
References AcquireCacheView(), AcquireQuantumMemory(), AcquireResampleFilterThreadSet(), _Image::background_color, BackgroundVirtualPixelMethod, CloneImage(), _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DestroyResampleFilterThreadSet(), DirectClass, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetMagickModule, GetMagickPixelPacket(), GetOpenMPThreadId(), InheritException(), LogMagickEvent(), MagickFalse, MagickPI, MagickSignature, MagickTrue, _Image::matte, _PixelPacket::opacity, OpaqueOpacity, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), RelinquishMagickMemory(), ResamplePixelColor(), ResourceLimitError, restrict, _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelPacket(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), ThrowImageException, TraceEvent, and WaveImageTag.
Referenced by PolaroidImage(), and PreviewImage().
1.7.1