Data Structures | Defines | Functions

fx.c File Reference

#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"
Include dependency graph for fx.c:

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 FxInfoAcquireFxInfo (const Image *image, const char *expression)
MagickExport ImageAddNoiseImage (const Image *image, const NoiseType noise_type, ExceptionInfo *exception)
MagickExport ImageAddNoiseImageChannel (const Image *image, const ChannelType channel, const NoiseType noise_type, ExceptionInfo *exception)
MagickExport ImageBlueShiftImage (const Image *image, const double factor, ExceptionInfo *exception)
MagickExport ImageCharcoalImage (const Image *image, const double radius, const double sigma, ExceptionInfo *exception)
MagickExport ImageColorizeImage (const Image *image, const char *opacity, const PixelPacket colorize, ExceptionInfo *exception)
MagickExport ImageColorMatrixImage (const Image *image, const KernelInfo *color_matrix, ExceptionInfo *exception)
MagickExport FxInfoDestroyFxInfo (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 ImageFxImage (const Image *image, const char *expression, ExceptionInfo *exception)
MagickExport ImageFxImageChannel (const Image *image, const ChannelType channel, const char *expression, ExceptionInfo *exception)
MagickExport ImageImplodeImage (const Image *image, const double amount, ExceptionInfo *exception)
MagickExport ImageMorphImages (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 ImagePolaroidImage (const Image *image, const DrawInfo *draw_info, const double angle, ExceptionInfo *exception)
MagickExport ImageSepiaToneImage (const Image *image, const double threshold, ExceptionInfo *exception)
MagickExport ImageShadowImage (const Image *image, const double opacity, const double sigma, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception)
MagickExport ImageSketchImage (const Image *image, const double radius, const double sigma, const double angle, ExceptionInfo *exception)
MagickExport MagickBooleanType SolarizeImage (Image *image, const double threshold)
MagickExport ImageSteganoImage (const Image *image, const Image *watermark, ExceptionInfo *exception)
MagickExport ImageStereoImage (const Image *left_image, const Image *right_image, ExceptionInfo *exception)
MagickExport ImageStereoAnaglyphImage (const Image *left_image, const Image *right_image, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception)
MagickExport ImageSwirlImage (const Image *image, double degrees, ExceptionInfo *exception)
MagickExport ImageTintImage (const Image *image, const char *opacity, const PixelPacket tint, ExceptionInfo *exception)
MagickExport ImageVignetteImage (const Image *image, const double radius, const double sigma, const ssize_t x, const ssize_t y, ExceptionInfo *exception)
MagickExport ImageWaveImage (const Image *image, const double amplitude, const double wave_length, ExceptionInfo *exception)

Define Documentation

#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 
)
Value:
((((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 
)
Value:
(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().


Function Documentation

MagickExport FxInfo* AcquireFxInfo ( const Image image,
const char *  expression 
)
static FxInfo** AcquireFxThreadSet ( const Image image,
const char *  expression,
ExceptionInfo exception 
) [static]
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 
)
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 FxInfo** DestroyFxThreadSet ( FxInfo **  fx_info  )  [static]

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]
MagickExport MagickBooleanType FxEvaluateChannelExpression ( FxInfo fx_info,
const ChannelType  channel,
const ssize_t  x,
const ssize_t  y,
MagickRealType alpha,
ExceptionInfo exception 
)
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]
static MagickRealType FxGetSymbol ( FxInfo fx_info,
const ChannelType  channel,
const ssize_t  x,
const ssize_t  y,
const char *  expression,
ExceptionInfo exception 
) [static]
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 
)
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]
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 
)
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]

Definition at line 1128 of file fx.c.

Referenced by FxMin().

MagickExport Image* MorphImages ( const Image image,
const size_t  number_frames,
ExceptionInfo exception 
)
MagickExport MagickBooleanType PlasmaImage ( Image image,
const SegmentInfo segment,
size_t  attenuate,
size_t  depth 
)
MagickExport MagickBooleanType PlasmaImageProxy ( Image image,
RandomInfo random_info,
const SegmentInfo segment,
size_t  attenuate,
size_t  depth 
)
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 
)
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* StereoAnaglyphImage ( const Image left_image,
const Image right_image,
const ssize_t  x_offset,
const ssize_t  y_offset,
ExceptionInfo exception 
)
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 
)
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 
)