blob: 949545f9d8ec7898565b13be4b64ebc649b258d4 [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% %
cristy45ef08f2012-12-07 13:13:34 +000020% Copyright 1999-2013 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"
cristy790190d2013-10-04 00:51:51 +000054#include "MagickCore/fourier.h"
cristy4c08aed2011-07-01 19:47:50 +000055#include "MagickCore/fx.h"
56#include "MagickCore/gem.h"
57#include "MagickCore/geometry.h"
58#include "MagickCore/image.h"
59#include "MagickCore/image-private.h"
60#include "MagickCore/layer.h"
61#include "MagickCore/mime-private.h"
62#include "MagickCore/memory_.h"
63#include "MagickCore/monitor.h"
64#include "MagickCore/montage.h"
65#include "MagickCore/morphology.h"
66#include "MagickCore/option.h"
cristyac73d1f2013-03-12 00:51:09 +000067#include "MagickCore/pixel.h"
cristy4c08aed2011-07-01 19:47:50 +000068#include "MagickCore/policy.h"
69#include "MagickCore/property.h"
70#include "MagickCore/quantize.h"
71#include "MagickCore/quantum.h"
72#include "MagickCore/resample.h"
73#include "MagickCore/resource_.h"
74#include "MagickCore/splay-tree.h"
75#include "MagickCore/statistic.h"
76#include "MagickCore/string_.h"
77#include "MagickCore/token.h"
78#include "MagickCore/utility.h"
cristy3ed852e2009-09-05 21:47:34 +000079
80/*
81 ImageMagick options.
82*/
83static const OptionInfo
84 AlignOptions[] =
85 {
cristy042ee782011-04-22 18:48:30 +000086 { "Undefined", UndefinedAlign, UndefinedOptionFlag, MagickTrue },
87 { "Center", CenterAlign, UndefinedOptionFlag, MagickFalse },
88 { "End", RightAlign, UndefinedOptionFlag, MagickFalse },
89 { "Left", LeftAlign, UndefinedOptionFlag, MagickFalse },
90 { "Middle", CenterAlign, UndefinedOptionFlag, MagickFalse },
91 { "Right", RightAlign, UndefinedOptionFlag, MagickFalse },
92 { "Start", LeftAlign, UndefinedOptionFlag, MagickFalse },
93 { (char *) NULL, UndefinedAlign, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +000094 },
cristy288a3532012-08-28 00:19:44 +000095 AlphaChannelOptions[] =
cristy3ed852e2009-09-05 21:47:34 +000096 {
cristy042ee782011-04-22 18:48:30 +000097 { "Undefined", UndefinedAlphaChannel, UndefinedOptionFlag, MagickTrue },
98 { "Activate", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
99 { "Background", BackgroundAlphaChannel, UndefinedOptionFlag, MagickFalse },
100 { "Copy", CopyAlphaChannel, UndefinedOptionFlag, MagickFalse },
101 { "Deactivate", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
102 { "Extract", ExtractAlphaChannel, UndefinedOptionFlag, MagickFalse },
103 { "Off", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
104 { "On", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
105 { "Opaque", OpaqueAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy61808382012-01-30 01:24:49 +0000106 { "Remove", RemoveAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000107 { "Set", SetAlphaChannel, UndefinedOptionFlag, MagickFalse },
108 { "Shape", ShapeAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000109 { "Reset", SetAlphaChannel, DeprecateOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000110 { "Transparent", TransparentAlphaChannel, UndefinedOptionFlag, MagickFalse },
111 { (char *) NULL, UndefinedAlphaChannel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000112 },
113 BooleanOptions[] =
114 {
anthony72feaa62012-01-17 06:46:23 +0000115 { "False", MagickFalse, UndefinedOptionFlag, MagickFalse },
116 { "True", MagickTrue, UndefinedOptionFlag, MagickFalse },
117 { "0", MagickFalse, UndefinedOptionFlag, MagickFalse },
118 { "1", MagickTrue, UndefinedOptionFlag, MagickFalse },
119 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000120 },
cristy947cef22013-01-17 14:16:40 +0000121 CacheOptions[] =
122 {
123 { "Disk", DiskCache, UndefinedOptionFlag, MagickFalse },
124 { "Distributed", DistributedCache, UndefinedOptionFlag, MagickFalse },
125 { "Map", MapCache, UndefinedOptionFlag, MagickFalse },
126 { "Memory", MemoryCache, UndefinedOptionFlag, MagickFalse },
127 { "Ping", PingCache, UndefinedOptionFlag, MagickFalse },
128 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
129 },
cristy3ed852e2009-09-05 21:47:34 +0000130 ChannelOptions[] =
131 {
cristy042ee782011-04-22 18:48:30 +0000132 { "Undefined", UndefinedChannel, UndefinedOptionFlag, MagickTrue },
anthony30b912a2012-03-22 01:20:28 +0000133 /* special */
cristy9a9230e2011-04-26 14:56:14 +0000134 { "All", CompositeChannels, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000135 { "Sync", SyncChannels, UndefinedOptionFlag, MagickFalse },
136 { "Default", DefaultChannels, UndefinedOptionFlag, MagickFalse },
137 /* individual channel */
138 { "A", AlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy953c4bd2012-02-24 01:04:04 +0000139 { "Alpha", AlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000140 { "Black", BlackChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000141 { "B", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000142 { "Blue", BlueChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000143 { "C", CyanChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000144 { "Cyan", CyanChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000145 { "Gray", GrayChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000146 { "G", GreenChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000147 { "Green", GreenChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000148 { "H", RedChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000149 { "Hue", RedChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000150 { "K", BlackChannel, UndefinedOptionFlag, MagickFalse },
151 { "L", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000152 { "Lightness", BlueChannel, UndefinedOptionFlag, MagickFalse },
153 { "Luminance", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000154 { "Luminosity", BlueChannel, DeprecateOptionFlag, MagickTrue },
anthony30b912a2012-03-22 01:20:28 +0000155 { "M", MagentaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000156 { "Magenta", MagentaChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000157 { "Matte", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
158 { "Opacity", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
159 { "R", RedChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000160 { "Red", RedChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000161 { "S", GreenChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000162 { "Saturation", GreenChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000163 { "Y", YellowChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000164 { "Yellow", YellowChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000165 { (char *) NULL, UndefinedChannel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000166 },
167 ClassOptions[] =
168 {
cristy042ee782011-04-22 18:48:30 +0000169 { "Undefined", UndefinedClass, UndefinedOptionFlag, MagickTrue },
170 { "DirectClass", DirectClass, UndefinedOptionFlag, MagickFalse },
171 { "PseudoClass", PseudoClass, UndefinedOptionFlag, MagickFalse },
172 { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000173 },
174 ClipPathOptions[] =
175 {
cristy042ee782011-04-22 18:48:30 +0000176 { "Undefined", UndefinedPathUnits, UndefinedOptionFlag, MagickTrue },
177 { "ObjectBoundingBox", ObjectBoundingBox, UndefinedOptionFlag, MagickFalse },
178 { "UserSpace", UserSpace, UndefinedOptionFlag, MagickFalse },
179 { "UserSpaceOnUse", UserSpaceOnUse, UndefinedOptionFlag, MagickFalse },
180 { (char *) NULL, UndefinedPathUnits, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000181 },
182 CommandOptions[] =
183 {
anthony686b1a32012-02-15 14:50:53 +0000184 /* WARNING: this must be sorted by name, then by switch character
cristy87c02f42012-02-24 00:19:10 +0000185 So that it can be referenced using a binary search for speed.
186 See GetCommandOptionInfo() below for details.
anthony686b1a32012-02-15 14:50:53 +0000187
188 Check on sort...
189 magick -list command > t1
190 sort -k 1.2 t1 | diff t1 -
191 Should not show any differences...
192 */
anthony464f1c42012-04-22 08:51:01 +0000193 { "(", 0L, NoImageOperatorFlag, MagickTrue },
194 { ")", 0L, NoImageOperatorFlag, MagickTrue },
195 { "{", 0L, NoImageOperatorFlag, MagickTrue },
196 { "}", 0L, NoImageOperatorFlag, MagickTrue },
197 { "--", 1L, NoImageOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000198 { "+adaptive-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000199 { "-adaptive-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000200 { "+adaptive-resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000201 { "-adaptive-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000202 { "+adaptive-sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000203 { "-adaptive-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000204 { "+adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
205 { "-adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000206 { "+affine", 0L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
207 { "-affine", 1L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
anthony31f1bf72012-01-30 12:37:22 +0000208 { "+affinity", 0L, DeprecateOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000209 { "-affinity", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
210 { "+alpha", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000211 { "-alpha", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000212 { "+annotate", 0L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000213 { "-annotate", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000214 { "+antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
215 { "-antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000216 { "+append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
217 { "-append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000218 { "+attenuate", 0L, ImageInfoOptionFlag, MagickFalse },
anthony92c93bd2012-03-19 14:02:47 +0000219 { "-attenuate", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000220 { "+authenticate", 0L, ImageInfoOptionFlag, MagickFalse },
221 { "-authenticate", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000222 { "+auto-gamma", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000223 { "-auto-gamma", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000224 { "+auto-level", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000225 { "-auto-level", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000226 { "+auto-orient", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000227 { "-auto-orient", 0L, SimpleOperatorFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000228 { "+average", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000229 { "-average", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000230 { "+backdrop", 0L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
231 { "-backdrop", 1L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000232 { "+background", 0L, ImageInfoOptionFlag, MagickFalse },
233 { "-background", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000234 { "+bench", 1L, DeprecateOptionFlag, MagickTrue },
anthony9a6469e2011-05-04 11:07:31 +0000235 { "-bench", 1L, GenesisOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000236 { "+bias", 0L, ImageInfoOptionFlag, MagickFalse },
237 { "-bias", 1L, ImageInfoOptionFlag, MagickFalse },
238 { "+black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
239 { "-black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000240 { "+black-threshold", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000241 { "-black-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000242 { "+blend", 0L, NonMagickOptionFlag, MagickFalse },
243 { "-blend", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000244 { "+blue-primary", 0L, ImageInfoOptionFlag, MagickFalse },
245 { "-blue-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000246 { "+blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
247 { "-blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000248 { "+blur", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000249 { "-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000250 { "+border", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000251 { "-border", 1L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000252 { "+bordercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
253 { "-bordercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000254 { "+borderwidth", 0L, NonMagickOptionFlag, MagickFalse },
255 { "-borderwidth", 1L, NonMagickOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000256 { "+box", 0L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
257 { "-box", 1L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000258 { "+brightness-contrast", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000259 { "-brightness-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000260 { "+cache", 0L, GlobalOptionFlag, MagickFalse },
261 { "-cache", 1L, GlobalOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000262 { "+caption", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
263 { "-caption", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000264 { "+cdl", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000265 { "-cdl", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthonydf9471d2012-03-22 03:53:05 +0000266 { "+channel", 0L, ImageInfoOptionFlag, MagickFalse },
267 { "-channel", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000268 { "-channel-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyf57e5482013-02-17 22:11:27 +0000269 { "+charcoal", 1L, DeprecateOptionFlag, MagickTrue },
270 { "-charcoal", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000271 { "+chop", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000272 { "-chop", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000273 { "+clamp", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000274 { "-clamp", 0L, SimpleOperatorFlag, MagickFalse },
275 { "+clip", 0L, SimpleOperatorFlag, MagickFalse },
276 { "-clip", 0L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000277 { "+clip-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
278 { "-clip-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000279 { "+clip-path", 1L, SimpleOperatorFlag, MagickFalse },
280 { "-clip-path", 1L, SimpleOperatorFlag, MagickFalse },
281 { "+clone", 0L, NoImageOperatorFlag, MagickFalse },
282 { "-clone", 1L, NoImageOperatorFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000283 { "+clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000284 { "-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000285 { "+coalesce", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000286 { "-coalesce", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000287 { "+color-matrix", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000288 { "-color-matrix", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000289 { "+colorize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000290 { "-colorize", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000291 { "+colormap", 0L, NonMagickOptionFlag, MagickFalse },
292 { "-colormap", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000293 { "+colors", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000294 { "-colors", 1L, SimpleOperatorFlag, MagickFalse },
295 { "+colorspace", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
296 { "-colorspace", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony5a4ff372013-05-01 04:48:57 +0000297 { "+combine", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
298 { "-combine", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000299 { "+comment", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
300 { "-comment", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
cristya111cac2013-08-20 00:30:49 +0000301 { "+compare", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
302 { "-compare", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristy1141c852013-10-04 15:17:30 +0000303 { "+complex", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
304 { "-complex", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000305 { "+compose", 0L, ImageInfoOptionFlag, MagickFalse },
306 { "-compose", 1L, ImageInfoOptionFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000307 { "+composite", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000308 { "-composite", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000309 { "+compress", 0L, ImageInfoOptionFlag, MagickFalse },
310 { "-compress", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000311 { "+concurrent", 0L, DeprecateOptionFlag, MagickTrue },
anthonyebb73a22012-03-22 14:25:52 +0000312 { "-concurrent", 0L, GenesisOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000313 { "+contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
314 { "-contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000315 { "+contrast-stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000316 { "-contrast-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000317 { "+convolve", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000318 { "-convolve", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000319 { "+crop", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000320 { "-crop", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000321 { "+cycle", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000322 { "-cycle", 1L, SimpleOperatorFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000323 { "+debug", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
324 { "-debug", 1L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000325 { "+decipher", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000326 { "-decipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000327 { "+deconstruct", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000328 { "-deconstruct", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
anthonya322a832013-04-27 06:28:03 +0000329 { "+define", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
330 { "-define", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000331 { "+delay", 0L, ImageInfoOptionFlag, MagickFalse },
332 { "-delay", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000333 { "+delete", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
334 { "-delete", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000335 { "+density", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000336 { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000337 { "+depth", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
338 { "-depth", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000339 { "+descend", 0L, NonMagickOptionFlag, MagickFalse },
340 { "-descend", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000341 { "+deskew", 0L, SimpleOperatorFlag, MagickFalse },
342 { "-deskew", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000343 { "+despeckle", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000344 { "-despeckle", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000345 { "+direction", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
346 { "-direction", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000347 { "+displace", 0L, NonMagickOptionFlag, MagickFalse },
348 { "-displace", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000349 { "+display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000350 { "-display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000351 { "+dispose", 0L, ImageInfoOptionFlag, MagickFalse },
352 { "-dispose", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000353 { "+dissolve", 0L, NonMagickOptionFlag, MagickFalse },
354 { "-dissolve", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000355 { "+dissimilarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
356 { "-dissimilarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony964d28e2012-05-17 23:39:46 +0000357 { "+distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
358 { "-distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000359 { "+dither", 0L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
360 { "-dither", 1L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000361 { "+draw", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000362 { "-draw", 1L, SimpleOperatorFlag, MagickFalse },
363 { "+duplicate", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
364 { "-duplicate", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony9a6469e2011-05-04 11:07:31 +0000365 { "+duration", 1L, GenesisOptionFlag, MagickFalse },
366 { "-duration", 1L, GenesisOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000367 { "+edge", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000368 { "-edge", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000369 { "+emboss", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000370 { "-emboss", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000371 { "+encipher", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000372 { "-encipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000373 { "+encoding", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000374 { "-encoding", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000375 { "+endian", 0L, ImageInfoOptionFlag, MagickFalse },
376 { "-endian", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000377 { "+enhance", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000378 { "-enhance", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000379 { "+equalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000380 { "-equalize", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000381 { "+evaluate", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000382 { "-evaluate", 2L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000383 { "+evaluate-sequence", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000384 { "-evaluate-sequence", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000385 { "-exit", 0L, SpecialOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000386 { "+extent", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000387 { "-extent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000388 { "+extract", 0L, ImageInfoOptionFlag, MagickFalse },
389 { "-extract", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000390 { "+family", 0L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000391 { "-family", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000392 { "+features", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
393 { "-features", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
394 { "+fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
395 { "-fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000396 { "+fill", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
397 { "-fill", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000398 { "+filter", 0L, ImageInfoOptionFlag, MagickFalse },
399 { "-filter", 1L, ImageInfoOptionFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000400 { "+flatten", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000401 { "-flatten", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000402 { "+flip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000403 { "-flip", 0L, SimpleOperatorFlag, MagickFalse },
404 { "+floodfill", 2L, SimpleOperatorFlag, MagickFalse },
405 { "-floodfill", 2L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000406 { "+flop", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000407 { "-flop", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000408 { "+font", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
409 { "-font", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000410 { "+foreground", 0L, NonMagickOptionFlag, MagickFalse },
411 { "-foreground", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000412 { "+format", 0L, ImageInfoOptionFlag, MagickFalse },
anthonya322a832013-04-27 06:28:03 +0000413 { "-format", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000414 { "+frame", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000415 { "-frame", 1L, SimpleOperatorFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000416 { "+function", 2L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000417 { "-function", 2L,SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000418 { "+fuzz", 0L, ImageInfoOptionFlag, MagickFalse },
419 { "-fuzz", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000420 { "+fx", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000421 { "-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony7a4d6102012-07-01 09:48:25 +0000422 { "+gamma", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000423 { "-gamma", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000424 { "+gaussian", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000425 { "-gaussian", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000426 { "+gaussian-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000427 { "-gaussian-blur", 1L, SimpleOperatorFlag, MagickFalse },
428 { "+geometry", 0L, SimpleOperatorFlag, MagickFalse },
429 { "-geometry", 1L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000430 { "+gravity", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
431 { "-gravity", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristye0b9b8f2013-03-28 12:39:39 +0000432 { "+grayscale", 1L, SimpleOperatorFlag, MagickTrue },
433 { "-grayscale", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000434 { "+green-primary", 0L, ImageInfoOptionFlag, MagickFalse },
435 { "-green-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000436 { "+hald-clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000437 { "-hald-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000438 { "+highlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
439 { "-highlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000440 { "+iconGeometry", 0L, NonMagickOptionFlag, MagickFalse },
441 { "-iconGeometry", 1L, NonMagickOptionFlag, MagickFalse },
442 { "+iconic", 0L, NonMagickOptionFlag, MagickFalse },
anthonya322a832013-04-27 06:28:03 +0000443 { "-iconic", 0L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000444 { "+identify", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000445 { "-identify", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
446 { "+ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
447 { "-ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000448 { "+immutable", 0L, NonMagickOptionFlag, MagickFalse },
449 { "-immutable", 0L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000450 { "+implode", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000451 { "-implode", 1L, SimpleOperatorFlag, MagickFalse },
452 { "+insert", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
453 { "-insert", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristya14c5122013-03-15 10:42:52 +0000454 { "+intensity", 0L, ImageInfoOptionFlag, MagickFalse },
455 { "-intensity", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000456 { "+intent", 0L, ImageInfoOptionFlag, MagickFalse },
457 { "-intent", 1L, ImageInfoOptionFlag, MagickFalse },
458 { "+interlace", 0L, ImageInfoOptionFlag, MagickFalse },
459 { "-interlace", 1L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000460 { "+interline-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
461 { "-interline-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000462 { "+interpolate", 0L, ImageInfoOptionFlag, MagickFalse },
463 { "-interpolate", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000464 { "+interpolative-resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000465 { "-interpolative-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000466 { "+interword-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
467 { "-interword-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000468 { "+kerning", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
469 { "-kerning", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000470 { "+label", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
471 { "-label", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000472 { "+lat", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000473 { "-lat", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000474 { "+layers", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000475 { "-layers", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
476 { "+level", 1L, SimpleOperatorFlag, MagickFalse },
477 { "-level", 1L, SimpleOperatorFlag, MagickFalse },
478 { "+level-colors", 1L, SimpleOperatorFlag, MagickFalse },
479 { "-level-colors", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000480 { "+limit", 0L, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000481 { "-limit", 2L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000482 { "+linear-stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000483 { "-linear-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000484 { "+liquid-rescale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000485 { "-liquid-rescale", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000486 { "+list", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000487 { "-list", 1L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000488 { "+log", 0L, DeprecateOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000489 { "-log", 1L, GlobalOptionFlag, MagickFalse },
490 { "+loop", 0L, ImageInfoOptionFlag, MagickFalse },
491 { "-loop", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000492 { "+lowlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
493 { "-lowlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
cristy7220ee42013-04-14 01:30:34 +0000494 { "+magnify", 0L, DeprecateOptionFlag, MagickTrue },
495 { "-magnify", 0L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000496 { "+map", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
497 { "-map", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000498 { "+mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
499 { "-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000500 { "+matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
501 { "-matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000502 { "+mattecolor", 0L, ImageInfoOptionFlag, MagickFalse },
503 { "-mattecolor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000504 { "+maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
505 { "-maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
506 { "+median", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000507 { "-median", 1L, ReplacedOptionFlag | SimpleOperatorFlag | FireOptionFlag, MagickTrue },
cristy6c8baa72013-08-20 00:39:06 +0000508 { "+metric", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
509 { "-metric", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000510 { "+minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
511 { "-minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000512 { "+mode", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000513 { "-mode", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000514 { "+modulate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000515 { "-modulate", 1L, SimpleOperatorFlag, MagickFalse },
516 { "+monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
517 { "-monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000518 { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000519 { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000520 { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000521 { "-morph", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000522 { "+morphology", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000523 { "-morphology", 2L, SimpleOperatorFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000524 { "+mosaic", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000525 { "-mosaic", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000526 { "+motion-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000527 { "-motion-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000528 { "+name", 0L, NonMagickOptionFlag, MagickFalse },
529 { "-name", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000530 { "+negate", 0L, SimpleOperatorFlag, MagickFalse },
531 { "-negate", 0L, SimpleOperatorFlag, MagickFalse },
532 { "+noise", 1L, SimpleOperatorFlag, MagickFalse },
533 { "-noise", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickFalse },
534 { "-noop", 0L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000535 { "+normalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000536 { "-normalize", 0L, SimpleOperatorFlag, MagickFalse },
537 { "+opaque", 1L, SimpleOperatorFlag, MagickFalse },
538 { "-opaque", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000539 { "+ordered-dither", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000540 { "-ordered-dither", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000541 { "+orient", 0L, ImageInfoOptionFlag, MagickFalse },
542 { "-orient", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000543 { "+page", 0L, ImageInfoOptionFlag, MagickFalse },
544 { "-page", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000545 { "+paint", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000546 { "-paint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000547 { "+path", 0L, NonMagickOptionFlag, MagickFalse },
548 { "-path", 1L, NonMagickOptionFlag, MagickFalse },
549 { "+pause", 0L, NonMagickOptionFlag, MagickFalse },
550 { "-pause", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000551 { "+ping", 0L, ImageInfoOptionFlag, MagickFalse },
552 { "-ping", 0L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000553 { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
554 { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000555 { "+polaroid", 0L, SimpleOperatorFlag, MagickFalse },
556 { "-polaroid", 1L, SimpleOperatorFlag, MagickFalse },
cristyf56e6ad2012-11-11 19:29:38 +0000557 { "+poly", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
558 { "-poly", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000559 { "+posterize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000560 { "-posterize", 1L, SimpleOperatorFlag, MagickFalse },
anthonya3ef4ed2012-03-17 06:52:53 +0000561 { "+precision", 0L, ImageInfoOptionFlag, MagickFalse },
562 { "-precision", 1L, ImageInfoOptionFlag, MagickFalse },
563 { "+preview", 0L, DeprecateOptionFlag, MagickTrue },
564 { "-preview", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000565 { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthonya322a832013-04-27 06:28:03 +0000566 { "-print", 1L, NoImageOperatorFlag | AlwaysInterpretArgsFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000567 { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000568 { "-process", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
569 { "+profile", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000570 { "-profile", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000571 { "+quality", 0L, ImageInfoOptionFlag, MagickFalse },
572 { "-quality", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000573 { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse },
574 { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000575 { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
576 { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000577 { "+radial-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000578 { "-radial-blur", 1L, SimpleOperatorFlag, MagickFalse },
579 { "+raise", 1L, SimpleOperatorFlag, MagickFalse },
580 { "-raise", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000581 { "+random-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000582 { "-random-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000583 { "-read", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000584 { "+recolor", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000585 { "-recolor", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000586 { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse },
587 { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000588 { "+regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
589 { "-regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000590 { "+region", 0L, NoImageOperatorFlag, MagickFalse },
591 { "-region", 1L, NoImageOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000592 { "+remap", 0L, ListOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
593 { "-remap", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000594 { "+remote", 0L, NonMagickOptionFlag, MagickFalse },
595 { "-remote", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000596 { "+render", 0L, DrawInfoOptionFlag, MagickFalse },
597 { "-render", 0L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000598 { "+repage", 0L, SimpleOperatorFlag, MagickFalse },
599 { "-repage", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000600 { "+resample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000601 { "-resample", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000602 { "+resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000603 { "-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthonyd111fda2012-04-13 03:07:40 +0000604 { "+respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
605 { "-respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000606 { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000607 { "-reverse", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000608 { "+roll", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000609 { "-roll", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000610 { "+rotate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000611 { "-rotate", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000612 { "+sample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000613 { "-sample", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000614 { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse },
615 { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000616 { "+sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
617 { "-sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
618 { "+sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'noop' */
619 { "-sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
anthony0da1e9c2012-11-17 05:28:22 +0000620 { "+sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
621 { "-sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'sans' */
anthony4837ac22012-05-18 23:39:48 +0000622 { "+sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
623 { "-sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000624 { "+scale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000625 { "-scale", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000626 { "+scene", 0L, ImageInfoOptionFlag, MagickFalse },
627 { "-scene", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000628 { "+scenes", 0L, NonMagickOptionFlag, MagickFalse },
629 { "-scenes", 1L, NonMagickOptionFlag, MagickFalse },
630 { "+screen", 0L, NonMagickOptionFlag, MagickFalse },
631 { "-screen", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000632 { "-script", 1L, SpecialOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000633 { "+seed", 0L, GlobalOptionFlag, MagickFalse },
634 { "-seed", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000635 { "+segment", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000636 { "-segment", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000637 { "+selective-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000638 { "-selective-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000639 { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000640 { "-separate", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000641 { "+sepia-tone", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000642 { "-sepia-tone", 1L, SimpleOperatorFlag, MagickFalse },
anthonya322a832013-04-27 06:28:03 +0000643 { "+set", 1L, NoImageOperatorFlag, MagickFalse },
anthony0da1e9c2012-11-17 05:28:22 +0000644 { "-set", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000645 { "+shade", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000646 { "-shade", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000647 { "+shadow", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000648 { "-shadow", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000649 { "+shared-memory", 0L, NonMagickOptionFlag, MagickFalse },
650 { "-shared-memory", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000651 { "+sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000652 { "-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000653 { "+shave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000654 { "-shave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000655 { "+shear", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000656 { "-shear", 1L, SimpleOperatorFlag, MagickFalse },
657 { "+sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
658 { "-sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000659 { "+silent", 0L, NonMagickOptionFlag, MagickFalse },
660 { "-silent", 1L, NonMagickOptionFlag, MagickFalse },
cristy62e52182013-03-15 14:26:17 +0000661 { "+similarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
662 { "-similarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000663 { "+size", 0L, ImageInfoOptionFlag, MagickFalse },
664 { "-size", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000665 { "+sketch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000666 { "-sketch", 1L, SimpleOperatorFlag, MagickFalse },
667 { "+smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
668 { "-smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000669 { "+snaps", 0L, NonMagickOptionFlag, MagickFalse },
670 { "-snaps", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000671 { "+solarize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000672 { "-solarize", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000673 { "+sparse-color", 1L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000674 { "-sparse-color", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000675 { "+splice", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000676 { "-splice", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000677 { "+spread", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000678 { "-spread", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000679 { "+statistic", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000680 { "-statistic", 2L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000681 { "+stegano", 0L, NonMagickOptionFlag, MagickFalse },
682 { "-stegano", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000683 { "+stereo", 0L, DeprecateOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000684 { "-stereo", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000685 { "+stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000686 { "-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000687 { "+strip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000688 { "-strip", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000689 { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
690 { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000691 { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000692 { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000693 { "+style", 0L, DrawInfoOptionFlag, MagickFalse },
694 { "-style", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000695 { "+subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
696 { "-subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
697 { "-subimage", 0L, ListOperatorFlag, MagickFalse },
698 { "+swap", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
699 { "-swap", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000700 { "+swirl", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000701 { "-swirl", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000702 { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
703 { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
704 { "+taint", 0L, ImageInfoOptionFlag, MagickFalse },
705 { "-taint", 0L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000706 { "+text-font", 0L, NonMagickOptionFlag, MagickFalse },
707 { "-text-font", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000708 { "+texture", 0L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000709 { "-texture", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000710 { "+threshold", 0L, SimpleOperatorFlag, MagickFalse },
711 { "-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000712 { "+thumbnail", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000713 { "-thumbnail", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000714 { "+tile", 0L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
715 { "-tile", 1L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000716 { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse },
717 { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000718 { "+tint", 1L, SimpleOperatorFlag, MagickFalse },
719 { "-tint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000720 { "+title", 0L, NonMagickOptionFlag, MagickFalse },
721 { "-title", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000722 { "+transform", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000723 { "-transform", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
724 { "+transparent", 1L, SimpleOperatorFlag, MagickFalse },
725 { "-transparent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000726 { "+transparent-color", 0L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000727 { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000728 { "+transpose", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000729 { "-transpose", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000730 { "+transverse", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000731 { "-transverse", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000732 { "+treedepth", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000733 { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000734 { "+trim", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000735 { "-trim", 0L, SimpleOperatorFlag, MagickFalse },
736 { "+type", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
737 { "-type", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000738 { "+undercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000739 { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000740 { "+unique", 0L, SimpleOperatorFlag, MagickFalse },
741 { "-unique", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000742 { "+unique-colors", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000743 { "-unique-colors", 0L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000744 { "+units", 0L, ImageInfoOptionFlag, MagickFalse },
745 { "-units", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000746 { "+unsharp", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000747 { "-unsharp", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000748 { "+update", 0L, NonMagickOptionFlag, MagickFalse },
749 { "-update", 1L, NonMagickOptionFlag, MagickFalse },
750 { "+use-pixmap", 0L, NonMagickOptionFlag, MagickFalse },
751 { "-use-pixmap", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000752 { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
753 { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
cristyc404ff62012-02-05 15:17:09 +0000754 { "+version", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000755 { "-version", 0L, NoImageOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000756 { "+view", 0L, ImageInfoOptionFlag, MagickFalse },
757 { "-view", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000758 { "+vignette", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000759 { "-vignette", 1L, SimpleOperatorFlag, MagickFalse },
anthonyebb73a22012-03-22 14:25:52 +0000760 { "+virtual-pixel", 0L, ImageInfoOptionFlag, MagickFalse },
761 { "-virtual-pixel", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000762 { "+visual", 0L, NonMagickOptionFlag, MagickFalse },
763 { "-visual", 1L, NonMagickOptionFlag, MagickFalse },
764 { "+watermark", 0L, NonMagickOptionFlag, MagickFalse },
765 { "-watermark", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000766 { "+wave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000767 { "-wave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000768 { "+weight", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000769 { "-weight", 1L, DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000770 { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse },
771 { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000772 { "+white-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000773 { "-white-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000774 { "+window", 0L, NonMagickOptionFlag, MagickFalse },
775 { "-window", 1L, NonMagickOptionFlag, MagickFalse },
776 { "+window-group", 0L, NonMagickOptionFlag, MagickFalse },
777 { "-window-group", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000778 { "+write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
779 { "-write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000780 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000781 },
782 ComposeOptions[] =
783 {
cristy042ee782011-04-22 18:48:30 +0000784 { "Undefined", UndefinedCompositeOp, UndefinedOptionFlag, MagickTrue },
785 { "Atop", AtopCompositeOp, UndefinedOptionFlag, MagickFalse },
786 { "Blend", BlendCompositeOp, UndefinedOptionFlag, MagickFalse },
787 { "Blur", BlurCompositeOp, UndefinedOptionFlag, MagickFalse },
788 { "Bumpmap", BumpmapCompositeOp, UndefinedOptionFlag, MagickFalse },
789 { "ChangeMask", ChangeMaskCompositeOp, UndefinedOptionFlag, MagickFalse },
790 { "Clear", ClearCompositeOp, UndefinedOptionFlag, MagickFalse },
791 { "ColorBurn", ColorBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
792 { "ColorDodge", ColorDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
793 { "Colorize", ColorizeCompositeOp, UndefinedOptionFlag, MagickFalse },
cristye4a40472011-12-22 02:56:19 +0000794 { "CopyAlpha", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000795 { "CopyBlack", CopyBlackCompositeOp, UndefinedOptionFlag, MagickFalse },
796 { "CopyBlue", CopyBlueCompositeOp, UndefinedOptionFlag, MagickFalse },
797 { "CopyCyan", CopyCyanCompositeOp, UndefinedOptionFlag, MagickFalse },
798 { "CopyGreen", CopyGreenCompositeOp, UndefinedOptionFlag, MagickFalse },
799 { "Copy", CopyCompositeOp, UndefinedOptionFlag, MagickFalse },
800 { "CopyMagenta", CopyMagentaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000801 { "CopyRed", CopyRedCompositeOp, UndefinedOptionFlag, MagickFalse },
802 { "CopyYellow", CopyYellowCompositeOp, UndefinedOptionFlag, MagickFalse },
803 { "Darken", DarkenCompositeOp, UndefinedOptionFlag, MagickFalse },
804 { "DarkenIntensity", DarkenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
805 { "DivideDst", DivideDstCompositeOp, UndefinedOptionFlag, MagickFalse },
806 { "DivideSrc", DivideSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
807 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse },
808 { "Difference", DifferenceCompositeOp, UndefinedOptionFlag, MagickFalse },
809 { "Displace", DisplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
810 { "Dissolve", DissolveCompositeOp, UndefinedOptionFlag, MagickFalse },
811 { "Distort", DistortCompositeOp, UndefinedOptionFlag, MagickFalse },
812 { "DstAtop", DstAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
813 { "DstIn", DstInCompositeOp, UndefinedOptionFlag, MagickFalse },
814 { "DstOut", DstOutCompositeOp, UndefinedOptionFlag, MagickFalse },
815 { "DstOver", DstOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000816 { "Exclusion", ExclusionCompositeOp, UndefinedOptionFlag, MagickFalse },
817 { "HardLight", HardLightCompositeOp, UndefinedOptionFlag, MagickFalse },
818 { "Hue", HueCompositeOp, UndefinedOptionFlag, MagickFalse },
819 { "In", InCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy98621462011-12-31 22:31:11 +0000820 { "Intensity", IntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000821 { "Lighten", LightenCompositeOp, UndefinedOptionFlag, MagickFalse },
822 { "LightenIntensity", LightenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
823 { "LinearBurn", LinearBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
824 { "LinearDodge", LinearDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
825 { "LinearLight", LinearLightCompositeOp, UndefinedOptionFlag, MagickFalse },
826 { "Luminize", LuminizeCompositeOp, UndefinedOptionFlag, MagickFalse },
827 { "Mathematics", MathematicsCompositeOp, UndefinedOptionFlag, MagickFalse },
828 { "MinusDst", MinusDstCompositeOp, UndefinedOptionFlag, MagickFalse },
829 { "MinusSrc", MinusSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
830 { "Modulate", ModulateCompositeOp, UndefinedOptionFlag, MagickFalse },
831 { "ModulusAdd", ModulusAddCompositeOp, UndefinedOptionFlag, MagickFalse },
832 { "ModulusSubtract", ModulusSubtractCompositeOp, UndefinedOptionFlag, MagickFalse },
833 { "Multiply", MultiplyCompositeOp, UndefinedOptionFlag, MagickFalse },
834 { "None", NoCompositeOp, UndefinedOptionFlag, MagickFalse },
835 { "Out", OutCompositeOp, UndefinedOptionFlag, MagickFalse },
836 { "Overlay", OverlayCompositeOp, UndefinedOptionFlag, MagickFalse },
837 { "Over", OverCompositeOp, UndefinedOptionFlag, MagickFalse },
838 { "PegtopLight", PegtopLightCompositeOp, UndefinedOptionFlag, MagickFalse },
839 { "PinLight", PinLightCompositeOp, UndefinedOptionFlag, MagickFalse },
840 { "Plus", PlusCompositeOp, UndefinedOptionFlag, MagickFalse },
841 { "Replace", ReplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
842 { "Saturate", SaturateCompositeOp, UndefinedOptionFlag, MagickFalse },
843 { "Screen", ScreenCompositeOp, UndefinedOptionFlag, MagickFalse },
844 { "SoftLight", SoftLightCompositeOp, UndefinedOptionFlag, MagickFalse },
845 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse },
846 { "SrcAtop", SrcAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
847 { "SrcIn", SrcInCompositeOp, UndefinedOptionFlag, MagickFalse },
848 { "SrcOut", SrcOutCompositeOp, UndefinedOptionFlag, MagickFalse },
849 { "SrcOver", SrcOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000850 { "VividLight", VividLightCompositeOp, UndefinedOptionFlag, MagickFalse },
851 { "Xor", XorCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000852 { "Divide", DivideDstCompositeOp, DeprecateOptionFlag, MagickTrue },
853 { "Minus", MinusDstCompositeOp, DeprecateOptionFlag, MagickTrue },
cristy1df692a2011-04-23 17:09:35 +0000854 { "Threshold", ThresholdCompositeOp, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000855 { "CopyOpacity", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000856 { (char *) NULL, UndefinedCompositeOp, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000857 },
858 CompressOptions[] =
859 {
cristy042ee782011-04-22 18:48:30 +0000860 { "Undefined", UndefinedCompression, UndefinedOptionFlag, MagickTrue },
861 { "B44", B44Compression, UndefinedOptionFlag, MagickFalse },
862 { "B44A", B44ACompression, UndefinedOptionFlag, MagickFalse },
863 { "BZip", BZipCompression, UndefinedOptionFlag, MagickFalse },
864 { "DXT1", DXT1Compression, UndefinedOptionFlag, MagickFalse },
865 { "DXT3", DXT3Compression, UndefinedOptionFlag, MagickFalse },
866 { "DXT5", DXT5Compression, UndefinedOptionFlag, MagickFalse },
867 { "Fax", FaxCompression, UndefinedOptionFlag, MagickFalse },
868 { "Group4", Group4Compression, UndefinedOptionFlag, MagickFalse },
cristy6d5e20f2011-04-25 13:48:54 +0000869 { "JBIG1", JBIG1Compression, UndefinedOptionFlag, MagickFalse },
870 { "JBIG2", JBIG2Compression, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000871 { "JPEG", JPEGCompression, UndefinedOptionFlag, MagickFalse },
872 { "JPEG2000", JPEG2000Compression, UndefinedOptionFlag, MagickFalse },
873 { "Lossless", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
874 { "LosslessJPEG", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
875 { "LZMA", LZMACompression, UndefinedOptionFlag, MagickFalse },
876 { "LZW", LZWCompression, UndefinedOptionFlag, MagickFalse },
877 { "None", NoCompression, UndefinedOptionFlag, MagickFalse },
878 { "Piz", PizCompression, UndefinedOptionFlag, MagickFalse },
879 { "Pxr24", Pxr24Compression, UndefinedOptionFlag, MagickFalse },
880 { "RLE", RLECompression, UndefinedOptionFlag, MagickFalse },
881 { "Zip", ZipCompression, UndefinedOptionFlag, MagickFalse },
882 { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
883 { "ZipS", ZipSCompression, UndefinedOptionFlag, MagickFalse },
884 { (char *) NULL, UndefinedCompression, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000885 },
886 ColorspaceOptions[] =
887 {
cristy042ee782011-04-22 18:48:30 +0000888 { "Undefined", UndefinedColorspace, UndefinedOptionFlag, MagickTrue },
cristy978b6a32012-06-24 15:17:32 +0000889 { "CIELab", LabColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000890 { "CMY", CMYColorspace, UndefinedOptionFlag, MagickFalse },
891 { "CMYK", CMYKColorspace, UndefinedOptionFlag, MagickFalse },
892 { "Gray", GRAYColorspace, UndefinedOptionFlag, MagickFalse },
cristy722fc0c2012-08-04 23:15:43 +0000893 { "HCL", HCLColorspace, UndefinedOptionFlag, MagickFalse },
cristy710cbd42013-05-02 21:39:35 +0000894 { "HCLp", HCLpColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000895 { "HSB", HSBColorspace, UndefinedOptionFlag, MagickFalse },
cristyaf64eb22013-05-02 14:07:10 +0000896 { "HSI", HSIColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000897 { "HSL", HSLColorspace, UndefinedOptionFlag, MagickFalse },
cristy246c3132013-05-02 16:35:53 +0000898 { "HSV", HSVColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000899 { "HWB", HWBColorspace, UndefinedOptionFlag, MagickFalse },
900 { "Lab", LabColorspace, UndefinedOptionFlag, MagickFalse },
cristy1f099312012-08-29 17:22:14 +0000901 { "LCH", LCHColorspace, UndefinedOptionFlag, MagickFalse },
cristydf42b172013-04-05 13:35:37 +0000902 { "LCHab", LCHabColorspace, UndefinedOptionFlag, MagickFalse },
903 { "LCHuv", LCHuvColorspace, UndefinedOptionFlag, MagickFalse },
cristy09d746f2012-08-29 17:54:59 +0000904 { "LMS", LMSColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000905 { "Log", LogColorspace, UndefinedOptionFlag, MagickFalse },
cristycb82c8e2012-08-01 12:54:37 +0000906 { "Luv", LuvColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000907 { "OHTA", OHTAColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000908 { "Rec601YCbCr", Rec601YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000909 { "Rec709YCbCr", Rec709YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
910 { "RGB", RGBColorspace, UndefinedOptionFlag, MagickFalse },
cristy34632332013-05-03 10:21:05 +0000911 { "scRGB", scRGBColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000912 { "sRGB", sRGBColorspace, UndefinedOptionFlag, MagickFalse },
913 { "Transparent", TransparentColorspace, UndefinedOptionFlag, MagickFalse },
914 { "XYZ", XYZColorspace, UndefinedOptionFlag, MagickFalse },
915 { "YCbCr", YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
cristyc282d1b2013-05-06 23:37:48 +0000916 { "YDbDr", YDbDrColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000917 { "YCC", YCCColorspace, UndefinedOptionFlag, MagickFalse },
918 { "YIQ", YIQColorspace, UndefinedOptionFlag, MagickFalse },
919 { "YPbPr", YPbPrColorspace, UndefinedOptionFlag, MagickFalse },
920 { "YUV", YUVColorspace, UndefinedOptionFlag, MagickFalse },
921 { (char *) NULL, UndefinedColorspace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000922 },
cristy790190d2013-10-04 00:51:51 +0000923 ComplexOptions[] =
924 {
925 { "Undefined", UndefinedComplexOperator, UndefinedOptionFlag, MagickTrue },
926 { "Conjugate", ConjugateComplexOperator, UndefinedOptionFlag, MagickFalse },
927 { "Divide", DivideComplexOperator, UndefinedOptionFlag, MagickFalse },
928 { "Multiply", MultiplyComplexOperator, UndefinedOptionFlag, MagickFalse },
929 { (char *) NULL, UndefinedComplexOperator, UndefinedOptionFlag, MagickFalse }
930 },
cristy3ed852e2009-09-05 21:47:34 +0000931 DataTypeOptions[] =
932 {
cristy042ee782011-04-22 18:48:30 +0000933 { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue },
934 { "Byte", ByteData, UndefinedOptionFlag, MagickFalse },
935 { "Long", LongData, UndefinedOptionFlag, MagickFalse },
936 { "Short", ShortData, UndefinedOptionFlag, MagickFalse },
937 { "String", StringData, UndefinedOptionFlag, MagickFalse },
938 { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000939 },
940 DecorateOptions[] =
941 {
cristy042ee782011-04-22 18:48:30 +0000942 { "Undefined", UndefinedDecoration, UndefinedOptionFlag, MagickTrue },
943 { "LineThrough", LineThroughDecoration, UndefinedOptionFlag, MagickFalse },
944 { "None", NoDecoration, UndefinedOptionFlag, MagickFalse },
945 { "Overline", OverlineDecoration, UndefinedOptionFlag, MagickFalse },
946 { "Underline", UnderlineDecoration, UndefinedOptionFlag, MagickFalse },
947 { (char *) NULL, UndefinedDecoration, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000948 },
cristyc9b12952010-03-28 01:12:28 +0000949 DirectionOptions[] =
950 {
cristy042ee782011-04-22 18:48:30 +0000951 { "Undefined", UndefinedDirection, UndefinedOptionFlag, MagickTrue },
952 { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse },
953 { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse },
954 { (char *) NULL, UndefinedDirection, UndefinedOptionFlag, MagickFalse }
cristyc9b12952010-03-28 01:12:28 +0000955 },
cristy3ed852e2009-09-05 21:47:34 +0000956 DisposeOptions[] =
957 {
cristy042ee782011-04-22 18:48:30 +0000958 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickTrue },
959 { "Background", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
960 { "None", NoneDispose, UndefinedOptionFlag, MagickFalse },
961 { "Previous", PreviousDispose, UndefinedOptionFlag, MagickFalse },
962 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
963 { "0", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
964 { "1", NoneDispose, UndefinedOptionFlag, MagickFalse },
965 { "2", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
966 { "3", PreviousDispose, UndefinedOptionFlag, MagickFalse },
967 { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000968 },
969 DistortOptions[] =
970 {
cristy042ee782011-04-22 18:48:30 +0000971 { "Affine", AffineDistortion, UndefinedOptionFlag, MagickFalse },
972 { "AffineProjection", AffineProjectionDistortion, UndefinedOptionFlag, MagickFalse },
973 { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
974 { "SRT", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
975 { "Perspective", PerspectiveDistortion, UndefinedOptionFlag, MagickFalse },
976 { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse },
977 { "Bilinear", BilinearForwardDistortion, UndefinedOptionFlag, MagickTrue },
978 { "BilinearForward", BilinearForwardDistortion, UndefinedOptionFlag, MagickFalse },
979 { "BilinearReverse", BilinearReverseDistortion, UndefinedOptionFlag, MagickFalse },
980 { "Polynomial", PolynomialDistortion, UndefinedOptionFlag, MagickFalse },
981 { "Arc", ArcDistortion, UndefinedOptionFlag, MagickFalse },
982 { "Polar", PolarDistortion, UndefinedOptionFlag, MagickFalse },
983 { "DePolar", DePolarDistortion, UndefinedOptionFlag, MagickFalse },
984 { "Barrel", BarrelDistortion, UndefinedOptionFlag, MagickFalse },
anthonye0d9bbd2011-06-15 01:05:57 +0000985 { "Cylinder2Plane", Cylinder2PlaneDistortion, UndefinedOptionFlag, MagickTrue },
986 { "Plane2Cylinder", Plane2CylinderDistortion, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000987 { "BarrelInverse", BarrelInverseDistortion, UndefinedOptionFlag, MagickFalse },
988 { "Shepards", ShepardsDistortion, UndefinedOptionFlag, MagickFalse },
989 { "Resize", ResizeDistortion, UndefinedOptionFlag, MagickFalse },
990 { (char *) NULL, UndefinedDistortion, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000991 },
992 DitherOptions[] =
993 {
cristy042ee782011-04-22 18:48:30 +0000994 { "Undefined", UndefinedDitherMethod, UndefinedOptionFlag, MagickTrue },
995 { "None", NoDitherMethod, UndefinedOptionFlag, MagickFalse },
996 { "FloydSteinberg", FloydSteinbergDitherMethod, UndefinedOptionFlag, MagickFalse },
997 { "Riemersma", RiemersmaDitherMethod, UndefinedOptionFlag, MagickFalse },
998 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000999 },
1000 EndianOptions[] =
1001 {
cristy042ee782011-04-22 18:48:30 +00001002 { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue },
1003 { "LSB", LSBEndian, UndefinedOptionFlag, MagickFalse },
1004 { "MSB", MSBEndian, UndefinedOptionFlag, MagickFalse },
1005 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001006 },
1007 EvaluateOptions[] =
1008 {
cristy042ee782011-04-22 18:48:30 +00001009 { "Undefined", UndefinedEvaluateOperator, UndefinedOptionFlag, MagickTrue },
1010 { "Abs", AbsEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1011 { "Add", AddEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1012 { "AddModulus", AddModulusEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1013 { "And", AndEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1014 { "Cos", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1015 { "Cosine", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1016 { "Divide", DivideEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1017 { "Exp", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1018 { "Exponential", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1019 { "GaussianNoise", GaussianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1020 { "ImpulseNoise", ImpulseNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1021 { "LaplacianNoise", LaplacianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1022 { "LeftShift", LeftShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1023 { "Log", LogEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1024 { "Max", MaxEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1025 { "Mean", MeanEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1026 { "Median", MedianEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1027 { "Min", MinEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1028 { "MultiplicativeNoise", MultiplicativeNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1029 { "Multiply", MultiplyEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1030 { "Or", OrEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1031 { "PoissonNoise", PoissonNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1032 { "Pow", PowEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1033 { "RightShift", RightShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1034 { "Set", SetEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1035 { "Sin", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1036 { "Sine", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1037 { "Subtract", SubtractEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy12a3f8e2012-01-31 01:53:19 +00001038 { "Sum", SumEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001039 { "Threshold", ThresholdEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1040 { "ThresholdBlack", ThresholdBlackEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1041 { "ThresholdWhite", ThresholdWhiteEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1042 { "UniformNoise", UniformNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1043 { "Xor", XorEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1044 { (char *) NULL, UndefinedEvaluateOperator, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001045 },
1046 FillRuleOptions[] =
1047 {
cristy042ee782011-04-22 18:48:30 +00001048 { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue },
1049 { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse },
1050 { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse },
1051 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001052 },
1053 FilterOptions[] =
1054 {
cristy042ee782011-04-22 18:48:30 +00001055 { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue },
1056 { "Bartlett", BartlettFilter, UndefinedOptionFlag, MagickFalse },
1057 { "Blackman", BlackmanFilter, UndefinedOptionFlag, MagickFalse },
1058 { "Bohman", BohmanFilter, UndefinedOptionFlag, MagickFalse },
1059 { "Box", BoxFilter, UndefinedOptionFlag, MagickFalse },
1060 { "Catrom", CatromFilter, UndefinedOptionFlag, MagickFalse },
anthony5d4a1702012-05-08 01:22:41 +00001061 { "Cosine", CosineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001062 { "Cubic", CubicFilter, UndefinedOptionFlag, MagickFalse },
1063 { "Gaussian", GaussianFilter, UndefinedOptionFlag, MagickFalse },
1064 { "Hamming", HammingFilter, UndefinedOptionFlag, MagickFalse },
anthonyf60ffd72012-08-20 03:25:30 +00001065 { "Hann", HannFilter, UndefinedOptionFlag, MagickFalse },
1066 { "Hanning", HannFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
cristy042ee782011-04-22 18:48:30 +00001067 { "Hermite", HermiteFilter, UndefinedOptionFlag, MagickFalse },
1068 { "Jinc", JincFilter, UndefinedOptionFlag, MagickFalse },
1069 { "Kaiser", KaiserFilter, UndefinedOptionFlag, MagickFalse },
1070 { "Lagrange", LagrangeFilter, UndefinedOptionFlag, MagickFalse },
1071 { "Lanczos", LanczosFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001072 { "Lanczos2", Lanczos2Filter, UndefinedOptionFlag, MagickFalse },
1073 { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse },
anthonyaa806422012-10-17 00:56:10 +00001074 { "LanczosRadius", LanczosRadiusFilter, UndefinedOptionFlag, MagickFalse },
1075 { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001076 { "Mitchell", MitchellFilter, UndefinedOptionFlag, MagickFalse },
1077 { "Parzen", ParzenFilter, UndefinedOptionFlag, MagickFalse },
1078 { "Point", PointFilter, UndefinedOptionFlag, MagickFalse },
1079 { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse },
1080 { "Robidoux", RobidouxFilter, UndefinedOptionFlag, MagickFalse },
anthony45531092012-04-23 00:33:53 +00001081 { "RobidouxSharp", RobidouxSharpFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001082 { "Sinc", SincFilter, UndefinedOptionFlag, MagickFalse },
1083 { "SincFast", SincFastFilter, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001084 { "Spline", SplineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001085 { "Triangle", TriangleFilter, UndefinedOptionFlag, MagickFalse },
anthonyf60ffd72012-08-20 03:25:30 +00001086 { "Welch", WelchFilter, UndefinedOptionFlag, MagickFalse },
1087 { "Welsh", WelchFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
cristy042ee782011-04-22 18:48:30 +00001088 { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001089 },
1090 FunctionOptions[] =
1091 {
cristy042ee782011-04-22 18:48:30 +00001092 { "Undefined", UndefinedFunction, UndefinedOptionFlag, MagickTrue },
1093 { "Polynomial", PolynomialFunction, UndefinedOptionFlag, MagickFalse },
1094 { "Sinusoid", SinusoidFunction, UndefinedOptionFlag, MagickFalse },
1095 { "ArcSin", ArcsinFunction, UndefinedOptionFlag, MagickFalse },
1096 { "ArcTan", ArctanFunction, UndefinedOptionFlag, MagickFalse },
1097 { (char *) NULL, UndefinedFunction, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001098 },
1099 GravityOptions[] =
1100 {
cristy042ee782011-04-22 18:48:30 +00001101 { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue },
1102 { "None", UndefinedGravity, UndefinedOptionFlag, MagickFalse },
1103 { "Center", CenterGravity, UndefinedOptionFlag, MagickFalse },
1104 { "East", EastGravity, UndefinedOptionFlag, MagickFalse },
1105 { "Forget", ForgetGravity, UndefinedOptionFlag, MagickFalse },
1106 { "NorthEast", NorthEastGravity, UndefinedOptionFlag, MagickFalse },
1107 { "North", NorthGravity, UndefinedOptionFlag, MagickFalse },
1108 { "NorthWest", NorthWestGravity, UndefinedOptionFlag, MagickFalse },
1109 { "SouthEast", SouthEastGravity, UndefinedOptionFlag, MagickFalse },
1110 { "South", SouthGravity, UndefinedOptionFlag, MagickFalse },
1111 { "SouthWest", SouthWestGravity, UndefinedOptionFlag, MagickFalse },
1112 { "West", WestGravity, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001113 { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001114 },
cristy3ed852e2009-09-05 21:47:34 +00001115 IntentOptions[] =
1116 {
cristy042ee782011-04-22 18:48:30 +00001117 { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue },
1118 { "Absolute", AbsoluteIntent, UndefinedOptionFlag, MagickFalse },
1119 { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse },
1120 { "Relative", RelativeIntent, UndefinedOptionFlag, MagickFalse },
1121 { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse },
1122 { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001123 },
1124 InterlaceOptions[] =
1125 {
cristy042ee782011-04-22 18:48:30 +00001126 { "Undefined", UndefinedInterlace, UndefinedOptionFlag, MagickTrue },
1127 { "Line", LineInterlace, UndefinedOptionFlag, MagickFalse },
1128 { "None", NoInterlace, UndefinedOptionFlag, MagickFalse },
1129 { "Plane", PlaneInterlace, UndefinedOptionFlag, MagickFalse },
1130 { "Partition", PartitionInterlace, UndefinedOptionFlag, MagickFalse },
1131 { "GIF", GIFInterlace, UndefinedOptionFlag, MagickFalse },
1132 { "JPEG", JPEGInterlace, UndefinedOptionFlag, MagickFalse },
1133 { "PNG", PNGInterlace, UndefinedOptionFlag, MagickFalse },
1134 { (char *) NULL, UndefinedInterlace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001135 },
1136 InterpolateOptions[] =
1137 {
cristy042ee782011-04-22 18:48:30 +00001138 { "Undefined", UndefinedInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1139 { "Average", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001140 { "Average4", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1141 { "Average9", Average9InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1142 { "Average16", Average16InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1143 { "Background", BackgroundInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001144 { "Bilinear", BilinearInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001145 { "Blend", BlendInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1146 { "Catrom", CatromInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001147 { "Integer", IntegerInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1148 { "Mesh", MeshInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001149 { "Nearest", NearestInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1150 { "NearestNeighbor", NearestInterpolatePixel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001151 { "Spline", SplineInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001152/* { "Filter", FilterInterpolatePixel, UndefinedOptionFlag, MagickFalse }, */
cristy042ee782011-04-22 18:48:30 +00001153 { (char *) NULL, UndefinedInterpolatePixel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001154 },
anthony602ab9b2010-01-05 08:06:50 +00001155 KernelOptions[] =
1156 {
cristy042ee782011-04-22 18:48:30 +00001157 { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue },
1158 { "Unity", UnityKernel, UndefinedOptionFlag, MagickFalse },
1159 { "Gaussian", GaussianKernel, UndefinedOptionFlag, MagickFalse },
1160 { "DoG", DoGKernel, UndefinedOptionFlag, MagickFalse },
1161 { "LoG", LoGKernel, UndefinedOptionFlag, MagickFalse },
1162 { "Blur", BlurKernel, UndefinedOptionFlag, MagickFalse },
1163 { "Comet", CometKernel, UndefinedOptionFlag, MagickFalse },
anthony40ca0b92012-08-02 13:23:28 +00001164 { "Binomial", BinomialKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001165 { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse },
1166 { "Sobel", SobelKernel, UndefinedOptionFlag, MagickFalse },
1167 { "FreiChen", FreiChenKernel, UndefinedOptionFlag, MagickFalse },
1168 { "Roberts", RobertsKernel, UndefinedOptionFlag, MagickFalse },
1169 { "Prewitt", PrewittKernel, UndefinedOptionFlag, MagickFalse },
1170 { "Compass", CompassKernel, UndefinedOptionFlag, MagickFalse },
1171 { "Kirsch", KirschKernel, UndefinedOptionFlag, MagickFalse },
1172 { "Diamond", DiamondKernel, UndefinedOptionFlag, MagickFalse },
1173 { "Square", SquareKernel, UndefinedOptionFlag, MagickFalse },
1174 { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse },
1175 { "Disk", DiskKernel, UndefinedOptionFlag, MagickFalse },
1176 { "Octagon", OctagonKernel, UndefinedOptionFlag, MagickFalse },
1177 { "Plus", PlusKernel, UndefinedOptionFlag, MagickFalse },
1178 { "Cross", CrossKernel, UndefinedOptionFlag, MagickFalse },
1179 { "Ring", RingKernel, UndefinedOptionFlag, MagickFalse },
1180 { "Peaks", PeaksKernel, UndefinedOptionFlag, MagickFalse },
1181 { "Edges", EdgesKernel, UndefinedOptionFlag, MagickFalse },
1182 { "Corners", CornersKernel, UndefinedOptionFlag, MagickFalse },
1183 { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001184 { "LineEnds", LineEndsKernel, UndefinedOptionFlag, MagickFalse },
1185 { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse },
1186 { "Ridges", RidgesKernel, UndefinedOptionFlag, MagickFalse },
1187 { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse },
1188 { "ThinSe", ThinSEKernel, UndefinedOptionFlag, MagickFalse },
1189 { "Skeleton", SkeletonKernel, UndefinedOptionFlag, MagickFalse },
1190 { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse },
1191 { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse },
1192 { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse },
1193 { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001194 { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001195 { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001196 },
cristy3ed852e2009-09-05 21:47:34 +00001197 LayerOptions[] =
1198 {
cristy042ee782011-04-22 18:48:30 +00001199 { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue },
1200 { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse },
1201 { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse },
1202 { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse },
1203 { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse },
1204 { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse },
1205 { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse },
1206 { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse },
1207 { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse },
1208 { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
1209 { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse },
1210 { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse },
1211 { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse },
1212 { "Merge", MergeLayer, UndefinedOptionFlag, MagickFalse },
1213 { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse },
1214 { "Mosaic", MosaicLayer, UndefinedOptionFlag, MagickFalse },
1215 { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse },
1216 { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001217 },
1218 LineCapOptions[] =
1219 {
cristy042ee782011-04-22 18:48:30 +00001220 { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue },
1221 { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse },
1222 { "Round", RoundCap, UndefinedOptionFlag, MagickFalse },
1223 { "Square", SquareCap, UndefinedOptionFlag, MagickFalse },
1224 { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001225 },
1226 LineJoinOptions[] =
1227 {
cristy042ee782011-04-22 18:48:30 +00001228 { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue },
1229 { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse },
1230 { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse },
1231 { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse },
1232 { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001233 },
1234 ListOptions[] =
1235 {
cristy042ee782011-04-22 18:48:30 +00001236 { "Align", MagickAlignOptions, UndefinedOptionFlag, MagickFalse },
cristy288a3532012-08-28 00:19:44 +00001237 { "Alpha", MagickAlphaChannelOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001238 { "Boolean", MagickBooleanOptions, UndefinedOptionFlag, MagickFalse },
cristy947cef22013-01-17 14:16:40 +00001239 { "Cache", MagickCacheOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001240 { "Channel", MagickChannelOptions, UndefinedOptionFlag, MagickFalse },
1241 { "Class", MagickClassOptions, UndefinedOptionFlag, MagickFalse },
1242 { "ClipPath", MagickClipPathOptions, UndefinedOptionFlag, MagickFalse },
1243 { "Coder", MagickCoderOptions, UndefinedOptionFlag, MagickFalse },
1244 { "Color", MagickColorOptions, UndefinedOptionFlag, MagickFalse },
1245 { "Colorspace", MagickColorspaceOptions, UndefinedOptionFlag, MagickFalse },
1246 { "Command", MagickCommandOptions, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +00001247 { "Complex", MagickComplexOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001248 { "Compose", MagickComposeOptions, UndefinedOptionFlag, MagickFalse },
1249 { "Compress", MagickCompressOptions, UndefinedOptionFlag, MagickFalse },
1250 { "Configure", MagickConfigureOptions, UndefinedOptionFlag, MagickFalse },
1251 { "DataType", MagickDataTypeOptions, UndefinedOptionFlag, MagickFalse },
1252 { "Debug", MagickDebugOptions, UndefinedOptionFlag, MagickFalse },
1253 { "Decoration", MagickDecorateOptions, UndefinedOptionFlag, MagickFalse },
1254 { "Delegate", MagickDelegateOptions, UndefinedOptionFlag, MagickFalse },
1255 { "Direction", MagickDirectionOptions, UndefinedOptionFlag, MagickFalse },
1256 { "Dispose", MagickDisposeOptions, UndefinedOptionFlag, MagickFalse },
1257 { "Distort", MagickDistortOptions, UndefinedOptionFlag, MagickFalse },
1258 { "Dither", MagickDitherOptions, UndefinedOptionFlag, MagickFalse },
1259 { "Endian", MagickEndianOptions, UndefinedOptionFlag, MagickFalse },
1260 { "Evaluate", MagickEvaluateOptions, UndefinedOptionFlag, MagickFalse },
1261 { "FillRule", MagickFillRuleOptions, UndefinedOptionFlag, MagickFalse },
1262 { "Filter", MagickFilterOptions, UndefinedOptionFlag, MagickFalse },
1263 { "Font", MagickFontOptions, UndefinedOptionFlag, MagickFalse },
1264 { "Format", MagickFormatOptions, UndefinedOptionFlag, MagickFalse },
1265 { "Function", MagickFunctionOptions, UndefinedOptionFlag, MagickFalse },
1266 { "Gravity", MagickGravityOptions, UndefinedOptionFlag, MagickFalse },
cristyf2104462013-03-13 16:13:08 +00001267 { "Intensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001268 { "Intent", MagickIntentOptions, UndefinedOptionFlag, MagickFalse },
1269 { "Interlace", MagickInterlaceOptions, UndefinedOptionFlag, MagickFalse },
1270 { "Interpolate", MagickInterpolateOptions, UndefinedOptionFlag, MagickFalse },
1271 { "Kernel", MagickKernelOptions, UndefinedOptionFlag, MagickFalse },
1272 { "Layers", MagickLayerOptions, UndefinedOptionFlag, MagickFalse },
1273 { "LineCap", MagickLineCapOptions, UndefinedOptionFlag, MagickFalse },
1274 { "LineJoin", MagickLineJoinOptions, UndefinedOptionFlag, MagickFalse },
1275 { "List", MagickListOptions, UndefinedOptionFlag, MagickFalse },
1276 { "Locale", MagickLocaleOptions, UndefinedOptionFlag, MagickFalse },
1277 { "LogEvent", MagickLogEventOptions, UndefinedOptionFlag, MagickFalse },
1278 { "Log", MagickLogOptions, UndefinedOptionFlag, MagickFalse },
1279 { "Magic", MagickMagicOptions, UndefinedOptionFlag, MagickFalse },
1280 { "Method", MagickMethodOptions, UndefinedOptionFlag, MagickFalse },
1281 { "Metric", MagickMetricOptions, UndefinedOptionFlag, MagickFalse },
1282 { "Mime", MagickMimeOptions, UndefinedOptionFlag, MagickFalse },
1283 { "Mode", MagickModeOptions, UndefinedOptionFlag, MagickFalse },
1284 { "Morphology", MagickMorphologyOptions, UndefinedOptionFlag, MagickFalse },
1285 { "Module", MagickModuleOptions, UndefinedOptionFlag, MagickFalse },
1286 { "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse },
1287 { "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001288 { "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse },
cristyac73d1f2013-03-12 00:51:09 +00001289 { "PixelIntensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
cristy18fd4432013-03-22 01:26:09 +00001290 { "PixelMask", MagickPixelMaskOptions, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001291 { "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001292 { "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse },
1293 { "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse },
1294 { "PolicyRights", MagickPolicyRightsOptions, UndefinedOptionFlag, MagickFalse },
1295 { "Preview", MagickPreviewOptions, UndefinedOptionFlag, MagickFalse },
1296 { "Primitive", MagickPrimitiveOptions, UndefinedOptionFlag, MagickFalse },
1297 { "QuantumFormat", MagickQuantumFormatOptions, UndefinedOptionFlag, MagickFalse },
1298 { "Resource", MagickResourceOptions, UndefinedOptionFlag, MagickFalse },
1299 { "SparseColor", MagickSparseColorOptions, UndefinedOptionFlag, MagickFalse },
1300 { "Statistic", MagickStatisticOptions, UndefinedOptionFlag, MagickFalse },
1301 { "Storage", MagickStorageOptions, UndefinedOptionFlag, MagickFalse },
1302 { "Stretch", MagickStretchOptions, UndefinedOptionFlag, MagickFalse },
1303 { "Style", MagickStyleOptions, UndefinedOptionFlag, MagickFalse },
1304 { "Threshold", MagickThresholdOptions, UndefinedOptionFlag, MagickFalse },
1305 { "Type", MagickTypeOptions, UndefinedOptionFlag, MagickFalse },
1306 { "Units", MagickResolutionOptions, UndefinedOptionFlag, MagickFalse },
1307 { "Undefined", MagickUndefinedOptions, UndefinedOptionFlag, MagickTrue },
1308 { "Validate", MagickValidateOptions, UndefinedOptionFlag, MagickFalse },
1309 { "VirtualPixel", MagickVirtualPixelOptions, UndefinedOptionFlag, MagickFalse },
1310 { (char *) NULL, MagickUndefinedOptions, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001311 },
1312 LogEventOptions[] =
1313 {
cristy042ee782011-04-22 18:48:30 +00001314 { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue },
1315 { "All", (AllEvents &~ TraceEvent), UndefinedOptionFlag, MagickFalse },
cristy68b14972011-10-26 14:54:58 +00001316 { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001317 { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse },
1318 { "Blob", BlobEvent, UndefinedOptionFlag, MagickFalse },
1319 { "Cache", CacheEvent, UndefinedOptionFlag, MagickFalse },
1320 { "Coder", CoderEvent, UndefinedOptionFlag, MagickFalse },
anthonya322a832013-04-27 06:28:03 +00001321 { "Command", CommandEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001322 { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse },
1323 { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse },
1324 { "Draw", DrawEvent, UndefinedOptionFlag, MagickFalse },
1325 { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse },
1326 { "Locale", LocaleEvent, UndefinedOptionFlag, MagickFalse },
1327 { "Module", ModuleEvent, UndefinedOptionFlag, MagickFalse },
1328 { "None", NoEvents, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001329 { "Pixel", PixelEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001330 { "Policy", PolicyEvent, UndefinedOptionFlag, MagickFalse },
1331 { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse },
1332 { "Trace", TraceEvent, UndefinedOptionFlag, MagickFalse },
1333 { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse },
1334 { "User", UserEvent, UndefinedOptionFlag, MagickFalse },
1335 { "Wand", WandEvent, UndefinedOptionFlag, MagickFalse },
1336 { "X11", X11Event, UndefinedOptionFlag, MagickFalse },
1337 { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001338 },
1339 MetricOptions[] =
1340 {
cristya6efb492013-07-10 23:57:14 +00001341 { "Undefined", UndefinedErrorMetric, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001342 { "AE", AbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1343 { "Fuzz", FuzzErrorMetric, UndefinedOptionFlag, MagickFalse },
1344 { "MAE", MeanAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1345 { "MEPP", MeanErrorPerPixelMetric, UndefinedOptionFlag, MagickFalse },
1346 { "MSE", MeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1347 { "NCC", NormalizedCrossCorrelationErrorMetric, UndefinedOptionFlag, MagickFalse },
1348 { "PAE", PeakAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1349 { "PSNR", PeakSignalToNoiseRatioMetric, UndefinedOptionFlag, MagickFalse },
1350 { "RMSE", RootMeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
cristya6efb492013-07-10 23:57:14 +00001351 { (char *) NULL, UndefinedErrorMetric, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001352 },
1353 MethodOptions[] =
1354 {
cristy042ee782011-04-22 18:48:30 +00001355 { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue },
1356 { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse },
1357 { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse },
1358 { "Point", PointMethod, UndefinedOptionFlag, MagickFalse },
1359 { "Replace", ReplaceMethod, UndefinedOptionFlag, MagickFalse },
1360 { "Reset", ResetMethod, UndefinedOptionFlag, MagickFalse },
1361 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001362 },
1363 ModeOptions[] =
1364 {
cristy042ee782011-04-22 18:48:30 +00001365 { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue },
1366 { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse },
1367 { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse },
1368 { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse },
1369 { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001370 },
anthony602ab9b2010-01-05 08:06:50 +00001371 MorphologyOptions[] =
1372 {
cristy042ee782011-04-22 18:48:30 +00001373 { "Undefined", UndefinedMorphology, UndefinedOptionFlag, MagickTrue },
1374 { "Correlate", CorrelateMorphology, UndefinedOptionFlag, MagickFalse },
1375 { "Convolve", ConvolveMorphology, UndefinedOptionFlag, MagickFalse },
1376 { "Dilate", DilateMorphology, UndefinedOptionFlag, MagickFalse },
1377 { "Erode", ErodeMorphology, UndefinedOptionFlag, MagickFalse },
1378 { "Close", CloseMorphology, UndefinedOptionFlag, MagickFalse },
1379 { "Open", OpenMorphology, UndefinedOptionFlag, MagickFalse },
1380 { "DilateIntensity", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1381 { "ErodeIntensity", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1382 { "CloseIntensity", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1383 { "OpenIntensity", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1384 { "DilateI", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1385 { "ErodeI", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1386 { "CloseI", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1387 { "OpenI", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1388 { "Smooth", SmoothMorphology, UndefinedOptionFlag, MagickFalse },
1389 { "EdgeOut", EdgeOutMorphology, UndefinedOptionFlag, MagickFalse },
1390 { "EdgeIn", EdgeInMorphology, UndefinedOptionFlag, MagickFalse },
1391 { "Edge", EdgeMorphology, UndefinedOptionFlag, MagickFalse },
1392 { "TopHat", TopHatMorphology, UndefinedOptionFlag, MagickFalse },
1393 { "BottomHat", BottomHatMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001394 { "Hmt", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1395 { "HitNMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1396 { "HitAndMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1397 { "Thinning", ThinningMorphology, UndefinedOptionFlag, MagickFalse },
1398 { "Thicken", ThickenMorphology, UndefinedOptionFlag, MagickFalse },
anthonyf34d9b22012-02-22 06:11:08 +00001399 { "Distance", DistanceMorphology, UndefinedOptionFlag, MagickFalse },
1400 { "IterativeDistance", IterativeDistanceMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001401 { "Voronoi", VoronoiMorphology, UndefinedOptionFlag, MagickTrue },
1402 { (char *) NULL, UndefinedMorphology, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001403 },
cristy3ed852e2009-09-05 21:47:34 +00001404 NoiseOptions[] =
1405 {
cristy042ee782011-04-22 18:48:30 +00001406 { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue },
1407 { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse },
1408 { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse },
1409 { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse },
1410 { "Multiplicative", MultiplicativeGaussianNoise, UndefinedOptionFlag, MagickFalse },
1411 { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse },
1412 { "Random", RandomNoise, UndefinedOptionFlag, MagickFalse },
1413 { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse },
1414 { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001415 },
1416 OrientationOptions[] =
1417 {
cristy042ee782011-04-22 18:48:30 +00001418 { "Undefined", UndefinedOrientation, UndefinedOptionFlag, MagickTrue },
1419 { "TopLeft", TopLeftOrientation, UndefinedOptionFlag, MagickFalse },
1420 { "TopRight", TopRightOrientation, UndefinedOptionFlag, MagickFalse },
1421 { "BottomRight", BottomRightOrientation, UndefinedOptionFlag, MagickFalse },
1422 { "BottomLeft", BottomLeftOrientation, UndefinedOptionFlag, MagickFalse },
1423 { "LeftTop", LeftTopOrientation, UndefinedOptionFlag, MagickFalse },
1424 { "RightTop", RightTopOrientation, UndefinedOptionFlag, MagickFalse },
1425 { "RightBottom", RightBottomOrientation, UndefinedOptionFlag, MagickFalse },
1426 { "LeftBottom", LeftBottomOrientation, UndefinedOptionFlag, MagickFalse },
1427 { (char *) NULL, UndefinedOrientation, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001428 },
cristy6dcb9b82011-10-23 23:21:25 +00001429 PixelChannelOptions[] =
1430 {
1431 { "Undefined", UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001432 { "A", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001433 { "Alpha", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001434 { "B", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +00001435 { "Bk", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001436 { "Black", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1437 { "Blue", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1438 { "Cb", CbPixelChannel, UndefinedOptionFlag, MagickFalse },
1439 { "Composite", CompositePixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001440 { "C", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001441 { "Cr", CrPixelChannel, UndefinedOptionFlag, MagickFalse },
1442 { "Cyan", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1443 { "Gray", GrayPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001444 { "G", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001445 { "Green", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1446 { "Index", IndexPixelChannel, UndefinedOptionFlag, MagickFalse },
1447 { "Intensity", IntensityPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001448 { "K", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1449 { "M", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001450 { "Magenta", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001451 { "R", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy883fde12013-04-08 00:50:13 +00001452 { "ReadMask", ReadMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001453 { "Red", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1454 { "Sync", SyncPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy883fde12013-04-08 00:50:13 +00001455 { "WriteMask", WriteMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001456 { "Y", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001457 { "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1458 { (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }
1459 },
cristyac73d1f2013-03-12 00:51:09 +00001460 PixelIntensityOptions[] =
1461 {
1462 { "Undefined", UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1463 { "Average", AveragePixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1464 { "Brightness", BrightnessPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1465 { "Lightness", LightnessPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
cristyb04db122013-04-11 10:26:01 +00001466 { "MS", MSPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
cristyac73d1f2013-03-12 00:51:09 +00001467 { "Rec601Luma", Rec601LumaPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
cristy546a0562013-03-13 12:19:12 +00001468 { "Rec601Luminance", Rec601LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
cristyac73d1f2013-03-12 00:51:09 +00001469 { "Rec709Luma", Rec709LumaPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
cristy546a0562013-03-13 12:19:12 +00001470 { "Rec709Luminance", Rec709LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
cristyac73d1f2013-03-12 00:51:09 +00001471 { "RMS", RMSPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1472 { (char *) NULL, UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickFalse }
1473 },
cristy18fd4432013-03-22 01:26:09 +00001474 PixelMaskOptions[] =
1475 {
1476 { "Undefined", UndefinedPixelMask, UndefinedOptionFlag, MagickTrue },
1477 { "R", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1478 { "Read", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1479 { "W", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1480 { "Write", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1481 { (char *) NULL, UndefinedPixelMask, UndefinedOptionFlag, MagickFalse }
1482 },
cristy6dcb9b82011-10-23 23:21:25 +00001483 PixelTraitOptions[] =
1484 {
1485 { "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue },
1486 { "Blend", BlendPixelTrait, UndefinedOptionFlag, MagickFalse },
1487 { "Copy", CopyPixelTrait, UndefinedOptionFlag, MagickFalse },
1488 { "Update", UpdatePixelTrait, UndefinedOptionFlag, MagickFalse },
1489 { (char *) NULL, UndefinedPixelTrait, UndefinedOptionFlag, MagickFalse }
1490 },
cristy3ed852e2009-09-05 21:47:34 +00001491 PolicyDomainOptions[] =
1492 {
cristy042ee782011-04-22 18:48:30 +00001493 { "Undefined", UndefinedPolicyDomain, UndefinedOptionFlag, MagickTrue },
1494 { "Coder", CoderPolicyDomain, UndefinedOptionFlag, MagickFalse },
1495 { "Delegate", DelegatePolicyDomain, UndefinedOptionFlag, MagickFalse },
1496 { "Filter", FilterPolicyDomain, UndefinedOptionFlag, MagickFalse },
1497 { "Path", PathPolicyDomain, UndefinedOptionFlag, MagickFalse },
1498 { "Resource", ResourcePolicyDomain, UndefinedOptionFlag, MagickFalse },
1499 { "System", SystemPolicyDomain, UndefinedOptionFlag, MagickFalse },
1500 { (char *) NULL, UndefinedPolicyDomain, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001501 },
1502 PolicyRightsOptions[] =
1503 {
cristy042ee782011-04-22 18:48:30 +00001504 { "Undefined", UndefinedPolicyRights, UndefinedOptionFlag, MagickTrue },
1505 { "None", NoPolicyRights, UndefinedOptionFlag, MagickFalse },
1506 { "Read", ReadPolicyRights, UndefinedOptionFlag, MagickFalse },
1507 { "Write", WritePolicyRights, UndefinedOptionFlag, MagickFalse },
1508 { "Execute", ExecutePolicyRights, UndefinedOptionFlag, MagickFalse },
1509 { (char *) NULL, UndefinedPolicyRights, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001510 },
1511 PreviewOptions[] =
1512 {
cristy042ee782011-04-22 18:48:30 +00001513 { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue },
1514 { "AddNoise", AddNoisePreview, UndefinedOptionFlag, MagickFalse },
1515 { "Blur", BlurPreview, UndefinedOptionFlag, MagickFalse },
1516 { "Brightness", BrightnessPreview, UndefinedOptionFlag, MagickFalse },
1517 { "Charcoal", CharcoalDrawingPreview, UndefinedOptionFlag, MagickFalse },
1518 { "Despeckle", DespecklePreview, UndefinedOptionFlag, MagickFalse },
1519 { "Dull", DullPreview, UndefinedOptionFlag, MagickFalse },
1520 { "EdgeDetect", EdgeDetectPreview, UndefinedOptionFlag, MagickFalse },
1521 { "Gamma", GammaPreview, UndefinedOptionFlag, MagickFalse },
1522 { "Grayscale", GrayscalePreview, UndefinedOptionFlag, MagickFalse },
1523 { "Hue", HuePreview, UndefinedOptionFlag, MagickFalse },
1524 { "Implode", ImplodePreview, UndefinedOptionFlag, MagickFalse },
1525 { "JPEG", JPEGPreview, UndefinedOptionFlag, MagickFalse },
1526 { "OilPaint", OilPaintPreview, UndefinedOptionFlag, MagickFalse },
1527 { "Quantize", QuantizePreview, UndefinedOptionFlag, MagickFalse },
1528 { "Raise", RaisePreview, UndefinedOptionFlag, MagickFalse },
1529 { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse },
1530 { "Roll", RollPreview, UndefinedOptionFlag, MagickFalse },
1531 { "Rotate", RotatePreview, UndefinedOptionFlag, MagickFalse },
1532 { "Saturation", SaturationPreview, UndefinedOptionFlag, MagickFalse },
1533 { "Segment", SegmentPreview, UndefinedOptionFlag, MagickFalse },
1534 { "Shade", ShadePreview, UndefinedOptionFlag, MagickFalse },
1535 { "Sharpen", SharpenPreview, UndefinedOptionFlag, MagickFalse },
1536 { "Shear", ShearPreview, UndefinedOptionFlag, MagickFalse },
1537 { "Solarize", SolarizePreview, UndefinedOptionFlag, MagickFalse },
1538 { "Spiff", SpiffPreview, UndefinedOptionFlag, MagickFalse },
1539 { "Spread", SpreadPreview, UndefinedOptionFlag, MagickFalse },
1540 { "Swirl", SwirlPreview, UndefinedOptionFlag, MagickFalse },
1541 { "Threshold", ThresholdPreview, UndefinedOptionFlag, MagickFalse },
1542 { "Wave", WavePreview, UndefinedOptionFlag, MagickFalse },
1543 { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001544 },
1545 PrimitiveOptions[] =
1546 {
cristy042ee782011-04-22 18:48:30 +00001547 { "Undefined", UndefinedPrimitive, UndefinedOptionFlag, MagickTrue },
1548 { "Arc", ArcPrimitive, UndefinedOptionFlag, MagickFalse },
1549 { "Bezier", BezierPrimitive, UndefinedOptionFlag, MagickFalse },
1550 { "Circle", CirclePrimitive, UndefinedOptionFlag, MagickFalse },
1551 { "Color", ColorPrimitive, UndefinedOptionFlag, MagickFalse },
1552 { "Ellipse", EllipsePrimitive, UndefinedOptionFlag, MagickFalse },
1553 { "Image", ImagePrimitive, UndefinedOptionFlag, MagickFalse },
1554 { "Line", LinePrimitive, UndefinedOptionFlag, MagickFalse },
1555 { "Matte", MattePrimitive, UndefinedOptionFlag, MagickFalse },
1556 { "Path", PathPrimitive, UndefinedOptionFlag, MagickFalse },
1557 { "Point", PointPrimitive, UndefinedOptionFlag, MagickFalse },
1558 { "Polygon", PolygonPrimitive, UndefinedOptionFlag, MagickFalse },
1559 { "Polyline", PolylinePrimitive, UndefinedOptionFlag, MagickFalse },
1560 { "Rectangle", RectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1561 { "RoundRectangle", RoundRectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1562 { "Text", TextPrimitive, UndefinedOptionFlag, MagickFalse },
1563 { (char *) NULL, UndefinedPrimitive, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001564 },
1565 QuantumFormatOptions[] =
1566 {
cristy042ee782011-04-22 18:48:30 +00001567 { "Undefined", UndefinedQuantumFormat, UndefinedOptionFlag, MagickTrue },
1568 { "FloatingPoint", FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse },
1569 { "Signed", SignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1570 { "Unsigned", UnsignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1571 { (char *) NULL, FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001572 },
1573 ResolutionOptions[] =
1574 {
cristy042ee782011-04-22 18:48:30 +00001575 { "Undefined", UndefinedResolution, UndefinedOptionFlag, MagickTrue },
1576 { "PixelsPerInch", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
1577 { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
1578 { (char *) NULL, UndefinedResolution, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001579 },
1580 ResourceOptions[] =
1581 {
cristy042ee782011-04-22 18:48:30 +00001582 { "Undefined", UndefinedResource, UndefinedOptionFlag, MagickTrue },
1583 { "Area", AreaResource, UndefinedOptionFlag, MagickFalse },
1584 { "Disk", DiskResource, UndefinedOptionFlag, MagickFalse },
1585 { "File", FileResource, UndefinedOptionFlag, MagickFalse },
1586 { "Map", MapResource, UndefinedOptionFlag, MagickFalse },
1587 { "Memory", MemoryResource, UndefinedOptionFlag, MagickFalse },
1588 { "Thread", ThreadResource, UndefinedOptionFlag, MagickFalse },
1589 { "Time", TimeResource, UndefinedOptionFlag, MagickFalse },
1590 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001591 },
1592 SparseColorOptions[] =
1593 {
cristy042ee782011-04-22 18:48:30 +00001594 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue },
1595 { "Barycentric", BarycentricColorInterpolate, UndefinedOptionFlag, MagickFalse },
1596 { "Bilinear", BilinearColorInterpolate, UndefinedOptionFlag, MagickFalse },
anthony09d867c2011-04-26 08:28:41 +00001597 { "Inverse", InverseColorInterpolate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001598 { "Shepards", ShepardsColorInterpolate, UndefinedOptionFlag, MagickFalse },
1599 { "Voronoi", VoronoiColorInterpolate, UndefinedOptionFlag, MagickFalse },
1600 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001601 },
cristy0834d642011-03-18 18:26:08 +00001602 StatisticOptions[] =
1603 {
cristy042ee782011-04-22 18:48:30 +00001604 { "Undefined", UndefinedStatistic, UndefinedOptionFlag, MagickTrue },
1605 { "Gradient", GradientStatistic, UndefinedOptionFlag, MagickFalse },
1606 { "Maximum", MaximumStatistic, UndefinedOptionFlag, MagickFalse },
1607 { "Mean", MeanStatistic, UndefinedOptionFlag, MagickFalse },
1608 { "Median", MedianStatistic, UndefinedOptionFlag, MagickFalse },
1609 { "Minimum", MinimumStatistic, UndefinedOptionFlag, MagickFalse },
1610 { "Mode", ModeStatistic, UndefinedOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +00001611 { "NonPeak", NonpeakStatistic, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001612 { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse },
1613 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy0834d642011-03-18 18:26:08 +00001614 },
cristy3ed852e2009-09-05 21:47:34 +00001615 StorageOptions[] =
1616 {
cristy042ee782011-04-22 18:48:30 +00001617 { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue },
1618 { "Char", CharPixel, UndefinedOptionFlag, MagickFalse },
1619 { "Double", DoublePixel, UndefinedOptionFlag, MagickFalse },
1620 { "Float", FloatPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001621 { "Long", LongPixel, UndefinedOptionFlag, MagickFalse },
cristy6c9e1682012-01-07 21:37:44 +00001622 { "LongLong", LongLongPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001623 { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse },
1624 { "Short", ShortPixel, UndefinedOptionFlag, MagickFalse },
1625 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001626 },
1627 StretchOptions[] =
1628 {
cristy042ee782011-04-22 18:48:30 +00001629 { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue },
1630 { "Any", AnyStretch, UndefinedOptionFlag, MagickFalse },
1631 { "Condensed", CondensedStretch, UndefinedOptionFlag, MagickFalse },
1632 { "Expanded", ExpandedStretch, UndefinedOptionFlag, MagickFalse },
1633 { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1634 { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1635 { "Normal", NormalStretch, UndefinedOptionFlag, MagickFalse },
1636 { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse },
1637 { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse },
1638 { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1639 { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1640 { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001641 },
1642 StyleOptions[] =
1643 {
cristy042ee782011-04-22 18:48:30 +00001644 { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
1645 { "Any", AnyStyle, UndefinedOptionFlag, MagickFalse },
1646 { "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse },
1647 { "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse },
1648 { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
1649 { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001650 },
1651 TypeOptions[] =
1652 {
cristy042ee782011-04-22 18:48:30 +00001653 { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue },
1654 { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse },
1655 { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001656 { "ColorSeparationAlpha", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001657 { "ColorSeparationMatte", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
1658 { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001659 { "GrayscaleAlpha", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001660 { "GrayscaleMatte", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
1661 { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse },
1662 { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001663 { "PaletteBilevelAlpha", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001664 { "PaletteBilevelMatte", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001665 { "PaletteAlpha", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001666 { "PaletteMatte", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001667 { "TrueColorAlpha", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001668 { "TrueColorMatte", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
1669 { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse },
1670 { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001671 },
1672 ValidateOptions[] =
1673 {
cristy042ee782011-04-22 18:48:30 +00001674 { "Undefined", UndefinedValidate, UndefinedOptionFlag, MagickTrue },
1675 { "All", AllValidate, UndefinedOptionFlag, MagickFalse },
cristy80e870e2013-05-07 12:23:02 +00001676 { "Colorspace", ColorspaceValidate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001677 { "Compare", CompareValidate, UndefinedOptionFlag, MagickFalse },
1678 { "Composite", CompositeValidate, UndefinedOptionFlag, MagickFalse },
1679 { "Convert", ConvertValidate, UndefinedOptionFlag, MagickFalse },
cristy247eebde2013-06-13 01:01:43 +00001680 { "FormatsDisk", FormatsDiskValidate, UndefinedOptionFlag, MagickFalse },
1681 { "FormatsMap", FormatsMapValidate, UndefinedOptionFlag, MagickFalse },
1682 { "FormatsMemory", FormatsMemoryValidate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001683 { "Identify", IdentifyValidate, UndefinedOptionFlag, MagickFalse },
1684 { "ImportExport", ImportExportValidate, UndefinedOptionFlag, MagickFalse },
1685 { "Montage", MontageValidate, UndefinedOptionFlag, MagickFalse },
1686 { "Stream", StreamValidate, UndefinedOptionFlag, MagickFalse },
1687 { "None", NoValidate, UndefinedOptionFlag, MagickFalse },
1688 { (char *) NULL, UndefinedValidate, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001689 },
1690 VirtualPixelOptions[] =
1691 {
cristy042ee782011-04-22 18:48:30 +00001692 { "Undefined", UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickTrue },
1693 { "Background", BackgroundVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1694 { "Black", BlackVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001695 { "Constant", BackgroundVirtualPixelMethod, DeprecateOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001696 { "CheckerTile", CheckerTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1697 { "Dither", DitherVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1698 { "Edge", EdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1699 { "Gray", GrayVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1700 { "HorizontalTile", HorizontalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1701 { "HorizontalTileEdge", HorizontalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1702 { "Mirror", MirrorVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
anthony7a4d6102012-07-01 09:48:25 +00001703 { "None", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001704 { "Random", RandomVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1705 { "Tile", TileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1706 { "Transparent", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1707 { "VerticalTile", VerticalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1708 { "VerticalTileEdge", VerticalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1709 { "White", WhiteVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1710 { (char *) NULL, UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001711 };
1712
anthony686b1a32012-02-15 14:50:53 +00001713static const OptionInfo *GetOptionInfo(const CommandOption option)
1714{
1715 switch (option)
1716 {
1717 case MagickAlignOptions: return(AlignOptions);
cristy288a3532012-08-28 00:19:44 +00001718 case MagickAlphaChannelOptions: return(AlphaChannelOptions);
anthony686b1a32012-02-15 14:50:53 +00001719 case MagickBooleanOptions: return(BooleanOptions);
cristy947cef22013-01-17 14:16:40 +00001720 case MagickCacheOptions: return(CacheOptions);
anthony686b1a32012-02-15 14:50:53 +00001721 case MagickChannelOptions: return(ChannelOptions);
1722 case MagickClassOptions: return(ClassOptions);
1723 case MagickClipPathOptions: return(ClipPathOptions);
1724 case MagickColorspaceOptions: return(ColorspaceOptions);
1725 case MagickCommandOptions: return(CommandOptions);
cristy790190d2013-10-04 00:51:51 +00001726 case MagickComplexOptions: return(ComplexOptions);
anthony686b1a32012-02-15 14:50:53 +00001727 case MagickComposeOptions: return(ComposeOptions);
1728 case MagickCompressOptions: return(CompressOptions);
1729 case MagickDataTypeOptions: return(DataTypeOptions);
1730 case MagickDebugOptions: return(LogEventOptions);
1731 case MagickDecorateOptions: return(DecorateOptions);
1732 case MagickDirectionOptions: return(DirectionOptions);
1733 case MagickDisposeOptions: return(DisposeOptions);
1734 case MagickDistortOptions: return(DistortOptions);
1735 case MagickDitherOptions: return(DitherOptions);
1736 case MagickEndianOptions: return(EndianOptions);
1737 case MagickEvaluateOptions: return(EvaluateOptions);
1738 case MagickFillRuleOptions: return(FillRuleOptions);
1739 case MagickFilterOptions: return(FilterOptions);
1740 case MagickFunctionOptions: return(FunctionOptions);
1741 case MagickGravityOptions: return(GravityOptions);
1742/* case MagickImageListOptions: return(ImageListOptions); */
1743 case MagickIntentOptions: return(IntentOptions);
1744 case MagickInterlaceOptions: return(InterlaceOptions);
1745 case MagickInterpolateOptions: return(InterpolateOptions);
1746 case MagickKernelOptions: return(KernelOptions);
1747 case MagickLayerOptions: return(LayerOptions);
1748 case MagickLineCapOptions: return(LineCapOptions);
1749 case MagickLineJoinOptions: return(LineJoinOptions);
1750 case MagickListOptions: return(ListOptions);
1751 case MagickLogEventOptions: return(LogEventOptions);
1752 case MagickMetricOptions: return(MetricOptions);
1753 case MagickMethodOptions: return(MethodOptions);
1754 case MagickModeOptions: return(ModeOptions);
1755 case MagickMorphologyOptions: return(MorphologyOptions);
1756 case MagickNoiseOptions: return(NoiseOptions);
1757 case MagickOrientationOptions: return(OrientationOptions);
1758 case MagickPixelChannelOptions: return(PixelChannelOptions);
cristyac73d1f2013-03-12 00:51:09 +00001759 case MagickPixelIntensityOptions: return(PixelIntensityOptions);
cristy18fd4432013-03-22 01:26:09 +00001760 case MagickPixelMaskOptions: return(PixelMaskOptions);
anthony686b1a32012-02-15 14:50:53 +00001761 case MagickPixelTraitOptions: return(PixelTraitOptions);
1762 case MagickPolicyDomainOptions: return(PolicyDomainOptions);
1763 case MagickPolicyRightsOptions: return(PolicyRightsOptions);
1764 case MagickPreviewOptions: return(PreviewOptions);
1765 case MagickPrimitiveOptions: return(PrimitiveOptions);
1766 case MagickQuantumFormatOptions: return(QuantumFormatOptions);
1767 case MagickResolutionOptions: return(ResolutionOptions);
1768 case MagickResourceOptions: return(ResourceOptions);
1769 case MagickSparseColorOptions: return(SparseColorOptions);
1770 case MagickStatisticOptions: return(StatisticOptions);
1771 case MagickStorageOptions: return(StorageOptions);
1772 case MagickStretchOptions: return(StretchOptions);
1773 case MagickStyleOptions: return(StyleOptions);
1774 case MagickTypeOptions: return(TypeOptions);
1775 case MagickValidateOptions: return(ValidateOptions);
1776 case MagickVirtualPixelOptions: return(VirtualPixelOptions);
1777 default: break;
1778 }
1779 return((const OptionInfo *) NULL);
1780}
1781
cristy3ed852e2009-09-05 21:47:34 +00001782/*
1783%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1784% %
1785% %
1786% %
1787% C l o n e I m a g e O p t i o n s %
1788% %
1789% %
1790% %
1791%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1792%
anthony40ca0b92012-08-02 13:23:28 +00001793% CloneImageOptions() clones all global image options, to another image_info
cristy3ed852e2009-09-05 21:47:34 +00001794%
1795% The format of the CloneImageOptions method is:
1796%
1797% MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1798% const ImageInfo *clone_info)
1799%
1800% A description of each parameter follows:
1801%
anthony40ca0b92012-08-02 13:23:28 +00001802% o image_info: the image info to recieve the cloned options.
cristy3ed852e2009-09-05 21:47:34 +00001803%
anthony40ca0b92012-08-02 13:23:28 +00001804% o clone_info: the source image info for options to clone.
cristy3ed852e2009-09-05 21:47:34 +00001805%
1806*/
1807MagickExport MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1808 const ImageInfo *clone_info)
1809{
1810 assert(image_info != (ImageInfo *) NULL);
1811 assert(image_info->signature == MagickSignature);
1812 if (image_info->debug != MagickFalse)
1813 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1814 image_info->filename);
1815 assert(clone_info != (const ImageInfo *) NULL);
1816 assert(clone_info->signature == MagickSignature);
1817 if (clone_info->options != (void *) NULL)
cristy07742872013-07-19 13:43:08 +00001818 {
1819 if (image_info->options != (void *) NULL)
1820 DestroyImageOptions(image_info);
1821 image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options,
1822 (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString);
1823 }
cristy3ed852e2009-09-05 21:47:34 +00001824 return(MagickTrue);
1825}
1826
1827/*
1828%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1829% %
1830% %
1831% %
1832% D e f i n e I m a g e O p t i o n %
1833% %
1834% %
1835% %
1836%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1837%
anthony8ea79832011-10-05 10:08:39 +00001838% DefineImageOption() associates an assignment string of the form
anthony40ca0b92012-08-02 13:23:28 +00001839% "key=value" with a global image option. It is equivelent to
1840% SetImageOption().
cristy3ed852e2009-09-05 21:47:34 +00001841%
1842% The format of the DefineImageOption method is:
1843%
1844% MagickBooleanType DefineImageOption(ImageInfo *image_info,
1845% const char *option)
1846%
1847% A description of each parameter follows:
1848%
1849% o image_info: the image info.
1850%
anthony8ea79832011-10-05 10:08:39 +00001851% o option: the image option assignment string.
cristy3ed852e2009-09-05 21:47:34 +00001852%
1853*/
1854MagickExport MagickBooleanType DefineImageOption(ImageInfo *image_info,
1855 const char *option)
1856{
1857 char
1858 key[MaxTextExtent],
1859 value[MaxTextExtent];
1860
1861 register char
1862 *p;
1863
1864 assert(image_info != (ImageInfo *) NULL);
1865 assert(option != (const char *) NULL);
1866 (void) CopyMagickString(key,option,MaxTextExtent);
1867 for (p=key; *p != '\0'; p++)
1868 if (*p == '=')
1869 break;
1870 *value='\0';
1871 if (*p == '=')
1872 (void) CopyMagickString(value,p+1,MaxTextExtent);
1873 *p='\0';
1874 return(SetImageOption(image_info,key,value));
1875}
1876
1877/*
1878%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1879% %
1880% %
1881% %
1882% D e l e t e I m a g e O p t i o n %
1883% %
1884% %
1885% %
1886%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1887%
anthony40ca0b92012-08-02 13:23:28 +00001888% DeleteImageOption() deletes an key from the global image options.
cristy3ed852e2009-09-05 21:47:34 +00001889%
anthonyebb73a22012-03-22 14:25:52 +00001890% Returns MagickTrue is the option is found and deleted from the Options.
1891%
cristy3ed852e2009-09-05 21:47:34 +00001892% The format of the DeleteImageOption method is:
1893%
1894% MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1895% const char *key)
1896%
1897% A description of each parameter follows:
1898%
1899% o image_info: the image info.
1900%
1901% o option: the image option.
1902%
1903*/
1904MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1905 const char *option)
1906{
1907 assert(image_info != (ImageInfo *) NULL);
1908 assert(image_info->signature == MagickSignature);
1909 if (image_info->debug != MagickFalse)
1910 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1911 image_info->filename);
1912 if (image_info->options == (void *) NULL)
1913 return(MagickFalse);
1914 return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option));
1915}
1916
1917/*
1918%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1919% %
1920% %
1921% %
1922% D e s t r o y I m a g e O p t i o n s %
1923% %
1924% %
1925% %
1926%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1927%
anthony40ca0b92012-08-02 13:23:28 +00001928% DestroyImageOptions() destroys all global options and associated memory
1929% attached to the given image_info image list.
cristy3ed852e2009-09-05 21:47:34 +00001930%
1931% The format of the DestroyDefines method is:
1932%
1933% void DestroyImageOptions(ImageInfo *image_info)
1934%
1935% A description of each parameter follows:
1936%
1937% o image_info: the image info.
1938%
1939*/
1940MagickExport void DestroyImageOptions(ImageInfo *image_info)
1941{
1942 assert(image_info != (ImageInfo *) NULL);
1943 assert(image_info->signature == MagickSignature);
1944 if (image_info->debug != MagickFalse)
1945 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1946 image_info->filename);
1947 if (image_info->options != (void *) NULL)
1948 image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options);
1949}
1950
1951/*
1952%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1953% %
1954% %
1955% %
1956% G e t I m a g e O p t i o n %
1957% %
1958% %
1959% %
1960%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1961%
anthony40ca0b92012-08-02 13:23:28 +00001962% GetImageOption() gets a value associated with the global image options.
1963%
1964% The returned string is a constant string in the tree and should NOT be
1965% freed by the caller.
cristy3ed852e2009-09-05 21:47:34 +00001966%
1967% The format of the GetImageOption method is:
1968%
1969% const char *GetImageOption(const ImageInfo *image_info,
cristye3f77792011-10-07 00:09:09 +00001970% const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001971%
1972% A description of each parameter follows:
1973%
1974% o image_info: the image info.
1975%
cristye3f77792011-10-07 00:09:09 +00001976% o option: the option.
cristy3ed852e2009-09-05 21:47:34 +00001977%
1978*/
1979MagickExport const char *GetImageOption(const ImageInfo *image_info,
anthony7df2b832011-10-06 11:55:25 +00001980 const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001981{
cristy3ed852e2009-09-05 21:47:34 +00001982 assert(image_info != (ImageInfo *) NULL);
1983 assert(image_info->signature == MagickSignature);
1984 if (image_info->debug != MagickFalse)
1985 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1986 image_info->filename);
1987 if (image_info->options == (void *) NULL)
1988 return((const char *) NULL);
cristye3f77792011-10-07 00:09:09 +00001989 return((const char *) GetValueFromSplayTree((SplayTreeInfo *)
1990 image_info->options,option));
cristy3ed852e2009-09-05 21:47:34 +00001991}
1992
1993/*
1994%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1995% %
1996% %
1997% %
cristy042ee782011-04-22 18:48:30 +00001998% 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 +00001999% %
2000% %
2001% %
2002%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2003%
cristy042ee782011-04-22 18:48:30 +00002004% GetCommandOptionFlags() parses a string and returns an enumerated option
2005% flags(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00002006%
cristy042ee782011-04-22 18:48:30 +00002007% The format of the GetCommandOptionFlags method is:
cristy3ed852e2009-09-05 21:47:34 +00002008%
cristy042ee782011-04-22 18:48:30 +00002009% ssize_t GetCommandOptionFlags(const CommandOption option,
2010% const MagickBooleanType list,const char *options)
cristy3ed852e2009-09-05 21:47:34 +00002011%
2012% A description of each parameter follows:
2013%
cristy042ee782011-04-22 18:48:30 +00002014% o option: Index to the option table to lookup
2015%
2016% o list: A option other than zero permits more than one option separated by
2017% a comma or pipe.
2018%
2019% o options: One or more options separated by commas.
cristy3ed852e2009-09-05 21:47:34 +00002020%
2021*/
2022
cristy042ee782011-04-22 18:48:30 +00002023MagickExport ssize_t GetCommandOptionFlags(const CommandOption option,
2024 const MagickBooleanType list,const char *options)
2025{
2026 char
2027 token[MaxTextExtent];
2028
2029 const OptionInfo
2030 *option_info;
2031
2032 int
2033 sentinel;
2034
2035 MagickBooleanType
2036 negate;
2037
2038 register char
2039 *q;
2040
2041 register const char
2042 *p;
2043
2044 register ssize_t
2045 i;
2046
2047 ssize_t
2048 option_types;
2049
2050 option_info=GetOptionInfo(option);
2051 if (option_info == (const OptionInfo *) NULL)
anthonye8f56492012-02-12 12:39:02 +00002052 return(UndefinedOptionFlag);
cristy042ee782011-04-22 18:48:30 +00002053 option_types=0;
2054 sentinel=',';
2055 if (strchr(options,'|') != (char *) NULL)
2056 sentinel='|';
2057 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2058 {
2059 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2060 (*p != '\0'))
2061 p++;
2062 negate=(*p == '!') ? MagickTrue : MagickFalse;
2063 if (negate != MagickFalse)
2064 p++;
2065 q=token;
2066 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2067 (*p != '\0'))
2068 {
cristya0019202011-06-07 13:23:55 +00002069 if ((q-token) >= (MaxTextExtent-1))
cristy042ee782011-04-22 18:48:30 +00002070 break;
2071 *q++=(*p++);
2072 }
2073 *q='\0';
2074 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2075 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2076 {
2077 if (*token == '!')
2078 option_types=option_types &~ option_info[i].flags;
2079 else
2080 option_types=option_types | option_info[i].flags;
2081 break;
2082 }
2083 if ((option_info[i].mnemonic == (char *) NULL) &&
2084 ((strchr(token+1,'-') != (char *) NULL) ||
2085 (strchr(token+1,'_') != (char *) NULL)))
2086 {
2087 while ((q=strchr(token+1,'-')) != (char *) NULL)
2088 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2089 while ((q=strchr(token+1,'_')) != (char *) NULL)
2090 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2091 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2092 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2093 {
2094 if (*token == '!')
2095 option_types=option_types &~ option_info[i].flags;
2096 else
2097 option_types=option_types | option_info[i].flags;
2098 break;
2099 }
2100 }
2101 if (option_info[i].mnemonic == (char *) NULL)
2102 return(-1);
2103 if (list == MagickFalse)
2104 break;
2105 }
2106 return(option_types);
2107}
2108
2109/*
2110%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2111% %
2112% %
2113% %
anthony686b1a32012-02-15 14:50:53 +00002114% G e t C o m m a n d O p t i o n I n f o %
2115% %
2116% %
2117% %
2118%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2119%
2120% GetCommandOptionInfo() returns pointer to the matching OptionInfo entry
2121% for the "CommandOptions" table only. A specialised binary search is used,
2122% to speed up the lookup for that very large table, and returns both the
2123% type (arg count) and flags (arg type).
2124%
anthony643c6132012-11-07 14:50:28 +00002125% This search reduces linear search of over 500 options (250 tests on
anthony686b1a32012-02-15 14:50:53 +00002126% average) to about 10 lookups!
2127%
2128% The format of the GetCommandOptionInfo method is:
2129%
2130% const char **GetCommandOptions(const CommandOption value)
2131%
2132% A description of each parameter follows:
2133%
2134% o value: the value.
2135%
2136*/
2137MagickExport const OptionInfo *GetCommandOptionInfo(const char *value)
2138{
2139 const OptionInfo
2140 *option_info=CommandOptions;
2141
2142 static ssize_t
2143 table_size = 0;
2144
anthony24aa8822012-03-11 00:56:06 +00002145 register int
anthony686b1a32012-02-15 14:50:53 +00002146 i,l,h;
2147
2148 assert(value != (char *) NULL);
2149 assert(*value != '\0');
2150
2151 /* count up table items - first time only */
2152 if ( table_size == 0 )
2153 {
2154 l=-1;
2155 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2156 if ( LocaleCompare(value,option_info[i].mnemonic) == 0 )
2157 l=i;
2158 table_size = i;
anthony24aa8822012-03-11 00:56:06 +00002159 return( &option_info[(l>=0)?l:i] );
anthony686b1a32012-02-15 14:50:53 +00002160 }
2161
2162 /* faster binary search of command table, now that its length is known */
2163 l=0;
anthony668f43a2012-02-20 14:55:32 +00002164 h=table_size;
anthony686b1a32012-02-15 14:50:53 +00002165 while ( l < h )
2166 {
2167 int cmp;
2168 i = (l+h)/2; /* half the bounds */
2169 /* compare string part, then switch character! */
2170 cmp=LocaleCompare(value+1,option_info[i].mnemonic+1);
2171 if ( cmp == 0 )
2172 cmp = *value - *(option_info[i].mnemonic);
anthony668f43a2012-02-20 14:55:32 +00002173#if 0
2174 (void) FormatLocaleFile(stderr,
2175 "%d --- %u < %u < %u --- \"%s\" < \"%s\" < \"%s\"\n",
cristy73380532012-02-18 20:26:28 +00002176 cmp,l,i,h,option_info[l].mnemonic,option_info[i].mnemonic,
2177 option_info[h].mnemonic);
anthony668f43a2012-02-20 14:55:32 +00002178#endif
anthony686b1a32012-02-15 14:50:53 +00002179 if (cmp == 0)
2180 return(&option_info[i]);
2181 if (cmp > 0) l=i+1; else h=i; /* reassign search bounds */
2182 }
2183 /* option was not found in table - return last 'null' entry. */
2184 return(&option_info[table_size]);
2185}
2186
2187/*
2188%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2189% %
2190% %
2191% %
cristy042ee782011-04-22 18:48:30 +00002192% G e t C o m m a n d O p t i o n s %
2193% %
2194% %
2195% %
2196%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2197%
2198% GetCommandOptions() returns a list of values.
2199%
2200% The format of the GetCommandOptions method is:
2201%
2202% const char **GetCommandOptions(const CommandOption value)
2203%
2204% A description of each parameter follows:
2205%
2206% o value: the value.
2207%
2208*/
2209MagickExport char **GetCommandOptions(const CommandOption value)
cristy3ed852e2009-09-05 21:47:34 +00002210{
2211 char
2212 **values;
2213
2214 const OptionInfo
2215 *option_info;
2216
cristybb503372010-05-27 20:51:26 +00002217 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002218 i;
2219
2220 option_info=GetOptionInfo(value);
2221 if (option_info == (const OptionInfo *) NULL)
2222 return((char **) NULL);
2223 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
2224 values=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*values));
2225 if (values == (char **) NULL)
2226 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
2227 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2228 values[i]=AcquireString(option_info[i].mnemonic);
2229 values[i]=(char *) NULL;
2230 return(values);
2231}
2232
2233/*
2234%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2235% %
2236% %
2237% %
2238% G e t N e x t I m a g e O p t i o n %
2239% %
2240% %
2241% %
2242%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2243%
anthony40ca0b92012-08-02 13:23:28 +00002244% GetNextImageOption() gets the next global option value.
cristy3ed852e2009-09-05 21:47:34 +00002245%
2246% The format of the GetNextImageOption method is:
2247%
2248% char *GetNextImageOption(const ImageInfo *image_info)
2249%
2250% A description of each parameter follows:
2251%
2252% o image_info: the image info.
2253%
2254*/
2255MagickExport char *GetNextImageOption(const ImageInfo *image_info)
2256{
2257 assert(image_info != (ImageInfo *) NULL);
2258 assert(image_info->signature == MagickSignature);
2259 if (image_info->debug != MagickFalse)
2260 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2261 image_info->filename);
2262 if (image_info->options == (void *) NULL)
2263 return((char *) NULL);
2264 return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options));
2265}
2266
2267/*
2268%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2269% %
2270% %
2271% %
cristy042ee782011-04-22 18:48:30 +00002272% I s C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002273% %
2274% %
2275% %
2276%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2277%
cristy042ee782011-04-22 18:48:30 +00002278% IsCommandOption() returns MagickTrue if the option begins with a - or + and
cristy3ed852e2009-09-05 21:47:34 +00002279% the first character that follows is alphanumeric.
2280%
cristy042ee782011-04-22 18:48:30 +00002281% The format of the IsCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002282%
cristy042ee782011-04-22 18:48:30 +00002283% MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002284%
2285% A description of each parameter follows:
2286%
2287% o option: the option.
2288%
2289*/
cristy042ee782011-04-22 18:48:30 +00002290MagickExport MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002291{
2292 assert(option != (const char *) NULL);
2293 if ((*option != '-') && (*option != '+'))
2294 return(MagickFalse);
2295 if (strlen(option) == 1)
anthonye5b39652012-04-21 05:37:29 +00002296 return(IsMagickTrue( (*option == '{') || (*option == '}')
2297 || (*option == '[') || (*option == ']') ));
cristy3ed852e2009-09-05 21:47:34 +00002298 option++;
anthonye5b39652012-04-21 05:37:29 +00002299 if (*option == '-')
2300 return(MagickTrue);
cristy3ed852e2009-09-05 21:47:34 +00002301 if (isalpha((int) ((unsigned char) *option)) == 0)
2302 return(MagickFalse);
2303 return(MagickTrue);
2304}
2305
2306/*
2307%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2308% %
2309% %
2310% %
cristy042ee782011-04-22 18:48:30 +00002311% 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 +00002312% %
2313% %
2314% %
2315%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2316%
cristy042ee782011-04-22 18:48:30 +00002317% CommandOptionToMnemonic() returns an enumerated value as a mnemonic.
cristy3ed852e2009-09-05 21:47:34 +00002318%
cristy042ee782011-04-22 18:48:30 +00002319% The format of the CommandOptionToMnemonic method is:
cristy3ed852e2009-09-05 21:47:34 +00002320%
cristy042ee782011-04-22 18:48:30 +00002321% const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002322% const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002323%
2324% A description of each parameter follows:
2325%
2326% o option: the option.
2327%
2328% o type: one or more values separated by commas.
2329%
2330*/
cristy042ee782011-04-22 18:48:30 +00002331MagickExport const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002332 const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002333{
2334 const OptionInfo
2335 *option_info;
2336
cristybb503372010-05-27 20:51:26 +00002337 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002338 i;
2339
2340 option_info=GetOptionInfo(option);
2341 if (option_info == (const OptionInfo *) NULL)
2342 return((const char *) NULL);
2343 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2344 if (type == option_info[i].type)
2345 break;
2346 if (option_info[i].mnemonic == (const char *) NULL)
2347 return("undefined");
2348 return(option_info[i].mnemonic);
2349}
2350
2351/*
2352%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2353% %
2354% %
2355% %
cristy042ee782011-04-22 18:48:30 +00002356% L i s t C o m m a n d O p t i o n s %
cristy3ed852e2009-09-05 21:47:34 +00002357% %
2358% %
2359% %
2360%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2361%
cristy042ee782011-04-22 18:48:30 +00002362% ListCommandOptions() lists the contents of enumerated option type(s).
cristy3ed852e2009-09-05 21:47:34 +00002363%
cristy042ee782011-04-22 18:48:30 +00002364% The format of the ListCommandOptions method is:
cristy3ed852e2009-09-05 21:47:34 +00002365%
cristy2b9582a2011-07-04 17:38:56 +00002366% MagickBooleanType ListCommandOptions(FILE *file,
2367% const CommandOption option,ExceptionInfo *exception)
cristy3ed852e2009-09-05 21:47:34 +00002368%
2369% A description of each parameter follows:
2370%
2371% o file: list options to this file handle.
2372%
2373% o option: list these options.
2374%
2375% o exception: return any errors or warnings in this structure.
2376%
2377*/
cristy042ee782011-04-22 18:48:30 +00002378MagickExport MagickBooleanType ListCommandOptions(FILE *file,
2379 const CommandOption option,ExceptionInfo *magick_unused(exception))
cristy3ed852e2009-09-05 21:47:34 +00002380{
2381 const OptionInfo
2382 *option_info;
2383
cristybb503372010-05-27 20:51:26 +00002384 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002385 i;
2386
2387 if (file == (FILE *) NULL)
2388 file=stdout;
2389 option_info=GetOptionInfo(option);
2390 if (option_info == (const OptionInfo *) NULL)
2391 return(MagickFalse);
2392 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2393 {
2394 if (option_info[i].stealth != MagickFalse)
2395 continue;
cristyb51dff52011-05-19 16:55:47 +00002396 (void) FormatLocaleFile(file,"%s\n",option_info[i].mnemonic);
cristy3ed852e2009-09-05 21:47:34 +00002397 }
2398 return(MagickTrue);
2399}
2400
2401/*
2402%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2403% %
2404% %
2405% %
2406% P a r s e C h a n n e l O p t i o n %
2407% %
2408% %
2409% %
2410%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2411%
2412% ParseChannelOption() parses a string and returns an enumerated channel
2413% type(s).
2414%
2415% The format of the ParseChannelOption method is:
2416%
cristybb503372010-05-27 20:51:26 +00002417% ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002418%
2419% A description of each parameter follows:
2420%
2421% o options: One or more values separated by commas.
2422%
2423*/
cristybb503372010-05-27 20:51:26 +00002424MagickExport ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002425{
cristybb503372010-05-27 20:51:26 +00002426 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002427 i;
2428
cristyb9902b72010-10-05 18:21:50 +00002429 ssize_t
2430 channel;
2431
cristy042ee782011-04-22 18:48:30 +00002432 channel=ParseCommandOption(MagickChannelOptions,MagickTrue,channels);
cristy3ed852e2009-09-05 21:47:34 +00002433 if (channel >= 0)
2434 return(channel);
2435 channel=0;
cristybb503372010-05-27 20:51:26 +00002436 for (i=0; i < (ssize_t) strlen(channels); i++)
cristy3ed852e2009-09-05 21:47:34 +00002437 {
2438 switch (channels[i])
2439 {
2440 case 'A':
2441 case 'a':
2442 {
cristy953c4bd2012-02-24 01:04:04 +00002443 channel|=AlphaChannel;
cristy3ed852e2009-09-05 21:47:34 +00002444 break;
2445 }
2446 case 'B':
2447 case 'b':
2448 {
2449 channel|=BlueChannel;
2450 break;
2451 }
2452 case 'C':
2453 case 'c':
2454 {
2455 channel|=CyanChannel;
2456 break;
2457 }
2458 case 'g':
2459 case 'G':
2460 {
2461 channel|=GreenChannel;
2462 break;
2463 }
cristy3ed852e2009-09-05 21:47:34 +00002464 case 'K':
2465 case 'k':
2466 {
2467 channel|=BlackChannel;
2468 break;
2469 }
2470 case 'M':
2471 case 'm':
2472 {
2473 channel|=MagentaChannel;
2474 break;
2475 }
2476 case 'o':
2477 case 'O':
2478 {
anthony30b912a2012-03-22 01:20:28 +00002479 channel|=AlphaChannel; /* depreciate */
cristy3ed852e2009-09-05 21:47:34 +00002480 break;
2481 }
2482 case 'R':
2483 case 'r':
2484 {
2485 channel|=RedChannel;
2486 break;
2487 }
2488 case 'Y':
2489 case 'y':
2490 {
2491 channel|=YellowChannel;
2492 break;
2493 }
2494 case ',':
2495 {
cristybb503372010-05-27 20:51:26 +00002496 ssize_t
cristy3e4015d2010-10-05 18:18:56 +00002497 type;
2498
2499 /*
2500 Gather the additional channel flags and merge with shorthand.
2501 */
cristy042ee782011-04-22 18:48:30 +00002502 type=ParseCommandOption(MagickChannelOptions,MagickTrue,channels+i+1);
cristy3e4015d2010-10-05 18:18:56 +00002503 if (type < 0)
2504 return(type);
2505 channel|=type;
cristy3ed852e2009-09-05 21:47:34 +00002506 return(channel);
2507 }
2508 default:
2509 return(-1);
2510 }
2511 }
2512 return(channel);
2513}
2514
2515/*
2516%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2517% %
2518% %
2519% %
cristy042ee782011-04-22 18:48:30 +00002520% P a r s e C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002521% %
2522% %
2523% %
2524%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2525%
cristy042ee782011-04-22 18:48:30 +00002526% ParseCommandOption() parses a string and returns an enumerated option
anthonyce2716b2011-04-22 09:51:34 +00002527% type(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00002528%
cristy042ee782011-04-22 18:48:30 +00002529% The format of the ParseCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002530%
anthony31f1bf72012-01-30 12:37:22 +00002531% ssize_t ParseCommandOption(const CommandOption option_table,
cristy3ed852e2009-09-05 21:47:34 +00002532% const MagickBooleanType list,const char *options)
2533%
2534% A description of each parameter follows:
2535%
anthony31f1bf72012-01-30 12:37:22 +00002536% o option_table: Index to the option table to lookup
cristy3ed852e2009-09-05 21:47:34 +00002537%
2538% o list: A option other than zero permits more than one option separated by
2539% a comma or pipe.
2540%
2541% o options: One or more options separated by commas.
2542%
2543*/
anthony31f1bf72012-01-30 12:37:22 +00002544MagickExport ssize_t ParseCommandOption(const CommandOption option_table,
cristy3ed852e2009-09-05 21:47:34 +00002545 const MagickBooleanType list,const char *options)
2546{
2547 char
2548 token[MaxTextExtent];
2549
2550 const OptionInfo
2551 *option_info;
2552
2553 int
2554 sentinel;
2555
cristy3ed852e2009-09-05 21:47:34 +00002556 MagickBooleanType
2557 negate;
2558
2559 register char
2560 *q;
2561
2562 register const char
2563 *p;
2564
cristybb503372010-05-27 20:51:26 +00002565 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002566 i;
2567
cristyb9902b72010-10-05 18:21:50 +00002568 ssize_t
2569 option_types;
2570
anthony31f1bf72012-01-30 12:37:22 +00002571 option_info=GetOptionInfo(option_table);
cristy3ed852e2009-09-05 21:47:34 +00002572 if (option_info == (const OptionInfo *) NULL)
2573 return(-1);
2574 option_types=0;
2575 sentinel=',';
2576 if (strchr(options,'|') != (char *) NULL)
2577 sentinel='|';
2578 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2579 {
2580 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2581 (*p != '\0'))
2582 p++;
2583 negate=(*p == '!') ? MagickTrue : MagickFalse;
2584 if (negate != MagickFalse)
2585 p++;
2586 q=token;
2587 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2588 (*p != '\0'))
2589 {
cristya0019202011-06-07 13:23:55 +00002590 if ((q-token) >= (MaxTextExtent-1))
cristy3ed852e2009-09-05 21:47:34 +00002591 break;
2592 *q++=(*p++);
2593 }
2594 *q='\0';
2595 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2596 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2597 {
2598 if (*token == '!')
2599 option_types=option_types &~ option_info[i].type;
2600 else
2601 option_types=option_types | option_info[i].type;
2602 break;
2603 }
2604 if ((option_info[i].mnemonic == (char *) NULL) &&
2605 ((strchr(token+1,'-') != (char *) NULL) ||
2606 (strchr(token+1,'_') != (char *) NULL)))
2607 {
2608 while ((q=strchr(token+1,'-')) != (char *) NULL)
2609 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2610 while ((q=strchr(token+1,'_')) != (char *) NULL)
2611 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2612 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2613 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2614 {
2615 if (*token == '!')
2616 option_types=option_types &~ option_info[i].type;
2617 else
2618 option_types=option_types | option_info[i].type;
2619 break;
2620 }
2621 }
2622 if (option_info[i].mnemonic == (char *) NULL)
2623 return(-1);
2624 if (list == MagickFalse)
2625 break;
2626 }
2627 return(option_types);
2628}
2629
2630/*
2631%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2632% %
2633% %
2634% %
cristy953c4bd2012-02-24 01:04:04 +00002635% P a r s e P i x e l C h a n n e l O p t i o n %
2636% %
2637% %
2638% %
2639%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2640%
2641% ParsePixelChannelOption() parses a string and returns an enumerated pixel
2642% channel type(s).
2643%
2644% The format of the ParsePixelChannelOption method is:
2645%
2646% ssize_t ParsePixelChannelOption(const char *channels)
2647%
2648% A description of each parameter follows:
2649%
cristyd04e7bf2012-03-03 19:19:12 +00002650% o channels: One or more channels separated by commas.
cristy953c4bd2012-02-24 01:04:04 +00002651%
2652*/
2653MagickExport ssize_t ParsePixelChannelOption(const char *channels)
2654{
cristyd04e7bf2012-03-03 19:19:12 +00002655 char
cristya15140f2012-03-04 01:21:15 +00002656 *q,
2657 token[MaxTextExtent];
cristy953c4bd2012-02-24 01:04:04 +00002658
2659 ssize_t
2660 channel;
2661
cristya15140f2012-03-04 01:21:15 +00002662 GetMagickToken(channels,NULL,token);
cristyd4311d42012-03-18 23:03:10 +00002663 if ((*token == ';') || (*token == '|'))
2664 return(RedPixelChannel);
cristya15140f2012-03-04 01:21:15 +00002665 channel=ParseCommandOption(MagickPixelChannelOptions,MagickTrue,token);
cristy953c4bd2012-02-24 01:04:04 +00002666 if (channel >= 0)
2667 return(channel);
cristya15140f2012-03-04 01:21:15 +00002668 q=(char *) token;
2669 channel=InterpretLocaleValue(token,&q);
cristyabb241b2012-03-06 01:12:58 +00002670 if ((q == token) || (channel < 0) || (channel >= MaxPixelChannels))
cristyd04e7bf2012-03-03 19:19:12 +00002671 return(-1);
cristy953c4bd2012-02-24 01:04:04 +00002672 return(channel);
2673}
2674
2675/*
2676%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2677% %
2678% %
2679% %
cristy3ed852e2009-09-05 21:47:34 +00002680% R e m o v e I m a g e O p t i o n %
2681% %
2682% %
2683% %
2684%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2685%
2686% RemoveImageOption() removes an option from the image and returns its value.
2687%
anthony40ca0b92012-08-02 13:23:28 +00002688% In this case the ConstantString() value returned should be freed by the
2689% caller when finished.
2690%
cristy3ed852e2009-09-05 21:47:34 +00002691% The format of the RemoveImageOption method is:
2692%
2693% char *RemoveImageOption(ImageInfo *image_info,const char *option)
2694%
2695% A description of each parameter follows:
2696%
2697% o image_info: the image info.
2698%
2699% o option: the image option.
2700%
2701*/
2702MagickExport char *RemoveImageOption(ImageInfo *image_info,const char *option)
2703{
2704 char
2705 *value;
2706
2707 assert(image_info != (ImageInfo *) NULL);
2708 assert(image_info->signature == MagickSignature);
2709 if (image_info->debug != MagickFalse)
2710 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2711 image_info->filename);
2712 if (image_info->options == (void *) NULL)
2713 return((char *) NULL);
2714 value=(char *) RemoveNodeFromSplayTree((SplayTreeInfo *)
2715 image_info->options,option);
2716 return(value);
2717}
2718
2719/*
2720%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2721% %
2722% %
2723% %
2724% R e s e t I m a g e O p t i o n %
2725% %
2726% %
2727% %
2728%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2729%
2730% ResetImageOptions() resets the image_info option. That is, it deletes
anthony40ca0b92012-08-02 13:23:28 +00002731% all global options associated with the image_info structure.
cristy3ed852e2009-09-05 21:47:34 +00002732%
2733% The format of the ResetImageOptions method is:
2734%
2735% ResetImageOptions(ImageInfo *image_info)
2736%
2737% A description of each parameter follows:
2738%
2739% o image_info: the image info.
2740%
2741*/
2742MagickExport void ResetImageOptions(const ImageInfo *image_info)
2743{
2744 assert(image_info != (ImageInfo *) NULL);
2745 assert(image_info->signature == MagickSignature);
2746 if (image_info->debug != MagickFalse)
2747 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2748 image_info->filename);
2749 if (image_info->options == (void *) NULL)
2750 return;
2751 ResetSplayTree((SplayTreeInfo *) image_info->options);
2752}
2753
2754/*
2755%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2756% %
2757% %
2758% %
2759% R e s e t I m a g e O p t i o n I t e r a t o r %
2760% %
2761% %
2762% %
2763%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2764%
2765% ResetImageOptionIterator() resets the image_info values iterator. Use it
2766% in conjunction with GetNextImageOption() to iterate over all the values
2767% associated with an image option.
2768%
2769% The format of the ResetImageOptionIterator method is:
2770%
2771% ResetImageOptionIterator(ImageInfo *image_info)
2772%
2773% A description of each parameter follows:
2774%
2775% o image_info: the image info.
2776%
2777*/
2778MagickExport void ResetImageOptionIterator(const ImageInfo *image_info)
2779{
2780 assert(image_info != (ImageInfo *) NULL);
2781 assert(image_info->signature == MagickSignature);
2782 if (image_info->debug != MagickFalse)
2783 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2784 image_info->filename);
2785 if (image_info->options == (void *) NULL)
2786 return;
2787 ResetSplayTreeIterator((SplayTreeInfo *) image_info->options);
2788}
2789
2790/*
2791%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2792% %
2793% %
2794% %
2795% S e t I m a g e O p t i o n %
2796% %
2797% %
2798% %
2799%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2800%
2801% SetImageOption() associates an value with an image option.
2802%
2803% The format of the SetImageOption method is:
2804%
2805% MagickBooleanType SetImageOption(ImageInfo *image_info,
2806% const char *option,const char *value)
2807%
2808% A description of each parameter follows:
2809%
2810% o image_info: the image info.
2811%
2812% o option: the image option.
2813%
2814% o values: the image option values.
2815%
2816*/
2817MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info,
2818 const char *option,const char *value)
2819{
cristy3ed852e2009-09-05 21:47:34 +00002820 assert(image_info != (ImageInfo *) NULL);
2821 assert(image_info->signature == MagickSignature);
2822 if (image_info->debug != MagickFalse)
2823 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2824 image_info->filename);
cristyc96a1ba2013-03-28 13:05:04 +00002825 /*
2826 Specific global option settings.
2827 */
anthonya322a832013-04-27 06:28:03 +00002828 if (LocaleCompare(option,"size") == 0) {
cristy3ed852e2009-09-05 21:47:34 +00002829 (void) CloneString(&image_info->size,value);
anthonya322a832013-04-27 06:28:03 +00002830 return(MagickTrue);
2831 }
cristyc96a1ba2013-03-28 13:05:04 +00002832 /*
2833 Create tree if needed - specify how key,values are to be freed.
2834 */
cristy3ed852e2009-09-05 21:47:34 +00002835 if (image_info->options == (void *) NULL)
2836 image_info->options=NewSplayTree(CompareSplayTreeString,
2837 RelinquishMagickMemory,RelinquishMagickMemory);
cristyc96a1ba2013-03-28 13:05:04 +00002838 /*
2839 Delete Option if NULL -- empty string values are valid!
2840 */
anthonyd181ea02011-10-12 07:44:13 +00002841 if (value == (const char *) NULL)
2842 return(DeleteImageOption(image_info,option));
cristyc96a1ba2013-03-28 13:05:04 +00002843 /*
2844 Add option to splay-tree.
2845 */
cristye3f77792011-10-07 00:09:09 +00002846 return(AddValueToSplayTree((SplayTreeInfo *) image_info->options,
2847 ConstantString(option),ConstantString(value)));
cristy3ed852e2009-09-05 21:47:34 +00002848}