|
MagickWand 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#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/color-private.h"#include "MagickCore/composite-private.h"#include "MagickCore/image-private.h"#include "MagickCore/monitor-private.h"#include "MagickCore/string-private.h"#include "MagickCore/thread-private.h"#include "MagickCore/timer-private.h"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" |
| #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 |
| #define ArgBooleanNot IfSetOption ? MagickFalse : MagickTrue |
| #define ArgBooleanString (IfSetOption?"true":"false") |
| #define ArgOption | ( | def | ) | (IfSetOption?arg1:(const char *)(def)) |
| #define DEFAULT_DISSIMILARITY_THRESHOLD "0.31830988618379067154" |
Definition at line 85 of file operation.c.
| #define IfNormalOp (*option=='-') |
| #define IfNormalOp (*option=='-') |
| #define IfNormalOp (*option=='-') |
| #define IfPlusOp (*option!='-') |
| #define IfPlusOp (*option!='-') |
| #define IfPlusOp (*option!='-') |
| #define IfSetOption (*option=='-') |
| #define IsNormalOp IfNormalOp ? MagickTrue : MagickFalse |
| #define IsNormalOp IfNormalOp ? MagickTrue : MagickFalse |
| #define IsPlusOp IfNormalOp ? MagickFalse : MagickTrue |
| #define MAX_STACK_DEPTH 32 |
Definition at line 81 of file operation.c.
| #define ReportGeometry | ( | flags, | |
| info | |||
| ) |
Definition at line 88 of file operation.c.
| #define UNDEFINED_COMPRESSION_QUALITY 0UL |
Definition at line 82 of file operation.c.
| #define USE_WAND_METHODS 1 |
Definition at line 80 of file operation.c.
| WandPrivate MagickBooleanType CLIListOperatorImages | ( | MagickCLI * | cli_wand, |
| const char * | option, | ||
| const char * | arg1n, | ||
| const char * | arg2n | ||
| ) |
Definition at line 3804 of file operation.c.
References _exception, _image_info, _images, _option_type, _process_flags, _quantize_info, CLIListOperatorImages(), CLILogEvent(), CLIWandExceptArgBreak, CLIWandException, CLIWandExceptionBreak, CLIWandWarnReplaced, _MagickWand::debug, IfNormalOp, IfPlusOp, IsNormalOp, MagickPathExtent, MagickWandSignature, ProcessInterpretProperities, _MagickWand::signature, _MagickCLI::signature, and _MagickCLI::wand.
Referenced by CLIListOperatorImages(), and CLIOption().
| WandPrivate void CLINoImageOperator | ( | MagickCLI * | cli_wand, |
| const char * | option, | ||
| const char * | arg1n, | ||
| const char * | arg2n | ||
| ) |
Definition at line 4800 of file operation.c.
References _exception, _image_info, _images, _option_type, _process_flags, CLILogEvent(), CLIWandExceptArgBreak, CLIWandException, CLIWandExceptionArg, CLIWandExceptionBreak, _Stack::data, _MagickWand::debug, DisableMSCWarning, _MagickCLI::draw_info, IfNormalOp, IfPlusOp, _MagickWand::image_info, _MagickCLI::image_info_stack, _MagickCLI::image_list_stack, _MagickWand::images, MagickNextImage(), MagickPathExtent, MagickResetIterator(), MagickWandSignature, MAX_STACK_DEPTH, _Stack::next, ProcessInterpretProperities, _MagickCLI::quantize_info, RestoreMSCWarning, _MagickWand::signature, _MagickCLI::signature, and _MagickCLI::wand.
Referenced by CLIOption().
| WandExport void CLIOption | ( | MagickCLI * | cli_wand, |
| const char * | option, | ||
| ... | |||
| ) |
Definition at line 5322 of file operation.c.
References CLIListOperatorImages(), CLINoImageOperator(), CLISettingOptionInfo(), CLISimpleOperatorImages(), CLIWandExceptionBreak, CLIWandExceptionReturn, _MagickCLI::command, DisableMSCWarning, _MagickWand::exception, _MagickWand::image_info, _MagickWand::images, MagickWandSignature, RestoreMSCWarning, _MagickWand::signature, _MagickCLI::signature, and _MagickCLI::wand.
Referenced by MagickImageCommand(), ProcessCommandOptions(), and ProcessScriptOptions().
| WandPrivate void CLISettingOptionInfo | ( | MagickCLI * | cli_wand, |
| const char * | option, | ||
| const char * | arg1n, | ||
| const char * | arg2n | ||
| ) |
Definition at line 431 of file operation.c.
References _draw_info, _exception, _image, _image_info, _option_type, _process_flags, _quantize_info, ArgBoolean, ArgBooleanNot, ArgBooleanString, ArgOption, CLILogEvent(), CLISettingOptionInfo(), CLIWandExceptArgBreak, CLIWandException, CLIWandExceptionBreak, CLIWandWarnReplaced, _MagickWand::debug, DEFAULT_DISSIMILARITY_THRESHOLD, GetImageCache(), IfSetOption, MagickPathExtent, MagickWandSignature, MogrifyAlphaColor, MogrifyBackgroundColor, MogrifyBorderColor, MonitorProgress(), ProcessInterpretProperities, _MagickWand::signature, _MagickCLI::signature, UNDEFINED_COMPRESSION_QUALITY, and _MagickCLI::wand.
Referenced by CLIOption(), and CLISettingOptionInfo().
|
static |
Definition at line 1661 of file operation.c.
References _draw_info, _exception, _image, _image_info, _option_type, _process_flags, _quantize_info, CLISimpleOperatorImage(), CLIWandExceptArgBreak, CLIWandException, CLIWandExceptionBreak, CLIWandWarnReplaced, _MagickWand::debug, GetImageCache(), IfNormalOp, IfPlusOp, IsNormalOp, IsPlusOp, MagickPathExtent, MagickWandSignature, MonitorProgress(), _MagickWand::name, ProcessInterpretProperities, _MagickWand::signature, _MagickCLI::signature, SparseColorOption(), and _MagickCLI::wand.
Referenced by CLISimpleOperatorImage(), and CLISimpleOperatorImages().
| WandPrivate MagickBooleanType CLISimpleOperatorImages | ( | MagickCLI * | cli_wand, |
| const char * | option, | ||
| const char * | arg1, | ||
| const char * | arg2, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 3732 of file operation.c.
References CLILogEvent(), CLISimpleOperatorImage(), _MagickWand::debug, _MagickWand::images, MagickNextImage(), MagickResetIterator(), MagickWandSignature, _MagickWand::signature, _MagickCLI::signature, and _MagickCLI::wand.
Referenced by CLIOption().
|
inlinestatic |
Definition at line 141 of file operation.c.
References MagickPathExtent.
Referenced by CLISettingOptionInfo(), and CLISimpleOperatorImage().
|
static |
Definition at line 95 of file operation.c.
References MagickPathExtent.
Referenced by CLISettingOptionInfo(), and CLISimpleOperatorImage().
|
static |
Definition at line 182 of file operation.c.
References MagickPathExtent.
Referenced by CLISimpleOperatorImage().
|
static |
Definition at line 73 of file operation.c.
Referenced by CLISettingOptionInfo().
|
static |
Definition at line 74 of file operation.c.
Referenced by CLISettingOptionInfo().
|
static |
Definition at line 75 of file operation.c.
Referenced by CLISettingOptionInfo().