blob: 077f7a175f53ee1bb39aa4b835b122b09f0581f1 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3% %
4% %
5% %
6% OOO PPPP TTTTT IIIII OOO N N %
7% O O P P T I O O NN N %
8% O O PPPP T I O O N N N %
9% O O P T I O O N NN %
10% OOO P T IIIII OOO N N %
11% %
12% %
13% MagickCore Option Methods %
14% %
15% Software Design %
16% John Cristy %
17% March 2000 %
18% %
19% %
cristy1454be72011-12-19 01:52:48 +000020% Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization %
cristy3ed852e2009-09-05 21:47:34 +000021% dedicated to making software imaging solutions freely available. %
22% %
23% You may not use this file except in compliance with the License. You may %
24% obtain a copy of the License at %
25% %
26% http://www.imagemagick.org/script/license.php %
27% %
28% Unless required by applicable law or agreed to in writing, software %
29% distributed under the License is distributed on an "AS IS" BASIS, %
30% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
31% See the License for the specific language governing permissions and %
32% limitations under the License. %
33% %
34%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
35%
36%
37%
38*/
39
40/*
41 Include declarations.
42*/
cristy4c08aed2011-07-01 19:47:50 +000043#include "MagickCore/studio.h"
44#include "MagickCore/artifact.h"
45#include "MagickCore/cache.h"
46#include "MagickCore/color.h"
47#include "MagickCore/compare.h"
48#include "MagickCore/constitute.h"
49#include "MagickCore/distort.h"
50#include "MagickCore/draw.h"
51#include "MagickCore/effect.h"
52#include "MagickCore/exception.h"
53#include "MagickCore/exception-private.h"
54#include "MagickCore/fx.h"
55#include "MagickCore/gem.h"
56#include "MagickCore/geometry.h"
57#include "MagickCore/image.h"
58#include "MagickCore/image-private.h"
59#include "MagickCore/layer.h"
60#include "MagickCore/mime-private.h"
61#include "MagickCore/memory_.h"
62#include "MagickCore/monitor.h"
63#include "MagickCore/montage.h"
64#include "MagickCore/morphology.h"
65#include "MagickCore/option.h"
66#include "MagickCore/policy.h"
67#include "MagickCore/property.h"
68#include "MagickCore/quantize.h"
69#include "MagickCore/quantum.h"
70#include "MagickCore/resample.h"
71#include "MagickCore/resource_.h"
72#include "MagickCore/splay-tree.h"
73#include "MagickCore/statistic.h"
74#include "MagickCore/string_.h"
75#include "MagickCore/token.h"
76#include "MagickCore/utility.h"
cristy3ed852e2009-09-05 21:47:34 +000077
78/*
79 ImageMagick options.
80*/
81static const OptionInfo
82 AlignOptions[] =
83 {
cristy042ee782011-04-22 18:48:30 +000084 { "Undefined", UndefinedAlign, UndefinedOptionFlag, MagickTrue },
85 { "Center", CenterAlign, UndefinedOptionFlag, MagickFalse },
86 { "End", RightAlign, UndefinedOptionFlag, MagickFalse },
87 { "Left", LeftAlign, UndefinedOptionFlag, MagickFalse },
88 { "Middle", CenterAlign, UndefinedOptionFlag, MagickFalse },
89 { "Right", RightAlign, UndefinedOptionFlag, MagickFalse },
90 { "Start", LeftAlign, UndefinedOptionFlag, MagickFalse },
91 { (char *) NULL, UndefinedAlign, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +000092 },
93 AlphaOptions[] =
94 {
cristy042ee782011-04-22 18:48:30 +000095 { "Undefined", UndefinedAlphaChannel, UndefinedOptionFlag, MagickTrue },
96 { "Activate", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
97 { "Background", BackgroundAlphaChannel, UndefinedOptionFlag, MagickFalse },
98 { "Copy", CopyAlphaChannel, UndefinedOptionFlag, MagickFalse },
99 { "Deactivate", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
100 { "Extract", ExtractAlphaChannel, UndefinedOptionFlag, MagickFalse },
101 { "Off", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
102 { "On", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
103 { "Opaque", OpaqueAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy61808382012-01-30 01:24:49 +0000104 { "Remove", RemoveAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000105 { "Set", SetAlphaChannel, UndefinedOptionFlag, MagickFalse },
106 { "Shape", ShapeAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000107 { "Reset", SetAlphaChannel, DeprecateOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000108 { "Transparent", TransparentAlphaChannel, UndefinedOptionFlag, MagickFalse },
109 { (char *) NULL, UndefinedAlphaChannel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000110 },
111 BooleanOptions[] =
112 {
anthony72feaa62012-01-17 06:46:23 +0000113 { "False", MagickFalse, UndefinedOptionFlag, MagickFalse },
114 { "True", MagickTrue, UndefinedOptionFlag, MagickFalse },
115 { "0", MagickFalse, UndefinedOptionFlag, MagickFalse },
116 { "1", MagickTrue, UndefinedOptionFlag, MagickFalse },
117 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000118 },
119 ChannelOptions[] =
120 {
cristy042ee782011-04-22 18:48:30 +0000121 { "Undefined", UndefinedChannel, UndefinedOptionFlag, MagickTrue },
anthony30b912a2012-03-22 01:20:28 +0000122 /* special */
cristy9a9230e2011-04-26 14:56:14 +0000123 { "All", CompositeChannels, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000124 { "Sync", SyncChannels, UndefinedOptionFlag, MagickFalse },
125 { "Default", DefaultChannels, UndefinedOptionFlag, MagickFalse },
126 /* individual channel */
127 { "A", AlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy953c4bd2012-02-24 01:04:04 +0000128 { "Alpha", AlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000129 { "Black", BlackChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000130 { "B", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000131 { "Blue", BlueChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000132 { "C", CyanChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000133 { "Cyan", CyanChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000134 { "Gray", GrayChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000135 { "G", GreenChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000136 { "Green", GreenChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000137 { "H", RedChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000138 { "Hue", RedChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000139 { "K", BlackChannel, UndefinedOptionFlag, MagickFalse },
140 { "L", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000141 { "Lightness", BlueChannel, UndefinedOptionFlag, MagickFalse },
142 { "Luminance", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000143 { "Luminosity", BlueChannel, DeprecateOptionFlag, MagickTrue },
anthony30b912a2012-03-22 01:20:28 +0000144 { "M", MagentaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000145 { "Magenta", MagentaChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000146 { "Matte", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
147 { "Opacity", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
148 { "R", RedChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000149 { "Red", RedChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000150 { "S", GreenChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000151 { "Saturation", GreenChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000152 { "Y", YellowChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000153 { "Yellow", YellowChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000154 { (char *) NULL, UndefinedChannel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000155 },
156 ClassOptions[] =
157 {
cristy042ee782011-04-22 18:48:30 +0000158 { "Undefined", UndefinedClass, UndefinedOptionFlag, MagickTrue },
159 { "DirectClass", DirectClass, UndefinedOptionFlag, MagickFalse },
160 { "PseudoClass", PseudoClass, UndefinedOptionFlag, MagickFalse },
161 { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000162 },
163 ClipPathOptions[] =
164 {
cristy042ee782011-04-22 18:48:30 +0000165 { "Undefined", UndefinedPathUnits, UndefinedOptionFlag, MagickTrue },
166 { "ObjectBoundingBox", ObjectBoundingBox, UndefinedOptionFlag, MagickFalse },
167 { "UserSpace", UserSpace, UndefinedOptionFlag, MagickFalse },
168 { "UserSpaceOnUse", UserSpaceOnUse, UndefinedOptionFlag, MagickFalse },
169 { (char *) NULL, UndefinedPathUnits, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000170 },
171 CommandOptions[] =
172 {
anthony686b1a32012-02-15 14:50:53 +0000173 /* WARNING: this must be sorted by name, then by switch character
cristy87c02f42012-02-24 00:19:10 +0000174 So that it can be referenced using a binary search for speed.
175 See GetCommandOptionInfo() below for details.
anthony686b1a32012-02-15 14:50:53 +0000176
177 Check on sort...
178 magick -list command > t1
179 sort -k 1.2 t1 | diff t1 -
180 Should not show any differences...
181 */
anthony464f1c42012-04-22 08:51:01 +0000182 { "(", 0L, NoImageOperatorFlag, MagickTrue },
183 { ")", 0L, NoImageOperatorFlag, MagickTrue },
184 { "{", 0L, NoImageOperatorFlag, MagickTrue },
185 { "}", 0L, NoImageOperatorFlag, MagickTrue },
186 { "--", 1L, NoImageOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000187 { "+adaptive-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000188 { "-adaptive-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000189 { "+adaptive-resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000190 { "-adaptive-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000191 { "+adaptive-sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000192 { "-adaptive-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000193 { "+adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
194 { "-adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000195 { "+affine", 0L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
196 { "-affine", 1L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
anthony31f1bf72012-01-30 12:37:22 +0000197 { "+affinity", 0L, DeprecateOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000198 { "-affinity", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
199 { "+alpha", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000200 { "-alpha", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000201 { "+annotate", 0L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000202 { "-annotate", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000203 { "+antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
204 { "-antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000205 { "+append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
206 { "-append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000207 { "+attenuate", 0L, ImageInfoOptionFlag, MagickFalse },
anthony92c93bd2012-03-19 14:02:47 +0000208 { "-attenuate", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000209 { "+authenticate", 0L, ImageInfoOptionFlag, MagickFalse },
210 { "-authenticate", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000211 { "+auto-gamma", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000212 { "-auto-gamma", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000213 { "+auto-level", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000214 { "-auto-level", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000215 { "+auto-orient", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000216 { "-auto-orient", 0L, SimpleOperatorFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000217 { "+average", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000218 { "-average", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000219 { "+backdrop", 0L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
220 { "-backdrop", 1L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000221 { "+background", 0L, ImageInfoOptionFlag, MagickFalse },
222 { "-background", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000223 { "+bench", 1L, DeprecateOptionFlag, MagickTrue },
anthony9a6469e2011-05-04 11:07:31 +0000224 { "-bench", 1L, GenesisOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000225 { "+bias", 0L, ImageInfoOptionFlag, MagickFalse },
226 { "-bias", 1L, ImageInfoOptionFlag, MagickFalse },
227 { "+black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
228 { "-black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000229 { "+black-threshold", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000230 { "-black-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000231 { "+blend", 0L, NonMagickOptionFlag, MagickFalse },
232 { "-blend", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000233 { "+blue-primary", 0L, ImageInfoOptionFlag, MagickFalse },
234 { "-blue-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000235 { "+blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
236 { "-blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000237 { "+blur", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000238 { "-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000239 { "+border", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000240 { "-border", 1L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000241 { "+bordercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
242 { "-bordercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000243 { "+borderwidth", 0L, NonMagickOptionFlag, MagickFalse },
244 { "-borderwidth", 1L, NonMagickOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000245 { "+box", 0L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
246 { "-box", 1L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000247 { "+brightness-contrast", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000248 { "-brightness-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000249 { "+cache", 0L, GlobalOptionFlag, MagickFalse },
250 { "-cache", 1L, GlobalOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000251 { "+caption", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
252 { "-caption", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000253 { "+cdl", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000254 { "-cdl", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthonydf9471d2012-03-22 03:53:05 +0000255 { "+channel", 0L, ImageInfoOptionFlag, MagickFalse },
256 { "-channel", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000257 { "-channel-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000258 { "+charcoal", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000259 { "-charcoal", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000260 { "+chop", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000261 { "-chop", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000262 { "+clamp", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000263 { "-clamp", 0L, SimpleOperatorFlag, MagickFalse },
264 { "+clip", 0L, SimpleOperatorFlag, MagickFalse },
265 { "-clip", 0L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000266 { "+clip-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
267 { "-clip-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000268 { "+clip-path", 1L, SimpleOperatorFlag, MagickFalse },
269 { "-clip-path", 1L, SimpleOperatorFlag, MagickFalse },
270 { "+clone", 0L, NoImageOperatorFlag, MagickFalse },
271 { "-clone", 1L, NoImageOperatorFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000272 { "+clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000273 { "-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000274 { "+coalesce", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000275 { "-coalesce", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000276 { "+color-matrix", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000277 { "-color-matrix", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000278 { "+colorize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000279 { "-colorize", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000280 { "+colormap", 0L, NonMagickOptionFlag, MagickFalse },
281 { "-colormap", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000282 { "+colors", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000283 { "-colors", 1L, SimpleOperatorFlag, MagickFalse },
284 { "+colorspace", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
285 { "-colorspace", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
cristy63e9ac82012-07-04 13:36:05 +0000286 { "+combine", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
cristy46f354c2012-07-04 13:31:29 +0000287 { "-combine", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000288 { "+comment", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
289 { "-comment", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000290 { "+compose", 0L, ImageInfoOptionFlag, MagickFalse },
291 { "-compose", 1L, ImageInfoOptionFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000292 { "+composite", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000293 { "-composite", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000294 { "+compress", 0L, ImageInfoOptionFlag, MagickFalse },
295 { "-compress", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000296 { "+concurrent", 0L, DeprecateOptionFlag, MagickTrue },
anthonyebb73a22012-03-22 14:25:52 +0000297 { "-concurrent", 0L, GenesisOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000298 { "+contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
299 { "-contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000300 { "+contrast-stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000301 { "-contrast-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000302 { "+convolve", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000303 { "-convolve", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000304 { "+crop", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000305 { "-crop", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000306 { "+cycle", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000307 { "-cycle", 1L, SimpleOperatorFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000308 { "+debug", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
309 { "-debug", 1L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000310 { "+decipher", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000311 { "-decipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000312 { "+deconstruct", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000313 { "-deconstruct", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000314 { "+define", 1L, ImageInfoOptionFlag, MagickFalse },
315 { "-define", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000316 { "+delay", 0L, ImageInfoOptionFlag, MagickFalse },
317 { "-delay", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000318 { "+delete", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
319 { "-delete", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000320 { "+density", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000321 { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000322 { "+depth", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
323 { "-depth", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000324 { "+descend", 0L, NonMagickOptionFlag, MagickFalse },
325 { "-descend", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000326 { "+deskew", 0L, SimpleOperatorFlag, MagickFalse },
327 { "-deskew", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000328 { "+despeckle", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000329 { "-despeckle", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000330 { "+direction", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
331 { "-direction", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000332 { "+displace", 0L, NonMagickOptionFlag, MagickFalse },
333 { "-displace", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000334 { "+display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000335 { "-display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000336 { "+dispose", 0L, ImageInfoOptionFlag, MagickFalse },
337 { "-dispose", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000338 { "+dissolve", 0L, NonMagickOptionFlag, MagickFalse },
339 { "-dissolve", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000340 { "+dissimilarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
341 { "-dissimilarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony964d28e2012-05-17 23:39:46 +0000342 { "+distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
343 { "-distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000344 { "+dither", 0L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
345 { "-dither", 1L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000346 { "+draw", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000347 { "-draw", 1L, SimpleOperatorFlag, MagickFalse },
348 { "+duplicate", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
349 { "-duplicate", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony9a6469e2011-05-04 11:07:31 +0000350 { "+duration", 1L, GenesisOptionFlag, MagickFalse },
351 { "-duration", 1L, GenesisOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000352 { "+edge", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000353 { "-edge", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000354 { "+emboss", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000355 { "-emboss", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000356 { "+encipher", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000357 { "-encipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000358 { "+encoding", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000359 { "-encoding", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000360 { "+endian", 0L, ImageInfoOptionFlag, MagickFalse },
361 { "-endian", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000362 { "+enhance", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000363 { "-enhance", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000364 { "+equalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000365 { "-equalize", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000366 { "+evaluate", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000367 { "-evaluate", 2L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000368 { "+evaluate-sequence", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000369 { "-evaluate-sequence", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000370 { "-exit", 0L, SpecialOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000371 { "+extent", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000372 { "-extent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000373 { "+extract", 0L, ImageInfoOptionFlag, MagickFalse },
374 { "-extract", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000375 { "+family", 0L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000376 { "-family", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000377 { "+features", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
378 { "-features", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
379 { "+fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
380 { "-fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000381 { "+fill", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
382 { "-fill", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000383 { "+filter", 0L, ImageInfoOptionFlag, MagickFalse },
384 { "-filter", 1L, ImageInfoOptionFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000385 { "+flatten", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000386 { "-flatten", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000387 { "+flip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000388 { "-flip", 0L, SimpleOperatorFlag, MagickFalse },
389 { "+floodfill", 2L, SimpleOperatorFlag, MagickFalse },
390 { "-floodfill", 2L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000391 { "+flop", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000392 { "-flop", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000393 { "+font", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
394 { "-font", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000395 { "+foreground", 0L, NonMagickOptionFlag, MagickFalse },
396 { "-foreground", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000397 { "+format", 0L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000398 { "-format", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000399 { "+frame", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000400 { "-frame", 1L, SimpleOperatorFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000401 { "+function", 2L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000402 { "-function", 2L,SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000403 { "+fuzz", 0L, ImageInfoOptionFlag, MagickFalse },
404 { "-fuzz", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000405 { "+fx", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000406 { "-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony7a4d6102012-07-01 09:48:25 +0000407 { "+gamma", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000408 { "-gamma", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000409 { "+gaussian", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000410 { "-gaussian", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000411 { "+gaussian-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000412 { "-gaussian-blur", 1L, SimpleOperatorFlag, MagickFalse },
413 { "+geometry", 0L, SimpleOperatorFlag, MagickFalse },
414 { "-geometry", 1L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000415 { "+gravity", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
416 { "-gravity", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000417 { "+green-primary", 0L, ImageInfoOptionFlag, MagickFalse },
418 { "-green-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000419 { "+hald-clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000420 { "-hald-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000421 { "+highlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
422 { "-highlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000423 { "+iconGeometry", 0L, NonMagickOptionFlag, MagickFalse },
424 { "-iconGeometry", 1L, NonMagickOptionFlag, MagickFalse },
425 { "+iconic", 0L, NonMagickOptionFlag, MagickFalse },
426 { "-iconic", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000427 { "+identify", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000428 { "-identify", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
429 { "+ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
430 { "-ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000431 { "+immutable", 0L, NonMagickOptionFlag, MagickFalse },
432 { "-immutable", 0L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000433 { "+implode", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000434 { "-implode", 1L, SimpleOperatorFlag, MagickFalse },
435 { "+insert", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
436 { "-insert", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000437 { "+intent", 0L, ImageInfoOptionFlag, MagickFalse },
438 { "-intent", 1L, ImageInfoOptionFlag, MagickFalse },
439 { "+interlace", 0L, ImageInfoOptionFlag, MagickFalse },
440 { "-interlace", 1L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000441 { "+interline-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
442 { "-interline-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000443 { "+interpolate", 0L, ImageInfoOptionFlag, MagickFalse },
444 { "-interpolate", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000445 { "+interpolative-resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000446 { "-interpolative-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000447 { "+interword-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
448 { "-interword-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000449 { "+kerning", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
450 { "-kerning", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000451 { "+label", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
452 { "-label", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000453 { "+lat", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000454 { "-lat", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000455 { "+layers", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000456 { "-layers", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
457 { "+level", 1L, SimpleOperatorFlag, MagickFalse },
458 { "-level", 1L, SimpleOperatorFlag, MagickFalse },
459 { "+level-colors", 1L, SimpleOperatorFlag, MagickFalse },
460 { "-level-colors", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000461 { "+limit", 0L, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000462 { "-limit", 2L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000463 { "+linear-stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000464 { "-linear-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000465 { "+liquid-rescale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000466 { "-liquid-rescale", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000467 { "+list", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000468 { "-list", 1L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000469 { "+log", 0L, DeprecateOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000470 { "-log", 1L, GlobalOptionFlag, MagickFalse },
471 { "+loop", 0L, ImageInfoOptionFlag, MagickFalse },
472 { "-loop", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000473 { "+lowlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
474 { "-lowlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000475 { "+magnify", 0L, NonMagickOptionFlag, MagickFalse },
476 { "-magnify", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000477 { "+map", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
478 { "-map", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000479 { "+mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
480 { "-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000481 { "+matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
482 { "-matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000483 { "+mattecolor", 0L, ImageInfoOptionFlag, MagickFalse },
484 { "-mattecolor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000485 { "+maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
486 { "-maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
487 { "+median", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000488 { "-median", 1L, ReplacedOptionFlag | SimpleOperatorFlag | FireOptionFlag, MagickTrue },
anthonycd358fc2012-04-16 13:59:03 +0000489 { "+metric", 0L, ImageInfoOptionFlag, MagickFalse },
490 { "-metric", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000491 { "+minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
492 { "-minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000493 { "+mode", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000494 { "-mode", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000495 { "+modulate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000496 { "-modulate", 1L, SimpleOperatorFlag, MagickFalse },
497 { "+monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
498 { "-monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000499 { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000500 { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000501 { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000502 { "-morph", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000503 { "+morphology", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000504 { "-morphology", 2L, SimpleOperatorFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000505 { "+mosaic", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000506 { "-mosaic", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000507 { "+motion-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000508 { "-motion-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000509 { "+name", 0L, NonMagickOptionFlag, MagickFalse },
510 { "-name", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000511 { "+negate", 0L, SimpleOperatorFlag, MagickFalse },
512 { "-negate", 0L, SimpleOperatorFlag, MagickFalse },
513 { "+noise", 1L, SimpleOperatorFlag, MagickFalse },
514 { "-noise", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickFalse },
515 { "-noop", 0L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000516 { "+normalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000517 { "-normalize", 0L, SimpleOperatorFlag, MagickFalse },
518 { "+opaque", 1L, SimpleOperatorFlag, MagickFalse },
519 { "-opaque", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000520 { "+ordered-dither", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000521 { "-ordered-dither", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000522 { "+orient", 0L, ImageInfoOptionFlag, MagickFalse },
523 { "-orient", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000524 { "+page", 0L, ImageInfoOptionFlag, MagickFalse },
525 { "-page", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000526 { "+paint", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000527 { "-paint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000528 { "+path", 0L, NonMagickOptionFlag, MagickFalse },
529 { "-path", 1L, NonMagickOptionFlag, MagickFalse },
530 { "+pause", 0L, NonMagickOptionFlag, MagickFalse },
531 { "-pause", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000532 { "+ping", 0L, ImageInfoOptionFlag, MagickFalse },
533 { "-ping", 0L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000534 { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
535 { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000536 { "+polaroid", 0L, SimpleOperatorFlag, MagickFalse },
537 { "-polaroid", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000538 { "+posterize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000539 { "-posterize", 1L, SimpleOperatorFlag, MagickFalse },
anthonya3ef4ed2012-03-17 06:52:53 +0000540 { "+precision", 0L, ImageInfoOptionFlag, MagickFalse },
541 { "-precision", 1L, ImageInfoOptionFlag, MagickFalse },
542 { "+preview", 0L, DeprecateOptionFlag, MagickTrue },
543 { "-preview", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000544 { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000545 { "-print", 1L, ListOperatorFlag | AlwaysInterpretArgsFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000546 { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000547 { "-process", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
548 { "+profile", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000549 { "-profile", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000550 { "+quality", 0L, ImageInfoOptionFlag, MagickFalse },
551 { "-quality", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000552 { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse },
553 { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000554 { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
555 { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000556 { "+radial-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000557 { "-radial-blur", 1L, SimpleOperatorFlag, MagickFalse },
558 { "+raise", 1L, SimpleOperatorFlag, MagickFalse },
559 { "-raise", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000560 { "+random-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000561 { "-random-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000562 { "-read", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000563 { "+recolor", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000564 { "-recolor", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000565 { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse },
566 { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000567 { "+regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
568 { "-regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000569 { "+region", 0L, NoImageOperatorFlag, MagickFalse },
570 { "-region", 1L, NoImageOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000571 { "+remap", 0L, ListOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
572 { "-remap", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000573 { "+remote", 0L, NonMagickOptionFlag, MagickFalse },
574 { "-remote", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000575 { "+render", 0L, DrawInfoOptionFlag, MagickFalse },
576 { "-render", 0L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000577 { "+repage", 0L, SimpleOperatorFlag, MagickFalse },
578 { "-repage", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000579 { "+resample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000580 { "-resample", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000581 { "+resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000582 { "-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthonyd111fda2012-04-13 03:07:40 +0000583 { "+respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
584 { "-respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000585 { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000586 { "-reverse", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000587 { "+roll", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000588 { "-roll", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000589 { "+rotate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000590 { "-rotate", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000591 { "+sample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000592 { "-sample", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000593 { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse },
594 { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000595 { "+sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
596 { "-sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
597 { "+sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'noop' */
598 { "-sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
599 { "+sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
600 { "-sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000601 { "+scale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000602 { "-scale", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000603 { "+scene", 0L, ImageInfoOptionFlag, MagickFalse },
604 { "-scene", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000605 { "+scenes", 0L, NonMagickOptionFlag, MagickFalse },
606 { "-scenes", 1L, NonMagickOptionFlag, MagickFalse },
607 { "+screen", 0L, NonMagickOptionFlag, MagickFalse },
608 { "-screen", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000609 { "-script", 1L, SpecialOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000610 { "+seed", 0L, GlobalOptionFlag, MagickFalse },
611 { "-seed", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000612 { "+segment", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000613 { "-segment", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000614 { "+selective-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000615 { "-selective-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000616 { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000617 { "-separate", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000618 { "+sepia-tone", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000619 { "-sepia-tone", 1L, SimpleOperatorFlag, MagickFalse },
anthony964d28e2012-05-17 23:39:46 +0000620 { "+set", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
621 { "-set", 2L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000622 { "+shade", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000623 { "-shade", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000624 { "+shadow", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000625 { "-shadow", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000626 { "+shared-memory", 0L, NonMagickOptionFlag, MagickFalse },
627 { "-shared-memory", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000628 { "+sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000629 { "-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000630 { "+shave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000631 { "-shave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000632 { "+shear", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000633 { "-shear", 1L, SimpleOperatorFlag, MagickFalse },
634 { "+sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
635 { "-sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000636 { "+silent", 0L, NonMagickOptionFlag, MagickFalse },
637 { "-silent", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000638 { "+size", 0L, ImageInfoOptionFlag, MagickFalse },
639 { "-size", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000640 { "+sketch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000641 { "-sketch", 1L, SimpleOperatorFlag, MagickFalse },
642 { "+smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
643 { "-smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000644 { "+snaps", 0L, NonMagickOptionFlag, MagickFalse },
645 { "-snaps", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000646 { "+solarize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000647 { "-solarize", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000648 { "+sparse-color", 1L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000649 { "-sparse-color", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000650 { "+splice", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000651 { "-splice", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000652 { "+spread", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000653 { "-spread", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000654 { "+statistic", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000655 { "-statistic", 2L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000656 { "+stegano", 0L, NonMagickOptionFlag, MagickFalse },
657 { "-stegano", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000658 { "+stereo", 0L, DeprecateOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000659 { "-stereo", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000660 { "+stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000661 { "-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000662 { "+strip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000663 { "-strip", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000664 { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
665 { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000666 { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000667 { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000668 { "+style", 0L, DrawInfoOptionFlag, MagickFalse },
669 { "-style", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000670 { "+subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
671 { "-subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
672 { "-subimage", 0L, ListOperatorFlag, MagickFalse },
673 { "+swap", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
674 { "-swap", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000675 { "+swirl", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000676 { "-swirl", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000677 { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
678 { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
679 { "+taint", 0L, ImageInfoOptionFlag, MagickFalse },
680 { "-taint", 0L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000681 { "+text-font", 0L, NonMagickOptionFlag, MagickFalse },
682 { "-text-font", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000683 { "+texture", 0L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000684 { "-texture", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000685 { "+threshold", 0L, SimpleOperatorFlag, MagickFalse },
686 { "-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000687 { "+thumbnail", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000688 { "-thumbnail", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000689 { "+tile", 0L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
690 { "-tile", 1L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000691 { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse },
692 { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000693 { "+tint", 1L, SimpleOperatorFlag, MagickFalse },
694 { "-tint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000695 { "+title", 0L, NonMagickOptionFlag, MagickFalse },
696 { "-title", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000697 { "+transform", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000698 { "-transform", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
699 { "+transparent", 1L, SimpleOperatorFlag, MagickFalse },
700 { "-transparent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000701 { "+transparent-color", 0L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000702 { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000703 { "+transpose", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000704 { "-transpose", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000705 { "+transverse", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000706 { "-transverse", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000707 { "+treedepth", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000708 { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000709 { "+trim", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000710 { "-trim", 0L, SimpleOperatorFlag, MagickFalse },
711 { "+type", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
712 { "-type", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000713 { "+undercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000714 { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000715 { "+unique", 0L, SimpleOperatorFlag, MagickFalse },
716 { "-unique", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000717 { "+unique-colors", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000718 { "-unique-colors", 0L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000719 { "+units", 0L, ImageInfoOptionFlag, MagickFalse },
720 { "-units", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000721 { "+unsharp", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000722 { "-unsharp", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000723 { "+update", 0L, NonMagickOptionFlag, MagickFalse },
724 { "-update", 1L, NonMagickOptionFlag, MagickFalse },
725 { "+use-pixmap", 0L, NonMagickOptionFlag, MagickFalse },
726 { "-use-pixmap", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000727 { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
728 { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
cristyc404ff62012-02-05 15:17:09 +0000729 { "+version", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000730 { "-version", 0L, NoImageOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000731 { "+view", 0L, ImageInfoOptionFlag, MagickFalse },
732 { "-view", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000733 { "+vignette", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000734 { "-vignette", 1L, SimpleOperatorFlag, MagickFalse },
anthonyebb73a22012-03-22 14:25:52 +0000735 { "+virtual-pixel", 0L, ImageInfoOptionFlag, MagickFalse },
736 { "-virtual-pixel", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000737 { "+visual", 0L, NonMagickOptionFlag, MagickFalse },
738 { "-visual", 1L, NonMagickOptionFlag, MagickFalse },
739 { "+watermark", 0L, NonMagickOptionFlag, MagickFalse },
740 { "-watermark", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000741 { "+wave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000742 { "-wave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000743 { "+weight", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000744 { "-weight", 1L, DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000745 { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse },
746 { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000747 { "+white-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000748 { "-white-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000749 { "+window", 0L, NonMagickOptionFlag, MagickFalse },
750 { "-window", 1L, NonMagickOptionFlag, MagickFalse },
751 { "+window-group", 0L, NonMagickOptionFlag, MagickFalse },
752 { "-window-group", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000753 { "+write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
754 { "-write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000755 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000756 },
757 ComposeOptions[] =
758 {
cristy042ee782011-04-22 18:48:30 +0000759 { "Undefined", UndefinedCompositeOp, UndefinedOptionFlag, MagickTrue },
760 { "Atop", AtopCompositeOp, UndefinedOptionFlag, MagickFalse },
761 { "Blend", BlendCompositeOp, UndefinedOptionFlag, MagickFalse },
762 { "Blur", BlurCompositeOp, UndefinedOptionFlag, MagickFalse },
763 { "Bumpmap", BumpmapCompositeOp, UndefinedOptionFlag, MagickFalse },
764 { "ChangeMask", ChangeMaskCompositeOp, UndefinedOptionFlag, MagickFalse },
765 { "Clear", ClearCompositeOp, UndefinedOptionFlag, MagickFalse },
766 { "ColorBurn", ColorBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
767 { "ColorDodge", ColorDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
768 { "Colorize", ColorizeCompositeOp, UndefinedOptionFlag, MagickFalse },
cristye4a40472011-12-22 02:56:19 +0000769 { "CopyAlpha", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000770 { "CopyBlack", CopyBlackCompositeOp, UndefinedOptionFlag, MagickFalse },
771 { "CopyBlue", CopyBlueCompositeOp, UndefinedOptionFlag, MagickFalse },
772 { "CopyCyan", CopyCyanCompositeOp, UndefinedOptionFlag, MagickFalse },
773 { "CopyGreen", CopyGreenCompositeOp, UndefinedOptionFlag, MagickFalse },
774 { "Copy", CopyCompositeOp, UndefinedOptionFlag, MagickFalse },
775 { "CopyMagenta", CopyMagentaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000776 { "CopyRed", CopyRedCompositeOp, UndefinedOptionFlag, MagickFalse },
777 { "CopyYellow", CopyYellowCompositeOp, UndefinedOptionFlag, MagickFalse },
778 { "Darken", DarkenCompositeOp, UndefinedOptionFlag, MagickFalse },
779 { "DarkenIntensity", DarkenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
780 { "DivideDst", DivideDstCompositeOp, UndefinedOptionFlag, MagickFalse },
781 { "DivideSrc", DivideSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
782 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse },
783 { "Difference", DifferenceCompositeOp, UndefinedOptionFlag, MagickFalse },
784 { "Displace", DisplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
785 { "Dissolve", DissolveCompositeOp, UndefinedOptionFlag, MagickFalse },
786 { "Distort", DistortCompositeOp, UndefinedOptionFlag, MagickFalse },
787 { "DstAtop", DstAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
788 { "DstIn", DstInCompositeOp, UndefinedOptionFlag, MagickFalse },
789 { "DstOut", DstOutCompositeOp, UndefinedOptionFlag, MagickFalse },
790 { "DstOver", DstOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000791 { "Exclusion", ExclusionCompositeOp, UndefinedOptionFlag, MagickFalse },
792 { "HardLight", HardLightCompositeOp, UndefinedOptionFlag, MagickFalse },
793 { "Hue", HueCompositeOp, UndefinedOptionFlag, MagickFalse },
794 { "In", InCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy98621462011-12-31 22:31:11 +0000795 { "Intensity", IntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000796 { "Lighten", LightenCompositeOp, UndefinedOptionFlag, MagickFalse },
797 { "LightenIntensity", LightenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
798 { "LinearBurn", LinearBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
799 { "LinearDodge", LinearDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
800 { "LinearLight", LinearLightCompositeOp, UndefinedOptionFlag, MagickFalse },
801 { "Luminize", LuminizeCompositeOp, UndefinedOptionFlag, MagickFalse },
802 { "Mathematics", MathematicsCompositeOp, UndefinedOptionFlag, MagickFalse },
803 { "MinusDst", MinusDstCompositeOp, UndefinedOptionFlag, MagickFalse },
804 { "MinusSrc", MinusSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
805 { "Modulate", ModulateCompositeOp, UndefinedOptionFlag, MagickFalse },
806 { "ModulusAdd", ModulusAddCompositeOp, UndefinedOptionFlag, MagickFalse },
807 { "ModulusSubtract", ModulusSubtractCompositeOp, UndefinedOptionFlag, MagickFalse },
808 { "Multiply", MultiplyCompositeOp, UndefinedOptionFlag, MagickFalse },
809 { "None", NoCompositeOp, UndefinedOptionFlag, MagickFalse },
810 { "Out", OutCompositeOp, UndefinedOptionFlag, MagickFalse },
811 { "Overlay", OverlayCompositeOp, UndefinedOptionFlag, MagickFalse },
812 { "Over", OverCompositeOp, UndefinedOptionFlag, MagickFalse },
813 { "PegtopLight", PegtopLightCompositeOp, UndefinedOptionFlag, MagickFalse },
814 { "PinLight", PinLightCompositeOp, UndefinedOptionFlag, MagickFalse },
815 { "Plus", PlusCompositeOp, UndefinedOptionFlag, MagickFalse },
816 { "Replace", ReplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
817 { "Saturate", SaturateCompositeOp, UndefinedOptionFlag, MagickFalse },
818 { "Screen", ScreenCompositeOp, UndefinedOptionFlag, MagickFalse },
819 { "SoftLight", SoftLightCompositeOp, UndefinedOptionFlag, MagickFalse },
820 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse },
821 { "SrcAtop", SrcAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
822 { "SrcIn", SrcInCompositeOp, UndefinedOptionFlag, MagickFalse },
823 { "SrcOut", SrcOutCompositeOp, UndefinedOptionFlag, MagickFalse },
824 { "SrcOver", SrcOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000825 { "VividLight", VividLightCompositeOp, UndefinedOptionFlag, MagickFalse },
826 { "Xor", XorCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000827 { "Divide", DivideDstCompositeOp, DeprecateOptionFlag, MagickTrue },
828 { "Minus", MinusDstCompositeOp, DeprecateOptionFlag, MagickTrue },
cristy1df692a2011-04-23 17:09:35 +0000829 { "Threshold", ThresholdCompositeOp, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000830 { "CopyOpacity", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000831 { (char *) NULL, UndefinedCompositeOp, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000832 },
833 CompressOptions[] =
834 {
cristy042ee782011-04-22 18:48:30 +0000835 { "Undefined", UndefinedCompression, UndefinedOptionFlag, MagickTrue },
836 { "B44", B44Compression, UndefinedOptionFlag, MagickFalse },
837 { "B44A", B44ACompression, UndefinedOptionFlag, MagickFalse },
838 { "BZip", BZipCompression, UndefinedOptionFlag, MagickFalse },
839 { "DXT1", DXT1Compression, UndefinedOptionFlag, MagickFalse },
840 { "DXT3", DXT3Compression, UndefinedOptionFlag, MagickFalse },
841 { "DXT5", DXT5Compression, UndefinedOptionFlag, MagickFalse },
842 { "Fax", FaxCompression, UndefinedOptionFlag, MagickFalse },
843 { "Group4", Group4Compression, UndefinedOptionFlag, MagickFalse },
cristy6d5e20f2011-04-25 13:48:54 +0000844 { "JBIG1", JBIG1Compression, UndefinedOptionFlag, MagickFalse },
845 { "JBIG2", JBIG2Compression, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000846 { "JPEG", JPEGCompression, UndefinedOptionFlag, MagickFalse },
847 { "JPEG2000", JPEG2000Compression, UndefinedOptionFlag, MagickFalse },
848 { "Lossless", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
849 { "LosslessJPEG", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
850 { "LZMA", LZMACompression, UndefinedOptionFlag, MagickFalse },
851 { "LZW", LZWCompression, UndefinedOptionFlag, MagickFalse },
852 { "None", NoCompression, UndefinedOptionFlag, MagickFalse },
853 { "Piz", PizCompression, UndefinedOptionFlag, MagickFalse },
854 { "Pxr24", Pxr24Compression, UndefinedOptionFlag, MagickFalse },
855 { "RLE", RLECompression, UndefinedOptionFlag, MagickFalse },
856 { "Zip", ZipCompression, UndefinedOptionFlag, MagickFalse },
857 { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
858 { "ZipS", ZipSCompression, UndefinedOptionFlag, MagickFalse },
859 { (char *) NULL, UndefinedCompression, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000860 },
861 ColorspaceOptions[] =
862 {
cristy042ee782011-04-22 18:48:30 +0000863 { "Undefined", UndefinedColorspace, UndefinedOptionFlag, MagickTrue },
cristy978b6a32012-06-24 15:17:32 +0000864 { "CIELab", LabColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000865 { "CMY", CMYColorspace, UndefinedOptionFlag, MagickFalse },
866 { "CMYK", CMYKColorspace, UndefinedOptionFlag, MagickFalse },
867 { "Gray", GRAYColorspace, UndefinedOptionFlag, MagickFalse },
cristy722fc0c2012-08-04 23:15:43 +0000868 { "HCL", HCLColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000869 { "HSB", HSBColorspace, UndefinedOptionFlag, MagickFalse },
870 { "HSL", HSLColorspace, UndefinedOptionFlag, MagickFalse },
871 { "HWB", HWBColorspace, UndefinedOptionFlag, MagickFalse },
872 { "Lab", LabColorspace, UndefinedOptionFlag, MagickFalse },
873 { "Log", LogColorspace, UndefinedOptionFlag, MagickFalse },
cristycb82c8e2012-08-01 12:54:37 +0000874 { "Luv", LuvColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000875 { "OHTA", OHTAColorspace, UndefinedOptionFlag, MagickFalse },
876 { "Rec601Luma", Rec601LumaColorspace, UndefinedOptionFlag, MagickFalse },
877 { "Rec601YCbCr", Rec601YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
878 { "Rec709Luma", Rec709LumaColorspace, UndefinedOptionFlag, MagickFalse },
879 { "Rec709YCbCr", Rec709YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
880 { "RGB", RGBColorspace, UndefinedOptionFlag, MagickFalse },
881 { "sRGB", sRGBColorspace, UndefinedOptionFlag, MagickFalse },
882 { "Transparent", TransparentColorspace, UndefinedOptionFlag, MagickFalse },
883 { "XYZ", XYZColorspace, UndefinedOptionFlag, MagickFalse },
884 { "YCbCr", YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
885 { "YCC", YCCColorspace, UndefinedOptionFlag, MagickFalse },
886 { "YIQ", YIQColorspace, UndefinedOptionFlag, MagickFalse },
887 { "YPbPr", YPbPrColorspace, UndefinedOptionFlag, MagickFalse },
888 { "YUV", YUVColorspace, UndefinedOptionFlag, MagickFalse },
889 { (char *) NULL, UndefinedColorspace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000890 },
891 DataTypeOptions[] =
892 {
cristy042ee782011-04-22 18:48:30 +0000893 { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue },
894 { "Byte", ByteData, UndefinedOptionFlag, MagickFalse },
895 { "Long", LongData, UndefinedOptionFlag, MagickFalse },
896 { "Short", ShortData, UndefinedOptionFlag, MagickFalse },
897 { "String", StringData, UndefinedOptionFlag, MagickFalse },
898 { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000899 },
900 DecorateOptions[] =
901 {
cristy042ee782011-04-22 18:48:30 +0000902 { "Undefined", UndefinedDecoration, UndefinedOptionFlag, MagickTrue },
903 { "LineThrough", LineThroughDecoration, UndefinedOptionFlag, MagickFalse },
904 { "None", NoDecoration, UndefinedOptionFlag, MagickFalse },
905 { "Overline", OverlineDecoration, UndefinedOptionFlag, MagickFalse },
906 { "Underline", UnderlineDecoration, UndefinedOptionFlag, MagickFalse },
907 { (char *) NULL, UndefinedDecoration, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000908 },
cristyc9b12952010-03-28 01:12:28 +0000909 DirectionOptions[] =
910 {
cristy042ee782011-04-22 18:48:30 +0000911 { "Undefined", UndefinedDirection, UndefinedOptionFlag, MagickTrue },
912 { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse },
913 { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse },
914 { (char *) NULL, UndefinedDirection, UndefinedOptionFlag, MagickFalse }
cristyc9b12952010-03-28 01:12:28 +0000915 },
cristy3ed852e2009-09-05 21:47:34 +0000916 DisposeOptions[] =
917 {
cristy042ee782011-04-22 18:48:30 +0000918 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickTrue },
919 { "Background", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
920 { "None", NoneDispose, UndefinedOptionFlag, MagickFalse },
921 { "Previous", PreviousDispose, UndefinedOptionFlag, MagickFalse },
922 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
923 { "0", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
924 { "1", NoneDispose, UndefinedOptionFlag, MagickFalse },
925 { "2", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
926 { "3", PreviousDispose, UndefinedOptionFlag, MagickFalse },
927 { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000928 },
929 DistortOptions[] =
930 {
cristy042ee782011-04-22 18:48:30 +0000931 { "Affine", AffineDistortion, UndefinedOptionFlag, MagickFalse },
932 { "AffineProjection", AffineProjectionDistortion, UndefinedOptionFlag, MagickFalse },
933 { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
934 { "SRT", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
935 { "Perspective", PerspectiveDistortion, UndefinedOptionFlag, MagickFalse },
936 { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse },
937 { "Bilinear", BilinearForwardDistortion, UndefinedOptionFlag, MagickTrue },
938 { "BilinearForward", BilinearForwardDistortion, UndefinedOptionFlag, MagickFalse },
939 { "BilinearReverse", BilinearReverseDistortion, UndefinedOptionFlag, MagickFalse },
940 { "Polynomial", PolynomialDistortion, UndefinedOptionFlag, MagickFalse },
941 { "Arc", ArcDistortion, UndefinedOptionFlag, MagickFalse },
942 { "Polar", PolarDistortion, UndefinedOptionFlag, MagickFalse },
943 { "DePolar", DePolarDistortion, UndefinedOptionFlag, MagickFalse },
944 { "Barrel", BarrelDistortion, UndefinedOptionFlag, MagickFalse },
anthonye0d9bbd2011-06-15 01:05:57 +0000945 { "Cylinder2Plane", Cylinder2PlaneDistortion, UndefinedOptionFlag, MagickTrue },
946 { "Plane2Cylinder", Plane2CylinderDistortion, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000947 { "BarrelInverse", BarrelInverseDistortion, UndefinedOptionFlag, MagickFalse },
948 { "Shepards", ShepardsDistortion, UndefinedOptionFlag, MagickFalse },
949 { "Resize", ResizeDistortion, UndefinedOptionFlag, MagickFalse },
950 { (char *) NULL, UndefinedDistortion, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000951 },
952 DitherOptions[] =
953 {
cristy042ee782011-04-22 18:48:30 +0000954 { "Undefined", UndefinedDitherMethod, UndefinedOptionFlag, MagickTrue },
955 { "None", NoDitherMethod, UndefinedOptionFlag, MagickFalse },
956 { "FloydSteinberg", FloydSteinbergDitherMethod, UndefinedOptionFlag, MagickFalse },
957 { "Riemersma", RiemersmaDitherMethod, UndefinedOptionFlag, MagickFalse },
958 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000959 },
960 EndianOptions[] =
961 {
cristy042ee782011-04-22 18:48:30 +0000962 { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue },
963 { "LSB", LSBEndian, UndefinedOptionFlag, MagickFalse },
964 { "MSB", MSBEndian, UndefinedOptionFlag, MagickFalse },
965 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000966 },
967 EvaluateOptions[] =
968 {
cristy042ee782011-04-22 18:48:30 +0000969 { "Undefined", UndefinedEvaluateOperator, UndefinedOptionFlag, MagickTrue },
970 { "Abs", AbsEvaluateOperator, UndefinedOptionFlag, MagickFalse },
971 { "Add", AddEvaluateOperator, UndefinedOptionFlag, MagickFalse },
972 { "AddModulus", AddModulusEvaluateOperator, UndefinedOptionFlag, MagickFalse },
973 { "And", AndEvaluateOperator, UndefinedOptionFlag, MagickFalse },
974 { "Cos", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
975 { "Cosine", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
976 { "Divide", DivideEvaluateOperator, UndefinedOptionFlag, MagickFalse },
977 { "Exp", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
978 { "Exponential", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
979 { "GaussianNoise", GaussianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
980 { "ImpulseNoise", ImpulseNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
981 { "LaplacianNoise", LaplacianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
982 { "LeftShift", LeftShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
983 { "Log", LogEvaluateOperator, UndefinedOptionFlag, MagickFalse },
984 { "Max", MaxEvaluateOperator, UndefinedOptionFlag, MagickFalse },
985 { "Mean", MeanEvaluateOperator, UndefinedOptionFlag, MagickFalse },
986 { "Median", MedianEvaluateOperator, UndefinedOptionFlag, MagickFalse },
987 { "Min", MinEvaluateOperator, UndefinedOptionFlag, MagickFalse },
988 { "MultiplicativeNoise", MultiplicativeNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
989 { "Multiply", MultiplyEvaluateOperator, UndefinedOptionFlag, MagickFalse },
990 { "Or", OrEvaluateOperator, UndefinedOptionFlag, MagickFalse },
991 { "PoissonNoise", PoissonNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
992 { "Pow", PowEvaluateOperator, UndefinedOptionFlag, MagickFalse },
993 { "RightShift", RightShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
994 { "Set", SetEvaluateOperator, UndefinedOptionFlag, MagickFalse },
995 { "Sin", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
996 { "Sine", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
997 { "Subtract", SubtractEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy12a3f8e2012-01-31 01:53:19 +0000998 { "Sum", SumEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000999 { "Threshold", ThresholdEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1000 { "ThresholdBlack", ThresholdBlackEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1001 { "ThresholdWhite", ThresholdWhiteEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1002 { "UniformNoise", UniformNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1003 { "Xor", XorEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1004 { (char *) NULL, UndefinedEvaluateOperator, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001005 },
1006 FillRuleOptions[] =
1007 {
cristy042ee782011-04-22 18:48:30 +00001008 { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue },
1009 { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse },
1010 { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse },
1011 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001012 },
1013 FilterOptions[] =
1014 {
cristy042ee782011-04-22 18:48:30 +00001015 { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue },
1016 { "Bartlett", BartlettFilter, UndefinedOptionFlag, MagickFalse },
1017 { "Blackman", BlackmanFilter, UndefinedOptionFlag, MagickFalse },
1018 { "Bohman", BohmanFilter, UndefinedOptionFlag, MagickFalse },
1019 { "Box", BoxFilter, UndefinedOptionFlag, MagickFalse },
1020 { "Catrom", CatromFilter, UndefinedOptionFlag, MagickFalse },
anthony5d4a1702012-05-08 01:22:41 +00001021 { "Cosine", CosineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001022 { "Cubic", CubicFilter, UndefinedOptionFlag, MagickFalse },
1023 { "Gaussian", GaussianFilter, UndefinedOptionFlag, MagickFalse },
1024 { "Hamming", HammingFilter, UndefinedOptionFlag, MagickFalse },
anthonyf60ffd72012-08-20 03:25:30 +00001025 { "Hann", HannFilter, UndefinedOptionFlag, MagickFalse },
1026 { "Hanning", HannFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
cristy042ee782011-04-22 18:48:30 +00001027 { "Hermite", HermiteFilter, UndefinedOptionFlag, MagickFalse },
1028 { "Jinc", JincFilter, UndefinedOptionFlag, MagickFalse },
1029 { "Kaiser", KaiserFilter, UndefinedOptionFlag, MagickFalse },
1030 { "Lagrange", LagrangeFilter, UndefinedOptionFlag, MagickFalse },
1031 { "Lanczos", LanczosFilter, UndefinedOptionFlag, MagickFalse },
1032 { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse },
1033 { "Lanczos2", Lanczos2Filter, UndefinedOptionFlag, MagickFalse },
1034 { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse },
1035 { "Mitchell", MitchellFilter, UndefinedOptionFlag, MagickFalse },
1036 { "Parzen", ParzenFilter, UndefinedOptionFlag, MagickFalse },
1037 { "Point", PointFilter, UndefinedOptionFlag, MagickFalse },
1038 { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse },
1039 { "Robidoux", RobidouxFilter, UndefinedOptionFlag, MagickFalse },
anthony45531092012-04-23 00:33:53 +00001040 { "RobidouxSharp", RobidouxSharpFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001041 { "Sinc", SincFilter, UndefinedOptionFlag, MagickFalse },
1042 { "SincFast", SincFastFilter, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001043 { "Spline", SplineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001044 { "Triangle", TriangleFilter, UndefinedOptionFlag, MagickFalse },
anthonyf60ffd72012-08-20 03:25:30 +00001045 { "Welch", WelchFilter, UndefinedOptionFlag, MagickFalse },
1046 { "Welsh", WelchFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
cristy042ee782011-04-22 18:48:30 +00001047 { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001048 },
1049 FunctionOptions[] =
1050 {
cristy042ee782011-04-22 18:48:30 +00001051 { "Undefined", UndefinedFunction, UndefinedOptionFlag, MagickTrue },
1052 { "Polynomial", PolynomialFunction, UndefinedOptionFlag, MagickFalse },
1053 { "Sinusoid", SinusoidFunction, UndefinedOptionFlag, MagickFalse },
1054 { "ArcSin", ArcsinFunction, UndefinedOptionFlag, MagickFalse },
1055 { "ArcTan", ArctanFunction, UndefinedOptionFlag, MagickFalse },
1056 { (char *) NULL, UndefinedFunction, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001057 },
1058 GravityOptions[] =
1059 {
cristy042ee782011-04-22 18:48:30 +00001060 { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue },
1061 { "None", UndefinedGravity, UndefinedOptionFlag, MagickFalse },
1062 { "Center", CenterGravity, UndefinedOptionFlag, MagickFalse },
1063 { "East", EastGravity, UndefinedOptionFlag, MagickFalse },
1064 { "Forget", ForgetGravity, UndefinedOptionFlag, MagickFalse },
1065 { "NorthEast", NorthEastGravity, UndefinedOptionFlag, MagickFalse },
1066 { "North", NorthGravity, UndefinedOptionFlag, MagickFalse },
1067 { "NorthWest", NorthWestGravity, UndefinedOptionFlag, MagickFalse },
1068 { "SouthEast", SouthEastGravity, UndefinedOptionFlag, MagickFalse },
1069 { "South", SouthGravity, UndefinedOptionFlag, MagickFalse },
1070 { "SouthWest", SouthWestGravity, UndefinedOptionFlag, MagickFalse },
1071 { "West", WestGravity, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001072 { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001073 },
cristy3ed852e2009-09-05 21:47:34 +00001074 IntentOptions[] =
1075 {
cristy042ee782011-04-22 18:48:30 +00001076 { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue },
1077 { "Absolute", AbsoluteIntent, UndefinedOptionFlag, MagickFalse },
1078 { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse },
1079 { "Relative", RelativeIntent, UndefinedOptionFlag, MagickFalse },
1080 { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse },
1081 { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001082 },
1083 InterlaceOptions[] =
1084 {
cristy042ee782011-04-22 18:48:30 +00001085 { "Undefined", UndefinedInterlace, UndefinedOptionFlag, MagickTrue },
1086 { "Line", LineInterlace, UndefinedOptionFlag, MagickFalse },
1087 { "None", NoInterlace, UndefinedOptionFlag, MagickFalse },
1088 { "Plane", PlaneInterlace, UndefinedOptionFlag, MagickFalse },
1089 { "Partition", PartitionInterlace, UndefinedOptionFlag, MagickFalse },
1090 { "GIF", GIFInterlace, UndefinedOptionFlag, MagickFalse },
1091 { "JPEG", JPEGInterlace, UndefinedOptionFlag, MagickFalse },
1092 { "PNG", PNGInterlace, UndefinedOptionFlag, MagickFalse },
1093 { (char *) NULL, UndefinedInterlace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001094 },
1095 InterpolateOptions[] =
1096 {
cristy042ee782011-04-22 18:48:30 +00001097 { "Undefined", UndefinedInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1098 { "Average", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001099 { "Average4", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1100 { "Average9", Average9InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1101 { "Average16", Average16InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1102 { "Background", BackgroundInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001103 { "Bilinear", BilinearInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001104 { "Blend", BlendInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1105 { "Catrom", CatromInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001106 { "Integer", IntegerInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1107 { "Mesh", MeshInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001108 { "Nearest", NearestInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1109 { "NearestNeighbor", NearestInterpolatePixel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001110 { "Spline", SplineInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001111/* { "Filter", FilterInterpolatePixel, UndefinedOptionFlag, MagickFalse }, */
cristy042ee782011-04-22 18:48:30 +00001112 { (char *) NULL, UndefinedInterpolatePixel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001113 },
anthony602ab9b2010-01-05 08:06:50 +00001114 KernelOptions[] =
1115 {
cristy042ee782011-04-22 18:48:30 +00001116 { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue },
1117 { "Unity", UnityKernel, UndefinedOptionFlag, MagickFalse },
1118 { "Gaussian", GaussianKernel, UndefinedOptionFlag, MagickFalse },
1119 { "DoG", DoGKernel, UndefinedOptionFlag, MagickFalse },
1120 { "LoG", LoGKernel, UndefinedOptionFlag, MagickFalse },
1121 { "Blur", BlurKernel, UndefinedOptionFlag, MagickFalse },
1122 { "Comet", CometKernel, UndefinedOptionFlag, MagickFalse },
anthony40ca0b92012-08-02 13:23:28 +00001123 { "Binomial", BinomialKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001124 { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse },
1125 { "Sobel", SobelKernel, UndefinedOptionFlag, MagickFalse },
1126 { "FreiChen", FreiChenKernel, UndefinedOptionFlag, MagickFalse },
1127 { "Roberts", RobertsKernel, UndefinedOptionFlag, MagickFalse },
1128 { "Prewitt", PrewittKernel, UndefinedOptionFlag, MagickFalse },
1129 { "Compass", CompassKernel, UndefinedOptionFlag, MagickFalse },
1130 { "Kirsch", KirschKernel, UndefinedOptionFlag, MagickFalse },
1131 { "Diamond", DiamondKernel, UndefinedOptionFlag, MagickFalse },
1132 { "Square", SquareKernel, UndefinedOptionFlag, MagickFalse },
1133 { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse },
1134 { "Disk", DiskKernel, UndefinedOptionFlag, MagickFalse },
1135 { "Octagon", OctagonKernel, UndefinedOptionFlag, MagickFalse },
1136 { "Plus", PlusKernel, UndefinedOptionFlag, MagickFalse },
1137 { "Cross", CrossKernel, UndefinedOptionFlag, MagickFalse },
1138 { "Ring", RingKernel, UndefinedOptionFlag, MagickFalse },
1139 { "Peaks", PeaksKernel, UndefinedOptionFlag, MagickFalse },
1140 { "Edges", EdgesKernel, UndefinedOptionFlag, MagickFalse },
1141 { "Corners", CornersKernel, UndefinedOptionFlag, MagickFalse },
1142 { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001143 { "LineEnds", LineEndsKernel, UndefinedOptionFlag, MagickFalse },
1144 { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse },
1145 { "Ridges", RidgesKernel, UndefinedOptionFlag, MagickFalse },
1146 { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse },
1147 { "ThinSe", ThinSEKernel, UndefinedOptionFlag, MagickFalse },
1148 { "Skeleton", SkeletonKernel, UndefinedOptionFlag, MagickFalse },
1149 { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse },
1150 { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse },
1151 { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse },
1152 { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001153 { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001154 { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001155 },
cristy3ed852e2009-09-05 21:47:34 +00001156 LayerOptions[] =
1157 {
cristy042ee782011-04-22 18:48:30 +00001158 { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue },
1159 { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse },
1160 { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse },
1161 { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse },
1162 { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse },
1163 { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse },
1164 { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse },
1165 { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse },
1166 { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse },
1167 { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
1168 { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse },
1169 { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse },
1170 { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse },
1171 { "Merge", MergeLayer, UndefinedOptionFlag, MagickFalse },
1172 { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse },
1173 { "Mosaic", MosaicLayer, UndefinedOptionFlag, MagickFalse },
1174 { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse },
1175 { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001176 },
1177 LineCapOptions[] =
1178 {
cristy042ee782011-04-22 18:48:30 +00001179 { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue },
1180 { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse },
1181 { "Round", RoundCap, UndefinedOptionFlag, MagickFalse },
1182 { "Square", SquareCap, UndefinedOptionFlag, MagickFalse },
1183 { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001184 },
1185 LineJoinOptions[] =
1186 {
cristy042ee782011-04-22 18:48:30 +00001187 { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue },
1188 { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse },
1189 { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse },
1190 { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse },
1191 { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001192 },
1193 ListOptions[] =
1194 {
cristy042ee782011-04-22 18:48:30 +00001195 { "Align", MagickAlignOptions, UndefinedOptionFlag, MagickFalse },
1196 { "Alpha", MagickAlphaOptions, UndefinedOptionFlag, MagickFalse },
1197 { "Boolean", MagickBooleanOptions, UndefinedOptionFlag, MagickFalse },
1198 { "Channel", MagickChannelOptions, UndefinedOptionFlag, MagickFalse },
1199 { "Class", MagickClassOptions, UndefinedOptionFlag, MagickFalse },
1200 { "ClipPath", MagickClipPathOptions, UndefinedOptionFlag, MagickFalse },
1201 { "Coder", MagickCoderOptions, UndefinedOptionFlag, MagickFalse },
1202 { "Color", MagickColorOptions, UndefinedOptionFlag, MagickFalse },
1203 { "Colorspace", MagickColorspaceOptions, UndefinedOptionFlag, MagickFalse },
1204 { "Command", MagickCommandOptions, UndefinedOptionFlag, MagickFalse },
1205 { "Compose", MagickComposeOptions, UndefinedOptionFlag, MagickFalse },
1206 { "Compress", MagickCompressOptions, UndefinedOptionFlag, MagickFalse },
1207 { "Configure", MagickConfigureOptions, UndefinedOptionFlag, MagickFalse },
1208 { "DataType", MagickDataTypeOptions, UndefinedOptionFlag, MagickFalse },
1209 { "Debug", MagickDebugOptions, UndefinedOptionFlag, MagickFalse },
1210 { "Decoration", MagickDecorateOptions, UndefinedOptionFlag, MagickFalse },
1211 { "Delegate", MagickDelegateOptions, UndefinedOptionFlag, MagickFalse },
1212 { "Direction", MagickDirectionOptions, UndefinedOptionFlag, MagickFalse },
1213 { "Dispose", MagickDisposeOptions, UndefinedOptionFlag, MagickFalse },
1214 { "Distort", MagickDistortOptions, UndefinedOptionFlag, MagickFalse },
1215 { "Dither", MagickDitherOptions, UndefinedOptionFlag, MagickFalse },
1216 { "Endian", MagickEndianOptions, UndefinedOptionFlag, MagickFalse },
1217 { "Evaluate", MagickEvaluateOptions, UndefinedOptionFlag, MagickFalse },
1218 { "FillRule", MagickFillRuleOptions, UndefinedOptionFlag, MagickFalse },
1219 { "Filter", MagickFilterOptions, UndefinedOptionFlag, MagickFalse },
1220 { "Font", MagickFontOptions, UndefinedOptionFlag, MagickFalse },
1221 { "Format", MagickFormatOptions, UndefinedOptionFlag, MagickFalse },
1222 { "Function", MagickFunctionOptions, UndefinedOptionFlag, MagickFalse },
1223 { "Gravity", MagickGravityOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001224 { "Intent", MagickIntentOptions, UndefinedOptionFlag, MagickFalse },
1225 { "Interlace", MagickInterlaceOptions, UndefinedOptionFlag, MagickFalse },
1226 { "Interpolate", MagickInterpolateOptions, UndefinedOptionFlag, MagickFalse },
1227 { "Kernel", MagickKernelOptions, UndefinedOptionFlag, MagickFalse },
1228 { "Layers", MagickLayerOptions, UndefinedOptionFlag, MagickFalse },
1229 { "LineCap", MagickLineCapOptions, UndefinedOptionFlag, MagickFalse },
1230 { "LineJoin", MagickLineJoinOptions, UndefinedOptionFlag, MagickFalse },
1231 { "List", MagickListOptions, UndefinedOptionFlag, MagickFalse },
1232 { "Locale", MagickLocaleOptions, UndefinedOptionFlag, MagickFalse },
1233 { "LogEvent", MagickLogEventOptions, UndefinedOptionFlag, MagickFalse },
1234 { "Log", MagickLogOptions, UndefinedOptionFlag, MagickFalse },
1235 { "Magic", MagickMagicOptions, UndefinedOptionFlag, MagickFalse },
1236 { "Method", MagickMethodOptions, UndefinedOptionFlag, MagickFalse },
1237 { "Metric", MagickMetricOptions, UndefinedOptionFlag, MagickFalse },
1238 { "Mime", MagickMimeOptions, UndefinedOptionFlag, MagickFalse },
1239 { "Mode", MagickModeOptions, UndefinedOptionFlag, MagickFalse },
1240 { "Morphology", MagickMorphologyOptions, UndefinedOptionFlag, MagickFalse },
1241 { "Module", MagickModuleOptions, UndefinedOptionFlag, MagickFalse },
1242 { "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse },
1243 { "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001244 { "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse },
1245 { "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001246 { "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse },
1247 { "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse },
1248 { "PolicyRights", MagickPolicyRightsOptions, UndefinedOptionFlag, MagickFalse },
1249 { "Preview", MagickPreviewOptions, UndefinedOptionFlag, MagickFalse },
1250 { "Primitive", MagickPrimitiveOptions, UndefinedOptionFlag, MagickFalse },
1251 { "QuantumFormat", MagickQuantumFormatOptions, UndefinedOptionFlag, MagickFalse },
1252 { "Resource", MagickResourceOptions, UndefinedOptionFlag, MagickFalse },
1253 { "SparseColor", MagickSparseColorOptions, UndefinedOptionFlag, MagickFalse },
1254 { "Statistic", MagickStatisticOptions, UndefinedOptionFlag, MagickFalse },
1255 { "Storage", MagickStorageOptions, UndefinedOptionFlag, MagickFalse },
1256 { "Stretch", MagickStretchOptions, UndefinedOptionFlag, MagickFalse },
1257 { "Style", MagickStyleOptions, UndefinedOptionFlag, MagickFalse },
1258 { "Threshold", MagickThresholdOptions, UndefinedOptionFlag, MagickFalse },
1259 { "Type", MagickTypeOptions, UndefinedOptionFlag, MagickFalse },
1260 { "Units", MagickResolutionOptions, UndefinedOptionFlag, MagickFalse },
1261 { "Undefined", MagickUndefinedOptions, UndefinedOptionFlag, MagickTrue },
1262 { "Validate", MagickValidateOptions, UndefinedOptionFlag, MagickFalse },
1263 { "VirtualPixel", MagickVirtualPixelOptions, UndefinedOptionFlag, MagickFalse },
1264 { (char *) NULL, MagickUndefinedOptions, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001265 },
1266 LogEventOptions[] =
1267 {
cristy042ee782011-04-22 18:48:30 +00001268 { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue },
1269 { "All", (AllEvents &~ TraceEvent), UndefinedOptionFlag, MagickFalse },
cristy68b14972011-10-26 14:54:58 +00001270 { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001271 { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse },
1272 { "Blob", BlobEvent, UndefinedOptionFlag, MagickFalse },
1273 { "Cache", CacheEvent, UndefinedOptionFlag, MagickFalse },
1274 { "Coder", CoderEvent, UndefinedOptionFlag, MagickFalse },
1275 { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse },
1276 { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse },
1277 { "Draw", DrawEvent, UndefinedOptionFlag, MagickFalse },
1278 { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse },
1279 { "Locale", LocaleEvent, UndefinedOptionFlag, MagickFalse },
1280 { "Module", ModuleEvent, UndefinedOptionFlag, MagickFalse },
1281 { "None", NoEvents, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001282 { "Pixel", PixelEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001283 { "Policy", PolicyEvent, UndefinedOptionFlag, MagickFalse },
1284 { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse },
1285 { "Trace", TraceEvent, UndefinedOptionFlag, MagickFalse },
1286 { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse },
1287 { "User", UserEvent, UndefinedOptionFlag, MagickFalse },
1288 { "Wand", WandEvent, UndefinedOptionFlag, MagickFalse },
1289 { "X11", X11Event, UndefinedOptionFlag, MagickFalse },
1290 { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001291 },
1292 MetricOptions[] =
1293 {
cristy042ee782011-04-22 18:48:30 +00001294 { "Undefined", UndefinedMetric, UndefinedOptionFlag, MagickTrue },
1295 { "AE", AbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1296 { "Fuzz", FuzzErrorMetric, UndefinedOptionFlag, MagickFalse },
1297 { "MAE", MeanAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1298 { "MEPP", MeanErrorPerPixelMetric, UndefinedOptionFlag, MagickFalse },
1299 { "MSE", MeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1300 { "NCC", NormalizedCrossCorrelationErrorMetric, UndefinedOptionFlag, MagickFalse },
1301 { "PAE", PeakAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1302 { "PSNR", PeakSignalToNoiseRatioMetric, UndefinedOptionFlag, MagickFalse },
1303 { "RMSE", RootMeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1304 { (char *) NULL, UndefinedMetric, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001305 },
1306 MethodOptions[] =
1307 {
cristy042ee782011-04-22 18:48:30 +00001308 { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue },
1309 { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse },
1310 { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse },
1311 { "Point", PointMethod, UndefinedOptionFlag, MagickFalse },
1312 { "Replace", ReplaceMethod, UndefinedOptionFlag, MagickFalse },
1313 { "Reset", ResetMethod, UndefinedOptionFlag, MagickFalse },
1314 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001315 },
1316 ModeOptions[] =
1317 {
cristy042ee782011-04-22 18:48:30 +00001318 { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue },
1319 { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse },
1320 { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse },
1321 { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse },
1322 { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001323 },
anthony602ab9b2010-01-05 08:06:50 +00001324 MorphologyOptions[] =
1325 {
cristy042ee782011-04-22 18:48:30 +00001326 { "Undefined", UndefinedMorphology, UndefinedOptionFlag, MagickTrue },
1327 { "Correlate", CorrelateMorphology, UndefinedOptionFlag, MagickFalse },
1328 { "Convolve", ConvolveMorphology, UndefinedOptionFlag, MagickFalse },
1329 { "Dilate", DilateMorphology, UndefinedOptionFlag, MagickFalse },
1330 { "Erode", ErodeMorphology, UndefinedOptionFlag, MagickFalse },
1331 { "Close", CloseMorphology, UndefinedOptionFlag, MagickFalse },
1332 { "Open", OpenMorphology, UndefinedOptionFlag, MagickFalse },
1333 { "DilateIntensity", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1334 { "ErodeIntensity", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1335 { "CloseIntensity", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1336 { "OpenIntensity", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1337 { "DilateI", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1338 { "ErodeI", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1339 { "CloseI", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1340 { "OpenI", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1341 { "Smooth", SmoothMorphology, UndefinedOptionFlag, MagickFalse },
1342 { "EdgeOut", EdgeOutMorphology, UndefinedOptionFlag, MagickFalse },
1343 { "EdgeIn", EdgeInMorphology, UndefinedOptionFlag, MagickFalse },
1344 { "Edge", EdgeMorphology, UndefinedOptionFlag, MagickFalse },
1345 { "TopHat", TopHatMorphology, UndefinedOptionFlag, MagickFalse },
1346 { "BottomHat", BottomHatMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001347 { "Hmt", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1348 { "HitNMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1349 { "HitAndMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1350 { "Thinning", ThinningMorphology, UndefinedOptionFlag, MagickFalse },
1351 { "Thicken", ThickenMorphology, UndefinedOptionFlag, MagickFalse },
anthonyf34d9b22012-02-22 06:11:08 +00001352 { "Distance", DistanceMorphology, UndefinedOptionFlag, MagickFalse },
1353 { "IterativeDistance", IterativeDistanceMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001354 { "Voronoi", VoronoiMorphology, UndefinedOptionFlag, MagickTrue },
1355 { (char *) NULL, UndefinedMorphology, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001356 },
cristy3ed852e2009-09-05 21:47:34 +00001357 NoiseOptions[] =
1358 {
cristy042ee782011-04-22 18:48:30 +00001359 { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue },
1360 { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse },
1361 { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse },
1362 { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse },
1363 { "Multiplicative", MultiplicativeGaussianNoise, UndefinedOptionFlag, MagickFalse },
1364 { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse },
1365 { "Random", RandomNoise, UndefinedOptionFlag, MagickFalse },
1366 { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse },
1367 { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001368 },
1369 OrientationOptions[] =
1370 {
cristy042ee782011-04-22 18:48:30 +00001371 { "Undefined", UndefinedOrientation, UndefinedOptionFlag, MagickTrue },
1372 { "TopLeft", TopLeftOrientation, UndefinedOptionFlag, MagickFalse },
1373 { "TopRight", TopRightOrientation, UndefinedOptionFlag, MagickFalse },
1374 { "BottomRight", BottomRightOrientation, UndefinedOptionFlag, MagickFalse },
1375 { "BottomLeft", BottomLeftOrientation, UndefinedOptionFlag, MagickFalse },
1376 { "LeftTop", LeftTopOrientation, UndefinedOptionFlag, MagickFalse },
1377 { "RightTop", RightTopOrientation, UndefinedOptionFlag, MagickFalse },
1378 { "RightBottom", RightBottomOrientation, UndefinedOptionFlag, MagickFalse },
1379 { "LeftBottom", LeftBottomOrientation, UndefinedOptionFlag, MagickFalse },
1380 { (char *) NULL, UndefinedOrientation, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001381 },
cristy6dcb9b82011-10-23 23:21:25 +00001382 PixelChannelOptions[] =
1383 {
1384 { "Undefined", UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001385 { "A", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001386 { "Alpha", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001387 { "B", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +00001388 { "Bk", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001389 { "Black", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1390 { "Blue", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1391 { "Cb", CbPixelChannel, UndefinedOptionFlag, MagickFalse },
1392 { "Composite", CompositePixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001393 { "C", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001394 { "Cr", CrPixelChannel, UndefinedOptionFlag, MagickFalse },
1395 { "Cyan", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1396 { "Gray", GrayPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001397 { "G", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001398 { "Green", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1399 { "Index", IndexPixelChannel, UndefinedOptionFlag, MagickFalse },
1400 { "Intensity", IntensityPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001401 { "K", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1402 { "M", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001403 { "Magenta", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
1404 { "Mask", MaskPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001405 { "R", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001406 { "Red", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1407 { "Sync", SyncPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001408 { "Y", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001409 { "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1410 { (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }
1411 },
1412 PixelTraitOptions[] =
1413 {
1414 { "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue },
1415 { "Blend", BlendPixelTrait, UndefinedOptionFlag, MagickFalse },
1416 { "Copy", CopyPixelTrait, UndefinedOptionFlag, MagickFalse },
1417 { "Update", UpdatePixelTrait, UndefinedOptionFlag, MagickFalse },
1418 { (char *) NULL, UndefinedPixelTrait, UndefinedOptionFlag, MagickFalse }
1419 },
cristy3ed852e2009-09-05 21:47:34 +00001420 PolicyDomainOptions[] =
1421 {
cristy042ee782011-04-22 18:48:30 +00001422 { "Undefined", UndefinedPolicyDomain, UndefinedOptionFlag, MagickTrue },
1423 { "Coder", CoderPolicyDomain, UndefinedOptionFlag, MagickFalse },
1424 { "Delegate", DelegatePolicyDomain, UndefinedOptionFlag, MagickFalse },
1425 { "Filter", FilterPolicyDomain, UndefinedOptionFlag, MagickFalse },
1426 { "Path", PathPolicyDomain, UndefinedOptionFlag, MagickFalse },
1427 { "Resource", ResourcePolicyDomain, UndefinedOptionFlag, MagickFalse },
1428 { "System", SystemPolicyDomain, UndefinedOptionFlag, MagickFalse },
1429 { (char *) NULL, UndefinedPolicyDomain, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001430 },
1431 PolicyRightsOptions[] =
1432 {
cristy042ee782011-04-22 18:48:30 +00001433 { "Undefined", UndefinedPolicyRights, UndefinedOptionFlag, MagickTrue },
1434 { "None", NoPolicyRights, UndefinedOptionFlag, MagickFalse },
1435 { "Read", ReadPolicyRights, UndefinedOptionFlag, MagickFalse },
1436 { "Write", WritePolicyRights, UndefinedOptionFlag, MagickFalse },
1437 { "Execute", ExecutePolicyRights, UndefinedOptionFlag, MagickFalse },
1438 { (char *) NULL, UndefinedPolicyRights, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001439 },
1440 PreviewOptions[] =
1441 {
cristy042ee782011-04-22 18:48:30 +00001442 { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue },
1443 { "AddNoise", AddNoisePreview, UndefinedOptionFlag, MagickFalse },
1444 { "Blur", BlurPreview, UndefinedOptionFlag, MagickFalse },
1445 { "Brightness", BrightnessPreview, UndefinedOptionFlag, MagickFalse },
1446 { "Charcoal", CharcoalDrawingPreview, UndefinedOptionFlag, MagickFalse },
1447 { "Despeckle", DespecklePreview, UndefinedOptionFlag, MagickFalse },
1448 { "Dull", DullPreview, UndefinedOptionFlag, MagickFalse },
1449 { "EdgeDetect", EdgeDetectPreview, UndefinedOptionFlag, MagickFalse },
1450 { "Gamma", GammaPreview, UndefinedOptionFlag, MagickFalse },
1451 { "Grayscale", GrayscalePreview, UndefinedOptionFlag, MagickFalse },
1452 { "Hue", HuePreview, UndefinedOptionFlag, MagickFalse },
1453 { "Implode", ImplodePreview, UndefinedOptionFlag, MagickFalse },
1454 { "JPEG", JPEGPreview, UndefinedOptionFlag, MagickFalse },
1455 { "OilPaint", OilPaintPreview, UndefinedOptionFlag, MagickFalse },
1456 { "Quantize", QuantizePreview, UndefinedOptionFlag, MagickFalse },
1457 { "Raise", RaisePreview, UndefinedOptionFlag, MagickFalse },
1458 { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse },
1459 { "Roll", RollPreview, UndefinedOptionFlag, MagickFalse },
1460 { "Rotate", RotatePreview, UndefinedOptionFlag, MagickFalse },
1461 { "Saturation", SaturationPreview, UndefinedOptionFlag, MagickFalse },
1462 { "Segment", SegmentPreview, UndefinedOptionFlag, MagickFalse },
1463 { "Shade", ShadePreview, UndefinedOptionFlag, MagickFalse },
1464 { "Sharpen", SharpenPreview, UndefinedOptionFlag, MagickFalse },
1465 { "Shear", ShearPreview, UndefinedOptionFlag, MagickFalse },
1466 { "Solarize", SolarizePreview, UndefinedOptionFlag, MagickFalse },
1467 { "Spiff", SpiffPreview, UndefinedOptionFlag, MagickFalse },
1468 { "Spread", SpreadPreview, UndefinedOptionFlag, MagickFalse },
1469 { "Swirl", SwirlPreview, UndefinedOptionFlag, MagickFalse },
1470 { "Threshold", ThresholdPreview, UndefinedOptionFlag, MagickFalse },
1471 { "Wave", WavePreview, UndefinedOptionFlag, MagickFalse },
1472 { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001473 },
1474 PrimitiveOptions[] =
1475 {
cristy042ee782011-04-22 18:48:30 +00001476 { "Undefined", UndefinedPrimitive, UndefinedOptionFlag, MagickTrue },
1477 { "Arc", ArcPrimitive, UndefinedOptionFlag, MagickFalse },
1478 { "Bezier", BezierPrimitive, UndefinedOptionFlag, MagickFalse },
1479 { "Circle", CirclePrimitive, UndefinedOptionFlag, MagickFalse },
1480 { "Color", ColorPrimitive, UndefinedOptionFlag, MagickFalse },
1481 { "Ellipse", EllipsePrimitive, UndefinedOptionFlag, MagickFalse },
1482 { "Image", ImagePrimitive, UndefinedOptionFlag, MagickFalse },
1483 { "Line", LinePrimitive, UndefinedOptionFlag, MagickFalse },
1484 { "Matte", MattePrimitive, UndefinedOptionFlag, MagickFalse },
1485 { "Path", PathPrimitive, UndefinedOptionFlag, MagickFalse },
1486 { "Point", PointPrimitive, UndefinedOptionFlag, MagickFalse },
1487 { "Polygon", PolygonPrimitive, UndefinedOptionFlag, MagickFalse },
1488 { "Polyline", PolylinePrimitive, UndefinedOptionFlag, MagickFalse },
1489 { "Rectangle", RectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1490 { "RoundRectangle", RoundRectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1491 { "Text", TextPrimitive, UndefinedOptionFlag, MagickFalse },
1492 { (char *) NULL, UndefinedPrimitive, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001493 },
1494 QuantumFormatOptions[] =
1495 {
cristy042ee782011-04-22 18:48:30 +00001496 { "Undefined", UndefinedQuantumFormat, UndefinedOptionFlag, MagickTrue },
1497 { "FloatingPoint", FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse },
1498 { "Signed", SignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1499 { "Unsigned", UnsignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1500 { (char *) NULL, FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001501 },
1502 ResolutionOptions[] =
1503 {
cristy042ee782011-04-22 18:48:30 +00001504 { "Undefined", UndefinedResolution, UndefinedOptionFlag, MagickTrue },
1505 { "PixelsPerInch", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
1506 { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
1507 { (char *) NULL, UndefinedResolution, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001508 },
1509 ResourceOptions[] =
1510 {
cristy042ee782011-04-22 18:48:30 +00001511 { "Undefined", UndefinedResource, UndefinedOptionFlag, MagickTrue },
1512 { "Area", AreaResource, UndefinedOptionFlag, MagickFalse },
1513 { "Disk", DiskResource, UndefinedOptionFlag, MagickFalse },
1514 { "File", FileResource, UndefinedOptionFlag, MagickFalse },
1515 { "Map", MapResource, UndefinedOptionFlag, MagickFalse },
1516 { "Memory", MemoryResource, UndefinedOptionFlag, MagickFalse },
1517 { "Thread", ThreadResource, UndefinedOptionFlag, MagickFalse },
1518 { "Time", TimeResource, UndefinedOptionFlag, MagickFalse },
1519 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001520 },
1521 SparseColorOptions[] =
1522 {
cristy042ee782011-04-22 18:48:30 +00001523 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue },
1524 { "Barycentric", BarycentricColorInterpolate, UndefinedOptionFlag, MagickFalse },
1525 { "Bilinear", BilinearColorInterpolate, UndefinedOptionFlag, MagickFalse },
anthony09d867c2011-04-26 08:28:41 +00001526 { "Inverse", InverseColorInterpolate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001527 { "Shepards", ShepardsColorInterpolate, UndefinedOptionFlag, MagickFalse },
1528 { "Voronoi", VoronoiColorInterpolate, UndefinedOptionFlag, MagickFalse },
1529 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001530 },
cristy0834d642011-03-18 18:26:08 +00001531 StatisticOptions[] =
1532 {
cristy042ee782011-04-22 18:48:30 +00001533 { "Undefined", UndefinedStatistic, UndefinedOptionFlag, MagickTrue },
1534 { "Gradient", GradientStatistic, UndefinedOptionFlag, MagickFalse },
1535 { "Maximum", MaximumStatistic, UndefinedOptionFlag, MagickFalse },
1536 { "Mean", MeanStatistic, UndefinedOptionFlag, MagickFalse },
1537 { "Median", MedianStatistic, UndefinedOptionFlag, MagickFalse },
1538 { "Minimum", MinimumStatistic, UndefinedOptionFlag, MagickFalse },
1539 { "Mode", ModeStatistic, UndefinedOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +00001540 { "NonPeak", NonpeakStatistic, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001541 { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse },
1542 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy0834d642011-03-18 18:26:08 +00001543 },
cristy3ed852e2009-09-05 21:47:34 +00001544 StorageOptions[] =
1545 {
cristy042ee782011-04-22 18:48:30 +00001546 { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue },
1547 { "Char", CharPixel, UndefinedOptionFlag, MagickFalse },
1548 { "Double", DoublePixel, UndefinedOptionFlag, MagickFalse },
1549 { "Float", FloatPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001550 { "Long", LongPixel, UndefinedOptionFlag, MagickFalse },
cristy6c9e1682012-01-07 21:37:44 +00001551 { "LongLong", LongLongPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001552 { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse },
1553 { "Short", ShortPixel, UndefinedOptionFlag, MagickFalse },
1554 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001555 },
1556 StretchOptions[] =
1557 {
cristy042ee782011-04-22 18:48:30 +00001558 { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue },
1559 { "Any", AnyStretch, UndefinedOptionFlag, MagickFalse },
1560 { "Condensed", CondensedStretch, UndefinedOptionFlag, MagickFalse },
1561 { "Expanded", ExpandedStretch, UndefinedOptionFlag, MagickFalse },
1562 { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1563 { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1564 { "Normal", NormalStretch, UndefinedOptionFlag, MagickFalse },
1565 { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse },
1566 { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse },
1567 { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1568 { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1569 { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001570 },
1571 StyleOptions[] =
1572 {
cristy042ee782011-04-22 18:48:30 +00001573 { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
1574 { "Any", AnyStyle, UndefinedOptionFlag, MagickFalse },
1575 { "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse },
1576 { "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse },
1577 { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
1578 { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001579 },
1580 TypeOptions[] =
1581 {
cristy042ee782011-04-22 18:48:30 +00001582 { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue },
1583 { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse },
1584 { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001585 { "ColorSeparationAlpha", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001586 { "ColorSeparationMatte", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
1587 { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001588 { "GrayscaleAlpha", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001589 { "GrayscaleMatte", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
1590 { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse },
1591 { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001592 { "PaletteBilevelAlpha", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001593 { "PaletteBilevelMatte", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001594 { "PaletteAlpha", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001595 { "PaletteMatte", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001596 { "TrueColorAlpha", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001597 { "TrueColorMatte", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
1598 { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse },
1599 { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001600 },
1601 ValidateOptions[] =
1602 {
cristy042ee782011-04-22 18:48:30 +00001603 { "Undefined", UndefinedValidate, UndefinedOptionFlag, MagickTrue },
1604 { "All", AllValidate, UndefinedOptionFlag, MagickFalse },
1605 { "Compare", CompareValidate, UndefinedOptionFlag, MagickFalse },
1606 { "Composite", CompositeValidate, UndefinedOptionFlag, MagickFalse },
1607 { "Convert", ConvertValidate, UndefinedOptionFlag, MagickFalse },
1608 { "FormatsInMemory", FormatsInMemoryValidate, UndefinedOptionFlag, MagickFalse },
1609 { "FormatsOnDisk", FormatsOnDiskValidate, UndefinedOptionFlag, MagickFalse },
1610 { "Identify", IdentifyValidate, UndefinedOptionFlag, MagickFalse },
1611 { "ImportExport", ImportExportValidate, UndefinedOptionFlag, MagickFalse },
1612 { "Montage", MontageValidate, UndefinedOptionFlag, MagickFalse },
1613 { "Stream", StreamValidate, UndefinedOptionFlag, MagickFalse },
1614 { "None", NoValidate, UndefinedOptionFlag, MagickFalse },
1615 { (char *) NULL, UndefinedValidate, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001616 },
1617 VirtualPixelOptions[] =
1618 {
cristy042ee782011-04-22 18:48:30 +00001619 { "Undefined", UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickTrue },
1620 { "Background", BackgroundVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1621 { "Black", BlackVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001622 { "Constant", BackgroundVirtualPixelMethod, DeprecateOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001623 { "CheckerTile", CheckerTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1624 { "Dither", DitherVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1625 { "Edge", EdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1626 { "Gray", GrayVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1627 { "HorizontalTile", HorizontalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1628 { "HorizontalTileEdge", HorizontalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1629 { "Mirror", MirrorVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
anthony7a4d6102012-07-01 09:48:25 +00001630 { "None", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001631 { "Random", RandomVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1632 { "Tile", TileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1633 { "Transparent", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1634 { "VerticalTile", VerticalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1635 { "VerticalTileEdge", VerticalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1636 { "White", WhiteVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1637 { (char *) NULL, UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001638 };
1639
anthony686b1a32012-02-15 14:50:53 +00001640static const OptionInfo *GetOptionInfo(const CommandOption option)
1641{
1642 switch (option)
1643 {
1644 case MagickAlignOptions: return(AlignOptions);
1645 case MagickAlphaOptions: return(AlphaOptions);
1646 case MagickBooleanOptions: return(BooleanOptions);
1647 case MagickChannelOptions: return(ChannelOptions);
1648 case MagickClassOptions: return(ClassOptions);
1649 case MagickClipPathOptions: return(ClipPathOptions);
1650 case MagickColorspaceOptions: return(ColorspaceOptions);
1651 case MagickCommandOptions: return(CommandOptions);
1652 case MagickComposeOptions: return(ComposeOptions);
1653 case MagickCompressOptions: return(CompressOptions);
1654 case MagickDataTypeOptions: return(DataTypeOptions);
1655 case MagickDebugOptions: return(LogEventOptions);
1656 case MagickDecorateOptions: return(DecorateOptions);
1657 case MagickDirectionOptions: return(DirectionOptions);
1658 case MagickDisposeOptions: return(DisposeOptions);
1659 case MagickDistortOptions: return(DistortOptions);
1660 case MagickDitherOptions: return(DitherOptions);
1661 case MagickEndianOptions: return(EndianOptions);
1662 case MagickEvaluateOptions: return(EvaluateOptions);
1663 case MagickFillRuleOptions: return(FillRuleOptions);
1664 case MagickFilterOptions: return(FilterOptions);
1665 case MagickFunctionOptions: return(FunctionOptions);
1666 case MagickGravityOptions: return(GravityOptions);
1667/* case MagickImageListOptions: return(ImageListOptions); */
1668 case MagickIntentOptions: return(IntentOptions);
1669 case MagickInterlaceOptions: return(InterlaceOptions);
1670 case MagickInterpolateOptions: return(InterpolateOptions);
1671 case MagickKernelOptions: return(KernelOptions);
1672 case MagickLayerOptions: return(LayerOptions);
1673 case MagickLineCapOptions: return(LineCapOptions);
1674 case MagickLineJoinOptions: return(LineJoinOptions);
1675 case MagickListOptions: return(ListOptions);
1676 case MagickLogEventOptions: return(LogEventOptions);
1677 case MagickMetricOptions: return(MetricOptions);
1678 case MagickMethodOptions: return(MethodOptions);
1679 case MagickModeOptions: return(ModeOptions);
1680 case MagickMorphologyOptions: return(MorphologyOptions);
1681 case MagickNoiseOptions: return(NoiseOptions);
1682 case MagickOrientationOptions: return(OrientationOptions);
1683 case MagickPixelChannelOptions: return(PixelChannelOptions);
1684 case MagickPixelTraitOptions: return(PixelTraitOptions);
1685 case MagickPolicyDomainOptions: return(PolicyDomainOptions);
1686 case MagickPolicyRightsOptions: return(PolicyRightsOptions);
1687 case MagickPreviewOptions: return(PreviewOptions);
1688 case MagickPrimitiveOptions: return(PrimitiveOptions);
1689 case MagickQuantumFormatOptions: return(QuantumFormatOptions);
1690 case MagickResolutionOptions: return(ResolutionOptions);
1691 case MagickResourceOptions: return(ResourceOptions);
1692 case MagickSparseColorOptions: return(SparseColorOptions);
1693 case MagickStatisticOptions: return(StatisticOptions);
1694 case MagickStorageOptions: return(StorageOptions);
1695 case MagickStretchOptions: return(StretchOptions);
1696 case MagickStyleOptions: return(StyleOptions);
1697 case MagickTypeOptions: return(TypeOptions);
1698 case MagickValidateOptions: return(ValidateOptions);
1699 case MagickVirtualPixelOptions: return(VirtualPixelOptions);
1700 default: break;
1701 }
1702 return((const OptionInfo *) NULL);
1703}
1704
cristy3ed852e2009-09-05 21:47:34 +00001705/*
1706%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1707% %
1708% %
1709% %
1710% C l o n e I m a g e O p t i o n s %
1711% %
1712% %
1713% %
1714%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1715%
anthony40ca0b92012-08-02 13:23:28 +00001716% CloneImageOptions() clones all global image options, to another image_info
cristy3ed852e2009-09-05 21:47:34 +00001717%
1718% The format of the CloneImageOptions method is:
1719%
1720% MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1721% const ImageInfo *clone_info)
1722%
1723% A description of each parameter follows:
1724%
anthony40ca0b92012-08-02 13:23:28 +00001725% o image_info: the image info to recieve the cloned options.
cristy3ed852e2009-09-05 21:47:34 +00001726%
anthony40ca0b92012-08-02 13:23:28 +00001727% o clone_info: the source image info for options to clone.
cristy3ed852e2009-09-05 21:47:34 +00001728%
1729*/
1730MagickExport MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1731 const ImageInfo *clone_info)
1732{
1733 assert(image_info != (ImageInfo *) NULL);
1734 assert(image_info->signature == MagickSignature);
1735 if (image_info->debug != MagickFalse)
1736 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1737 image_info->filename);
1738 assert(clone_info != (const ImageInfo *) NULL);
1739 assert(clone_info->signature == MagickSignature);
1740 if (clone_info->options != (void *) NULL)
1741 image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options,
1742 (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString);
1743 return(MagickTrue);
1744}
1745
1746/*
1747%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1748% %
1749% %
1750% %
1751% D e f i n e I m a g e O p t i o n %
1752% %
1753% %
1754% %
1755%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1756%
anthony8ea79832011-10-05 10:08:39 +00001757% DefineImageOption() associates an assignment string of the form
anthony40ca0b92012-08-02 13:23:28 +00001758% "key=value" with a global image option. It is equivelent to
1759% SetImageOption().
cristy3ed852e2009-09-05 21:47:34 +00001760%
1761% The format of the DefineImageOption method is:
1762%
1763% MagickBooleanType DefineImageOption(ImageInfo *image_info,
1764% const char *option)
1765%
1766% A description of each parameter follows:
1767%
1768% o image_info: the image info.
1769%
anthony8ea79832011-10-05 10:08:39 +00001770% o option: the image option assignment string.
cristy3ed852e2009-09-05 21:47:34 +00001771%
1772*/
1773MagickExport MagickBooleanType DefineImageOption(ImageInfo *image_info,
1774 const char *option)
1775{
1776 char
1777 key[MaxTextExtent],
1778 value[MaxTextExtent];
1779
1780 register char
1781 *p;
1782
1783 assert(image_info != (ImageInfo *) NULL);
1784 assert(option != (const char *) NULL);
1785 (void) CopyMagickString(key,option,MaxTextExtent);
1786 for (p=key; *p != '\0'; p++)
1787 if (*p == '=')
1788 break;
1789 *value='\0';
1790 if (*p == '=')
1791 (void) CopyMagickString(value,p+1,MaxTextExtent);
1792 *p='\0';
1793 return(SetImageOption(image_info,key,value));
1794}
1795
1796/*
1797%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1798% %
1799% %
1800% %
1801% D e l e t e I m a g e O p t i o n %
1802% %
1803% %
1804% %
1805%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1806%
anthony40ca0b92012-08-02 13:23:28 +00001807% DeleteImageOption() deletes an key from the global image options.
cristy3ed852e2009-09-05 21:47:34 +00001808%
anthonyebb73a22012-03-22 14:25:52 +00001809% Returns MagickTrue is the option is found and deleted from the Options.
1810%
cristy3ed852e2009-09-05 21:47:34 +00001811% The format of the DeleteImageOption method is:
1812%
1813% MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1814% const char *key)
1815%
1816% A description of each parameter follows:
1817%
1818% o image_info: the image info.
1819%
1820% o option: the image option.
1821%
1822*/
1823MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1824 const char *option)
1825{
1826 assert(image_info != (ImageInfo *) NULL);
1827 assert(image_info->signature == MagickSignature);
1828 if (image_info->debug != MagickFalse)
1829 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1830 image_info->filename);
1831 if (image_info->options == (void *) NULL)
1832 return(MagickFalse);
1833 return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option));
1834}
1835
1836/*
1837%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1838% %
1839% %
1840% %
1841% D e s t r o y I m a g e O p t i o n s %
1842% %
1843% %
1844% %
1845%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1846%
anthony40ca0b92012-08-02 13:23:28 +00001847% DestroyImageOptions() destroys all global options and associated memory
1848% attached to the given image_info image list.
cristy3ed852e2009-09-05 21:47:34 +00001849%
1850% The format of the DestroyDefines method is:
1851%
1852% void DestroyImageOptions(ImageInfo *image_info)
1853%
1854% A description of each parameter follows:
1855%
1856% o image_info: the image info.
1857%
1858*/
1859MagickExport void DestroyImageOptions(ImageInfo *image_info)
1860{
1861 assert(image_info != (ImageInfo *) NULL);
1862 assert(image_info->signature == MagickSignature);
1863 if (image_info->debug != MagickFalse)
1864 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1865 image_info->filename);
1866 if (image_info->options != (void *) NULL)
1867 image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options);
1868}
1869
1870/*
1871%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1872% %
1873% %
1874% %
1875% G e t I m a g e O p t i o n %
1876% %
1877% %
1878% %
1879%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1880%
anthony40ca0b92012-08-02 13:23:28 +00001881% GetImageOption() gets a value associated with the global image options.
1882%
1883% The returned string is a constant string in the tree and should NOT be
1884% freed by the caller.
cristy3ed852e2009-09-05 21:47:34 +00001885%
1886% The format of the GetImageOption method is:
1887%
1888% const char *GetImageOption(const ImageInfo *image_info,
cristye3f77792011-10-07 00:09:09 +00001889% const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001890%
1891% A description of each parameter follows:
1892%
1893% o image_info: the image info.
1894%
cristye3f77792011-10-07 00:09:09 +00001895% o option: the option.
cristy3ed852e2009-09-05 21:47:34 +00001896%
1897*/
1898MagickExport const char *GetImageOption(const ImageInfo *image_info,
anthony7df2b832011-10-06 11:55:25 +00001899 const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001900{
cristy3ed852e2009-09-05 21:47:34 +00001901 assert(image_info != (ImageInfo *) NULL);
1902 assert(image_info->signature == MagickSignature);
1903 if (image_info->debug != MagickFalse)
1904 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1905 image_info->filename);
1906 if (image_info->options == (void *) NULL)
1907 return((const char *) NULL);
cristye3f77792011-10-07 00:09:09 +00001908 return((const char *) GetValueFromSplayTree((SplayTreeInfo *)
1909 image_info->options,option));
cristy3ed852e2009-09-05 21:47:34 +00001910}
1911
1912/*
1913%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1914% %
1915% %
1916% %
cristy042ee782011-04-22 18:48:30 +00001917% G e t C o m m a n d O p t i o n F l a g s %
cristy3ed852e2009-09-05 21:47:34 +00001918% %
1919% %
1920% %
1921%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1922%
cristy042ee782011-04-22 18:48:30 +00001923% GetCommandOptionFlags() parses a string and returns an enumerated option
1924% flags(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00001925%
cristy042ee782011-04-22 18:48:30 +00001926% The format of the GetCommandOptionFlags method is:
cristy3ed852e2009-09-05 21:47:34 +00001927%
cristy042ee782011-04-22 18:48:30 +00001928% ssize_t GetCommandOptionFlags(const CommandOption option,
1929% const MagickBooleanType list,const char *options)
cristy3ed852e2009-09-05 21:47:34 +00001930%
1931% A description of each parameter follows:
1932%
cristy042ee782011-04-22 18:48:30 +00001933% o option: Index to the option table to lookup
1934%
1935% o list: A option other than zero permits more than one option separated by
1936% a comma or pipe.
1937%
1938% o options: One or more options separated by commas.
cristy3ed852e2009-09-05 21:47:34 +00001939%
1940*/
1941
cristy042ee782011-04-22 18:48:30 +00001942MagickExport ssize_t GetCommandOptionFlags(const CommandOption option,
1943 const MagickBooleanType list,const char *options)
1944{
1945 char
1946 token[MaxTextExtent];
1947
1948 const OptionInfo
1949 *option_info;
1950
1951 int
1952 sentinel;
1953
1954 MagickBooleanType
1955 negate;
1956
1957 register char
1958 *q;
1959
1960 register const char
1961 *p;
1962
1963 register ssize_t
1964 i;
1965
1966 ssize_t
1967 option_types;
1968
1969 option_info=GetOptionInfo(option);
1970 if (option_info == (const OptionInfo *) NULL)
anthonye8f56492012-02-12 12:39:02 +00001971 return(UndefinedOptionFlag);
cristy042ee782011-04-22 18:48:30 +00001972 option_types=0;
1973 sentinel=',';
1974 if (strchr(options,'|') != (char *) NULL)
1975 sentinel='|';
1976 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
1977 {
1978 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
1979 (*p != '\0'))
1980 p++;
1981 negate=(*p == '!') ? MagickTrue : MagickFalse;
1982 if (negate != MagickFalse)
1983 p++;
1984 q=token;
1985 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
1986 (*p != '\0'))
1987 {
cristya0019202011-06-07 13:23:55 +00001988 if ((q-token) >= (MaxTextExtent-1))
cristy042ee782011-04-22 18:48:30 +00001989 break;
1990 *q++=(*p++);
1991 }
1992 *q='\0';
1993 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
1994 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
1995 {
1996 if (*token == '!')
1997 option_types=option_types &~ option_info[i].flags;
1998 else
1999 option_types=option_types | option_info[i].flags;
2000 break;
2001 }
2002 if ((option_info[i].mnemonic == (char *) NULL) &&
2003 ((strchr(token+1,'-') != (char *) NULL) ||
2004 (strchr(token+1,'_') != (char *) NULL)))
2005 {
2006 while ((q=strchr(token+1,'-')) != (char *) NULL)
2007 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2008 while ((q=strchr(token+1,'_')) != (char *) NULL)
2009 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2010 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2011 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2012 {
2013 if (*token == '!')
2014 option_types=option_types &~ option_info[i].flags;
2015 else
2016 option_types=option_types | option_info[i].flags;
2017 break;
2018 }
2019 }
2020 if (option_info[i].mnemonic == (char *) NULL)
2021 return(-1);
2022 if (list == MagickFalse)
2023 break;
2024 }
2025 return(option_types);
2026}
2027
2028/*
2029%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2030% %
2031% %
2032% %
anthony686b1a32012-02-15 14:50:53 +00002033% G e t C o m m a n d O p t i o n I n f o %
2034% %
2035% %
2036% %
2037%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2038%
2039% GetCommandOptionInfo() returns pointer to the matching OptionInfo entry
2040% for the "CommandOptions" table only. A specialised binary search is used,
2041% to speed up the lookup for that very large table, and returns both the
2042% type (arg count) and flags (arg type).
2043%
2044% This search reduces linear search of over 500 options (250 tests of
2045% average) to about 10 lookups!
2046%
2047% The format of the GetCommandOptionInfo method is:
2048%
2049% const char **GetCommandOptions(const CommandOption value)
2050%
2051% A description of each parameter follows:
2052%
2053% o value: the value.
2054%
2055*/
2056MagickExport const OptionInfo *GetCommandOptionInfo(const char *value)
2057{
2058 const OptionInfo
2059 *option_info=CommandOptions;
2060
2061 static ssize_t
2062 table_size = 0;
2063
anthony24aa8822012-03-11 00:56:06 +00002064 register int
anthony686b1a32012-02-15 14:50:53 +00002065 i,l,h;
2066
2067 assert(value != (char *) NULL);
2068 assert(*value != '\0');
2069
2070 /* count up table items - first time only */
2071 if ( table_size == 0 )
2072 {
2073 l=-1;
2074 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2075 if ( LocaleCompare(value,option_info[i].mnemonic) == 0 )
2076 l=i;
2077 table_size = i;
anthony24aa8822012-03-11 00:56:06 +00002078 return( &option_info[(l>=0)?l:i] );
anthony686b1a32012-02-15 14:50:53 +00002079 }
2080
2081 /* faster binary search of command table, now that its length is known */
2082 l=0;
anthony668f43a2012-02-20 14:55:32 +00002083 h=table_size;
anthony686b1a32012-02-15 14:50:53 +00002084 while ( l < h )
2085 {
2086 int cmp;
2087 i = (l+h)/2; /* half the bounds */
2088 /* compare string part, then switch character! */
2089 cmp=LocaleCompare(value+1,option_info[i].mnemonic+1);
2090 if ( cmp == 0 )
2091 cmp = *value - *(option_info[i].mnemonic);
anthony668f43a2012-02-20 14:55:32 +00002092#if 0
2093 (void) FormatLocaleFile(stderr,
2094 "%d --- %u < %u < %u --- \"%s\" < \"%s\" < \"%s\"\n",
cristy73380532012-02-18 20:26:28 +00002095 cmp,l,i,h,option_info[l].mnemonic,option_info[i].mnemonic,
2096 option_info[h].mnemonic);
anthony668f43a2012-02-20 14:55:32 +00002097#endif
anthony686b1a32012-02-15 14:50:53 +00002098 if (cmp == 0)
2099 return(&option_info[i]);
2100 if (cmp > 0) l=i+1; else h=i; /* reassign search bounds */
2101 }
2102 /* option was not found in table - return last 'null' entry. */
2103 return(&option_info[table_size]);
2104}
2105
2106/*
2107%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2108% %
2109% %
2110% %
cristy042ee782011-04-22 18:48:30 +00002111% G e t C o m m a n d O p t i o n s %
2112% %
2113% %
2114% %
2115%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2116%
2117% GetCommandOptions() returns a list of values.
2118%
2119% The format of the GetCommandOptions method is:
2120%
2121% const char **GetCommandOptions(const CommandOption value)
2122%
2123% A description of each parameter follows:
2124%
2125% o value: the value.
2126%
2127*/
2128MagickExport char **GetCommandOptions(const CommandOption value)
cristy3ed852e2009-09-05 21:47:34 +00002129{
2130 char
2131 **values;
2132
2133 const OptionInfo
2134 *option_info;
2135
cristybb503372010-05-27 20:51:26 +00002136 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002137 i;
2138
2139 option_info=GetOptionInfo(value);
2140 if (option_info == (const OptionInfo *) NULL)
2141 return((char **) NULL);
2142 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
2143 values=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*values));
2144 if (values == (char **) NULL)
2145 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
2146 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2147 values[i]=AcquireString(option_info[i].mnemonic);
2148 values[i]=(char *) NULL;
2149 return(values);
2150}
2151
2152/*
2153%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2154% %
2155% %
2156% %
2157% G e t N e x t I m a g e O p t i o n %
2158% %
2159% %
2160% %
2161%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2162%
anthony40ca0b92012-08-02 13:23:28 +00002163% GetNextImageOption() gets the next global option value.
cristy3ed852e2009-09-05 21:47:34 +00002164%
2165% The format of the GetNextImageOption method is:
2166%
2167% char *GetNextImageOption(const ImageInfo *image_info)
2168%
2169% A description of each parameter follows:
2170%
2171% o image_info: the image info.
2172%
2173*/
2174MagickExport char *GetNextImageOption(const ImageInfo *image_info)
2175{
2176 assert(image_info != (ImageInfo *) NULL);
2177 assert(image_info->signature == MagickSignature);
2178 if (image_info->debug != MagickFalse)
2179 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2180 image_info->filename);
2181 if (image_info->options == (void *) NULL)
2182 return((char *) NULL);
2183 return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options));
2184}
2185
2186/*
2187%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2188% %
2189% %
2190% %
cristy042ee782011-04-22 18:48:30 +00002191% I s C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002192% %
2193% %
2194% %
2195%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2196%
cristy042ee782011-04-22 18:48:30 +00002197% IsCommandOption() returns MagickTrue if the option begins with a - or + and
cristy3ed852e2009-09-05 21:47:34 +00002198% the first character that follows is alphanumeric.
2199%
cristy042ee782011-04-22 18:48:30 +00002200% The format of the IsCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002201%
cristy042ee782011-04-22 18:48:30 +00002202% MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002203%
2204% A description of each parameter follows:
2205%
2206% o option: the option.
2207%
2208*/
cristy042ee782011-04-22 18:48:30 +00002209MagickExport MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002210{
2211 assert(option != (const char *) NULL);
2212 if ((*option != '-') && (*option != '+'))
2213 return(MagickFalse);
2214 if (strlen(option) == 1)
anthonye5b39652012-04-21 05:37:29 +00002215 return(IsMagickTrue( (*option == '{') || (*option == '}')
2216 || (*option == '[') || (*option == ']') ));
cristy3ed852e2009-09-05 21:47:34 +00002217 option++;
anthonye5b39652012-04-21 05:37:29 +00002218 if (*option == '-')
2219 return(MagickTrue);
cristy3ed852e2009-09-05 21:47:34 +00002220 if (isalpha((int) ((unsigned char) *option)) == 0)
2221 return(MagickFalse);
2222 return(MagickTrue);
2223}
2224
2225/*
2226%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2227% %
2228% %
2229% %
cristy042ee782011-04-22 18:48:30 +00002230% C o m m a n d O p t i o n T o M n e m o n i c %
cristy3ed852e2009-09-05 21:47:34 +00002231% %
2232% %
2233% %
2234%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2235%
cristy042ee782011-04-22 18:48:30 +00002236% CommandOptionToMnemonic() returns an enumerated value as a mnemonic.
cristy3ed852e2009-09-05 21:47:34 +00002237%
cristy042ee782011-04-22 18:48:30 +00002238% The format of the CommandOptionToMnemonic method is:
cristy3ed852e2009-09-05 21:47:34 +00002239%
cristy042ee782011-04-22 18:48:30 +00002240% const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002241% const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002242%
2243% A description of each parameter follows:
2244%
2245% o option: the option.
2246%
2247% o type: one or more values separated by commas.
2248%
2249*/
cristy042ee782011-04-22 18:48:30 +00002250MagickExport const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002251 const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002252{
2253 const OptionInfo
2254 *option_info;
2255
cristybb503372010-05-27 20:51:26 +00002256 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002257 i;
2258
2259 option_info=GetOptionInfo(option);
2260 if (option_info == (const OptionInfo *) NULL)
2261 return((const char *) NULL);
2262 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2263 if (type == option_info[i].type)
2264 break;
2265 if (option_info[i].mnemonic == (const char *) NULL)
2266 return("undefined");
2267 return(option_info[i].mnemonic);
2268}
2269
2270/*
2271%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2272% %
2273% %
2274% %
cristy042ee782011-04-22 18:48:30 +00002275% L i s t C o m m a n d O p t i o n s %
cristy3ed852e2009-09-05 21:47:34 +00002276% %
2277% %
2278% %
2279%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2280%
cristy042ee782011-04-22 18:48:30 +00002281% ListCommandOptions() lists the contents of enumerated option type(s).
cristy3ed852e2009-09-05 21:47:34 +00002282%
cristy042ee782011-04-22 18:48:30 +00002283% The format of the ListCommandOptions method is:
cristy3ed852e2009-09-05 21:47:34 +00002284%
cristy2b9582a2011-07-04 17:38:56 +00002285% MagickBooleanType ListCommandOptions(FILE *file,
2286% const CommandOption option,ExceptionInfo *exception)
cristy3ed852e2009-09-05 21:47:34 +00002287%
2288% A description of each parameter follows:
2289%
2290% o file: list options to this file handle.
2291%
2292% o option: list these options.
2293%
2294% o exception: return any errors or warnings in this structure.
2295%
2296*/
cristy042ee782011-04-22 18:48:30 +00002297MagickExport MagickBooleanType ListCommandOptions(FILE *file,
2298 const CommandOption option,ExceptionInfo *magick_unused(exception))
cristy3ed852e2009-09-05 21:47:34 +00002299{
2300 const OptionInfo
2301 *option_info;
2302
cristybb503372010-05-27 20:51:26 +00002303 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002304 i;
2305
2306 if (file == (FILE *) NULL)
2307 file=stdout;
2308 option_info=GetOptionInfo(option);
2309 if (option_info == (const OptionInfo *) NULL)
2310 return(MagickFalse);
2311 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2312 {
2313 if (option_info[i].stealth != MagickFalse)
2314 continue;
cristyb51dff52011-05-19 16:55:47 +00002315 (void) FormatLocaleFile(file,"%s\n",option_info[i].mnemonic);
cristy3ed852e2009-09-05 21:47:34 +00002316 }
2317 return(MagickTrue);
2318}
2319
2320/*
2321%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2322% %
2323% %
2324% %
2325% P a r s e C h a n n e l O p t i o n %
2326% %
2327% %
2328% %
2329%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2330%
2331% ParseChannelOption() parses a string and returns an enumerated channel
2332% type(s).
2333%
2334% The format of the ParseChannelOption method is:
2335%
cristybb503372010-05-27 20:51:26 +00002336% ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002337%
2338% A description of each parameter follows:
2339%
2340% o options: One or more values separated by commas.
2341%
2342*/
cristybb503372010-05-27 20:51:26 +00002343MagickExport ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002344{
cristybb503372010-05-27 20:51:26 +00002345 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002346 i;
2347
cristyb9902b72010-10-05 18:21:50 +00002348 ssize_t
2349 channel;
2350
cristy042ee782011-04-22 18:48:30 +00002351 channel=ParseCommandOption(MagickChannelOptions,MagickTrue,channels);
cristy3ed852e2009-09-05 21:47:34 +00002352 if (channel >= 0)
2353 return(channel);
2354 channel=0;
cristybb503372010-05-27 20:51:26 +00002355 for (i=0; i < (ssize_t) strlen(channels); i++)
cristy3ed852e2009-09-05 21:47:34 +00002356 {
2357 switch (channels[i])
2358 {
2359 case 'A':
2360 case 'a':
2361 {
cristy953c4bd2012-02-24 01:04:04 +00002362 channel|=AlphaChannel;
cristy3ed852e2009-09-05 21:47:34 +00002363 break;
2364 }
2365 case 'B':
2366 case 'b':
2367 {
2368 channel|=BlueChannel;
2369 break;
2370 }
2371 case 'C':
2372 case 'c':
2373 {
2374 channel|=CyanChannel;
2375 break;
2376 }
2377 case 'g':
2378 case 'G':
2379 {
2380 channel|=GreenChannel;
2381 break;
2382 }
cristy3ed852e2009-09-05 21:47:34 +00002383 case 'K':
2384 case 'k':
2385 {
2386 channel|=BlackChannel;
2387 break;
2388 }
2389 case 'M':
2390 case 'm':
2391 {
2392 channel|=MagentaChannel;
2393 break;
2394 }
2395 case 'o':
2396 case 'O':
2397 {
anthony30b912a2012-03-22 01:20:28 +00002398 channel|=AlphaChannel; /* depreciate */
cristy3ed852e2009-09-05 21:47:34 +00002399 break;
2400 }
2401 case 'R':
2402 case 'r':
2403 {
2404 channel|=RedChannel;
2405 break;
2406 }
2407 case 'Y':
2408 case 'y':
2409 {
2410 channel|=YellowChannel;
2411 break;
2412 }
2413 case ',':
2414 {
cristybb503372010-05-27 20:51:26 +00002415 ssize_t
cristy3e4015d2010-10-05 18:18:56 +00002416 type;
2417
2418 /*
2419 Gather the additional channel flags and merge with shorthand.
2420 */
cristy042ee782011-04-22 18:48:30 +00002421 type=ParseCommandOption(MagickChannelOptions,MagickTrue,channels+i+1);
cristy3e4015d2010-10-05 18:18:56 +00002422 if (type < 0)
2423 return(type);
2424 channel|=type;
cristy3ed852e2009-09-05 21:47:34 +00002425 return(channel);
2426 }
2427 default:
2428 return(-1);
2429 }
2430 }
2431 return(channel);
2432}
2433
2434/*
2435%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2436% %
2437% %
2438% %
cristy042ee782011-04-22 18:48:30 +00002439% P a r s e C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002440% %
2441% %
2442% %
2443%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2444%
cristy042ee782011-04-22 18:48:30 +00002445% ParseCommandOption() parses a string and returns an enumerated option
anthonyce2716b2011-04-22 09:51:34 +00002446% type(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00002447%
cristy042ee782011-04-22 18:48:30 +00002448% The format of the ParseCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002449%
anthony31f1bf72012-01-30 12:37:22 +00002450% ssize_t ParseCommandOption(const CommandOption option_table,
cristy3ed852e2009-09-05 21:47:34 +00002451% const MagickBooleanType list,const char *options)
2452%
2453% A description of each parameter follows:
2454%
anthony31f1bf72012-01-30 12:37:22 +00002455% o option_table: Index to the option table to lookup
cristy3ed852e2009-09-05 21:47:34 +00002456%
2457% o list: A option other than zero permits more than one option separated by
2458% a comma or pipe.
2459%
2460% o options: One or more options separated by commas.
2461%
2462*/
anthony31f1bf72012-01-30 12:37:22 +00002463MagickExport ssize_t ParseCommandOption(const CommandOption option_table,
cristy3ed852e2009-09-05 21:47:34 +00002464 const MagickBooleanType list,const char *options)
2465{
2466 char
2467 token[MaxTextExtent];
2468
2469 const OptionInfo
2470 *option_info;
2471
2472 int
2473 sentinel;
2474
cristy3ed852e2009-09-05 21:47:34 +00002475 MagickBooleanType
2476 negate;
2477
2478 register char
2479 *q;
2480
2481 register const char
2482 *p;
2483
cristybb503372010-05-27 20:51:26 +00002484 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002485 i;
2486
cristyb9902b72010-10-05 18:21:50 +00002487 ssize_t
2488 option_types;
2489
anthony31f1bf72012-01-30 12:37:22 +00002490 option_info=GetOptionInfo(option_table);
cristy3ed852e2009-09-05 21:47:34 +00002491 if (option_info == (const OptionInfo *) NULL)
2492 return(-1);
2493 option_types=0;
2494 sentinel=',';
2495 if (strchr(options,'|') != (char *) NULL)
2496 sentinel='|';
2497 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2498 {
2499 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2500 (*p != '\0'))
2501 p++;
2502 negate=(*p == '!') ? MagickTrue : MagickFalse;
2503 if (negate != MagickFalse)
2504 p++;
2505 q=token;
2506 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2507 (*p != '\0'))
2508 {
cristya0019202011-06-07 13:23:55 +00002509 if ((q-token) >= (MaxTextExtent-1))
cristy3ed852e2009-09-05 21:47:34 +00002510 break;
2511 *q++=(*p++);
2512 }
2513 *q='\0';
2514 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2515 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2516 {
2517 if (*token == '!')
2518 option_types=option_types &~ option_info[i].type;
2519 else
2520 option_types=option_types | option_info[i].type;
2521 break;
2522 }
2523 if ((option_info[i].mnemonic == (char *) NULL) &&
2524 ((strchr(token+1,'-') != (char *) NULL) ||
2525 (strchr(token+1,'_') != (char *) NULL)))
2526 {
2527 while ((q=strchr(token+1,'-')) != (char *) NULL)
2528 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2529 while ((q=strchr(token+1,'_')) != (char *) NULL)
2530 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2531 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2532 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2533 {
2534 if (*token == '!')
2535 option_types=option_types &~ option_info[i].type;
2536 else
2537 option_types=option_types | option_info[i].type;
2538 break;
2539 }
2540 }
2541 if (option_info[i].mnemonic == (char *) NULL)
2542 return(-1);
2543 if (list == MagickFalse)
2544 break;
2545 }
2546 return(option_types);
2547}
2548
2549/*
2550%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2551% %
2552% %
2553% %
cristy953c4bd2012-02-24 01:04:04 +00002554% P a r s e P i x e l C h a n n e l O p t i o n %
2555% %
2556% %
2557% %
2558%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2559%
2560% ParsePixelChannelOption() parses a string and returns an enumerated pixel
2561% channel type(s).
2562%
2563% The format of the ParsePixelChannelOption method is:
2564%
2565% ssize_t ParsePixelChannelOption(const char *channels)
2566%
2567% A description of each parameter follows:
2568%
cristyd04e7bf2012-03-03 19:19:12 +00002569% o channels: One or more channels separated by commas.
cristy953c4bd2012-02-24 01:04:04 +00002570%
2571*/
2572MagickExport ssize_t ParsePixelChannelOption(const char *channels)
2573{
cristyd04e7bf2012-03-03 19:19:12 +00002574 char
cristya15140f2012-03-04 01:21:15 +00002575 *q,
2576 token[MaxTextExtent];
cristy953c4bd2012-02-24 01:04:04 +00002577
2578 ssize_t
2579 channel;
2580
cristya15140f2012-03-04 01:21:15 +00002581 GetMagickToken(channels,NULL,token);
cristyd4311d42012-03-18 23:03:10 +00002582 if ((*token == ';') || (*token == '|'))
2583 return(RedPixelChannel);
cristya15140f2012-03-04 01:21:15 +00002584 channel=ParseCommandOption(MagickPixelChannelOptions,MagickTrue,token);
cristy953c4bd2012-02-24 01:04:04 +00002585 if (channel >= 0)
2586 return(channel);
cristya15140f2012-03-04 01:21:15 +00002587 q=(char *) token;
2588 channel=InterpretLocaleValue(token,&q);
cristyabb241b2012-03-06 01:12:58 +00002589 if ((q == token) || (channel < 0) || (channel >= MaxPixelChannels))
cristyd04e7bf2012-03-03 19:19:12 +00002590 return(-1);
cristy953c4bd2012-02-24 01:04:04 +00002591 return(channel);
2592}
2593
2594/*
2595%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2596% %
2597% %
2598% %
cristy3ed852e2009-09-05 21:47:34 +00002599% R e m o v e I m a g e O p t i o n %
2600% %
2601% %
2602% %
2603%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2604%
2605% RemoveImageOption() removes an option from the image and returns its value.
2606%
anthony40ca0b92012-08-02 13:23:28 +00002607% In this case the ConstantString() value returned should be freed by the
2608% caller when finished.
2609%
cristy3ed852e2009-09-05 21:47:34 +00002610% The format of the RemoveImageOption method is:
2611%
2612% char *RemoveImageOption(ImageInfo *image_info,const char *option)
2613%
2614% A description of each parameter follows:
2615%
2616% o image_info: the image info.
2617%
2618% o option: the image option.
2619%
2620*/
2621MagickExport char *RemoveImageOption(ImageInfo *image_info,const char *option)
2622{
2623 char
2624 *value;
2625
2626 assert(image_info != (ImageInfo *) NULL);
2627 assert(image_info->signature == MagickSignature);
2628 if (image_info->debug != MagickFalse)
2629 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2630 image_info->filename);
2631 if (image_info->options == (void *) NULL)
2632 return((char *) NULL);
2633 value=(char *) RemoveNodeFromSplayTree((SplayTreeInfo *)
2634 image_info->options,option);
2635 return(value);
2636}
2637
2638/*
2639%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2640% %
2641% %
2642% %
2643% R e s e t I m a g e O p t i o n %
2644% %
2645% %
2646% %
2647%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2648%
2649% ResetImageOptions() resets the image_info option. That is, it deletes
anthony40ca0b92012-08-02 13:23:28 +00002650% all global options associated with the image_info structure.
cristy3ed852e2009-09-05 21:47:34 +00002651%
2652% The format of the ResetImageOptions method is:
2653%
2654% ResetImageOptions(ImageInfo *image_info)
2655%
2656% A description of each parameter follows:
2657%
2658% o image_info: the image info.
2659%
2660*/
2661MagickExport void ResetImageOptions(const ImageInfo *image_info)
2662{
2663 assert(image_info != (ImageInfo *) NULL);
2664 assert(image_info->signature == MagickSignature);
2665 if (image_info->debug != MagickFalse)
2666 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2667 image_info->filename);
2668 if (image_info->options == (void *) NULL)
2669 return;
2670 ResetSplayTree((SplayTreeInfo *) image_info->options);
2671}
2672
2673/*
2674%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2675% %
2676% %
2677% %
2678% R e s e t I m a g e O p t i o n I t e r a t o r %
2679% %
2680% %
2681% %
2682%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2683%
2684% ResetImageOptionIterator() resets the image_info values iterator. Use it
2685% in conjunction with GetNextImageOption() to iterate over all the values
2686% associated with an image option.
2687%
2688% The format of the ResetImageOptionIterator method is:
2689%
2690% ResetImageOptionIterator(ImageInfo *image_info)
2691%
2692% A description of each parameter follows:
2693%
2694% o image_info: the image info.
2695%
2696*/
2697MagickExport void ResetImageOptionIterator(const ImageInfo *image_info)
2698{
2699 assert(image_info != (ImageInfo *) NULL);
2700 assert(image_info->signature == MagickSignature);
2701 if (image_info->debug != MagickFalse)
2702 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2703 image_info->filename);
2704 if (image_info->options == (void *) NULL)
2705 return;
2706 ResetSplayTreeIterator((SplayTreeInfo *) image_info->options);
2707}
2708
2709/*
2710%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2711% %
2712% %
2713% %
2714% S e t I m a g e O p t i o n %
2715% %
2716% %
2717% %
2718%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2719%
2720% SetImageOption() associates an value with an image option.
2721%
2722% The format of the SetImageOption method is:
2723%
2724% MagickBooleanType SetImageOption(ImageInfo *image_info,
2725% const char *option,const char *value)
2726%
2727% A description of each parameter follows:
2728%
2729% o image_info: the image info.
2730%
2731% o option: the image option.
2732%
2733% o values: the image option values.
2734%
2735*/
2736MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info,
2737 const char *option,const char *value)
2738{
cristy3ed852e2009-09-05 21:47:34 +00002739 assert(image_info != (ImageInfo *) NULL);
2740 assert(image_info->signature == MagickSignature);
2741 if (image_info->debug != MagickFalse)
2742 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2743 image_info->filename);
anthony7df2b832011-10-06 11:55:25 +00002744
anthony7bb7aee2012-05-15 00:09:16 +00002745 /* FUTURE: This should not be here! - but others might */
cristy3ed852e2009-09-05 21:47:34 +00002746 if (LocaleCompare(option,"size") == 0)
2747 (void) CloneString(&image_info->size,value);
anthony7df2b832011-10-06 11:55:25 +00002748
anthony72feaa62012-01-17 06:46:23 +00002749 /* create tree if needed - specify how key,values are to be freed */
cristy3ed852e2009-09-05 21:47:34 +00002750 if (image_info->options == (void *) NULL)
2751 image_info->options=NewSplayTree(CompareSplayTreeString,
2752 RelinquishMagickMemory,RelinquishMagickMemory);
anthony7df2b832011-10-06 11:55:25 +00002753
anthony40ca0b92012-08-02 13:23:28 +00002754 /* Delete Option if NULL -- empty string values are valid! */
anthonyd181ea02011-10-12 07:44:13 +00002755 if (value == (const char *) NULL)
2756 return(DeleteImageOption(image_info,option));
2757
anthony7bb7aee2012-05-15 00:09:16 +00002758 /* add option to splay-tree */
cristye3f77792011-10-07 00:09:09 +00002759 return(AddValueToSplayTree((SplayTreeInfo *) image_info->options,
2760 ConstantString(option),ConstantString(value)));
cristy3ed852e2009-09-05 21:47:34 +00002761}