blob: 58618fc576cb09877e49f185829e108b26ecd11d [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 %
cristyde984cd2013-12-01 14:49:27 +000016% Cristy %
cristy3ed852e2009-09-05 21:47:34 +000017% March 2000 %
18% %
19% %
cristyfe676ee2013-11-18 13:03:38 +000020% Copyright 1999-2014 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 },
cristy34919ed2013-10-06 15:42:40 +0000303 { "+complex", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
cristy1141c852013-10-04 15:17:30 +0000304 { "-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 },
cristybd4a3c22014-01-07 15:09:37 +0000512 { "+moments", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
513 { "-moments", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000514 { "+mode", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000515 { "-mode", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000516 { "+modulate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000517 { "-modulate", 1L, SimpleOperatorFlag, MagickFalse },
518 { "+monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
519 { "-monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000520 { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000521 { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000522 { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000523 { "-morph", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000524 { "+morphology", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000525 { "-morphology", 2L, SimpleOperatorFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000526 { "+mosaic", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000527 { "-mosaic", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000528 { "+motion-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000529 { "-motion-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000530 { "+name", 0L, NonMagickOptionFlag, MagickFalse },
531 { "-name", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000532 { "+negate", 0L, SimpleOperatorFlag, MagickFalse },
533 { "-negate", 0L, SimpleOperatorFlag, MagickFalse },
534 { "+noise", 1L, SimpleOperatorFlag, MagickFalse },
535 { "-noise", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickFalse },
536 { "-noop", 0L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000537 { "+normalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000538 { "-normalize", 0L, SimpleOperatorFlag, MagickFalse },
539 { "+opaque", 1L, SimpleOperatorFlag, MagickFalse },
540 { "-opaque", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000541 { "+ordered-dither", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000542 { "-ordered-dither", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000543 { "+orient", 0L, ImageInfoOptionFlag, MagickFalse },
544 { "-orient", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000545 { "+page", 0L, ImageInfoOptionFlag, MagickFalse },
546 { "-page", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000547 { "+paint", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000548 { "-paint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000549 { "+path", 0L, NonMagickOptionFlag, MagickFalse },
550 { "-path", 1L, NonMagickOptionFlag, MagickFalse },
551 { "+pause", 0L, NonMagickOptionFlag, MagickFalse },
552 { "-pause", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000553 { "+ping", 0L, ImageInfoOptionFlag, MagickFalse },
554 { "-ping", 0L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000555 { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
556 { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000557 { "+polaroid", 0L, SimpleOperatorFlag, MagickFalse },
558 { "-polaroid", 1L, SimpleOperatorFlag, MagickFalse },
cristyf56e6ad2012-11-11 19:29:38 +0000559 { "+poly", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
560 { "-poly", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000561 { "+posterize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000562 { "-posterize", 1L, SimpleOperatorFlag, MagickFalse },
anthonya3ef4ed2012-03-17 06:52:53 +0000563 { "+precision", 0L, ImageInfoOptionFlag, MagickFalse },
564 { "-precision", 1L, ImageInfoOptionFlag, MagickFalse },
565 { "+preview", 0L, DeprecateOptionFlag, MagickTrue },
566 { "-preview", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000567 { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthonya322a832013-04-27 06:28:03 +0000568 { "-print", 1L, NoImageOperatorFlag | AlwaysInterpretArgsFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000569 { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000570 { "-process", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
571 { "+profile", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000572 { "-profile", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000573 { "+quality", 0L, ImageInfoOptionFlag, MagickFalse },
574 { "-quality", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000575 { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse },
576 { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000577 { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
578 { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000579 { "+radial-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000580 { "-radial-blur", 1L, SimpleOperatorFlag, MagickFalse },
581 { "+raise", 1L, SimpleOperatorFlag, MagickFalse },
582 { "-raise", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000583 { "+random-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000584 { "-random-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000585 { "-read", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000586 { "+recolor", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000587 { "-recolor", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000588 { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse },
589 { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000590 { "+regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
591 { "-regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000592 { "+region", 0L, NoImageOperatorFlag, MagickFalse },
593 { "-region", 1L, NoImageOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000594 { "+remap", 0L, ListOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
595 { "-remap", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000596 { "+remote", 0L, NonMagickOptionFlag, MagickFalse },
597 { "-remote", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000598 { "+render", 0L, DrawInfoOptionFlag, MagickFalse },
599 { "-render", 0L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000600 { "+repage", 0L, SimpleOperatorFlag, MagickFalse },
601 { "-repage", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000602 { "+resample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000603 { "-resample", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000604 { "+resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000605 { "-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthonyd111fda2012-04-13 03:07:40 +0000606 { "+respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
607 { "-respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000608 { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000609 { "-reverse", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000610 { "+roll", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000611 { "-roll", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000612 { "+rotate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000613 { "-rotate", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000614 { "+sample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000615 { "-sample", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000616 { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse },
617 { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000618 { "+sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
619 { "-sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
620 { "+sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'noop' */
621 { "-sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
anthony0da1e9c2012-11-17 05:28:22 +0000622 { "+sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
623 { "-sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'sans' */
anthony4837ac22012-05-18 23:39:48 +0000624 { "+sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
625 { "-sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000626 { "+scale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000627 { "-scale", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000628 { "+scene", 0L, ImageInfoOptionFlag, MagickFalse },
629 { "-scene", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000630 { "+scenes", 0L, NonMagickOptionFlag, MagickFalse },
631 { "-scenes", 1L, NonMagickOptionFlag, MagickFalse },
632 { "+screen", 0L, NonMagickOptionFlag, MagickFalse },
633 { "-screen", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000634 { "-script", 1L, SpecialOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000635 { "+seed", 0L, GlobalOptionFlag, MagickFalse },
636 { "-seed", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000637 { "+segment", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000638 { "-segment", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000639 { "+selective-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000640 { "-selective-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000641 { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000642 { "-separate", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000643 { "+sepia-tone", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000644 { "-sepia-tone", 1L, SimpleOperatorFlag, MagickFalse },
anthonya322a832013-04-27 06:28:03 +0000645 { "+set", 1L, NoImageOperatorFlag, MagickFalse },
anthony0da1e9c2012-11-17 05:28:22 +0000646 { "-set", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000647 { "+shade", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000648 { "-shade", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000649 { "+shadow", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000650 { "-shadow", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000651 { "+shared-memory", 0L, NonMagickOptionFlag, MagickFalse },
652 { "-shared-memory", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000653 { "+sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000654 { "-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000655 { "+shave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000656 { "-shave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000657 { "+shear", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000658 { "-shear", 1L, SimpleOperatorFlag, MagickFalse },
659 { "+sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
660 { "-sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000661 { "+silent", 0L, NonMagickOptionFlag, MagickFalse },
662 { "-silent", 1L, NonMagickOptionFlag, MagickFalse },
cristy62e52182013-03-15 14:26:17 +0000663 { "+similarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
664 { "-similarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000665 { "+size", 0L, ImageInfoOptionFlag, MagickFalse },
666 { "-size", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000667 { "+sketch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000668 { "-sketch", 1L, SimpleOperatorFlag, MagickFalse },
669 { "+smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
670 { "-smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000671 { "+snaps", 0L, NonMagickOptionFlag, MagickFalse },
672 { "-snaps", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000673 { "+solarize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000674 { "-solarize", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000675 { "+sparse-color", 1L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000676 { "-sparse-color", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000677 { "+splice", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000678 { "-splice", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000679 { "+spread", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000680 { "-spread", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000681 { "+statistic", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000682 { "-statistic", 2L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000683 { "+stegano", 0L, NonMagickOptionFlag, MagickFalse },
684 { "-stegano", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000685 { "+stereo", 0L, DeprecateOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000686 { "-stereo", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000687 { "+stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000688 { "-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000689 { "+strip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000690 { "-strip", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000691 { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
692 { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000693 { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000694 { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000695 { "+style", 0L, DrawInfoOptionFlag, MagickFalse },
696 { "-style", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000697 { "+subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
698 { "-subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
699 { "-subimage", 0L, ListOperatorFlag, MagickFalse },
700 { "+swap", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
701 { "-swap", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000702 { "+swirl", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000703 { "-swirl", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000704 { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
705 { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
706 { "+taint", 0L, ImageInfoOptionFlag, MagickFalse },
707 { "-taint", 0L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000708 { "+text-font", 0L, NonMagickOptionFlag, MagickFalse },
709 { "-text-font", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000710 { "+texture", 0L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000711 { "-texture", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000712 { "+threshold", 0L, SimpleOperatorFlag, MagickFalse },
713 { "-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000714 { "+thumbnail", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000715 { "-thumbnail", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000716 { "+tile", 0L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
717 { "-tile", 1L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000718 { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse },
719 { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000720 { "+tint", 1L, SimpleOperatorFlag, MagickFalse },
721 { "-tint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000722 { "+title", 0L, NonMagickOptionFlag, MagickFalse },
723 { "-title", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000724 { "+transform", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000725 { "-transform", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
726 { "+transparent", 1L, SimpleOperatorFlag, MagickFalse },
727 { "-transparent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000728 { "+transparent-color", 0L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000729 { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000730 { "+transpose", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000731 { "-transpose", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000732 { "+transverse", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000733 { "-transverse", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000734 { "+treedepth", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000735 { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000736 { "+trim", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000737 { "-trim", 0L, SimpleOperatorFlag, MagickFalse },
738 { "+type", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
739 { "-type", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000740 { "+undercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000741 { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000742 { "+unique", 0L, SimpleOperatorFlag, MagickFalse },
743 { "-unique", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000744 { "+unique-colors", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000745 { "-unique-colors", 0L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000746 { "+units", 0L, ImageInfoOptionFlag, MagickFalse },
747 { "-units", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000748 { "+unsharp", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000749 { "-unsharp", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000750 { "+update", 0L, NonMagickOptionFlag, MagickFalse },
751 { "-update", 1L, NonMagickOptionFlag, MagickFalse },
752 { "+use-pixmap", 0L, NonMagickOptionFlag, MagickFalse },
753 { "-use-pixmap", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000754 { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
755 { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
cristyc404ff62012-02-05 15:17:09 +0000756 { "+version", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000757 { "-version", 0L, NoImageOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000758 { "+view", 0L, ImageInfoOptionFlag, MagickFalse },
759 { "-view", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000760 { "+vignette", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000761 { "-vignette", 1L, SimpleOperatorFlag, MagickFalse },
anthonyebb73a22012-03-22 14:25:52 +0000762 { "+virtual-pixel", 0L, ImageInfoOptionFlag, MagickFalse },
763 { "-virtual-pixel", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000764 { "+visual", 0L, NonMagickOptionFlag, MagickFalse },
765 { "-visual", 1L, NonMagickOptionFlag, MagickFalse },
766 { "+watermark", 0L, NonMagickOptionFlag, MagickFalse },
767 { "-watermark", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000768 { "+wave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000769 { "-wave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000770 { "+weight", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000771 { "-weight", 1L, DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000772 { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse },
773 { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000774 { "+white-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000775 { "-white-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000776 { "+window", 0L, NonMagickOptionFlag, MagickFalse },
777 { "-window", 1L, NonMagickOptionFlag, MagickFalse },
778 { "+window-group", 0L, NonMagickOptionFlag, MagickFalse },
779 { "-window-group", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000780 { "+write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
781 { "-write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000782 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000783 },
784 ComposeOptions[] =
785 {
cristy042ee782011-04-22 18:48:30 +0000786 { "Undefined", UndefinedCompositeOp, UndefinedOptionFlag, MagickTrue },
787 { "Atop", AtopCompositeOp, UndefinedOptionFlag, MagickFalse },
788 { "Blend", BlendCompositeOp, UndefinedOptionFlag, MagickFalse },
789 { "Blur", BlurCompositeOp, UndefinedOptionFlag, MagickFalse },
790 { "Bumpmap", BumpmapCompositeOp, UndefinedOptionFlag, MagickFalse },
791 { "ChangeMask", ChangeMaskCompositeOp, UndefinedOptionFlag, MagickFalse },
792 { "Clear", ClearCompositeOp, UndefinedOptionFlag, MagickFalse },
793 { "ColorBurn", ColorBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
794 { "ColorDodge", ColorDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
795 { "Colorize", ColorizeCompositeOp, UndefinedOptionFlag, MagickFalse },
cristye4a40472011-12-22 02:56:19 +0000796 { "CopyAlpha", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000797 { "CopyBlack", CopyBlackCompositeOp, UndefinedOptionFlag, MagickFalse },
798 { "CopyBlue", CopyBlueCompositeOp, UndefinedOptionFlag, MagickFalse },
799 { "CopyCyan", CopyCyanCompositeOp, UndefinedOptionFlag, MagickFalse },
800 { "CopyGreen", CopyGreenCompositeOp, UndefinedOptionFlag, MagickFalse },
801 { "Copy", CopyCompositeOp, UndefinedOptionFlag, MagickFalse },
802 { "CopyMagenta", CopyMagentaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000803 { "CopyRed", CopyRedCompositeOp, UndefinedOptionFlag, MagickFalse },
804 { "CopyYellow", CopyYellowCompositeOp, UndefinedOptionFlag, MagickFalse },
805 { "Darken", DarkenCompositeOp, UndefinedOptionFlag, MagickFalse },
806 { "DarkenIntensity", DarkenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
807 { "DivideDst", DivideDstCompositeOp, UndefinedOptionFlag, MagickFalse },
808 { "DivideSrc", DivideSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
809 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse },
810 { "Difference", DifferenceCompositeOp, UndefinedOptionFlag, MagickFalse },
811 { "Displace", DisplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
812 { "Dissolve", DissolveCompositeOp, UndefinedOptionFlag, MagickFalse },
813 { "Distort", DistortCompositeOp, UndefinedOptionFlag, MagickFalse },
814 { "DstAtop", DstAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
815 { "DstIn", DstInCompositeOp, UndefinedOptionFlag, MagickFalse },
816 { "DstOut", DstOutCompositeOp, UndefinedOptionFlag, MagickFalse },
817 { "DstOver", DstOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000818 { "Exclusion", ExclusionCompositeOp, UndefinedOptionFlag, MagickFalse },
819 { "HardLight", HardLightCompositeOp, UndefinedOptionFlag, MagickFalse },
820 { "Hue", HueCompositeOp, UndefinedOptionFlag, MagickFalse },
821 { "In", InCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy98621462011-12-31 22:31:11 +0000822 { "Intensity", IntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000823 { "Lighten", LightenCompositeOp, UndefinedOptionFlag, MagickFalse },
824 { "LightenIntensity", LightenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
825 { "LinearBurn", LinearBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
826 { "LinearDodge", LinearDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
827 { "LinearLight", LinearLightCompositeOp, UndefinedOptionFlag, MagickFalse },
828 { "Luminize", LuminizeCompositeOp, UndefinedOptionFlag, MagickFalse },
829 { "Mathematics", MathematicsCompositeOp, UndefinedOptionFlag, MagickFalse },
830 { "MinusDst", MinusDstCompositeOp, UndefinedOptionFlag, MagickFalse },
831 { "MinusSrc", MinusSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
832 { "Modulate", ModulateCompositeOp, UndefinedOptionFlag, MagickFalse },
833 { "ModulusAdd", ModulusAddCompositeOp, UndefinedOptionFlag, MagickFalse },
834 { "ModulusSubtract", ModulusSubtractCompositeOp, UndefinedOptionFlag, MagickFalse },
835 { "Multiply", MultiplyCompositeOp, UndefinedOptionFlag, MagickFalse },
836 { "None", NoCompositeOp, UndefinedOptionFlag, MagickFalse },
837 { "Out", OutCompositeOp, UndefinedOptionFlag, MagickFalse },
838 { "Overlay", OverlayCompositeOp, UndefinedOptionFlag, MagickFalse },
839 { "Over", OverCompositeOp, UndefinedOptionFlag, MagickFalse },
840 { "PegtopLight", PegtopLightCompositeOp, UndefinedOptionFlag, MagickFalse },
841 { "PinLight", PinLightCompositeOp, UndefinedOptionFlag, MagickFalse },
842 { "Plus", PlusCompositeOp, UndefinedOptionFlag, MagickFalse },
843 { "Replace", ReplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
844 { "Saturate", SaturateCompositeOp, UndefinedOptionFlag, MagickFalse },
845 { "Screen", ScreenCompositeOp, UndefinedOptionFlag, MagickFalse },
846 { "SoftLight", SoftLightCompositeOp, UndefinedOptionFlag, MagickFalse },
847 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse },
848 { "SrcAtop", SrcAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
849 { "SrcIn", SrcInCompositeOp, UndefinedOptionFlag, MagickFalse },
850 { "SrcOut", SrcOutCompositeOp, UndefinedOptionFlag, MagickFalse },
851 { "SrcOver", SrcOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000852 { "VividLight", VividLightCompositeOp, UndefinedOptionFlag, MagickFalse },
853 { "Xor", XorCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000854 { "Divide", DivideDstCompositeOp, DeprecateOptionFlag, MagickTrue },
855 { "Minus", MinusDstCompositeOp, DeprecateOptionFlag, MagickTrue },
cristy1df692a2011-04-23 17:09:35 +0000856 { "Threshold", ThresholdCompositeOp, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000857 { "CopyOpacity", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000858 { (char *) NULL, UndefinedCompositeOp, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000859 },
860 CompressOptions[] =
861 {
cristy042ee782011-04-22 18:48:30 +0000862 { "Undefined", UndefinedCompression, UndefinedOptionFlag, MagickTrue },
863 { "B44", B44Compression, UndefinedOptionFlag, MagickFalse },
864 { "B44A", B44ACompression, UndefinedOptionFlag, MagickFalse },
865 { "BZip", BZipCompression, UndefinedOptionFlag, MagickFalse },
866 { "DXT1", DXT1Compression, UndefinedOptionFlag, MagickFalse },
867 { "DXT3", DXT3Compression, UndefinedOptionFlag, MagickFalse },
868 { "DXT5", DXT5Compression, UndefinedOptionFlag, MagickFalse },
869 { "Fax", FaxCompression, UndefinedOptionFlag, MagickFalse },
870 { "Group4", Group4Compression, UndefinedOptionFlag, MagickFalse },
cristy6d5e20f2011-04-25 13:48:54 +0000871 { "JBIG1", JBIG1Compression, UndefinedOptionFlag, MagickFalse },
872 { "JBIG2", JBIG2Compression, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000873 { "JPEG", JPEGCompression, UndefinedOptionFlag, MagickFalse },
874 { "JPEG2000", JPEG2000Compression, UndefinedOptionFlag, MagickFalse },
875 { "Lossless", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
876 { "LosslessJPEG", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
877 { "LZMA", LZMACompression, UndefinedOptionFlag, MagickFalse },
878 { "LZW", LZWCompression, UndefinedOptionFlag, MagickFalse },
879 { "None", NoCompression, UndefinedOptionFlag, MagickFalse },
880 { "Piz", PizCompression, UndefinedOptionFlag, MagickFalse },
881 { "Pxr24", Pxr24Compression, UndefinedOptionFlag, MagickFalse },
882 { "RLE", RLECompression, UndefinedOptionFlag, MagickFalse },
883 { "Zip", ZipCompression, UndefinedOptionFlag, MagickFalse },
884 { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
885 { "ZipS", ZipSCompression, UndefinedOptionFlag, MagickFalse },
886 { (char *) NULL, UndefinedCompression, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000887 },
888 ColorspaceOptions[] =
889 {
cristy042ee782011-04-22 18:48:30 +0000890 { "Undefined", UndefinedColorspace, UndefinedOptionFlag, MagickTrue },
cristy978b6a32012-06-24 15:17:32 +0000891 { "CIELab", LabColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000892 { "CMY", CMYColorspace, UndefinedOptionFlag, MagickFalse },
893 { "CMYK", CMYKColorspace, UndefinedOptionFlag, MagickFalse },
894 { "Gray", GRAYColorspace, UndefinedOptionFlag, MagickFalse },
cristy722fc0c2012-08-04 23:15:43 +0000895 { "HCL", HCLColorspace, UndefinedOptionFlag, MagickFalse },
cristy710cbd42013-05-02 21:39:35 +0000896 { "HCLp", HCLpColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000897 { "HSB", HSBColorspace, UndefinedOptionFlag, MagickFalse },
cristyaf64eb22013-05-02 14:07:10 +0000898 { "HSI", HSIColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000899 { "HSL", HSLColorspace, UndefinedOptionFlag, MagickFalse },
cristy246c3132013-05-02 16:35:53 +0000900 { "HSV", HSVColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000901 { "HWB", HWBColorspace, UndefinedOptionFlag, MagickFalse },
902 { "Lab", LabColorspace, UndefinedOptionFlag, MagickFalse },
cristy1f099312012-08-29 17:22:14 +0000903 { "LCH", LCHColorspace, UndefinedOptionFlag, MagickFalse },
cristydf42b172013-04-05 13:35:37 +0000904 { "LCHab", LCHabColorspace, UndefinedOptionFlag, MagickFalse },
905 { "LCHuv", LCHuvColorspace, UndefinedOptionFlag, MagickFalse },
cristy09d746f2012-08-29 17:54:59 +0000906 { "LMS", LMSColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000907 { "Log", LogColorspace, UndefinedOptionFlag, MagickFalse },
cristycb82c8e2012-08-01 12:54:37 +0000908 { "Luv", LuvColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000909 { "OHTA", OHTAColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000910 { "Rec601YCbCr", Rec601YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000911 { "Rec709YCbCr", Rec709YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
912 { "RGB", RGBColorspace, UndefinedOptionFlag, MagickFalse },
cristy34632332013-05-03 10:21:05 +0000913 { "scRGB", scRGBColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000914 { "sRGB", sRGBColorspace, UndefinedOptionFlag, MagickFalse },
915 { "Transparent", TransparentColorspace, UndefinedOptionFlag, MagickFalse },
916 { "XYZ", XYZColorspace, UndefinedOptionFlag, MagickFalse },
917 { "YCbCr", YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
cristyc282d1b2013-05-06 23:37:48 +0000918 { "YDbDr", YDbDrColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000919 { "YCC", YCCColorspace, UndefinedOptionFlag, MagickFalse },
920 { "YIQ", YIQColorspace, UndefinedOptionFlag, MagickFalse },
921 { "YPbPr", YPbPrColorspace, UndefinedOptionFlag, MagickFalse },
922 { "YUV", YUVColorspace, UndefinedOptionFlag, MagickFalse },
923 { (char *) NULL, UndefinedColorspace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000924 },
cristy790190d2013-10-04 00:51:51 +0000925 ComplexOptions[] =
926 {
927 { "Undefined", UndefinedComplexOperator, UndefinedOptionFlag, MagickTrue },
cristy19f78862013-10-05 22:21:46 +0000928 { "Add", AddComplexOperator, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +0000929 { "Conjugate", ConjugateComplexOperator, UndefinedOptionFlag, MagickFalse },
930 { "Divide", DivideComplexOperator, UndefinedOptionFlag, MagickFalse },
cristyf46941c2013-10-06 22:25:41 +0000931 { "MagnitudePhase", MagnitudePhaseComplexOperator, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +0000932 { "Multiply", MultiplyComplexOperator, UndefinedOptionFlag, MagickFalse },
cristyf46941c2013-10-06 22:25:41 +0000933 { "RealImaginary", RealImaginaryComplexOperator, UndefinedOptionFlag, MagickFalse },
cristy19f78862013-10-05 22:21:46 +0000934 { "Subtract", SubtractComplexOperator, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +0000935 { (char *) NULL, UndefinedComplexOperator, UndefinedOptionFlag, MagickFalse }
936 },
cristy3ed852e2009-09-05 21:47:34 +0000937 DataTypeOptions[] =
938 {
cristy042ee782011-04-22 18:48:30 +0000939 { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue },
940 { "Byte", ByteData, UndefinedOptionFlag, MagickFalse },
941 { "Long", LongData, UndefinedOptionFlag, MagickFalse },
942 { "Short", ShortData, UndefinedOptionFlag, MagickFalse },
943 { "String", StringData, UndefinedOptionFlag, MagickFalse },
944 { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000945 },
946 DecorateOptions[] =
947 {
cristy042ee782011-04-22 18:48:30 +0000948 { "Undefined", UndefinedDecoration, UndefinedOptionFlag, MagickTrue },
949 { "LineThrough", LineThroughDecoration, UndefinedOptionFlag, MagickFalse },
950 { "None", NoDecoration, UndefinedOptionFlag, MagickFalse },
951 { "Overline", OverlineDecoration, UndefinedOptionFlag, MagickFalse },
952 { "Underline", UnderlineDecoration, UndefinedOptionFlag, MagickFalse },
953 { (char *) NULL, UndefinedDecoration, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000954 },
cristyc9b12952010-03-28 01:12:28 +0000955 DirectionOptions[] =
956 {
cristy042ee782011-04-22 18:48:30 +0000957 { "Undefined", UndefinedDirection, UndefinedOptionFlag, MagickTrue },
958 { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse },
959 { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse },
960 { (char *) NULL, UndefinedDirection, UndefinedOptionFlag, MagickFalse }
cristyc9b12952010-03-28 01:12:28 +0000961 },
cristy3ed852e2009-09-05 21:47:34 +0000962 DisposeOptions[] =
963 {
cristy042ee782011-04-22 18:48:30 +0000964 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickTrue },
965 { "Background", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
966 { "None", NoneDispose, UndefinedOptionFlag, MagickFalse },
967 { "Previous", PreviousDispose, UndefinedOptionFlag, MagickFalse },
968 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
969 { "0", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
970 { "1", NoneDispose, UndefinedOptionFlag, MagickFalse },
971 { "2", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
972 { "3", PreviousDispose, UndefinedOptionFlag, MagickFalse },
973 { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000974 },
975 DistortOptions[] =
976 {
cristy042ee782011-04-22 18:48:30 +0000977 { "Affine", AffineDistortion, UndefinedOptionFlag, MagickFalse },
978 { "AffineProjection", AffineProjectionDistortion, UndefinedOptionFlag, MagickFalse },
979 { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
980 { "SRT", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
981 { "Perspective", PerspectiveDistortion, UndefinedOptionFlag, MagickFalse },
982 { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse },
983 { "Bilinear", BilinearForwardDistortion, UndefinedOptionFlag, MagickTrue },
984 { "BilinearForward", BilinearForwardDistortion, UndefinedOptionFlag, MagickFalse },
985 { "BilinearReverse", BilinearReverseDistortion, UndefinedOptionFlag, MagickFalse },
986 { "Polynomial", PolynomialDistortion, UndefinedOptionFlag, MagickFalse },
987 { "Arc", ArcDistortion, UndefinedOptionFlag, MagickFalse },
988 { "Polar", PolarDistortion, UndefinedOptionFlag, MagickFalse },
989 { "DePolar", DePolarDistortion, UndefinedOptionFlag, MagickFalse },
990 { "Barrel", BarrelDistortion, UndefinedOptionFlag, MagickFalse },
anthonye0d9bbd2011-06-15 01:05:57 +0000991 { "Cylinder2Plane", Cylinder2PlaneDistortion, UndefinedOptionFlag, MagickTrue },
992 { "Plane2Cylinder", Plane2CylinderDistortion, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000993 { "BarrelInverse", BarrelInverseDistortion, UndefinedOptionFlag, MagickFalse },
994 { "Shepards", ShepardsDistortion, UndefinedOptionFlag, MagickFalse },
995 { "Resize", ResizeDistortion, UndefinedOptionFlag, MagickFalse },
996 { (char *) NULL, UndefinedDistortion, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000997 },
998 DitherOptions[] =
999 {
cristy042ee782011-04-22 18:48:30 +00001000 { "Undefined", UndefinedDitherMethod, UndefinedOptionFlag, MagickTrue },
1001 { "None", NoDitherMethod, UndefinedOptionFlag, MagickFalse },
1002 { "FloydSteinberg", FloydSteinbergDitherMethod, UndefinedOptionFlag, MagickFalse },
1003 { "Riemersma", RiemersmaDitherMethod, UndefinedOptionFlag, MagickFalse },
1004 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001005 },
1006 EndianOptions[] =
1007 {
cristy042ee782011-04-22 18:48:30 +00001008 { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue },
1009 { "LSB", LSBEndian, UndefinedOptionFlag, MagickFalse },
1010 { "MSB", MSBEndian, UndefinedOptionFlag, MagickFalse },
1011 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001012 },
1013 EvaluateOptions[] =
1014 {
cristy042ee782011-04-22 18:48:30 +00001015 { "Undefined", UndefinedEvaluateOperator, UndefinedOptionFlag, MagickTrue },
1016 { "Abs", AbsEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1017 { "Add", AddEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1018 { "AddModulus", AddModulusEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1019 { "And", AndEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1020 { "Cos", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1021 { "Cosine", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1022 { "Divide", DivideEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1023 { "Exp", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1024 { "Exponential", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1025 { "GaussianNoise", GaussianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1026 { "ImpulseNoise", ImpulseNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1027 { "LaplacianNoise", LaplacianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1028 { "LeftShift", LeftShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1029 { "Log", LogEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1030 { "Max", MaxEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1031 { "Mean", MeanEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1032 { "Median", MedianEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1033 { "Min", MinEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1034 { "MultiplicativeNoise", MultiplicativeNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1035 { "Multiply", MultiplyEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1036 { "Or", OrEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1037 { "PoissonNoise", PoissonNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1038 { "Pow", PowEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1039 { "RightShift", RightShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1040 { "Set", SetEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1041 { "Sin", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1042 { "Sine", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1043 { "Subtract", SubtractEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy12a3f8e2012-01-31 01:53:19 +00001044 { "Sum", SumEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001045 { "Threshold", ThresholdEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1046 { "ThresholdBlack", ThresholdBlackEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1047 { "ThresholdWhite", ThresholdWhiteEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1048 { "UniformNoise", UniformNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1049 { "Xor", XorEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1050 { (char *) NULL, UndefinedEvaluateOperator, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001051 },
1052 FillRuleOptions[] =
1053 {
cristy042ee782011-04-22 18:48:30 +00001054 { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue },
1055 { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse },
1056 { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse },
1057 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001058 },
1059 FilterOptions[] =
1060 {
cristy042ee782011-04-22 18:48:30 +00001061 { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue },
1062 { "Bartlett", BartlettFilter, UndefinedOptionFlag, MagickFalse },
1063 { "Blackman", BlackmanFilter, UndefinedOptionFlag, MagickFalse },
1064 { "Bohman", BohmanFilter, UndefinedOptionFlag, MagickFalse },
1065 { "Box", BoxFilter, UndefinedOptionFlag, MagickFalse },
1066 { "Catrom", CatromFilter, UndefinedOptionFlag, MagickFalse },
anthony5d4a1702012-05-08 01:22:41 +00001067 { "Cosine", CosineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001068 { "Cubic", CubicFilter, UndefinedOptionFlag, MagickFalse },
1069 { "Gaussian", GaussianFilter, UndefinedOptionFlag, MagickFalse },
1070 { "Hamming", HammingFilter, UndefinedOptionFlag, MagickFalse },
anthonyf60ffd72012-08-20 03:25:30 +00001071 { "Hann", HannFilter, UndefinedOptionFlag, MagickFalse },
1072 { "Hanning", HannFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
cristy042ee782011-04-22 18:48:30 +00001073 { "Hermite", HermiteFilter, UndefinedOptionFlag, MagickFalse },
1074 { "Jinc", JincFilter, UndefinedOptionFlag, MagickFalse },
1075 { "Kaiser", KaiserFilter, UndefinedOptionFlag, MagickFalse },
1076 { "Lagrange", LagrangeFilter, UndefinedOptionFlag, MagickFalse },
1077 { "Lanczos", LanczosFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001078 { "Lanczos2", Lanczos2Filter, UndefinedOptionFlag, MagickFalse },
1079 { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse },
anthonyaa806422012-10-17 00:56:10 +00001080 { "LanczosRadius", LanczosRadiusFilter, UndefinedOptionFlag, MagickFalse },
1081 { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001082 { "Mitchell", MitchellFilter, UndefinedOptionFlag, MagickFalse },
1083 { "Parzen", ParzenFilter, UndefinedOptionFlag, MagickFalse },
1084 { "Point", PointFilter, UndefinedOptionFlag, MagickFalse },
1085 { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse },
1086 { "Robidoux", RobidouxFilter, UndefinedOptionFlag, MagickFalse },
anthony45531092012-04-23 00:33:53 +00001087 { "RobidouxSharp", RobidouxSharpFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001088 { "Sinc", SincFilter, UndefinedOptionFlag, MagickFalse },
1089 { "SincFast", SincFastFilter, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001090 { "Spline", SplineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001091 { "Triangle", TriangleFilter, UndefinedOptionFlag, MagickFalse },
anthonyf60ffd72012-08-20 03:25:30 +00001092 { "Welch", WelchFilter, UndefinedOptionFlag, MagickFalse },
1093 { "Welsh", WelchFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
cristy042ee782011-04-22 18:48:30 +00001094 { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001095 },
1096 FunctionOptions[] =
1097 {
cristy042ee782011-04-22 18:48:30 +00001098 { "Undefined", UndefinedFunction, UndefinedOptionFlag, MagickTrue },
1099 { "Polynomial", PolynomialFunction, UndefinedOptionFlag, MagickFalse },
1100 { "Sinusoid", SinusoidFunction, UndefinedOptionFlag, MagickFalse },
1101 { "ArcSin", ArcsinFunction, UndefinedOptionFlag, MagickFalse },
1102 { "ArcTan", ArctanFunction, UndefinedOptionFlag, MagickFalse },
1103 { (char *) NULL, UndefinedFunction, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001104 },
1105 GravityOptions[] =
1106 {
cristy042ee782011-04-22 18:48:30 +00001107 { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue },
1108 { "None", UndefinedGravity, UndefinedOptionFlag, MagickFalse },
1109 { "Center", CenterGravity, UndefinedOptionFlag, MagickFalse },
1110 { "East", EastGravity, UndefinedOptionFlag, MagickFalse },
1111 { "Forget", ForgetGravity, UndefinedOptionFlag, MagickFalse },
1112 { "NorthEast", NorthEastGravity, UndefinedOptionFlag, MagickFalse },
1113 { "North", NorthGravity, UndefinedOptionFlag, MagickFalse },
1114 { "NorthWest", NorthWestGravity, UndefinedOptionFlag, MagickFalse },
1115 { "SouthEast", SouthEastGravity, UndefinedOptionFlag, MagickFalse },
1116 { "South", SouthGravity, UndefinedOptionFlag, MagickFalse },
1117 { "SouthWest", SouthWestGravity, UndefinedOptionFlag, MagickFalse },
1118 { "West", WestGravity, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001119 { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001120 },
cristy3ed852e2009-09-05 21:47:34 +00001121 IntentOptions[] =
1122 {
cristy042ee782011-04-22 18:48:30 +00001123 { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue },
1124 { "Absolute", AbsoluteIntent, UndefinedOptionFlag, MagickFalse },
1125 { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse },
1126 { "Relative", RelativeIntent, UndefinedOptionFlag, MagickFalse },
1127 { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse },
1128 { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001129 },
1130 InterlaceOptions[] =
1131 {
cristy042ee782011-04-22 18:48:30 +00001132 { "Undefined", UndefinedInterlace, UndefinedOptionFlag, MagickTrue },
1133 { "Line", LineInterlace, UndefinedOptionFlag, MagickFalse },
1134 { "None", NoInterlace, UndefinedOptionFlag, MagickFalse },
1135 { "Plane", PlaneInterlace, UndefinedOptionFlag, MagickFalse },
1136 { "Partition", PartitionInterlace, UndefinedOptionFlag, MagickFalse },
1137 { "GIF", GIFInterlace, UndefinedOptionFlag, MagickFalse },
1138 { "JPEG", JPEGInterlace, UndefinedOptionFlag, MagickFalse },
1139 { "PNG", PNGInterlace, UndefinedOptionFlag, MagickFalse },
1140 { (char *) NULL, UndefinedInterlace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001141 },
1142 InterpolateOptions[] =
1143 {
cristy042ee782011-04-22 18:48:30 +00001144 { "Undefined", UndefinedInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1145 { "Average", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001146 { "Average4", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1147 { "Average9", Average9InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1148 { "Average16", Average16InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1149 { "Background", BackgroundInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001150 { "Bilinear", BilinearInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001151 { "Blend", BlendInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1152 { "Catrom", CatromInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001153 { "Integer", IntegerInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1154 { "Mesh", MeshInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001155 { "Nearest", NearestInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1156 { "NearestNeighbor", NearestInterpolatePixel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001157 { "Spline", SplineInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001158/* { "Filter", FilterInterpolatePixel, UndefinedOptionFlag, MagickFalse }, */
cristy042ee782011-04-22 18:48:30 +00001159 { (char *) NULL, UndefinedInterpolatePixel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001160 },
anthony602ab9b2010-01-05 08:06:50 +00001161 KernelOptions[] =
1162 {
cristy042ee782011-04-22 18:48:30 +00001163 { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue },
1164 { "Unity", UnityKernel, UndefinedOptionFlag, MagickFalse },
1165 { "Gaussian", GaussianKernel, UndefinedOptionFlag, MagickFalse },
1166 { "DoG", DoGKernel, UndefinedOptionFlag, MagickFalse },
1167 { "LoG", LoGKernel, UndefinedOptionFlag, MagickFalse },
1168 { "Blur", BlurKernel, UndefinedOptionFlag, MagickFalse },
1169 { "Comet", CometKernel, UndefinedOptionFlag, MagickFalse },
anthony40ca0b92012-08-02 13:23:28 +00001170 { "Binomial", BinomialKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001171 { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse },
1172 { "Sobel", SobelKernel, UndefinedOptionFlag, MagickFalse },
1173 { "FreiChen", FreiChenKernel, UndefinedOptionFlag, MagickFalse },
1174 { "Roberts", RobertsKernel, UndefinedOptionFlag, MagickFalse },
1175 { "Prewitt", PrewittKernel, UndefinedOptionFlag, MagickFalse },
1176 { "Compass", CompassKernel, UndefinedOptionFlag, MagickFalse },
1177 { "Kirsch", KirschKernel, UndefinedOptionFlag, MagickFalse },
1178 { "Diamond", DiamondKernel, UndefinedOptionFlag, MagickFalse },
1179 { "Square", SquareKernel, UndefinedOptionFlag, MagickFalse },
1180 { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse },
1181 { "Disk", DiskKernel, UndefinedOptionFlag, MagickFalse },
1182 { "Octagon", OctagonKernel, UndefinedOptionFlag, MagickFalse },
1183 { "Plus", PlusKernel, UndefinedOptionFlag, MagickFalse },
1184 { "Cross", CrossKernel, UndefinedOptionFlag, MagickFalse },
1185 { "Ring", RingKernel, UndefinedOptionFlag, MagickFalse },
1186 { "Peaks", PeaksKernel, UndefinedOptionFlag, MagickFalse },
1187 { "Edges", EdgesKernel, UndefinedOptionFlag, MagickFalse },
1188 { "Corners", CornersKernel, UndefinedOptionFlag, MagickFalse },
1189 { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001190 { "LineEnds", LineEndsKernel, UndefinedOptionFlag, MagickFalse },
1191 { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse },
1192 { "Ridges", RidgesKernel, UndefinedOptionFlag, MagickFalse },
1193 { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse },
1194 { "ThinSe", ThinSEKernel, UndefinedOptionFlag, MagickFalse },
1195 { "Skeleton", SkeletonKernel, UndefinedOptionFlag, MagickFalse },
1196 { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse },
1197 { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse },
1198 { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse },
1199 { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001200 { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001201 { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001202 },
cristy3ed852e2009-09-05 21:47:34 +00001203 LayerOptions[] =
1204 {
cristy042ee782011-04-22 18:48:30 +00001205 { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue },
1206 { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse },
1207 { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse },
1208 { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse },
1209 { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse },
1210 { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse },
1211 { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse },
1212 { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse },
1213 { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse },
1214 { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
1215 { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse },
1216 { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse },
1217 { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse },
1218 { "Merge", MergeLayer, UndefinedOptionFlag, MagickFalse },
1219 { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse },
1220 { "Mosaic", MosaicLayer, UndefinedOptionFlag, MagickFalse },
1221 { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse },
1222 { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001223 },
1224 LineCapOptions[] =
1225 {
cristy042ee782011-04-22 18:48:30 +00001226 { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue },
1227 { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse },
1228 { "Round", RoundCap, UndefinedOptionFlag, MagickFalse },
1229 { "Square", SquareCap, UndefinedOptionFlag, MagickFalse },
1230 { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001231 },
1232 LineJoinOptions[] =
1233 {
cristy042ee782011-04-22 18:48:30 +00001234 { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue },
1235 { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse },
1236 { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse },
1237 { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse },
1238 { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001239 },
1240 ListOptions[] =
1241 {
cristy042ee782011-04-22 18:48:30 +00001242 { "Align", MagickAlignOptions, UndefinedOptionFlag, MagickFalse },
cristy288a3532012-08-28 00:19:44 +00001243 { "Alpha", MagickAlphaChannelOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001244 { "Boolean", MagickBooleanOptions, UndefinedOptionFlag, MagickFalse },
cristy947cef22013-01-17 14:16:40 +00001245 { "Cache", MagickCacheOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001246 { "Channel", MagickChannelOptions, UndefinedOptionFlag, MagickFalse },
1247 { "Class", MagickClassOptions, UndefinedOptionFlag, MagickFalse },
1248 { "ClipPath", MagickClipPathOptions, UndefinedOptionFlag, MagickFalse },
1249 { "Coder", MagickCoderOptions, UndefinedOptionFlag, MagickFalse },
1250 { "Color", MagickColorOptions, UndefinedOptionFlag, MagickFalse },
1251 { "Colorspace", MagickColorspaceOptions, UndefinedOptionFlag, MagickFalse },
1252 { "Command", MagickCommandOptions, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +00001253 { "Complex", MagickComplexOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001254 { "Compose", MagickComposeOptions, UndefinedOptionFlag, MagickFalse },
1255 { "Compress", MagickCompressOptions, UndefinedOptionFlag, MagickFalse },
1256 { "Configure", MagickConfigureOptions, UndefinedOptionFlag, MagickFalse },
1257 { "DataType", MagickDataTypeOptions, UndefinedOptionFlag, MagickFalse },
1258 { "Debug", MagickDebugOptions, UndefinedOptionFlag, MagickFalse },
1259 { "Decoration", MagickDecorateOptions, UndefinedOptionFlag, MagickFalse },
1260 { "Delegate", MagickDelegateOptions, UndefinedOptionFlag, MagickFalse },
1261 { "Direction", MagickDirectionOptions, UndefinedOptionFlag, MagickFalse },
1262 { "Dispose", MagickDisposeOptions, UndefinedOptionFlag, MagickFalse },
1263 { "Distort", MagickDistortOptions, UndefinedOptionFlag, MagickFalse },
1264 { "Dither", MagickDitherOptions, UndefinedOptionFlag, MagickFalse },
1265 { "Endian", MagickEndianOptions, UndefinedOptionFlag, MagickFalse },
1266 { "Evaluate", MagickEvaluateOptions, UndefinedOptionFlag, MagickFalse },
1267 { "FillRule", MagickFillRuleOptions, UndefinedOptionFlag, MagickFalse },
1268 { "Filter", MagickFilterOptions, UndefinedOptionFlag, MagickFalse },
1269 { "Font", MagickFontOptions, UndefinedOptionFlag, MagickFalse },
1270 { "Format", MagickFormatOptions, UndefinedOptionFlag, MagickFalse },
1271 { "Function", MagickFunctionOptions, UndefinedOptionFlag, MagickFalse },
1272 { "Gravity", MagickGravityOptions, UndefinedOptionFlag, MagickFalse },
cristyf2104462013-03-13 16:13:08 +00001273 { "Intensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001274 { "Intent", MagickIntentOptions, UndefinedOptionFlag, MagickFalse },
1275 { "Interlace", MagickInterlaceOptions, UndefinedOptionFlag, MagickFalse },
1276 { "Interpolate", MagickInterpolateOptions, UndefinedOptionFlag, MagickFalse },
1277 { "Kernel", MagickKernelOptions, UndefinedOptionFlag, MagickFalse },
1278 { "Layers", MagickLayerOptions, UndefinedOptionFlag, MagickFalse },
1279 { "LineCap", MagickLineCapOptions, UndefinedOptionFlag, MagickFalse },
1280 { "LineJoin", MagickLineJoinOptions, UndefinedOptionFlag, MagickFalse },
1281 { "List", MagickListOptions, UndefinedOptionFlag, MagickFalse },
1282 { "Locale", MagickLocaleOptions, UndefinedOptionFlag, MagickFalse },
1283 { "LogEvent", MagickLogEventOptions, UndefinedOptionFlag, MagickFalse },
1284 { "Log", MagickLogOptions, UndefinedOptionFlag, MagickFalse },
1285 { "Magic", MagickMagicOptions, UndefinedOptionFlag, MagickFalse },
1286 { "Method", MagickMethodOptions, UndefinedOptionFlag, MagickFalse },
1287 { "Metric", MagickMetricOptions, UndefinedOptionFlag, MagickFalse },
1288 { "Mime", MagickMimeOptions, UndefinedOptionFlag, MagickFalse },
1289 { "Mode", MagickModeOptions, UndefinedOptionFlag, MagickFalse },
1290 { "Morphology", MagickMorphologyOptions, UndefinedOptionFlag, MagickFalse },
1291 { "Module", MagickModuleOptions, UndefinedOptionFlag, MagickFalse },
1292 { "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse },
1293 { "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001294 { "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse },
cristyac73d1f2013-03-12 00:51:09 +00001295 { "PixelIntensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
cristy18fd4432013-03-22 01:26:09 +00001296 { "PixelMask", MagickPixelMaskOptions, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001297 { "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001298 { "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse },
1299 { "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse },
1300 { "PolicyRights", MagickPolicyRightsOptions, UndefinedOptionFlag, MagickFalse },
1301 { "Preview", MagickPreviewOptions, UndefinedOptionFlag, MagickFalse },
1302 { "Primitive", MagickPrimitiveOptions, UndefinedOptionFlag, MagickFalse },
1303 { "QuantumFormat", MagickQuantumFormatOptions, UndefinedOptionFlag, MagickFalse },
1304 { "Resource", MagickResourceOptions, UndefinedOptionFlag, MagickFalse },
1305 { "SparseColor", MagickSparseColorOptions, UndefinedOptionFlag, MagickFalse },
1306 { "Statistic", MagickStatisticOptions, UndefinedOptionFlag, MagickFalse },
1307 { "Storage", MagickStorageOptions, UndefinedOptionFlag, MagickFalse },
1308 { "Stretch", MagickStretchOptions, UndefinedOptionFlag, MagickFalse },
1309 { "Style", MagickStyleOptions, UndefinedOptionFlag, MagickFalse },
1310 { "Threshold", MagickThresholdOptions, UndefinedOptionFlag, MagickFalse },
1311 { "Type", MagickTypeOptions, UndefinedOptionFlag, MagickFalse },
1312 { "Units", MagickResolutionOptions, UndefinedOptionFlag, MagickFalse },
1313 { "Undefined", MagickUndefinedOptions, UndefinedOptionFlag, MagickTrue },
1314 { "Validate", MagickValidateOptions, UndefinedOptionFlag, MagickFalse },
1315 { "VirtualPixel", MagickVirtualPixelOptions, UndefinedOptionFlag, MagickFalse },
1316 { (char *) NULL, MagickUndefinedOptions, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001317 },
1318 LogEventOptions[] =
1319 {
cristy042ee782011-04-22 18:48:30 +00001320 { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue },
1321 { "All", (AllEvents &~ TraceEvent), UndefinedOptionFlag, MagickFalse },
cristy68b14972011-10-26 14:54:58 +00001322 { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001323 { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse },
1324 { "Blob", BlobEvent, UndefinedOptionFlag, MagickFalse },
1325 { "Cache", CacheEvent, UndefinedOptionFlag, MagickFalse },
1326 { "Coder", CoderEvent, UndefinedOptionFlag, MagickFalse },
anthonya322a832013-04-27 06:28:03 +00001327 { "Command", CommandEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001328 { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse },
1329 { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse },
1330 { "Draw", DrawEvent, UndefinedOptionFlag, MagickFalse },
1331 { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse },
1332 { "Locale", LocaleEvent, UndefinedOptionFlag, MagickFalse },
1333 { "Module", ModuleEvent, UndefinedOptionFlag, MagickFalse },
1334 { "None", NoEvents, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001335 { "Pixel", PixelEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001336 { "Policy", PolicyEvent, UndefinedOptionFlag, MagickFalse },
1337 { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse },
1338 { "Trace", TraceEvent, UndefinedOptionFlag, MagickFalse },
1339 { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse },
1340 { "User", UserEvent, UndefinedOptionFlag, MagickFalse },
1341 { "Wand", WandEvent, UndefinedOptionFlag, MagickFalse },
1342 { "X11", X11Event, UndefinedOptionFlag, MagickFalse },
1343 { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001344 },
1345 MetricOptions[] =
1346 {
cristya6efb492013-07-10 23:57:14 +00001347 { "Undefined", UndefinedErrorMetric, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001348 { "AE", AbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1349 { "Fuzz", FuzzErrorMetric, UndefinedOptionFlag, MagickFalse },
1350 { "MAE", MeanAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1351 { "MEPP", MeanErrorPerPixelMetric, UndefinedOptionFlag, MagickFalse },
1352 { "MSE", MeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1353 { "NCC", NormalizedCrossCorrelationErrorMetric, UndefinedOptionFlag, MagickFalse },
1354 { "PAE", PeakAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
cristybed8f952014-01-08 18:26:15 +00001355 { "PHASh", PerceptualHashErrorMetric, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001356 { "PSNR", PeakSignalToNoiseRatioMetric, UndefinedOptionFlag, MagickFalse },
1357 { "RMSE", RootMeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
cristya6efb492013-07-10 23:57:14 +00001358 { (char *) NULL, UndefinedErrorMetric, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001359 },
1360 MethodOptions[] =
1361 {
cristy042ee782011-04-22 18:48:30 +00001362 { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue },
1363 { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse },
1364 { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse },
1365 { "Point", PointMethod, UndefinedOptionFlag, MagickFalse },
1366 { "Replace", ReplaceMethod, UndefinedOptionFlag, MagickFalse },
1367 { "Reset", ResetMethod, UndefinedOptionFlag, MagickFalse },
1368 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001369 },
1370 ModeOptions[] =
1371 {
cristy042ee782011-04-22 18:48:30 +00001372 { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue },
1373 { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse },
1374 { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse },
1375 { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse },
1376 { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001377 },
anthony602ab9b2010-01-05 08:06:50 +00001378 MorphologyOptions[] =
1379 {
cristy042ee782011-04-22 18:48:30 +00001380 { "Undefined", UndefinedMorphology, UndefinedOptionFlag, MagickTrue },
1381 { "Correlate", CorrelateMorphology, UndefinedOptionFlag, MagickFalse },
1382 { "Convolve", ConvolveMorphology, UndefinedOptionFlag, MagickFalse },
1383 { "Dilate", DilateMorphology, UndefinedOptionFlag, MagickFalse },
1384 { "Erode", ErodeMorphology, UndefinedOptionFlag, MagickFalse },
1385 { "Close", CloseMorphology, UndefinedOptionFlag, MagickFalse },
1386 { "Open", OpenMorphology, UndefinedOptionFlag, MagickFalse },
1387 { "DilateIntensity", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1388 { "ErodeIntensity", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1389 { "CloseIntensity", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1390 { "OpenIntensity", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1391 { "DilateI", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1392 { "ErodeI", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1393 { "CloseI", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1394 { "OpenI", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1395 { "Smooth", SmoothMorphology, UndefinedOptionFlag, MagickFalse },
1396 { "EdgeOut", EdgeOutMorphology, UndefinedOptionFlag, MagickFalse },
1397 { "EdgeIn", EdgeInMorphology, UndefinedOptionFlag, MagickFalse },
1398 { "Edge", EdgeMorphology, UndefinedOptionFlag, MagickFalse },
1399 { "TopHat", TopHatMorphology, UndefinedOptionFlag, MagickFalse },
1400 { "BottomHat", BottomHatMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001401 { "Hmt", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1402 { "HitNMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1403 { "HitAndMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1404 { "Thinning", ThinningMorphology, UndefinedOptionFlag, MagickFalse },
1405 { "Thicken", ThickenMorphology, UndefinedOptionFlag, MagickFalse },
anthonyf34d9b22012-02-22 06:11:08 +00001406 { "Distance", DistanceMorphology, UndefinedOptionFlag, MagickFalse },
1407 { "IterativeDistance", IterativeDistanceMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001408 { "Voronoi", VoronoiMorphology, UndefinedOptionFlag, MagickTrue },
1409 { (char *) NULL, UndefinedMorphology, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001410 },
cristy3ed852e2009-09-05 21:47:34 +00001411 NoiseOptions[] =
1412 {
cristy042ee782011-04-22 18:48:30 +00001413 { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue },
1414 { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse },
1415 { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse },
1416 { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse },
1417 { "Multiplicative", MultiplicativeGaussianNoise, UndefinedOptionFlag, MagickFalse },
1418 { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse },
1419 { "Random", RandomNoise, UndefinedOptionFlag, MagickFalse },
1420 { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse },
1421 { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001422 },
1423 OrientationOptions[] =
1424 {
cristy042ee782011-04-22 18:48:30 +00001425 { "Undefined", UndefinedOrientation, UndefinedOptionFlag, MagickTrue },
1426 { "TopLeft", TopLeftOrientation, UndefinedOptionFlag, MagickFalse },
1427 { "TopRight", TopRightOrientation, UndefinedOptionFlag, MagickFalse },
1428 { "BottomRight", BottomRightOrientation, UndefinedOptionFlag, MagickFalse },
1429 { "BottomLeft", BottomLeftOrientation, UndefinedOptionFlag, MagickFalse },
1430 { "LeftTop", LeftTopOrientation, UndefinedOptionFlag, MagickFalse },
1431 { "RightTop", RightTopOrientation, UndefinedOptionFlag, MagickFalse },
1432 { "RightBottom", RightBottomOrientation, UndefinedOptionFlag, MagickFalse },
1433 { "LeftBottom", LeftBottomOrientation, UndefinedOptionFlag, MagickFalse },
1434 { (char *) NULL, UndefinedOrientation, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001435 },
cristy6dcb9b82011-10-23 23:21:25 +00001436 PixelChannelOptions[] =
1437 {
1438 { "Undefined", UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001439 { "A", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001440 { "Alpha", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001441 { "B", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +00001442 { "Bk", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001443 { "Black", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1444 { "Blue", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1445 { "Cb", CbPixelChannel, UndefinedOptionFlag, MagickFalse },
1446 { "Composite", CompositePixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001447 { "C", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001448 { "Cr", CrPixelChannel, UndefinedOptionFlag, MagickFalse },
1449 { "Cyan", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1450 { "Gray", GrayPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001451 { "G", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001452 { "Green", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1453 { "Index", IndexPixelChannel, UndefinedOptionFlag, MagickFalse },
1454 { "Intensity", IntensityPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001455 { "K", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1456 { "M", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001457 { "Magenta", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001458 { "R", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy883fde12013-04-08 00:50:13 +00001459 { "ReadMask", ReadMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001460 { "Red", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1461 { "Sync", SyncPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy883fde12013-04-08 00:50:13 +00001462 { "WriteMask", WriteMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001463 { "Y", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001464 { "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1465 { (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }
1466 },
cristyac73d1f2013-03-12 00:51:09 +00001467 PixelIntensityOptions[] =
1468 {
1469 { "Undefined", UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
cristy13609b42013-10-30 21:36:37 +00001470 { "Average", AveragePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1471 { "Brightness", BrightnessPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1472 { "Lightness", LightnessPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1473 { "MS", MSPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1474 { "Rec601Luma", Rec601LumaPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1475 { "Rec601Luminance", Rec601LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1476 { "Rec709Luma", Rec709LumaPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1477 { "Rec709Luminance", Rec709LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1478 { "RMS", RMSPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
cristyac73d1f2013-03-12 00:51:09 +00001479 { (char *) NULL, UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickFalse }
1480 },
cristy18fd4432013-03-22 01:26:09 +00001481 PixelMaskOptions[] =
1482 {
1483 { "Undefined", UndefinedPixelMask, UndefinedOptionFlag, MagickTrue },
1484 { "R", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1485 { "Read", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1486 { "W", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1487 { "Write", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1488 { (char *) NULL, UndefinedPixelMask, UndefinedOptionFlag, MagickFalse }
1489 },
cristy6dcb9b82011-10-23 23:21:25 +00001490 PixelTraitOptions[] =
1491 {
1492 { "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue },
1493 { "Blend", BlendPixelTrait, UndefinedOptionFlag, MagickFalse },
1494 { "Copy", CopyPixelTrait, UndefinedOptionFlag, MagickFalse },
1495 { "Update", UpdatePixelTrait, UndefinedOptionFlag, MagickFalse },
1496 { (char *) NULL, UndefinedPixelTrait, UndefinedOptionFlag, MagickFalse }
1497 },
cristy3ed852e2009-09-05 21:47:34 +00001498 PolicyDomainOptions[] =
1499 {
cristy042ee782011-04-22 18:48:30 +00001500 { "Undefined", UndefinedPolicyDomain, UndefinedOptionFlag, MagickTrue },
1501 { "Coder", CoderPolicyDomain, UndefinedOptionFlag, MagickFalse },
1502 { "Delegate", DelegatePolicyDomain, UndefinedOptionFlag, MagickFalse },
1503 { "Filter", FilterPolicyDomain, UndefinedOptionFlag, MagickFalse },
1504 { "Path", PathPolicyDomain, UndefinedOptionFlag, MagickFalse },
1505 { "Resource", ResourcePolicyDomain, UndefinedOptionFlag, MagickFalse },
1506 { "System", SystemPolicyDomain, UndefinedOptionFlag, MagickFalse },
1507 { (char *) NULL, UndefinedPolicyDomain, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001508 },
1509 PolicyRightsOptions[] =
1510 {
cristy042ee782011-04-22 18:48:30 +00001511 { "Undefined", UndefinedPolicyRights, UndefinedOptionFlag, MagickTrue },
1512 { "None", NoPolicyRights, UndefinedOptionFlag, MagickFalse },
1513 { "Read", ReadPolicyRights, UndefinedOptionFlag, MagickFalse },
1514 { "Write", WritePolicyRights, UndefinedOptionFlag, MagickFalse },
1515 { "Execute", ExecutePolicyRights, UndefinedOptionFlag, MagickFalse },
1516 { (char *) NULL, UndefinedPolicyRights, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001517 },
1518 PreviewOptions[] =
1519 {
cristy042ee782011-04-22 18:48:30 +00001520 { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue },
1521 { "AddNoise", AddNoisePreview, UndefinedOptionFlag, MagickFalse },
1522 { "Blur", BlurPreview, UndefinedOptionFlag, MagickFalse },
1523 { "Brightness", BrightnessPreview, UndefinedOptionFlag, MagickFalse },
1524 { "Charcoal", CharcoalDrawingPreview, UndefinedOptionFlag, MagickFalse },
1525 { "Despeckle", DespecklePreview, UndefinedOptionFlag, MagickFalse },
1526 { "Dull", DullPreview, UndefinedOptionFlag, MagickFalse },
1527 { "EdgeDetect", EdgeDetectPreview, UndefinedOptionFlag, MagickFalse },
1528 { "Gamma", GammaPreview, UndefinedOptionFlag, MagickFalse },
1529 { "Grayscale", GrayscalePreview, UndefinedOptionFlag, MagickFalse },
1530 { "Hue", HuePreview, UndefinedOptionFlag, MagickFalse },
1531 { "Implode", ImplodePreview, UndefinedOptionFlag, MagickFalse },
1532 { "JPEG", JPEGPreview, UndefinedOptionFlag, MagickFalse },
1533 { "OilPaint", OilPaintPreview, UndefinedOptionFlag, MagickFalse },
1534 { "Quantize", QuantizePreview, UndefinedOptionFlag, MagickFalse },
1535 { "Raise", RaisePreview, UndefinedOptionFlag, MagickFalse },
1536 { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse },
1537 { "Roll", RollPreview, UndefinedOptionFlag, MagickFalse },
1538 { "Rotate", RotatePreview, UndefinedOptionFlag, MagickFalse },
1539 { "Saturation", SaturationPreview, UndefinedOptionFlag, MagickFalse },
1540 { "Segment", SegmentPreview, UndefinedOptionFlag, MagickFalse },
1541 { "Shade", ShadePreview, UndefinedOptionFlag, MagickFalse },
1542 { "Sharpen", SharpenPreview, UndefinedOptionFlag, MagickFalse },
1543 { "Shear", ShearPreview, UndefinedOptionFlag, MagickFalse },
1544 { "Solarize", SolarizePreview, UndefinedOptionFlag, MagickFalse },
1545 { "Spiff", SpiffPreview, UndefinedOptionFlag, MagickFalse },
1546 { "Spread", SpreadPreview, UndefinedOptionFlag, MagickFalse },
1547 { "Swirl", SwirlPreview, UndefinedOptionFlag, MagickFalse },
1548 { "Threshold", ThresholdPreview, UndefinedOptionFlag, MagickFalse },
1549 { "Wave", WavePreview, UndefinedOptionFlag, MagickFalse },
1550 { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001551 },
1552 PrimitiveOptions[] =
1553 {
cristy042ee782011-04-22 18:48:30 +00001554 { "Undefined", UndefinedPrimitive, UndefinedOptionFlag, MagickTrue },
1555 { "Arc", ArcPrimitive, UndefinedOptionFlag, MagickFalse },
1556 { "Bezier", BezierPrimitive, UndefinedOptionFlag, MagickFalse },
1557 { "Circle", CirclePrimitive, UndefinedOptionFlag, MagickFalse },
1558 { "Color", ColorPrimitive, UndefinedOptionFlag, MagickFalse },
1559 { "Ellipse", EllipsePrimitive, UndefinedOptionFlag, MagickFalse },
1560 { "Image", ImagePrimitive, UndefinedOptionFlag, MagickFalse },
1561 { "Line", LinePrimitive, UndefinedOptionFlag, MagickFalse },
1562 { "Matte", MattePrimitive, UndefinedOptionFlag, MagickFalse },
1563 { "Path", PathPrimitive, UndefinedOptionFlag, MagickFalse },
1564 { "Point", PointPrimitive, UndefinedOptionFlag, MagickFalse },
1565 { "Polygon", PolygonPrimitive, UndefinedOptionFlag, MagickFalse },
1566 { "Polyline", PolylinePrimitive, UndefinedOptionFlag, MagickFalse },
1567 { "Rectangle", RectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1568 { "RoundRectangle", RoundRectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1569 { "Text", TextPrimitive, UndefinedOptionFlag, MagickFalse },
1570 { (char *) NULL, UndefinedPrimitive, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001571 },
1572 QuantumFormatOptions[] =
1573 {
cristy042ee782011-04-22 18:48:30 +00001574 { "Undefined", UndefinedQuantumFormat, UndefinedOptionFlag, MagickTrue },
1575 { "FloatingPoint", FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse },
1576 { "Signed", SignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1577 { "Unsigned", UnsignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1578 { (char *) NULL, FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001579 },
1580 ResolutionOptions[] =
1581 {
cristy042ee782011-04-22 18:48:30 +00001582 { "Undefined", UndefinedResolution, UndefinedOptionFlag, MagickTrue },
1583 { "PixelsPerInch", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
1584 { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
1585 { (char *) NULL, UndefinedResolution, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001586 },
1587 ResourceOptions[] =
1588 {
cristy042ee782011-04-22 18:48:30 +00001589 { "Undefined", UndefinedResource, UndefinedOptionFlag, MagickTrue },
1590 { "Area", AreaResource, UndefinedOptionFlag, MagickFalse },
1591 { "Disk", DiskResource, UndefinedOptionFlag, MagickFalse },
1592 { "File", FileResource, UndefinedOptionFlag, MagickFalse },
1593 { "Map", MapResource, UndefinedOptionFlag, MagickFalse },
1594 { "Memory", MemoryResource, UndefinedOptionFlag, MagickFalse },
1595 { "Thread", ThreadResource, UndefinedOptionFlag, MagickFalse },
1596 { "Time", TimeResource, UndefinedOptionFlag, MagickFalse },
1597 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001598 },
1599 SparseColorOptions[] =
1600 {
cristy042ee782011-04-22 18:48:30 +00001601 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue },
1602 { "Barycentric", BarycentricColorInterpolate, UndefinedOptionFlag, MagickFalse },
1603 { "Bilinear", BilinearColorInterpolate, UndefinedOptionFlag, MagickFalse },
anthony09d867c2011-04-26 08:28:41 +00001604 { "Inverse", InverseColorInterpolate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001605 { "Shepards", ShepardsColorInterpolate, UndefinedOptionFlag, MagickFalse },
1606 { "Voronoi", VoronoiColorInterpolate, UndefinedOptionFlag, MagickFalse },
1607 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001608 },
cristy0834d642011-03-18 18:26:08 +00001609 StatisticOptions[] =
1610 {
cristy042ee782011-04-22 18:48:30 +00001611 { "Undefined", UndefinedStatistic, UndefinedOptionFlag, MagickTrue },
1612 { "Gradient", GradientStatistic, UndefinedOptionFlag, MagickFalse },
1613 { "Maximum", MaximumStatistic, UndefinedOptionFlag, MagickFalse },
1614 { "Mean", MeanStatistic, UndefinedOptionFlag, MagickFalse },
1615 { "Median", MedianStatistic, UndefinedOptionFlag, MagickFalse },
1616 { "Minimum", MinimumStatistic, UndefinedOptionFlag, MagickFalse },
1617 { "Mode", ModeStatistic, UndefinedOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +00001618 { "NonPeak", NonpeakStatistic, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001619 { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse },
1620 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy0834d642011-03-18 18:26:08 +00001621 },
cristy3ed852e2009-09-05 21:47:34 +00001622 StorageOptions[] =
1623 {
cristy042ee782011-04-22 18:48:30 +00001624 { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue },
1625 { "Char", CharPixel, UndefinedOptionFlag, MagickFalse },
1626 { "Double", DoublePixel, UndefinedOptionFlag, MagickFalse },
1627 { "Float", FloatPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001628 { "Long", LongPixel, UndefinedOptionFlag, MagickFalse },
cristy6c9e1682012-01-07 21:37:44 +00001629 { "LongLong", LongLongPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001630 { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse },
1631 { "Short", ShortPixel, UndefinedOptionFlag, MagickFalse },
1632 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001633 },
1634 StretchOptions[] =
1635 {
cristy042ee782011-04-22 18:48:30 +00001636 { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue },
1637 { "Any", AnyStretch, UndefinedOptionFlag, MagickFalse },
1638 { "Condensed", CondensedStretch, UndefinedOptionFlag, MagickFalse },
1639 { "Expanded", ExpandedStretch, UndefinedOptionFlag, MagickFalse },
1640 { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1641 { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1642 { "Normal", NormalStretch, UndefinedOptionFlag, MagickFalse },
1643 { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse },
1644 { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse },
1645 { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1646 { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1647 { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001648 },
1649 StyleOptions[] =
1650 {
cristy042ee782011-04-22 18:48:30 +00001651 { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
1652 { "Any", AnyStyle, UndefinedOptionFlag, MagickFalse },
1653 { "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse },
1654 { "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse },
1655 { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
1656 { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001657 },
1658 TypeOptions[] =
1659 {
cristy042ee782011-04-22 18:48:30 +00001660 { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue },
1661 { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse },
1662 { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001663 { "ColorSeparationAlpha", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001664 { "ColorSeparationMatte", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
1665 { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001666 { "GrayscaleAlpha", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001667 { "GrayscaleMatte", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
1668 { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse },
1669 { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001670 { "PaletteBilevelAlpha", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001671 { "PaletteBilevelMatte", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001672 { "PaletteAlpha", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001673 { "PaletteMatte", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001674 { "TrueColorAlpha", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001675 { "TrueColorMatte", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
1676 { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse },
1677 { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001678 },
1679 ValidateOptions[] =
1680 {
cristy042ee782011-04-22 18:48:30 +00001681 { "Undefined", UndefinedValidate, UndefinedOptionFlag, MagickTrue },
1682 { "All", AllValidate, UndefinedOptionFlag, MagickFalse },
cristy80e870e2013-05-07 12:23:02 +00001683 { "Colorspace", ColorspaceValidate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001684 { "Compare", CompareValidate, UndefinedOptionFlag, MagickFalse },
1685 { "Composite", CompositeValidate, UndefinedOptionFlag, MagickFalse },
1686 { "Convert", ConvertValidate, UndefinedOptionFlag, MagickFalse },
cristy247eebde2013-06-13 01:01:43 +00001687 { "FormatsDisk", FormatsDiskValidate, UndefinedOptionFlag, MagickFalse },
1688 { "FormatsMap", FormatsMapValidate, UndefinedOptionFlag, MagickFalse },
1689 { "FormatsMemory", FormatsMemoryValidate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001690 { "Identify", IdentifyValidate, UndefinedOptionFlag, MagickFalse },
1691 { "ImportExport", ImportExportValidate, UndefinedOptionFlag, MagickFalse },
1692 { "Montage", MontageValidate, UndefinedOptionFlag, MagickFalse },
1693 { "Stream", StreamValidate, UndefinedOptionFlag, MagickFalse },
1694 { "None", NoValidate, UndefinedOptionFlag, MagickFalse },
1695 { (char *) NULL, UndefinedValidate, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001696 },
1697 VirtualPixelOptions[] =
1698 {
cristy042ee782011-04-22 18:48:30 +00001699 { "Undefined", UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickTrue },
1700 { "Background", BackgroundVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1701 { "Black", BlackVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001702 { "Constant", BackgroundVirtualPixelMethod, DeprecateOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001703 { "CheckerTile", CheckerTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1704 { "Dither", DitherVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1705 { "Edge", EdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1706 { "Gray", GrayVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1707 { "HorizontalTile", HorizontalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1708 { "HorizontalTileEdge", HorizontalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1709 { "Mirror", MirrorVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
anthony7a4d6102012-07-01 09:48:25 +00001710 { "None", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001711 { "Random", RandomVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1712 { "Tile", TileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1713 { "Transparent", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1714 { "VerticalTile", VerticalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1715 { "VerticalTileEdge", VerticalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1716 { "White", WhiteVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1717 { (char *) NULL, UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001718 };
1719
anthony686b1a32012-02-15 14:50:53 +00001720static const OptionInfo *GetOptionInfo(const CommandOption option)
1721{
1722 switch (option)
1723 {
1724 case MagickAlignOptions: return(AlignOptions);
cristy288a3532012-08-28 00:19:44 +00001725 case MagickAlphaChannelOptions: return(AlphaChannelOptions);
anthony686b1a32012-02-15 14:50:53 +00001726 case MagickBooleanOptions: return(BooleanOptions);
cristy947cef22013-01-17 14:16:40 +00001727 case MagickCacheOptions: return(CacheOptions);
anthony686b1a32012-02-15 14:50:53 +00001728 case MagickChannelOptions: return(ChannelOptions);
1729 case MagickClassOptions: return(ClassOptions);
1730 case MagickClipPathOptions: return(ClipPathOptions);
1731 case MagickColorspaceOptions: return(ColorspaceOptions);
1732 case MagickCommandOptions: return(CommandOptions);
cristy790190d2013-10-04 00:51:51 +00001733 case MagickComplexOptions: return(ComplexOptions);
anthony686b1a32012-02-15 14:50:53 +00001734 case MagickComposeOptions: return(ComposeOptions);
1735 case MagickCompressOptions: return(CompressOptions);
1736 case MagickDataTypeOptions: return(DataTypeOptions);
1737 case MagickDebugOptions: return(LogEventOptions);
1738 case MagickDecorateOptions: return(DecorateOptions);
1739 case MagickDirectionOptions: return(DirectionOptions);
1740 case MagickDisposeOptions: return(DisposeOptions);
1741 case MagickDistortOptions: return(DistortOptions);
1742 case MagickDitherOptions: return(DitherOptions);
1743 case MagickEndianOptions: return(EndianOptions);
1744 case MagickEvaluateOptions: return(EvaluateOptions);
1745 case MagickFillRuleOptions: return(FillRuleOptions);
1746 case MagickFilterOptions: return(FilterOptions);
1747 case MagickFunctionOptions: return(FunctionOptions);
1748 case MagickGravityOptions: return(GravityOptions);
1749/* case MagickImageListOptions: return(ImageListOptions); */
1750 case MagickIntentOptions: return(IntentOptions);
1751 case MagickInterlaceOptions: return(InterlaceOptions);
1752 case MagickInterpolateOptions: return(InterpolateOptions);
1753 case MagickKernelOptions: return(KernelOptions);
1754 case MagickLayerOptions: return(LayerOptions);
1755 case MagickLineCapOptions: return(LineCapOptions);
1756 case MagickLineJoinOptions: return(LineJoinOptions);
1757 case MagickListOptions: return(ListOptions);
1758 case MagickLogEventOptions: return(LogEventOptions);
1759 case MagickMetricOptions: return(MetricOptions);
1760 case MagickMethodOptions: return(MethodOptions);
1761 case MagickModeOptions: return(ModeOptions);
1762 case MagickMorphologyOptions: return(MorphologyOptions);
1763 case MagickNoiseOptions: return(NoiseOptions);
1764 case MagickOrientationOptions: return(OrientationOptions);
1765 case MagickPixelChannelOptions: return(PixelChannelOptions);
cristyac73d1f2013-03-12 00:51:09 +00001766 case MagickPixelIntensityOptions: return(PixelIntensityOptions);
cristy18fd4432013-03-22 01:26:09 +00001767 case MagickPixelMaskOptions: return(PixelMaskOptions);
anthony686b1a32012-02-15 14:50:53 +00001768 case MagickPixelTraitOptions: return(PixelTraitOptions);
1769 case MagickPolicyDomainOptions: return(PolicyDomainOptions);
1770 case MagickPolicyRightsOptions: return(PolicyRightsOptions);
1771 case MagickPreviewOptions: return(PreviewOptions);
1772 case MagickPrimitiveOptions: return(PrimitiveOptions);
1773 case MagickQuantumFormatOptions: return(QuantumFormatOptions);
1774 case MagickResolutionOptions: return(ResolutionOptions);
1775 case MagickResourceOptions: return(ResourceOptions);
1776 case MagickSparseColorOptions: return(SparseColorOptions);
1777 case MagickStatisticOptions: return(StatisticOptions);
1778 case MagickStorageOptions: return(StorageOptions);
1779 case MagickStretchOptions: return(StretchOptions);
1780 case MagickStyleOptions: return(StyleOptions);
1781 case MagickTypeOptions: return(TypeOptions);
1782 case MagickValidateOptions: return(ValidateOptions);
1783 case MagickVirtualPixelOptions: return(VirtualPixelOptions);
1784 default: break;
1785 }
1786 return((const OptionInfo *) NULL);
1787}
1788
cristy3ed852e2009-09-05 21:47:34 +00001789/*
1790%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1791% %
1792% %
1793% %
1794% C l o n e I m a g e O p t i o n s %
1795% %
1796% %
1797% %
1798%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1799%
anthony40ca0b92012-08-02 13:23:28 +00001800% CloneImageOptions() clones all global image options, to another image_info
cristy3ed852e2009-09-05 21:47:34 +00001801%
1802% The format of the CloneImageOptions method is:
1803%
1804% MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1805% const ImageInfo *clone_info)
1806%
1807% A description of each parameter follows:
1808%
anthony40ca0b92012-08-02 13:23:28 +00001809% o image_info: the image info to recieve the cloned options.
cristy3ed852e2009-09-05 21:47:34 +00001810%
anthony40ca0b92012-08-02 13:23:28 +00001811% o clone_info: the source image info for options to clone.
cristy3ed852e2009-09-05 21:47:34 +00001812%
1813*/
1814MagickExport MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1815 const ImageInfo *clone_info)
1816{
1817 assert(image_info != (ImageInfo *) NULL);
1818 assert(image_info->signature == MagickSignature);
1819 if (image_info->debug != MagickFalse)
1820 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1821 image_info->filename);
1822 assert(clone_info != (const ImageInfo *) NULL);
1823 assert(clone_info->signature == MagickSignature);
1824 if (clone_info->options != (void *) NULL)
cristy07742872013-07-19 13:43:08 +00001825 {
1826 if (image_info->options != (void *) NULL)
1827 DestroyImageOptions(image_info);
1828 image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options,
1829 (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString);
1830 }
cristy3ed852e2009-09-05 21:47:34 +00001831 return(MagickTrue);
1832}
1833
1834/*
1835%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1836% %
1837% %
1838% %
1839% D e f i n e I m a g e O p t i o n %
1840% %
1841% %
1842% %
1843%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1844%
anthony8ea79832011-10-05 10:08:39 +00001845% DefineImageOption() associates an assignment string of the form
anthony40ca0b92012-08-02 13:23:28 +00001846% "key=value" with a global image option. It is equivelent to
1847% SetImageOption().
cristy3ed852e2009-09-05 21:47:34 +00001848%
1849% The format of the DefineImageOption method is:
1850%
1851% MagickBooleanType DefineImageOption(ImageInfo *image_info,
1852% const char *option)
1853%
1854% A description of each parameter follows:
1855%
1856% o image_info: the image info.
1857%
anthony8ea79832011-10-05 10:08:39 +00001858% o option: the image option assignment string.
cristy3ed852e2009-09-05 21:47:34 +00001859%
1860*/
1861MagickExport MagickBooleanType DefineImageOption(ImageInfo *image_info,
1862 const char *option)
1863{
1864 char
1865 key[MaxTextExtent],
1866 value[MaxTextExtent];
1867
1868 register char
1869 *p;
1870
1871 assert(image_info != (ImageInfo *) NULL);
1872 assert(option != (const char *) NULL);
1873 (void) CopyMagickString(key,option,MaxTextExtent);
1874 for (p=key; *p != '\0'; p++)
1875 if (*p == '=')
1876 break;
1877 *value='\0';
1878 if (*p == '=')
1879 (void) CopyMagickString(value,p+1,MaxTextExtent);
1880 *p='\0';
1881 return(SetImageOption(image_info,key,value));
1882}
1883
1884/*
1885%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1886% %
1887% %
1888% %
1889% D e l e t e I m a g e O p t i o n %
1890% %
1891% %
1892% %
1893%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1894%
anthony40ca0b92012-08-02 13:23:28 +00001895% DeleteImageOption() deletes an key from the global image options.
cristy3ed852e2009-09-05 21:47:34 +00001896%
anthonyebb73a22012-03-22 14:25:52 +00001897% Returns MagickTrue is the option is found and deleted from the Options.
1898%
cristy3ed852e2009-09-05 21:47:34 +00001899% The format of the DeleteImageOption method is:
1900%
1901% MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1902% const char *key)
1903%
1904% A description of each parameter follows:
1905%
1906% o image_info: the image info.
1907%
1908% o option: the image option.
1909%
1910*/
1911MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1912 const char *option)
1913{
1914 assert(image_info != (ImageInfo *) NULL);
1915 assert(image_info->signature == MagickSignature);
1916 if (image_info->debug != MagickFalse)
1917 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1918 image_info->filename);
1919 if (image_info->options == (void *) NULL)
1920 return(MagickFalse);
1921 return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option));
1922}
1923
1924/*
1925%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1926% %
1927% %
1928% %
1929% D e s t r o y I m a g e O p t i o n s %
1930% %
1931% %
1932% %
1933%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1934%
anthony40ca0b92012-08-02 13:23:28 +00001935% DestroyImageOptions() destroys all global options and associated memory
1936% attached to the given image_info image list.
cristy3ed852e2009-09-05 21:47:34 +00001937%
1938% The format of the DestroyDefines method is:
1939%
1940% void DestroyImageOptions(ImageInfo *image_info)
1941%
1942% A description of each parameter follows:
1943%
1944% o image_info: the image info.
1945%
1946*/
1947MagickExport void DestroyImageOptions(ImageInfo *image_info)
1948{
1949 assert(image_info != (ImageInfo *) NULL);
1950 assert(image_info->signature == MagickSignature);
1951 if (image_info->debug != MagickFalse)
1952 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1953 image_info->filename);
1954 if (image_info->options != (void *) NULL)
1955 image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options);
1956}
1957
1958/*
1959%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1960% %
1961% %
1962% %
1963% G e t I m a g e O p t i o n %
1964% %
1965% %
1966% %
1967%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1968%
anthony40ca0b92012-08-02 13:23:28 +00001969% GetImageOption() gets a value associated with the global image options.
1970%
1971% The returned string is a constant string in the tree and should NOT be
1972% freed by the caller.
cristy3ed852e2009-09-05 21:47:34 +00001973%
1974% The format of the GetImageOption method is:
1975%
1976% const char *GetImageOption(const ImageInfo *image_info,
cristye3f77792011-10-07 00:09:09 +00001977% const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001978%
1979% A description of each parameter follows:
1980%
1981% o image_info: the image info.
1982%
cristye3f77792011-10-07 00:09:09 +00001983% o option: the option.
cristy3ed852e2009-09-05 21:47:34 +00001984%
1985*/
1986MagickExport const char *GetImageOption(const ImageInfo *image_info,
anthony7df2b832011-10-06 11:55:25 +00001987 const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001988{
cristy3ed852e2009-09-05 21:47:34 +00001989 assert(image_info != (ImageInfo *) NULL);
1990 assert(image_info->signature == MagickSignature);
1991 if (image_info->debug != MagickFalse)
1992 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1993 image_info->filename);
1994 if (image_info->options == (void *) NULL)
1995 return((const char *) NULL);
cristye3f77792011-10-07 00:09:09 +00001996 return((const char *) GetValueFromSplayTree((SplayTreeInfo *)
1997 image_info->options,option));
cristy3ed852e2009-09-05 21:47:34 +00001998}
1999
2000/*
2001%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2002% %
2003% %
2004% %
cristy042ee782011-04-22 18:48:30 +00002005% 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 +00002006% %
2007% %
2008% %
2009%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2010%
cristy042ee782011-04-22 18:48:30 +00002011% GetCommandOptionFlags() parses a string and returns an enumerated option
2012% flags(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00002013%
cristy042ee782011-04-22 18:48:30 +00002014% The format of the GetCommandOptionFlags method is:
cristy3ed852e2009-09-05 21:47:34 +00002015%
cristy042ee782011-04-22 18:48:30 +00002016% ssize_t GetCommandOptionFlags(const CommandOption option,
2017% const MagickBooleanType list,const char *options)
cristy3ed852e2009-09-05 21:47:34 +00002018%
2019% A description of each parameter follows:
2020%
cristy042ee782011-04-22 18:48:30 +00002021% o option: Index to the option table to lookup
2022%
2023% o list: A option other than zero permits more than one option separated by
2024% a comma or pipe.
2025%
2026% o options: One or more options separated by commas.
cristy3ed852e2009-09-05 21:47:34 +00002027%
2028*/
2029
cristy042ee782011-04-22 18:48:30 +00002030MagickExport ssize_t GetCommandOptionFlags(const CommandOption option,
2031 const MagickBooleanType list,const char *options)
2032{
2033 char
2034 token[MaxTextExtent];
2035
2036 const OptionInfo
2037 *option_info;
2038
2039 int
2040 sentinel;
2041
2042 MagickBooleanType
2043 negate;
2044
2045 register char
2046 *q;
2047
2048 register const char
2049 *p;
2050
2051 register ssize_t
2052 i;
2053
2054 ssize_t
2055 option_types;
2056
2057 option_info=GetOptionInfo(option);
2058 if (option_info == (const OptionInfo *) NULL)
anthonye8f56492012-02-12 12:39:02 +00002059 return(UndefinedOptionFlag);
cristy042ee782011-04-22 18:48:30 +00002060 option_types=0;
2061 sentinel=',';
2062 if (strchr(options,'|') != (char *) NULL)
2063 sentinel='|';
2064 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2065 {
2066 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2067 (*p != '\0'))
2068 p++;
2069 negate=(*p == '!') ? MagickTrue : MagickFalse;
2070 if (negate != MagickFalse)
2071 p++;
2072 q=token;
2073 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2074 (*p != '\0'))
2075 {
cristya0019202011-06-07 13:23:55 +00002076 if ((q-token) >= (MaxTextExtent-1))
cristy042ee782011-04-22 18:48:30 +00002077 break;
2078 *q++=(*p++);
2079 }
2080 *q='\0';
2081 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2082 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2083 {
2084 if (*token == '!')
2085 option_types=option_types &~ option_info[i].flags;
2086 else
2087 option_types=option_types | option_info[i].flags;
2088 break;
2089 }
2090 if ((option_info[i].mnemonic == (char *) NULL) &&
2091 ((strchr(token+1,'-') != (char *) NULL) ||
2092 (strchr(token+1,'_') != (char *) NULL)))
2093 {
2094 while ((q=strchr(token+1,'-')) != (char *) NULL)
2095 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2096 while ((q=strchr(token+1,'_')) != (char *) NULL)
2097 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2098 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2099 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2100 {
2101 if (*token == '!')
2102 option_types=option_types &~ option_info[i].flags;
2103 else
2104 option_types=option_types | option_info[i].flags;
2105 break;
2106 }
2107 }
2108 if (option_info[i].mnemonic == (char *) NULL)
2109 return(-1);
2110 if (list == MagickFalse)
2111 break;
2112 }
2113 return(option_types);
2114}
2115
2116/*
2117%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2118% %
2119% %
2120% %
anthony686b1a32012-02-15 14:50:53 +00002121% G e t C o m m a n d O p t i o n I n f o %
2122% %
2123% %
2124% %
2125%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2126%
2127% GetCommandOptionInfo() returns pointer to the matching OptionInfo entry
2128% for the "CommandOptions" table only. A specialised binary search is used,
2129% to speed up the lookup for that very large table, and returns both the
2130% type (arg count) and flags (arg type).
2131%
anthony643c6132012-11-07 14:50:28 +00002132% This search reduces linear search of over 500 options (250 tests on
anthony686b1a32012-02-15 14:50:53 +00002133% average) to about 10 lookups!
2134%
2135% The format of the GetCommandOptionInfo method is:
2136%
2137% const char **GetCommandOptions(const CommandOption value)
2138%
2139% A description of each parameter follows:
2140%
2141% o value: the value.
2142%
2143*/
2144MagickExport const OptionInfo *GetCommandOptionInfo(const char *value)
2145{
2146 const OptionInfo
2147 *option_info=CommandOptions;
2148
2149 static ssize_t
2150 table_size = 0;
2151
anthony24aa8822012-03-11 00:56:06 +00002152 register int
anthony686b1a32012-02-15 14:50:53 +00002153 i,l,h;
2154
2155 assert(value != (char *) NULL);
2156 assert(*value != '\0');
2157
2158 /* count up table items - first time only */
2159 if ( table_size == 0 )
2160 {
2161 l=-1;
2162 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2163 if ( LocaleCompare(value,option_info[i].mnemonic) == 0 )
2164 l=i;
2165 table_size = i;
anthony24aa8822012-03-11 00:56:06 +00002166 return( &option_info[(l>=0)?l:i] );
anthony686b1a32012-02-15 14:50:53 +00002167 }
2168
2169 /* faster binary search of command table, now that its length is known */
2170 l=0;
anthony668f43a2012-02-20 14:55:32 +00002171 h=table_size;
anthony686b1a32012-02-15 14:50:53 +00002172 while ( l < h )
2173 {
2174 int cmp;
2175 i = (l+h)/2; /* half the bounds */
2176 /* compare string part, then switch character! */
2177 cmp=LocaleCompare(value+1,option_info[i].mnemonic+1);
2178 if ( cmp == 0 )
2179 cmp = *value - *(option_info[i].mnemonic);
anthony668f43a2012-02-20 14:55:32 +00002180#if 0
2181 (void) FormatLocaleFile(stderr,
2182 "%d --- %u < %u < %u --- \"%s\" < \"%s\" < \"%s\"\n",
cristy73380532012-02-18 20:26:28 +00002183 cmp,l,i,h,option_info[l].mnemonic,option_info[i].mnemonic,
2184 option_info[h].mnemonic);
anthony668f43a2012-02-20 14:55:32 +00002185#endif
anthony686b1a32012-02-15 14:50:53 +00002186 if (cmp == 0)
2187 return(&option_info[i]);
2188 if (cmp > 0) l=i+1; else h=i; /* reassign search bounds */
2189 }
2190 /* option was not found in table - return last 'null' entry. */
2191 return(&option_info[table_size]);
2192}
2193
2194/*
2195%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2196% %
2197% %
2198% %
cristy042ee782011-04-22 18:48:30 +00002199% G e t C o m m a n d O p t i o n s %
2200% %
2201% %
2202% %
2203%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2204%
2205% GetCommandOptions() returns a list of values.
2206%
2207% The format of the GetCommandOptions method is:
2208%
2209% const char **GetCommandOptions(const CommandOption value)
2210%
2211% A description of each parameter follows:
2212%
2213% o value: the value.
2214%
2215*/
2216MagickExport char **GetCommandOptions(const CommandOption value)
cristy3ed852e2009-09-05 21:47:34 +00002217{
2218 char
2219 **values;
2220
2221 const OptionInfo
2222 *option_info;
2223
cristybb503372010-05-27 20:51:26 +00002224 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002225 i;
2226
2227 option_info=GetOptionInfo(value);
2228 if (option_info == (const OptionInfo *) NULL)
2229 return((char **) NULL);
2230 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
2231 values=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*values));
2232 if (values == (char **) NULL)
2233 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
2234 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2235 values[i]=AcquireString(option_info[i].mnemonic);
2236 values[i]=(char *) NULL;
2237 return(values);
2238}
2239
2240/*
2241%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2242% %
2243% %
2244% %
2245% G e t N e x t I m a g e O p t i o n %
2246% %
2247% %
2248% %
2249%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2250%
anthony40ca0b92012-08-02 13:23:28 +00002251% GetNextImageOption() gets the next global option value.
cristy3ed852e2009-09-05 21:47:34 +00002252%
2253% The format of the GetNextImageOption method is:
2254%
2255% char *GetNextImageOption(const ImageInfo *image_info)
2256%
2257% A description of each parameter follows:
2258%
2259% o image_info: the image info.
2260%
2261*/
2262MagickExport char *GetNextImageOption(const ImageInfo *image_info)
2263{
2264 assert(image_info != (ImageInfo *) NULL);
2265 assert(image_info->signature == MagickSignature);
2266 if (image_info->debug != MagickFalse)
2267 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2268 image_info->filename);
2269 if (image_info->options == (void *) NULL)
2270 return((char *) NULL);
2271 return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options));
2272}
2273
2274/*
2275%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2276% %
2277% %
2278% %
cristy042ee782011-04-22 18:48:30 +00002279% I s C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002280% %
2281% %
2282% %
2283%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2284%
cristy042ee782011-04-22 18:48:30 +00002285% IsCommandOption() returns MagickTrue if the option begins with a - or + and
cristy3ed852e2009-09-05 21:47:34 +00002286% the first character that follows is alphanumeric.
2287%
cristy042ee782011-04-22 18:48:30 +00002288% The format of the IsCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002289%
cristy042ee782011-04-22 18:48:30 +00002290% MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002291%
2292% A description of each parameter follows:
2293%
2294% o option: the option.
2295%
2296*/
cristy042ee782011-04-22 18:48:30 +00002297MagickExport MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002298{
2299 assert(option != (const char *) NULL);
2300 if ((*option != '-') && (*option != '+'))
2301 return(MagickFalse);
2302 if (strlen(option) == 1)
anthonye5b39652012-04-21 05:37:29 +00002303 return(IsMagickTrue( (*option == '{') || (*option == '}')
2304 || (*option == '[') || (*option == ']') ));
cristy3ed852e2009-09-05 21:47:34 +00002305 option++;
anthonye5b39652012-04-21 05:37:29 +00002306 if (*option == '-')
2307 return(MagickTrue);
cristy3ed852e2009-09-05 21:47:34 +00002308 if (isalpha((int) ((unsigned char) *option)) == 0)
2309 return(MagickFalse);
2310 return(MagickTrue);
2311}
2312
2313/*
2314%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2315% %
2316% %
2317% %
cristy042ee782011-04-22 18:48:30 +00002318% 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 +00002319% %
2320% %
2321% %
2322%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2323%
cristy042ee782011-04-22 18:48:30 +00002324% CommandOptionToMnemonic() returns an enumerated value as a mnemonic.
cristy3ed852e2009-09-05 21:47:34 +00002325%
cristy042ee782011-04-22 18:48:30 +00002326% The format of the CommandOptionToMnemonic method is:
cristy3ed852e2009-09-05 21:47:34 +00002327%
cristy042ee782011-04-22 18:48:30 +00002328% const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002329% const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002330%
2331% A description of each parameter follows:
2332%
2333% o option: the option.
2334%
2335% o type: one or more values separated by commas.
2336%
2337*/
cristy042ee782011-04-22 18:48:30 +00002338MagickExport const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002339 const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002340{
2341 const OptionInfo
2342 *option_info;
2343
cristybb503372010-05-27 20:51:26 +00002344 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002345 i;
2346
2347 option_info=GetOptionInfo(option);
2348 if (option_info == (const OptionInfo *) NULL)
2349 return((const char *) NULL);
2350 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2351 if (type == option_info[i].type)
2352 break;
2353 if (option_info[i].mnemonic == (const char *) NULL)
2354 return("undefined");
2355 return(option_info[i].mnemonic);
2356}
2357
2358/*
2359%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2360% %
2361% %
2362% %
cristy042ee782011-04-22 18:48:30 +00002363% L i s t C o m m a n d O p t i o n s %
cristy3ed852e2009-09-05 21:47:34 +00002364% %
2365% %
2366% %
2367%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2368%
cristy042ee782011-04-22 18:48:30 +00002369% ListCommandOptions() lists the contents of enumerated option type(s).
cristy3ed852e2009-09-05 21:47:34 +00002370%
cristy042ee782011-04-22 18:48:30 +00002371% The format of the ListCommandOptions method is:
cristy3ed852e2009-09-05 21:47:34 +00002372%
cristy2b9582a2011-07-04 17:38:56 +00002373% MagickBooleanType ListCommandOptions(FILE *file,
2374% const CommandOption option,ExceptionInfo *exception)
cristy3ed852e2009-09-05 21:47:34 +00002375%
2376% A description of each parameter follows:
2377%
2378% o file: list options to this file handle.
2379%
2380% o option: list these options.
2381%
2382% o exception: return any errors or warnings in this structure.
2383%
2384*/
cristy042ee782011-04-22 18:48:30 +00002385MagickExport MagickBooleanType ListCommandOptions(FILE *file,
2386 const CommandOption option,ExceptionInfo *magick_unused(exception))
cristy3ed852e2009-09-05 21:47:34 +00002387{
2388 const OptionInfo
2389 *option_info;
2390
cristybb503372010-05-27 20:51:26 +00002391 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002392 i;
2393
2394 if (file == (FILE *) NULL)
2395 file=stdout;
2396 option_info=GetOptionInfo(option);
2397 if (option_info == (const OptionInfo *) NULL)
2398 return(MagickFalse);
2399 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2400 {
2401 if (option_info[i].stealth != MagickFalse)
2402 continue;
cristyb51dff52011-05-19 16:55:47 +00002403 (void) FormatLocaleFile(file,"%s\n",option_info[i].mnemonic);
cristy3ed852e2009-09-05 21:47:34 +00002404 }
2405 return(MagickTrue);
2406}
2407
2408/*
2409%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2410% %
2411% %
2412% %
2413% P a r s e C h a n n e l O p t i o n %
2414% %
2415% %
2416% %
2417%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2418%
2419% ParseChannelOption() parses a string and returns an enumerated channel
2420% type(s).
2421%
2422% The format of the ParseChannelOption method is:
2423%
cristybb503372010-05-27 20:51:26 +00002424% ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002425%
2426% A description of each parameter follows:
2427%
2428% o options: One or more values separated by commas.
2429%
2430*/
cristybb503372010-05-27 20:51:26 +00002431MagickExport ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002432{
cristybb503372010-05-27 20:51:26 +00002433 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002434 i;
2435
cristyb9902b72010-10-05 18:21:50 +00002436 ssize_t
2437 channel;
2438
cristy042ee782011-04-22 18:48:30 +00002439 channel=ParseCommandOption(MagickChannelOptions,MagickTrue,channels);
cristy3ed852e2009-09-05 21:47:34 +00002440 if (channel >= 0)
2441 return(channel);
2442 channel=0;
cristybb503372010-05-27 20:51:26 +00002443 for (i=0; i < (ssize_t) strlen(channels); i++)
cristy3ed852e2009-09-05 21:47:34 +00002444 {
2445 switch (channels[i])
2446 {
2447 case 'A':
2448 case 'a':
2449 {
cristy953c4bd2012-02-24 01:04:04 +00002450 channel|=AlphaChannel;
cristy3ed852e2009-09-05 21:47:34 +00002451 break;
2452 }
2453 case 'B':
2454 case 'b':
2455 {
2456 channel|=BlueChannel;
2457 break;
2458 }
2459 case 'C':
2460 case 'c':
2461 {
2462 channel|=CyanChannel;
2463 break;
2464 }
2465 case 'g':
2466 case 'G':
2467 {
2468 channel|=GreenChannel;
2469 break;
2470 }
cristy3ed852e2009-09-05 21:47:34 +00002471 case 'K':
2472 case 'k':
2473 {
2474 channel|=BlackChannel;
2475 break;
2476 }
2477 case 'M':
2478 case 'm':
2479 {
2480 channel|=MagentaChannel;
2481 break;
2482 }
2483 case 'o':
2484 case 'O':
2485 {
anthony30b912a2012-03-22 01:20:28 +00002486 channel|=AlphaChannel; /* depreciate */
cristy3ed852e2009-09-05 21:47:34 +00002487 break;
2488 }
2489 case 'R':
2490 case 'r':
2491 {
2492 channel|=RedChannel;
2493 break;
2494 }
2495 case 'Y':
2496 case 'y':
2497 {
2498 channel|=YellowChannel;
2499 break;
2500 }
2501 case ',':
2502 {
cristybb503372010-05-27 20:51:26 +00002503 ssize_t
cristy3e4015d2010-10-05 18:18:56 +00002504 type;
2505
2506 /*
2507 Gather the additional channel flags and merge with shorthand.
2508 */
cristy042ee782011-04-22 18:48:30 +00002509 type=ParseCommandOption(MagickChannelOptions,MagickTrue,channels+i+1);
cristy3e4015d2010-10-05 18:18:56 +00002510 if (type < 0)
2511 return(type);
2512 channel|=type;
cristy3ed852e2009-09-05 21:47:34 +00002513 return(channel);
2514 }
2515 default:
2516 return(-1);
2517 }
2518 }
2519 return(channel);
2520}
2521
2522/*
2523%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2524% %
2525% %
2526% %
cristy042ee782011-04-22 18:48:30 +00002527% P a r s e C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002528% %
2529% %
2530% %
2531%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2532%
cristy042ee782011-04-22 18:48:30 +00002533% ParseCommandOption() parses a string and returns an enumerated option
anthonyce2716b2011-04-22 09:51:34 +00002534% type(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00002535%
cristy042ee782011-04-22 18:48:30 +00002536% The format of the ParseCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002537%
anthony31f1bf72012-01-30 12:37:22 +00002538% ssize_t ParseCommandOption(const CommandOption option_table,
cristy3ed852e2009-09-05 21:47:34 +00002539% const MagickBooleanType list,const char *options)
2540%
2541% A description of each parameter follows:
2542%
anthony31f1bf72012-01-30 12:37:22 +00002543% o option_table: Index to the option table to lookup
cristy3ed852e2009-09-05 21:47:34 +00002544%
2545% o list: A option other than zero permits more than one option separated by
2546% a comma or pipe.
2547%
2548% o options: One or more options separated by commas.
2549%
2550*/
anthony31f1bf72012-01-30 12:37:22 +00002551MagickExport ssize_t ParseCommandOption(const CommandOption option_table,
cristy3ed852e2009-09-05 21:47:34 +00002552 const MagickBooleanType list,const char *options)
2553{
2554 char
2555 token[MaxTextExtent];
2556
2557 const OptionInfo
2558 *option_info;
2559
2560 int
2561 sentinel;
2562
cristy3ed852e2009-09-05 21:47:34 +00002563 MagickBooleanType
2564 negate;
2565
2566 register char
2567 *q;
2568
2569 register const char
2570 *p;
2571
cristybb503372010-05-27 20:51:26 +00002572 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002573 i;
2574
cristyb9902b72010-10-05 18:21:50 +00002575 ssize_t
2576 option_types;
2577
anthony31f1bf72012-01-30 12:37:22 +00002578 option_info=GetOptionInfo(option_table);
cristy3ed852e2009-09-05 21:47:34 +00002579 if (option_info == (const OptionInfo *) NULL)
2580 return(-1);
2581 option_types=0;
2582 sentinel=',';
2583 if (strchr(options,'|') != (char *) NULL)
2584 sentinel='|';
2585 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2586 {
2587 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2588 (*p != '\0'))
2589 p++;
2590 negate=(*p == '!') ? MagickTrue : MagickFalse;
2591 if (negate != MagickFalse)
2592 p++;
2593 q=token;
2594 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2595 (*p != '\0'))
2596 {
cristya0019202011-06-07 13:23:55 +00002597 if ((q-token) >= (MaxTextExtent-1))
cristy3ed852e2009-09-05 21:47:34 +00002598 break;
2599 *q++=(*p++);
2600 }
2601 *q='\0';
2602 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2603 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2604 {
2605 if (*token == '!')
2606 option_types=option_types &~ option_info[i].type;
2607 else
2608 option_types=option_types | option_info[i].type;
2609 break;
2610 }
2611 if ((option_info[i].mnemonic == (char *) NULL) &&
2612 ((strchr(token+1,'-') != (char *) NULL) ||
2613 (strchr(token+1,'_') != (char *) NULL)))
2614 {
2615 while ((q=strchr(token+1,'-')) != (char *) NULL)
2616 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2617 while ((q=strchr(token+1,'_')) != (char *) NULL)
2618 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2619 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2620 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2621 {
2622 if (*token == '!')
2623 option_types=option_types &~ option_info[i].type;
2624 else
2625 option_types=option_types | option_info[i].type;
2626 break;
2627 }
2628 }
2629 if (option_info[i].mnemonic == (char *) NULL)
2630 return(-1);
2631 if (list == MagickFalse)
2632 break;
2633 }
2634 return(option_types);
2635}
2636
2637/*
2638%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2639% %
2640% %
2641% %
cristy953c4bd2012-02-24 01:04:04 +00002642% P a r s e P i x e l C h a n n e l O p t i o n %
2643% %
2644% %
2645% %
2646%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2647%
2648% ParsePixelChannelOption() parses a string and returns an enumerated pixel
2649% channel type(s).
2650%
2651% The format of the ParsePixelChannelOption method is:
2652%
2653% ssize_t ParsePixelChannelOption(const char *channels)
2654%
2655% A description of each parameter follows:
2656%
cristyd04e7bf2012-03-03 19:19:12 +00002657% o channels: One or more channels separated by commas.
cristy953c4bd2012-02-24 01:04:04 +00002658%
2659*/
2660MagickExport ssize_t ParsePixelChannelOption(const char *channels)
2661{
cristyd04e7bf2012-03-03 19:19:12 +00002662 char
cristya15140f2012-03-04 01:21:15 +00002663 *q,
2664 token[MaxTextExtent];
cristy953c4bd2012-02-24 01:04:04 +00002665
2666 ssize_t
2667 channel;
2668
cristya15140f2012-03-04 01:21:15 +00002669 GetMagickToken(channels,NULL,token);
cristyd4311d42012-03-18 23:03:10 +00002670 if ((*token == ';') || (*token == '|'))
2671 return(RedPixelChannel);
cristya15140f2012-03-04 01:21:15 +00002672 channel=ParseCommandOption(MagickPixelChannelOptions,MagickTrue,token);
cristy953c4bd2012-02-24 01:04:04 +00002673 if (channel >= 0)
2674 return(channel);
cristya15140f2012-03-04 01:21:15 +00002675 q=(char *) token;
2676 channel=InterpretLocaleValue(token,&q);
cristyabb241b2012-03-06 01:12:58 +00002677 if ((q == token) || (channel < 0) || (channel >= MaxPixelChannels))
cristyd04e7bf2012-03-03 19:19:12 +00002678 return(-1);
cristy953c4bd2012-02-24 01:04:04 +00002679 return(channel);
2680}
2681
2682/*
2683%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2684% %
2685% %
2686% %
cristy3ed852e2009-09-05 21:47:34 +00002687% R e m o v e I m a g e O p t i o n %
2688% %
2689% %
2690% %
2691%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2692%
2693% RemoveImageOption() removes an option from the image and returns its value.
2694%
anthony40ca0b92012-08-02 13:23:28 +00002695% In this case the ConstantString() value returned should be freed by the
2696% caller when finished.
2697%
cristy3ed852e2009-09-05 21:47:34 +00002698% The format of the RemoveImageOption method is:
2699%
2700% char *RemoveImageOption(ImageInfo *image_info,const char *option)
2701%
2702% A description of each parameter follows:
2703%
2704% o image_info: the image info.
2705%
2706% o option: the image option.
2707%
2708*/
2709MagickExport char *RemoveImageOption(ImageInfo *image_info,const char *option)
2710{
2711 char
2712 *value;
2713
2714 assert(image_info != (ImageInfo *) NULL);
2715 assert(image_info->signature == MagickSignature);
2716 if (image_info->debug != MagickFalse)
2717 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2718 image_info->filename);
2719 if (image_info->options == (void *) NULL)
2720 return((char *) NULL);
2721 value=(char *) RemoveNodeFromSplayTree((SplayTreeInfo *)
2722 image_info->options,option);
2723 return(value);
2724}
2725
2726/*
2727%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2728% %
2729% %
2730% %
2731% R e s e t I m a g e O p t i o n %
2732% %
2733% %
2734% %
2735%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2736%
2737% ResetImageOptions() resets the image_info option. That is, it deletes
anthony40ca0b92012-08-02 13:23:28 +00002738% all global options associated with the image_info structure.
cristy3ed852e2009-09-05 21:47:34 +00002739%
2740% The format of the ResetImageOptions method is:
2741%
2742% ResetImageOptions(ImageInfo *image_info)
2743%
2744% A description of each parameter follows:
2745%
2746% o image_info: the image info.
2747%
2748*/
2749MagickExport void ResetImageOptions(const ImageInfo *image_info)
2750{
2751 assert(image_info != (ImageInfo *) NULL);
2752 assert(image_info->signature == MagickSignature);
2753 if (image_info->debug != MagickFalse)
2754 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2755 image_info->filename);
2756 if (image_info->options == (void *) NULL)
2757 return;
2758 ResetSplayTree((SplayTreeInfo *) image_info->options);
2759}
2760
2761/*
2762%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2763% %
2764% %
2765% %
2766% R e s e t I m a g e O p t i o n I t e r a t o r %
2767% %
2768% %
2769% %
2770%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2771%
2772% ResetImageOptionIterator() resets the image_info values iterator. Use it
2773% in conjunction with GetNextImageOption() to iterate over all the values
2774% associated with an image option.
2775%
2776% The format of the ResetImageOptionIterator method is:
2777%
2778% ResetImageOptionIterator(ImageInfo *image_info)
2779%
2780% A description of each parameter follows:
2781%
2782% o image_info: the image info.
2783%
2784*/
2785MagickExport void ResetImageOptionIterator(const ImageInfo *image_info)
2786{
2787 assert(image_info != (ImageInfo *) NULL);
2788 assert(image_info->signature == MagickSignature);
2789 if (image_info->debug != MagickFalse)
2790 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2791 image_info->filename);
2792 if (image_info->options == (void *) NULL)
2793 return;
2794 ResetSplayTreeIterator((SplayTreeInfo *) image_info->options);
2795}
2796
2797/*
2798%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2799% %
2800% %
2801% %
2802% S e t I m a g e O p t i o n %
2803% %
2804% %
2805% %
2806%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2807%
2808% SetImageOption() associates an value with an image option.
2809%
2810% The format of the SetImageOption method is:
2811%
2812% MagickBooleanType SetImageOption(ImageInfo *image_info,
2813% const char *option,const char *value)
2814%
2815% A description of each parameter follows:
2816%
2817% o image_info: the image info.
2818%
2819% o option: the image option.
2820%
2821% o values: the image option values.
2822%
2823*/
2824MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info,
2825 const char *option,const char *value)
2826{
cristy3ed852e2009-09-05 21:47:34 +00002827 assert(image_info != (ImageInfo *) NULL);
2828 assert(image_info->signature == MagickSignature);
2829 if (image_info->debug != MagickFalse)
2830 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2831 image_info->filename);
cristyc96a1ba2013-03-28 13:05:04 +00002832 /*
2833 Specific global option settings.
2834 */
anthonya322a832013-04-27 06:28:03 +00002835 if (LocaleCompare(option,"size") == 0) {
cristy3ed852e2009-09-05 21:47:34 +00002836 (void) CloneString(&image_info->size,value);
anthonya322a832013-04-27 06:28:03 +00002837 return(MagickTrue);
2838 }
cristyc96a1ba2013-03-28 13:05:04 +00002839 /*
2840 Create tree if needed - specify how key,values are to be freed.
2841 */
cristy3ed852e2009-09-05 21:47:34 +00002842 if (image_info->options == (void *) NULL)
2843 image_info->options=NewSplayTree(CompareSplayTreeString,
2844 RelinquishMagickMemory,RelinquishMagickMemory);
cristyc96a1ba2013-03-28 13:05:04 +00002845 /*
2846 Delete Option if NULL -- empty string values are valid!
2847 */
anthonyd181ea02011-10-12 07:44:13 +00002848 if (value == (const char *) NULL)
2849 return(DeleteImageOption(image_info,option));
cristyc96a1ba2013-03-28 13:05:04 +00002850 /*
2851 Add option to splay-tree.
2852 */
cristye3f77792011-10-07 00:09:09 +00002853 return(AddValueToSplayTree((SplayTreeInfo *) image_info->options,
2854 ConstantString(option),ConstantString(value)));
cristy3ed852e2009-09-05 21:47:34 +00002855}