MagickWand  7.0.3
operation.c File Reference
#include "MagickWand/studio.h"
#include "MagickWand/MagickWand.h"
#include "MagickWand/magick-wand-private.h"
#include "MagickWand/mogrify.h"
#include "MagickWand/operation.h"
#include "MagickWand/wand.h"
#include "MagickWand/wandcli.h"
#include "MagickWand/wandcli-private.h"
#include "MagickCore/composite-private.h"
#include "MagickCore/image-private.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/pixel-private.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/timer-private.h"
Include dependency graph for operation.c:

Go to the source code of this file.

Macros

#define USE_WAND_METHODS   1
 
#define MAX_STACK_DEPTH   32
 
#define UNDEFINED_COMPRESSION_QUALITY   0UL
 
#define DEFAULT_DISSIMILARITY_THRESHOLD   "0.31830988618379067154"
 
#define ReportGeometry(flags, info)
 
#define _image_info   (cli_wand->wand.image_info)
 
#define _image   (cli_wand->wand.images)
 
#define _exception   (cli_wand->wand.exception)
 
#define _draw_info   (cli_wand->draw_info)
 
#define _quantize_info   (cli_wand->quantize_info)
 
#define IfSetOption   (*option=='-')
 
#define ArgBoolean   IfSetOption ? MagickTrue : MagickFalse
 
#define ArgBooleanNot   IfSetOption ? MagickFalse : MagickTrue
 
#define ArgBooleanString   (IfSetOption?"true":"false")
 
#define ArgOption(def)   (IfSetOption?arg1:(const char *)(def))
 
#define _process_flags   (cli_wand->process_flags)
 
#define _option_type   ((CommandOptionFlags) cli_wand->command->flags)
 
#define _image_info   (cli_wand->wand.image_info)
 
#define _image   (cli_wand->wand.images)
 
#define _exception   (cli_wand->wand.exception)
 
#define _draw_info   (cli_wand->draw_info)
 
#define _quantize_info   (cli_wand->quantize_info)
 
#define _process_flags   (cli_wand->process_flags)
 
#define _option_type   ((CommandOptionFlags) cli_wand->command->flags)
 
#define IfNormalOp   (*option=='-')
 
#define IfPlusOp   (*option!='-')
 
#define IsNormalOp   IfNormalOp ? MagickTrue : MagickFalse
 
#define IsPlusOp   IfNormalOp ? MagickFalse : MagickTrue
 
#define _image_info   (cli_wand->wand.image_info)
 
#define _images   (cli_wand->wand.images)
 
#define _exception   (cli_wand->wand.exception)
 
#define _draw_info   (cli_wand->draw_info)
 
#define _quantize_info   (cli_wand->quantize_info)
 
#define _process_flags   (cli_wand->process_flags)
 
#define _option_type   ((CommandOptionFlags) cli_wand->command->flags)
 
#define IfNormalOp   (*option=='-')
 
#define IfPlusOp   (*option!='-')
 
#define IsNormalOp   IfNormalOp ? MagickTrue : MagickFalse
 
#define _image_info   (cli_wand->wand.image_info)
 
#define _images   (cli_wand->wand.images)
 
#define _exception   (cli_wand->wand.exception)
 
#define _process_flags   (cli_wand->process_flags)
 
#define _option_type   ((CommandOptionFlags) cli_wand->command->flags)
 
#define IfNormalOp   (*option=='-')
 
#define IfPlusOp   (*option!='-')
 

Functions

static MagickBooleanType MonitorProgress (const char *text, const MagickOffsetType offset, const MagickSizeType extent, void *wand_unused(client_data))
 
static Image * GetImageCache (const ImageInfo *image_info, const char *path, ExceptionInfo *exception)
 
static Image * SparseColorOption (const Image *image, const SparseColorMethod method, const char *arguments, ExceptionInfo *exception)
 
WandPrivate void CLISettingOptionInfo (MagickCLI *cli_wand, const char *option, const char *arg1n, const char *arg2n)
 
static MagickBooleanType CLISimpleOperatorImage (MagickCLI *cli_wand, const char *option, const char *arg1n, const char *arg2n, ExceptionInfo *exception)
 
WandPrivate MagickBooleanType CLISimpleOperatorImages (MagickCLI *cli_wand, const char *option, const char *arg1, const char *arg2, ExceptionInfo *exception)
 
WandPrivate MagickBooleanType CLIListOperatorImages (MagickCLI *cli_wand, const char *option, const char *arg1n, const char *arg2n)
 
WandPrivate void CLINoImageOperator (MagickCLI *cli_wand, const char *option, const char *arg1n, const char *arg2n)
 
WandExport void CLIOption (MagickCLI *cli_wand, const char *option,...)
 

Variables

static const char MogrifyAlphaColor [] = "#bdbdbd"
 
static const char MogrifyBackgroundColor [] = "#fff"
 
static const char MogrifyBorderColor [] = "#dfdfdf"
 

Macro Definition Documentation

#define _draw_info   (cli_wand->draw_info)
#define _draw_info   (cli_wand->draw_info)
#define _draw_info   (cli_wand->draw_info)
#define _exception   (cli_wand->wand.exception)
#define _exception   (cli_wand->wand.exception)
#define _exception   (cli_wand->wand.exception)
#define _exception   (cli_wand->wand.exception)
#define _image   (cli_wand->wand.images)
#define _image   (cli_wand->wand.images)
#define _image_info   (cli_wand->wand.image_info)
#define _image_info   (cli_wand->wand.image_info)
#define _image_info   (cli_wand->wand.image_info)
#define _image_info   (cli_wand->wand.image_info)
#define _images   (cli_wand->wand.images)
#define _images   (cli_wand->wand.images)
#define _option_type   ((CommandOptionFlags) cli_wand->command->flags)
#define _option_type   ((CommandOptionFlags) cli_wand->command->flags)
#define _option_type   ((CommandOptionFlags) cli_wand->command->flags)
#define _option_type   ((CommandOptionFlags) cli_wand->command->flags)
#define _process_flags   (cli_wand->process_flags)
#define _process_flags   (cli_wand->process_flags)
#define _process_flags   (cli_wand->process_flags)
#define _process_flags   (cli_wand->process_flags)
#define _quantize_info   (cli_wand->quantize_info)
#define _quantize_info   (cli_wand->quantize_info)
#define _quantize_info   (cli_wand->quantize_info)
#define ArgBoolean   IfSetOption ? MagickTrue : MagickFalse

Referenced by CLISettingOptionInfo().

#define ArgBooleanNot   IfSetOption ? MagickFalse : MagickTrue

Referenced by CLISettingOptionInfo().

#define ArgBooleanString   (IfSetOption?"true":"false")

Referenced by CLISettingOptionInfo().

#define ArgOption (   def)    (IfSetOption?arg1:(const char *)(def))

Referenced by CLISettingOptionInfo().

#define DEFAULT_DISSIMILARITY_THRESHOLD   "0.31830988618379067154"

Definition at line 82 of file operation.c.

Referenced by CLISettingOptionInfo().

#define IfNormalOp   (*option=='-')
#define IfNormalOp   (*option=='-')
#define IfNormalOp   (*option=='-')
#define IfPlusOp   (*option!='-')
#define IfPlusOp   (*option!='-')
#define IfPlusOp   (*option!='-')
#define IfSetOption   (*option=='-')

Referenced by CLISettingOptionInfo().

#define IsNormalOp   IfNormalOp ? MagickTrue : MagickFalse
#define IsNormalOp   IfNormalOp ? MagickTrue : MagickFalse
#define IsPlusOp   IfNormalOp ? MagickFalse : MagickTrue

Referenced by CLISimpleOperatorImage().

#define MAX_STACK_DEPTH   32

Definition at line 78 of file operation.c.

Referenced by CLINoImageOperator().

#define ReportGeometry (   flags,
  info 
)
Value:
(void) FormatLocaleFile(stderr, "Geometry = 0x%04X : %lg x %lg %+lg %+lg\n", \
flags, info.rho, info.sigma, info.xi, info.psi )

Definition at line 85 of file operation.c.

#define UNDEFINED_COMPRESSION_QUALITY   0UL

Definition at line 79 of file operation.c.

Referenced by CLISettingOptionInfo().

#define USE_WAND_METHODS   1

Definition at line 77 of file operation.c.

Function Documentation

WandPrivate MagickBooleanType CLISimpleOperatorImages ( MagickCLI cli_wand,
const char *  option,
const char *  arg1,
const char *  arg2,
ExceptionInfo *  exception 
)
static Image* GetImageCache ( const ImageInfo *  image_info,
const char *  path,
ExceptionInfo *  exception 
)
inlinestatic

Definition at line 138 of file operation.c.

References MagickPathExtent.

Referenced by CLISettingOptionInfo(), and CLISimpleOperatorImage().

static MagickBooleanType MonitorProgress ( const char *  text,
const MagickOffsetType  offset,
const MagickSizeType  extent,
void *  wand_unusedclient_data 
)
static

Definition at line 92 of file operation.c.

References MagickPathExtent.

Referenced by CLISettingOptionInfo(), and CLISimpleOperatorImage().

static Image* SparseColorOption ( const Image *  image,
const SparseColorMethod  method,
const char *  arguments,
ExceptionInfo *  exception 
)
static

Definition at line 179 of file operation.c.

References MagickPathExtent.

Referenced by CLISimpleOperatorImage().

Variable Documentation

const char MogrifyAlphaColor[] = "#bdbdbd"
static

Definition at line 70 of file operation.c.

Referenced by CLISettingOptionInfo().

const char MogrifyBackgroundColor[] = "#fff"
static

Definition at line 71 of file operation.c.

Referenced by CLISettingOptionInfo().

const char MogrifyBorderColor[] = "#dfdfdf"
static

Definition at line 72 of file operation.c.

Referenced by CLISettingOptionInfo().