option.c revision 6180838cb97473afec7c383da0a4df02f2a29f40
1/* 2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 3% % 4% % 5% % 6% OOO PPPP TTTTT IIIII OOO N N % 7% O O P P T I O O NN N % 8% O O PPPP T I O O N N N % 9% O O P T I O O N NN % 10% OOO P T IIIII OOO N N % 11% % 12% % 13% MagickCore Option Methods % 14% % 15% Software Design % 16% John Cristy % 17% March 2000 % 18% % 19% % 20% Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization % 21% 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*/ 43#include "MagickCore/studio.h" 44#include "MagickCore/artifact.h" 45#include "MagickCore/cache.h" 46#include "MagickCore/color.h" 47#include "MagickCore/compare.h" 48#include "MagickCore/constitute.h" 49#include "MagickCore/distort.h" 50#include "MagickCore/draw.h" 51#include "MagickCore/effect.h" 52#include "MagickCore/exception.h" 53#include "MagickCore/exception-private.h" 54#include "MagickCore/fx.h" 55#include "MagickCore/gem.h" 56#include "MagickCore/geometry.h" 57#include "MagickCore/image.h" 58#include "MagickCore/image-private.h" 59#include "MagickCore/layer.h" 60#include "MagickCore/mime-private.h" 61#include "MagickCore/memory_.h" 62#include "MagickCore/monitor.h" 63#include "MagickCore/montage.h" 64#include "MagickCore/morphology.h" 65#include "MagickCore/option.h" 66#include "MagickCore/policy.h" 67#include "MagickCore/property.h" 68#include "MagickCore/quantize.h" 69#include "MagickCore/quantum.h" 70#include "MagickCore/resample.h" 71#include "MagickCore/resource_.h" 72#include "MagickCore/splay-tree.h" 73#include "MagickCore/statistic.h" 74#include "MagickCore/string_.h" 75#include "MagickCore/token.h" 76#include "MagickCore/utility.h" 77 78/* 79 ImageMagick options. 80*/ 81static const OptionInfo 82 AlignOptions[] = 83 { 84 { "Undefined", UndefinedAlign, UndefinedOptionFlag, MagickTrue }, 85 { "Center", CenterAlign, UndefinedOptionFlag, MagickFalse }, 86 { "End", RightAlign, UndefinedOptionFlag, MagickFalse }, 87 { "Left", LeftAlign, UndefinedOptionFlag, MagickFalse }, 88 { "Middle", CenterAlign, UndefinedOptionFlag, MagickFalse }, 89 { "Right", RightAlign, UndefinedOptionFlag, MagickFalse }, 90 { "Start", LeftAlign, UndefinedOptionFlag, MagickFalse }, 91 { (char *) NULL, UndefinedAlign, UndefinedOptionFlag, MagickFalse } 92 }, 93 AlphaOptions[] = 94 { 95 { "Undefined", UndefinedAlphaChannel, UndefinedOptionFlag, MagickTrue }, 96 { "Activate", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse }, 97 { "Background", BackgroundAlphaChannel, UndefinedOptionFlag, MagickFalse }, 98 { "Copy", CopyAlphaChannel, UndefinedOptionFlag, MagickFalse }, 99 { "Deactivate", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse }, 100 { "Extract", ExtractAlphaChannel, UndefinedOptionFlag, MagickFalse }, 101 { "Off", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse }, 102 { "On", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse }, 103 { "Opaque", OpaqueAlphaChannel, UndefinedOptionFlag, MagickFalse }, 104 { "Remove", RemoveAlphaChannel, UndefinedOptionFlag, MagickFalse }, 105 { "Set", SetAlphaChannel, UndefinedOptionFlag, MagickFalse }, 106 { "Shape", ShapeAlphaChannel, UndefinedOptionFlag, MagickFalse }, 107 { "Reset", SetAlphaChannel, DeprecateOptionFlag, MagickTrue }, 108 { "Transparent", TransparentAlphaChannel, UndefinedOptionFlag, MagickFalse }, 109 { (char *) NULL, UndefinedAlphaChannel, UndefinedOptionFlag, MagickFalse } 110 }, 111 BooleanOptions[] = 112 { 113 { "False", MagickFalse, UndefinedOptionFlag, MagickFalse }, 114 { "True", MagickTrue, UndefinedOptionFlag, MagickFalse }, 115 { "0", MagickFalse, UndefinedOptionFlag, MagickFalse }, 116 { "1", MagickTrue, UndefinedOptionFlag, MagickFalse }, 117 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse } 118 }, 119 ChannelOptions[] = 120 { 121 { "Undefined", UndefinedChannel, UndefinedOptionFlag, MagickTrue }, 122 { "All", CompositeChannels, UndefinedOptionFlag, MagickFalse }, 123 { "Alpha", OpacityChannel, UndefinedOptionFlag, MagickFalse }, 124 { "Black", BlackChannel, UndefinedOptionFlag, MagickFalse }, 125 { "Blue", BlueChannel, UndefinedOptionFlag, MagickFalse }, 126 { "Cyan", CyanChannel, UndefinedOptionFlag, MagickFalse }, 127 { "Default", DefaultChannels, UndefinedOptionFlag, MagickFalse }, 128 { "Gray", GrayChannel, UndefinedOptionFlag, MagickFalse }, 129 { "Green", GreenChannel, UndefinedOptionFlag, MagickFalse }, 130 { "Hue", RedChannel, UndefinedOptionFlag, MagickFalse }, 131 { "Lightness", BlueChannel, UndefinedOptionFlag, MagickFalse }, 132 { "Luminance", BlueChannel, UndefinedOptionFlag, MagickFalse }, 133 { "Luminosity", BlueChannel, DeprecateOptionFlag, MagickTrue }, 134 { "Magenta", MagentaChannel, UndefinedOptionFlag, MagickFalse }, 135 { "Matte", OpacityChannel, UndefinedOptionFlag, MagickFalse }, 136 { "Opacity", OpacityChannel, UndefinedOptionFlag, MagickFalse }, 137 { "Red", RedChannel, UndefinedOptionFlag, MagickFalse }, 138 { "Saturation", GreenChannel, UndefinedOptionFlag, MagickFalse }, 139 { "Yellow", YellowChannel, UndefinedOptionFlag, MagickFalse }, 140 { "Sync", SyncChannels, UndefinedOptionFlag, MagickFalse }, 141 { (char *) NULL, UndefinedChannel, UndefinedOptionFlag, MagickFalse } 142 }, 143 ClassOptions[] = 144 { 145 { "Undefined", UndefinedClass, UndefinedOptionFlag, MagickTrue }, 146 { "DirectClass", DirectClass, UndefinedOptionFlag, MagickFalse }, 147 { "PseudoClass", PseudoClass, UndefinedOptionFlag, MagickFalse }, 148 { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse } 149 }, 150 ClipPathOptions[] = 151 { 152 { "Undefined", UndefinedPathUnits, UndefinedOptionFlag, MagickTrue }, 153 { "ObjectBoundingBox", ObjectBoundingBox, UndefinedOptionFlag, MagickFalse }, 154 { "UserSpace", UserSpace, UndefinedOptionFlag, MagickFalse }, 155 { "UserSpaceOnUse", UserSpaceOnUse, UndefinedOptionFlag, MagickFalse }, 156 { (char *) NULL, UndefinedPathUnits, UndefinedOptionFlag, MagickFalse } 157 }, 158 CommandOptions[] = 159 { 160 { "+adjoin", 0L, ImageInfoOptionFlag, MagickFalse }, 161 { "-adjoin", 0L, ImageInfoOptionFlag, MagickFalse }, 162 { "+adaptive-blur", 1L, DeprecateOptionFlag, MagickTrue }, 163 { "-adaptive-blur", 1L, SimpleOperatorOptionFlag, MagickFalse }, 164 { "+adaptive-resize", 1L, DeprecateOptionFlag, MagickTrue }, 165 { "-adaptive-resize", 1L, SimpleOperatorOptionFlag, MagickFalse }, 166 { "+adaptive-sharpen", 1L, DeprecateOptionFlag, MagickTrue }, 167 { "-adaptive-sharpen", 1L, SimpleOperatorOptionFlag, MagickFalse }, 168 { "+affine", 0L, DrawInfoOptionFlag | DeprecateOptionFlag, MagickTrue }, 169 { "-affine", 1L, DrawInfoOptionFlag | DeprecateOptionFlag, MagickTrue }, 170 { "+affinity", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 171 { "-affinity", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 172 { "+alpha", 1L, DeprecateOptionFlag, MagickTrue }, 173 { "-alpha", 1L, SimpleOperatorOptionFlag, MagickFalse }, 174 { "+annotate", 0L, DeprecateOptionFlag, MagickTrue }, 175 { "-annotate", 2L, SimpleOperatorOptionFlag, MagickFalse }, 176 { "+antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 177 { "-antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 178 { "+append", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 179 { "-append", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 180 { "+attenuate", 0L, ImageInfoOptionFlag, MagickFalse }, 181 { "-attenuate", 0L, ImageInfoOptionFlag, MagickFalse }, 182 { "+authenticate", 0L, ImageInfoOptionFlag, MagickFalse }, 183 { "-authenticate", 1L, ImageInfoOptionFlag, MagickFalse }, 184 { "+auto-gamma", 0L, DeprecateOptionFlag, MagickTrue }, 185 { "-auto-gamma", 0L, SimpleOperatorOptionFlag, MagickFalse }, 186 { "+auto-level", 0L, DeprecateOptionFlag, MagickTrue }, 187 { "-auto-level", 0L, SimpleOperatorOptionFlag, MagickFalse }, 188 { "+auto-orient", 0L, DeprecateOptionFlag, MagickTrue }, 189 { "-auto-orient", 0L, SimpleOperatorOptionFlag, MagickFalse }, 190 { "+average", 0L, ListOperatorOptionFlag | FireOptionFlag | DeprecateOptionFlag, MagickTrue }, 191 { "-average", 0L, ListOperatorOptionFlag | FireOptionFlag | DeprecateOptionFlag, MagickTrue }, 192 { "+backdrop", 0L, NonConvertOptionFlag, MagickFalse }, 193 { "-backdrop", 1L, NonConvertOptionFlag, MagickFalse }, 194 { "+background", 0L, ImageInfoOptionFlag, MagickFalse }, 195 { "-background", 1L, ImageInfoOptionFlag, MagickFalse }, 196 { "+bench", 0L, GenesisOptionFlag, MagickFalse }, 197 { "-bench", 1L, GenesisOptionFlag, MagickFalse }, 198 { "+bias", 0L, ImageInfoOptionFlag, MagickFalse }, 199 { "-bias", 1L, ImageInfoOptionFlag, MagickFalse }, 200 { "+black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse }, 201 { "-black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse }, 202 { "+black-threshold", 0L, DeprecateOptionFlag, MagickTrue }, 203 { "-black-threshold", 1L, SimpleOperatorOptionFlag, MagickFalse }, 204 { "+blend", 0L, NonConvertOptionFlag, MagickFalse }, 205 { "-blend", 1L, NonConvertOptionFlag, MagickFalse }, 206 { "+blue-primary", 0L, ImageInfoOptionFlag, MagickFalse }, 207 { "-blue-primary", 1L, ImageInfoOptionFlag, MagickFalse }, 208 { "+blue-shift", 1L, SimpleOperatorOptionFlag, MagickFalse }, 209 { "-blue-shift", 1L, SimpleOperatorOptionFlag, MagickFalse }, 210 { "+blur", 0L, DeprecateOptionFlag, MagickTrue }, 211 { "-blur", 1L, SimpleOperatorOptionFlag, MagickFalse }, 212 { "+border", 1L, DeprecateOptionFlag, MagickTrue }, 213 { "-border", 1L, SimpleOperatorOptionFlag, MagickFalse }, 214 { "+bordercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 215 { "-bordercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 216 { "+borderwidth", 0L, NonConvertOptionFlag, MagickFalse }, 217 { "-borderwidth", 1L, NonConvertOptionFlag, MagickFalse }, 218 { "+box", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag | DeprecateOptionFlag, MagickTrue }, 219 { "-box", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag | DeprecateOptionFlag, MagickTrue }, 220 { "+brightness-contrast", 0L, DeprecateOptionFlag, MagickTrue }, 221 { "-brightness-contrast", 1L, SimpleOperatorOptionFlag, MagickFalse }, 222 { "+cache", 0L, GlobalOptionFlag, MagickFalse }, 223 { "-cache", 1L, GlobalOptionFlag, MagickFalse }, 224 { "+caption", 0L, ImageInfoOptionFlag, MagickFalse }, 225 { "-caption", 1L, ImageInfoOptionFlag, MagickFalse }, 226 { "+cdl", 1L, DeprecateOptionFlag, MagickTrue }, 227 { "-cdl", 1L, SimpleOperatorOptionFlag, MagickFalse }, 228 { "+channel", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 229 { "-channel", 1L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 230 { "+charcoal", 0L, DeprecateOptionFlag, MagickTrue }, 231 { "-charcoal", 0L, SimpleOperatorOptionFlag, MagickFalse }, 232 { "+chop", 1L, DeprecateOptionFlag, MagickTrue }, 233 { "-chop", 1L, SimpleOperatorOptionFlag, MagickFalse }, 234 { "+clamp", 0L, DeprecateOptionFlag, MagickTrue }, 235 { "-clamp", 0L, SimpleOperatorOptionFlag, MagickFalse }, 236 { "+clip", 0L, SimpleOperatorOptionFlag, MagickFalse }, 237 { "-clip", 0L, SimpleOperatorOptionFlag, MagickFalse }, 238 { "+clip-mask", 0L, SimpleOperatorOptionFlag, MagickFalse }, 239 { "-clip-mask", 1L, SimpleOperatorOptionFlag, MagickFalse }, 240 { "+clip-path", 1L, SimpleOperatorOptionFlag, MagickFalse }, 241 { "-clip-path", 1L, SimpleOperatorOptionFlag, MagickFalse }, 242 { "+clone", 0L, SpecialOperatorOptionFlag, MagickFalse }, 243 { "-clone", 1L, SpecialOperatorOptionFlag, MagickFalse }, 244 { "+clut", 0L, FireOptionFlag | DeprecateOptionFlag, MagickTrue }, 245 { "-clut", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 246 { "+coalesce", 0L, FireOptionFlag | DeprecateOptionFlag, MagickTrue }, 247 { "-coalesce", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 248 { "+colorize", 1L, DeprecateOptionFlag, MagickTrue }, 249 { "-colorize", 1L, SimpleOperatorOptionFlag, MagickFalse }, 250 { "+colormap", 0L, NonConvertOptionFlag, MagickFalse }, 251 { "-colormap", 1L, NonConvertOptionFlag, MagickFalse }, 252 { "+color-matrix", 1L, DeprecateOptionFlag, MagickTrue }, 253 { "-color-matrix", 1L, SimpleOperatorOptionFlag, MagickFalse }, 254 { "+colors", 1L, DeprecateOptionFlag, MagickTrue }, 255 { "-colors", 1L, ImageInfoOptionFlag, MagickFalse }, 256 { "+colorspace", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 257 { "-colorspace", 1L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 258 { "+combine", 0L, FireOptionFlag | DeprecateOptionFlag, MagickTrue }, 259 { "-combine", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 260 { "+comment", 0L, ImageInfoOptionFlag, MagickFalse }, 261 { "-comment", 1L, ImageInfoOptionFlag, MagickFalse }, 262 { "+compose", 0L, ImageInfoOptionFlag, MagickFalse }, 263 { "-compose", 1L, ImageInfoOptionFlag, MagickFalse }, 264 { "+composite", 0L, FireOptionFlag | DeprecateOptionFlag, MagickTrue }, 265 { "-composite", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 266 { "+compress", 0L, ImageInfoOptionFlag, MagickFalse }, 267 { "-compress", 1L, ImageInfoOptionFlag, MagickFalse }, 268 { "+concurrent", 0L, GenesisOptionFlag, MagickTrue }, 269 { "-concurrent", 0L, GenesisOptionFlag, MagickTrue }, 270 { "+contrast", 0L, SimpleOperatorOptionFlag, MagickFalse }, 271 { "-contrast", 0L, SimpleOperatorOptionFlag, MagickFalse }, 272 { "+contrast-stretch", 1L, DeprecateOptionFlag, MagickTrue }, 273 { "-contrast-stretch", 1L, SimpleOperatorOptionFlag, MagickFalse }, 274 { "+convolve", 1L, DeprecateOptionFlag, MagickTrue }, 275 { "-convolve", 1L, SimpleOperatorOptionFlag, MagickFalse }, 276 { "+crop", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 277 { "-crop", 1L, SimpleOperatorOptionFlag | FireOptionFlag, MagickFalse }, 278 { "+cycle", 1L, DeprecateOptionFlag, MagickTrue }, 279 { "-cycle", 1L, SimpleOperatorOptionFlag, MagickFalse }, 280 { "+debug", 0L, GlobalOptionFlag|GenesisOptionFlag | FireOptionFlag, MagickFalse }, 281 { "-debug", 1L, GlobalOptionFlag|GenesisOptionFlag | FireOptionFlag, MagickFalse }, 282 { "+decipher", 1L, DeprecateOptionFlag, MagickTrue }, 283 { "-decipher", 1L, SimpleOperatorOptionFlag, MagickFalse }, 284 { "+deconstruct", 0L, FireOptionFlag | DeprecateOptionFlag, MagickTrue }, 285 { "-deconstruct", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 286 { "+define", 1L, ImageInfoOptionFlag, MagickFalse }, 287 { "-define", 1L, ImageInfoOptionFlag, MagickFalse }, 288 { "+delay", 0L, ImageInfoOptionFlag, MagickFalse }, 289 { "-delay", 1L, ImageInfoOptionFlag, MagickFalse }, 290 { "+delete", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 291 { "-delete", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 292 { "+density", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 293 { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 294 { "+depth", 0L, ImageInfoOptionFlag, MagickFalse }, 295 { "-depth", 1L, ImageInfoOptionFlag, MagickFalse }, 296 { "+descend", 0L, NonConvertOptionFlag, MagickFalse }, 297 { "-descend", 1L, NonConvertOptionFlag, MagickFalse }, 298 { "+deskew", 0L, SimpleOperatorOptionFlag, MagickFalse }, 299 { "-deskew", 1L, SimpleOperatorOptionFlag, MagickFalse }, 300 { "+despeckle", 0L, DeprecateOptionFlag, MagickTrue }, 301 { "-despeckle", 0L, SimpleOperatorOptionFlag, MagickFalse }, 302 { "+direction", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 303 { "-direction", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 304 { "+displace", 0L, NonConvertOptionFlag, MagickFalse }, 305 { "-displace", 1L, NonConvertOptionFlag, MagickFalse }, 306 { "+display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 307 { "-display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 308 { "+dispose", 0L, ImageInfoOptionFlag, MagickFalse }, 309 { "-dispose", 1L, ImageInfoOptionFlag, MagickFalse }, 310 { "+dissolve", 0L, NonConvertOptionFlag, MagickFalse }, 311 { "-dissolve", 1L, NonConvertOptionFlag, MagickFalse }, 312 { "+distort", 2L, SimpleOperatorOptionFlag, MagickFalse }, 313 { "-distort", 2L, SimpleOperatorOptionFlag, MagickFalse }, 314 { "+dither", 0L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse }, 315 { "-dither", 1L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse }, 316 { "+draw", 0L, DeprecateOptionFlag, MagickTrue }, 317 { "-draw", 1L, SimpleOperatorOptionFlag, MagickFalse }, 318 { "+duplicate", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 319 { "-duplicate", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 320 { "+duration", 1L, GenesisOptionFlag, MagickFalse }, 321 { "-duration", 1L, GenesisOptionFlag, MagickFalse }, 322 { "+edge", 1L, DeprecateOptionFlag, MagickTrue }, 323 { "-edge", 1L, SimpleOperatorOptionFlag, MagickFalse }, 324 { "+emboss", 1L, DeprecateOptionFlag, MagickTrue }, 325 { "-emboss", 1L, SimpleOperatorOptionFlag, MagickFalse }, 326 { "+encipher", 1L, DeprecateOptionFlag, MagickTrue }, 327 { "-encipher", 1L, SimpleOperatorOptionFlag, MagickFalse }, 328 { "+encoding", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 329 { "-encoding", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 330 { "+endian", 0L, ImageInfoOptionFlag, MagickFalse }, 331 { "-endian", 1L, ImageInfoOptionFlag, MagickFalse }, 332 { "+enhance", 0L, DeprecateOptionFlag, MagickTrue }, 333 { "-enhance", 0L, SimpleOperatorOptionFlag, MagickFalse }, 334 { "+equalize", 0L, DeprecateOptionFlag, MagickTrue }, 335 { "-equalize", 0L, SimpleOperatorOptionFlag, MagickFalse }, 336 { "+evaluate", 2L, DeprecateOptionFlag, MagickTrue }, 337 { "-evaluate", 2L, SimpleOperatorOptionFlag, MagickFalse }, 338 { "+evaluate-sequence", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 339 { "-evaluate-sequence", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 340 { "+extent", 1L, DeprecateOptionFlag, MagickTrue }, 341 { "-extent", 1L, SimpleOperatorOptionFlag, MagickFalse }, 342 { "+extract", 0L, ImageInfoOptionFlag, MagickFalse }, 343 { "-extract", 1L, ImageInfoOptionFlag, MagickFalse }, 344 { "+family", 0L, DeprecateOptionFlag, MagickTrue }, 345 { "-family", 1L, DrawInfoOptionFlag, MagickFalse }, 346 { "+features", 0L, SimpleOperatorOptionFlag | FireOptionFlag, MagickFalse }, 347 { "-features", 1L, SimpleOperatorOptionFlag | FireOptionFlag, MagickFalse }, 348 { "+fft", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 349 { "-fft", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 350 { "+fill", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 351 { "-fill", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 352 { "+filter", 0L, ImageInfoOptionFlag, MagickFalse }, 353 { "-filter", 1L, ImageInfoOptionFlag, MagickFalse }, 354 { "+flatten", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 355 { "-flatten", 0L, ListOperatorOptionFlag | FireOptionFlag | DeprecateOptionFlag, MagickTrue }, 356 { "+flip", 0L, DeprecateOptionFlag, MagickTrue }, 357 { "-flip", 0L, SimpleOperatorOptionFlag, MagickFalse }, 358 { "+flop", 0L, DeprecateOptionFlag, MagickTrue }, 359 { "-flop", 0L, SimpleOperatorOptionFlag, MagickFalse }, 360 { "+floodfill", 2L, SimpleOperatorOptionFlag, MagickFalse }, 361 { "-floodfill", 2L, SimpleOperatorOptionFlag, MagickFalse }, 362 { "+font", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 363 { "-font", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 364 { "+foreground", 0L, NonConvertOptionFlag, MagickFalse }, 365 { "-foreground", 1L, NonConvertOptionFlag, MagickFalse }, 366 { "+format", 0L, ImageInfoOptionFlag, MagickFalse }, 367 { "-format", 1L, ImageInfoOptionFlag, MagickFalse }, 368 { "+frame", 1L, DeprecateOptionFlag, MagickTrue }, 369 { "-frame", 1L, SimpleOperatorOptionFlag, MagickFalse }, 370 { "+function", 2L, DeprecateOptionFlag, MagickTrue }, 371 { "-function", 2L,SimpleOperatorOptionFlag, MagickFalse }, 372 { "+fuzz", 0L, ImageInfoOptionFlag, MagickFalse }, 373 { "-fuzz", 1L, ImageInfoOptionFlag, MagickFalse }, 374 { "+fx", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 375 { "-fx", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 376 { "+gamma", 0L, SimpleOperatorOptionFlag, MagickFalse }, 377 { "-gamma", 1L, SimpleOperatorOptionFlag, MagickFalse }, 378 { "+gaussian", 1L, DeprecateOptionFlag, MagickTrue }, 379 { "-gaussian", 1L, SimpleOperatorOptionFlag | DeprecateOptionFlag, MagickTrue }, 380 { "+gaussian-blur", 1L, DeprecateOptionFlag, MagickTrue }, 381 { "-gaussian-blur", 1L, SimpleOperatorOptionFlag, MagickFalse }, 382 { "+geometry", 0L, SimpleOperatorOptionFlag, MagickFalse }, 383 { "-geometry", 1L, SimpleOperatorOptionFlag, MagickFalse }, 384 { "+gravity", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 385 { "-gravity", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 386 { "+green-primary", 0L, ImageInfoOptionFlag, MagickFalse }, 387 { "-green-primary", 1L, ImageInfoOptionFlag, MagickFalse }, 388 { "+hald-clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 389 { "-hald-clut", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 390 { "+help", 0L, SpecialOperatorOptionFlag, MagickFalse }, 391 { "-help", 0L, SpecialOperatorOptionFlag, MagickFalse }, 392 { "+highlight-color", 1L, SimpleOperatorOptionFlag, MagickFalse }, 393 { "-highlight-color", 1L, SimpleOperatorOptionFlag, MagickFalse }, 394 { "+iconGeometry", 0L, NonConvertOptionFlag, MagickFalse }, 395 { "-iconGeometry", 1L, NonConvertOptionFlag, MagickFalse }, 396 { "+iconic", 0L, NonConvertOptionFlag, MagickFalse }, 397 { "-iconic", 1L, NonConvertOptionFlag, MagickFalse }, 398 { "+identify", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 399 { "-identify", 0L, SimpleOperatorOptionFlag | FireOptionFlag, MagickFalse }, 400 { "+ift", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 401 { "-ift", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 402 { "+immutable", 0L, NonConvertOptionFlag, MagickFalse }, 403 { "-immutable", 0L, NonConvertOptionFlag, MagickFalse }, 404 { "+implode", 0L, DeprecateOptionFlag, MagickTrue }, 405 { "-implode", 1L, SimpleOperatorOptionFlag, MagickFalse }, 406 { "+insert", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 407 { "-insert", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 408 { "+intent", 0L, ImageInfoOptionFlag, MagickFalse }, 409 { "-intent", 1L, ImageInfoOptionFlag, MagickFalse }, 410 { "+interlace", 0L, ImageInfoOptionFlag, MagickFalse }, 411 { "-interlace", 1L, ImageInfoOptionFlag, MagickFalse }, 412 { "+interline-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 413 { "-interline-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 414 { "+interpolate", 0L, ImageInfoOptionFlag, MagickFalse }, 415 { "-interpolate", 1L, ImageInfoOptionFlag, MagickFalse }, 416 { "+interword-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 417 { "-interword-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 418 { "+interpolative-resize", 1L, DeprecateOptionFlag, MagickTrue }, 419 { "-interpolative-resize", 1L, SimpleOperatorOptionFlag, MagickFalse }, 420 { "+kerning", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 421 { "-kerning", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 422 { "+label", 0L, ImageInfoOptionFlag, MagickFalse }, 423 { "-label", 1L, ImageInfoOptionFlag, MagickFalse }, 424 { "+lat", 1L, DeprecateOptionFlag, MagickTrue }, 425 { "-lat", 1L, SimpleOperatorOptionFlag, MagickFalse }, 426 { "+layers", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 427 { "-layers", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 428 { "+level", 1L, SimpleOperatorOptionFlag, MagickFalse }, 429 { "-level", 1L, SimpleOperatorOptionFlag, MagickFalse }, 430 { "+level-colors", 1L, SimpleOperatorOptionFlag, MagickFalse }, 431 { "-level-colors", 1L, SimpleOperatorOptionFlag, MagickFalse }, 432 { "+limit", 0L, DeprecateOptionFlag, MagickTrue }, 433 { "-limit", 2L, GlobalOptionFlag | ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 434 { "+linear-stretch", 1L, DeprecateOptionFlag, MagickTrue }, 435 { "-linear-stretch", 1L, SimpleOperatorOptionFlag, MagickFalse }, 436 { "+liquid-rescale", 1L, DeprecateOptionFlag, MagickTrue }, 437 { "-liquid-rescale", 1L, SimpleOperatorOptionFlag, MagickFalse }, 438 { "+list", 0L, DeprecateOptionFlag, MagickTrue }, 439 { "-list", 1L, GlobalOptionFlag | ImageInfoOptionFlag, MagickFalse }, 440 { "+log", 0L, DeprecateOptionFlag, MagickFalse }, 441 { "-log", 1L, GlobalOptionFlag, MagickFalse }, 442 { "+loop", 0L, ImageInfoOptionFlag, MagickFalse }, 443 { "-loop", 1L, ImageInfoOptionFlag, MagickFalse }, 444 { "+lowlight-color", 1L, DeprecateOptionFlag, MagickTrue }, 445 { "-lowlight-color", 1L, SimpleOperatorOptionFlag, MagickFalse }, 446 { "+magnify", 0L, NonConvertOptionFlag, MagickFalse }, 447 { "-magnify", 1L, NonConvertOptionFlag, MagickFalse }, 448 { "+map", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 449 { "-map", 1L, SimpleOperatorOptionFlag, MagickFalse }, 450 { "+mask", 0L, SimpleOperatorOptionFlag, MagickFalse }, 451 { "-mask", 1L, SimpleOperatorOptionFlag, MagickFalse }, 452 { "+matte", 0L, DeprecateOptionFlag, MagickTrue }, 453 { "-matte", 0L, DeprecateOptionFlag, MagickTrue }, 454 { "+mattecolor", 0L, ImageInfoOptionFlag, MagickFalse }, 455 { "-mattecolor", 1L, ImageInfoOptionFlag, MagickFalse }, 456 { "+maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 457 { "-maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 458 { "+median", 1L, DeprecateOptionFlag, MagickTrue }, 459 { "-median", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 460 { "+metric", 0L, NonConvertOptionFlag, MagickFalse }, 461 { "-metric", 1L, NonConvertOptionFlag, MagickFalse }, 462 { "+minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 463 { "-minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 464 { "+mode", 1L, NonConvertOptionFlag, MagickFalse }, 465 { "-mode", 1L, SimpleOperatorOptionFlag, MagickFalse }, 466 { "+modulate", 1L, DeprecateOptionFlag, MagickTrue }, 467 { "-modulate", 1L, SimpleOperatorOptionFlag, MagickFalse }, 468 { "+monitor", 0L, GlobalOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 469 { "-monitor", 0L, GlobalOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 470 { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse }, 471 { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 472 { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 473 { "-morph", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 474 { "+morphology", 2L, DeprecateOptionFlag, MagickTrue }, 475 { "-morphology", 2L, SimpleOperatorOptionFlag, MagickFalse }, 476 { "+mosaic", 0L, ListOperatorOptionFlag | FireOptionFlag | DeprecateOptionFlag, MagickTrue }, 477 { "-mosaic", 0L, ListOperatorOptionFlag | FireOptionFlag | DeprecateOptionFlag, MagickTrue }, 478 { "+motion-blur", 1L, DeprecateOptionFlag, MagickTrue }, 479 { "-motion-blur", 1L, SimpleOperatorOptionFlag, MagickFalse }, 480 { "+name", 0L, NonConvertOptionFlag, MagickFalse }, 481 { "-name", 1L, NonConvertOptionFlag, MagickFalse }, 482 { "+negate", 0L, SimpleOperatorOptionFlag, MagickFalse }, 483 { "-negate", 0L, SimpleOperatorOptionFlag, MagickFalse }, 484 { "+noise", 1L, SimpleOperatorOptionFlag, MagickFalse }, 485 { "-noise", 1L, SimpleOperatorOptionFlag, MagickFalse }, 486 { "+noop", 0L, SpecialOperatorOptionFlag, MagickFalse }, 487 { "-noop", 0L, SpecialOperatorOptionFlag, MagickFalse }, 488 { "+normalize", 0L, DeprecateOptionFlag, MagickTrue }, 489 { "-normalize", 0L, SimpleOperatorOptionFlag, MagickFalse }, 490 { "+opaque", 1L, SimpleOperatorOptionFlag, MagickFalse }, 491 { "-opaque", 1L, SimpleOperatorOptionFlag, MagickFalse }, 492 { "+ordered-dither", 0L, DeprecateOptionFlag, MagickTrue }, 493 { "-ordered-dither", 1L, SimpleOperatorOptionFlag, MagickFalse }, 494 { "+orient", 0L, ImageInfoOptionFlag, MagickFalse }, 495 { "-orient", 1L, ImageInfoOptionFlag, MagickFalse }, 496 { "+origin", 0L, DeprecateOptionFlag, MagickTrue }, 497 { "-origin", 1L, DeprecateOptionFlag, MagickTrue }, 498 { "+page", 0L, ImageInfoOptionFlag, MagickFalse }, 499 { "-page", 1L, ImageInfoOptionFlag, MagickFalse }, 500 { "+paint", 0L, DeprecateOptionFlag, MagickTrue }, 501 { "-paint", 1L, SimpleOperatorOptionFlag, MagickFalse }, 502 { "+path", 0L, SpecialOperatorOptionFlag, MagickFalse }, 503 { "-path", 1L, SpecialOperatorOptionFlag, MagickFalse }, 504 { "+pause", 0L, NonConvertOptionFlag, MagickFalse }, 505 { "-pause", 1L, NonConvertOptionFlag, MagickFalse }, 506 { "+passphrase", 0L, DeprecateOptionFlag, MagickTrue }, 507 { "-passphrase", 1L, DeprecateOptionFlag, MagickTrue }, 508 { "+ping", 0L, ImageInfoOptionFlag, MagickFalse }, 509 { "-ping", 0L, ImageInfoOptionFlag, MagickFalse }, 510 { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 511 { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 512 { "+polaroid", 0L, SimpleOperatorOptionFlag, MagickFalse }, 513 { "-polaroid", 1L, SimpleOperatorOptionFlag, MagickFalse }, 514 { "+posterize", 1L, DeprecateOptionFlag, MagickTrue }, 515 { "-posterize", 1L, SimpleOperatorOptionFlag, MagickFalse }, 516 { "+precision", 0L, GlobalOptionFlag, MagickFalse }, 517 { "-precision", 1L, GlobalOptionFlag, MagickFalse }, 518 { "+preview", 0L, ImageInfoOptionFlag, MagickFalse }, 519 { "-preview", 1L, ImageInfoOptionFlag, MagickFalse }, 520 { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 521 { "-print", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 522 { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 523 { "-process", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 524 { "+profile", 1L, SimpleOperatorOptionFlag, MagickFalse }, 525 { "-profile", 1L, SimpleOperatorOptionFlag, MagickFalse }, 526 { "+quality", 0L, ImageInfoOptionFlag, MagickFalse }, 527 { "-quality", 1L, ImageInfoOptionFlag, MagickFalse }, 528 { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse }, 529 { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse }, 530 { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse }, 531 { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse }, 532 { "+radial-blur", 1L, DeprecateOptionFlag, MagickTrue }, 533 { "-radial-blur", 1L, SimpleOperatorOptionFlag, MagickFalse }, 534 { "+raise", 1L, SimpleOperatorOptionFlag, MagickFalse }, 535 { "-raise", 1L, SimpleOperatorOptionFlag, MagickFalse }, 536 { "+random-threshold", 1L, DeprecateOptionFlag, MagickTrue }, 537 { "-random-threshold", 1L, SimpleOperatorOptionFlag, MagickFalse }, 538 { "+recolor", 1L, DeprecateOptionFlag, MagickTrue }, 539 { "-recolor", 1L, SimpleOperatorOptionFlag | DeprecateOptionFlag, MagickTrue }, 540 { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse }, 541 { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse }, 542 { "+regard-warnings", 0L, GenesisOptionFlag, MagickFalse }, 543 { "-regard-warnings", 0L, GenesisOptionFlag, MagickFalse }, 544 { "+region", 0L, SpecialOperatorOptionFlag, MagickFalse }, 545 { "-region", 1L, SpecialOperatorOptionFlag, MagickFalse }, 546 { "+remote", 0L, NonConvertOptionFlag, MagickFalse }, 547 { "-remote", 1L, NonConvertOptionFlag, MagickFalse }, 548 { "+render", 0L, DrawInfoOptionFlag, MagickFalse }, 549 { "-render", 0L, DrawInfoOptionFlag, MagickFalse }, 550 { "+remap", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 551 { "-remap", 1L, SimpleOperatorOptionFlag, MagickFalse }, 552 { "+repage", 0L, SimpleOperatorOptionFlag, MagickFalse }, 553 { "-repage", 1L, SimpleOperatorOptionFlag, MagickFalse }, 554 { "+resample", 1L, DeprecateOptionFlag, MagickTrue }, 555 { "-resample", 1L, SimpleOperatorOptionFlag, MagickFalse }, 556 { "+resize", 1L, DeprecateOptionFlag, MagickTrue }, 557 { "-resize", 1L, SimpleOperatorOptionFlag, MagickFalse }, 558 { "+respect-parenthesis", 0L, SpecialOperatorOptionFlag, MagickFalse }, 559 { "-respect-parenthesis", 0L, SpecialOperatorOptionFlag, MagickFalse }, 560 { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 561 { "-reverse", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 562 { "+roll", 1L, DeprecateOptionFlag, MagickTrue }, 563 { "-roll", 1L, SimpleOperatorOptionFlag, MagickFalse }, 564 { "+rotate", 1L, DeprecateOptionFlag, MagickTrue }, 565 { "-rotate", 1L, SimpleOperatorOptionFlag, MagickFalse }, 566 { "+sample", 1L, DeprecateOptionFlag, MagickTrue }, 567 { "-sample", 1L, SimpleOperatorOptionFlag, MagickFalse }, 568 { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse }, 569 { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse }, 570 { "+sans", 1L, NonConvertOptionFlag, MagickTrue }, 571 { "-sans", 1L, NonConvertOptionFlag, MagickTrue }, 572 { "+sans0", 0L, NonConvertOptionFlag, MagickTrue }, 573 { "-sans0", 0L, NonConvertOptionFlag, MagickTrue }, 574 { "+sans2", 2L, NonConvertOptionFlag, MagickTrue }, 575 { "-sans2", 2L, NonConvertOptionFlag, MagickTrue }, 576 { "+scale", 1L, DeprecateOptionFlag, MagickTrue }, 577 { "-scale", 1L, SimpleOperatorOptionFlag, MagickFalse }, 578 { "+scene", 0L, ImageInfoOptionFlag, MagickFalse }, 579 { "-scene", 1L, ImageInfoOptionFlag, MagickFalse }, 580 { "+scenes", 0L, NonConvertOptionFlag, MagickFalse }, 581 { "-scenes", 1L, NonConvertOptionFlag, MagickFalse }, 582 { "+screen", 0L, NonConvertOptionFlag, MagickFalse }, 583 { "-screen", 1L, NonConvertOptionFlag, MagickFalse }, 584 { "+seed", 0L, GlobalOptionFlag, MagickFalse }, 585 { "-seed", 1L, GlobalOptionFlag, MagickFalse }, 586 { "+segment", 1L, DeprecateOptionFlag, MagickTrue }, 587 { "-segment", 1L, SimpleOperatorOptionFlag, MagickFalse }, 588 { "+selective-blur", 1L, DeprecateOptionFlag, MagickTrue }, 589 { "-selective-blur", 1L, SimpleOperatorOptionFlag, MagickFalse }, 590 { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue }, 591 { "-separate", 0L, SimpleOperatorOptionFlag | FireOptionFlag, MagickFalse }, 592 { "+sepia-tone", 1L, DeprecateOptionFlag, MagickTrue }, 593 { "-sepia-tone", 1L, SimpleOperatorOptionFlag, MagickFalse }, 594 { "+set", 1L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 595 { "-set", 2L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 596 { "+shade", 0L, DeprecateOptionFlag, MagickTrue }, 597 { "-shade", 1L, SimpleOperatorOptionFlag, MagickFalse }, 598 { "+shadow", 1L, DeprecateOptionFlag, MagickTrue }, 599 { "-shadow", 1L, SimpleOperatorOptionFlag, MagickFalse }, 600 { "+shared-memory", 0L, NonConvertOptionFlag, MagickFalse }, 601 { "-shared-memory", 1L, NonConvertOptionFlag, MagickFalse }, 602 { "+sharpen", 1L, DeprecateOptionFlag, MagickTrue }, 603 { "-sharpen", 1L, SimpleOperatorOptionFlag, MagickFalse }, 604 { "+shave", 1L, DeprecateOptionFlag, MagickTrue }, 605 { "-shave", 1L, SimpleOperatorOptionFlag, MagickFalse }, 606 { "+shear", 1L, DeprecateOptionFlag, MagickTrue }, 607 { "-shear", 1L, SimpleOperatorOptionFlag, MagickFalse }, 608 { "+sigmoidal-contrast", 1L, SimpleOperatorOptionFlag, MagickFalse }, 609 { "-sigmoidal-contrast", 1L, SimpleOperatorOptionFlag, MagickFalse }, 610 { "+silent", 0L, NonConvertOptionFlag, MagickFalse }, 611 { "-silent", 1L, NonConvertOptionFlag, MagickFalse }, 612 { "+size", 0L, ImageInfoOptionFlag, MagickFalse }, 613 { "-size", 1L, ImageInfoOptionFlag, MagickFalse }, 614 { "+sketch", 1L, DeprecateOptionFlag, MagickTrue }, 615 { "-sketch", 1L, SimpleOperatorOptionFlag, MagickFalse }, 616 { "+smush", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 617 { "-smush", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 618 { "+snaps", 0L, NonConvertOptionFlag, MagickFalse }, 619 { "-snaps", 1L, NonConvertOptionFlag, MagickFalse }, 620 { "+solarize", 1L, DeprecateOptionFlag, MagickTrue }, 621 { "-solarize", 1L, SimpleOperatorOptionFlag, MagickFalse }, 622 { "+sparse-color", 2L, DeprecateOptionFlag, MagickTrue }, 623 { "-sparse-color", 2L, SimpleOperatorOptionFlag, MagickFalse }, 624 { "+splice", 1L, DeprecateOptionFlag, MagickTrue }, 625 { "-splice", 1L, SimpleOperatorOptionFlag, MagickFalse }, 626 { "+spread", 1L, DeprecateOptionFlag, MagickTrue }, 627 { "-spread", 1L, SimpleOperatorOptionFlag, MagickFalse }, 628 { "+statistic", 2L, DeprecateOptionFlag, MagickTrue }, 629 { "-statistic", 2L, SimpleOperatorOptionFlag, MagickFalse }, 630 { "+stegano", 0L, NonConvertOptionFlag, MagickFalse }, 631 { "-stegano", 1L, NonConvertOptionFlag, MagickFalse }, 632 { "+stereo", 0L, DeprecateOptionFlag, MagickTrue }, 633 { "-stereo", 1L, NonConvertOptionFlag, MagickFalse }, 634 { "+stretch", 1L, DeprecateOptionFlag, MagickTrue }, 635 { "-stretch", 1L, SimpleOperatorOptionFlag, MagickFalse }, 636 { "+strip", 0L, DeprecateOptionFlag, MagickTrue }, 637 { "-strip", 0L, SimpleOperatorOptionFlag, MagickFalse }, 638 { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 639 { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 640 { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse }, 641 { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 642 { "+style", 0L, DrawInfoOptionFlag, MagickFalse }, 643 { "-style", 1L, DrawInfoOptionFlag, MagickFalse }, 644 { "+subimage-search", 0L, NonConvertOptionFlag, MagickFalse }, 645 { "-subimage-search", 0L, NonConvertOptionFlag, MagickFalse }, 646 { "+swap", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 647 { "-swap", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 648 { "+swirl", 1L, DeprecateOptionFlag, MagickTrue }, 649 { "-swirl", 1L, SimpleOperatorOptionFlag, MagickFalse }, 650 { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse }, 651 { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse }, 652 { "+taint", 0L, ImageInfoOptionFlag, MagickFalse }, 653 { "-taint", 0L, ImageInfoOptionFlag, MagickFalse }, 654 { "+text-font", 0L, NonConvertOptionFlag, MagickFalse }, 655 { "-text-font", 1L, NonConvertOptionFlag, MagickFalse }, 656 { "+texture", 0L, ImageInfoOptionFlag, MagickFalse }, 657 { "-texture", 1L, ImageInfoOptionFlag, MagickFalse }, 658 { "+threshold", 0L, SimpleOperatorOptionFlag, MagickFalse }, 659 { "-threshold", 1L, SimpleOperatorOptionFlag, MagickFalse }, 660 { "+thumbnail", 1L, DeprecateOptionFlag, MagickTrue }, 661 { "-thumbnail", 1L, SimpleOperatorOptionFlag, MagickFalse }, 662 { "+tile", 0L, DrawInfoOptionFlag, MagickFalse }, 663 { "-tile", 1L, DrawInfoOptionFlag, MagickFalse }, 664 { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse }, 665 { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse }, 666 { "+tint", 1L, SimpleOperatorOptionFlag, MagickFalse }, 667 { "-tint", 1L, SimpleOperatorOptionFlag, MagickFalse }, 668 { "+title", 0L, NonConvertOptionFlag, MagickFalse }, 669 { "-title", 1L, NonConvertOptionFlag, MagickFalse }, 670 { "+transform", 0L, DeprecateOptionFlag, MagickTrue }, 671 { "-transform", 0L, SimpleOperatorOptionFlag | DeprecateOptionFlag, MagickTrue }, 672 { "+transparent", 1L, SimpleOperatorOptionFlag, MagickFalse }, 673 { "-transparent", 1L, SimpleOperatorOptionFlag, MagickFalse }, 674 { "+transparent-color", 1L, ImageInfoOptionFlag, MagickFalse }, 675 { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse }, 676 { "+transpose", 0L, DeprecateOptionFlag, MagickTrue }, 677 { "-transpose", 0L, SimpleOperatorOptionFlag, MagickFalse }, 678 { "+transverse", 0L, DeprecateOptionFlag, MagickTrue }, 679 { "-transverse", 0L, SimpleOperatorOptionFlag, MagickFalse }, 680 { "+treedepth", 1L, DeprecateOptionFlag, MagickTrue }, 681 { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse }, 682 { "+trim", 0L, DeprecateOptionFlag, MagickTrue }, 683 { "-trim", 0L, SimpleOperatorOptionFlag, MagickFalse }, 684 { "+type", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 685 { "-type", 1L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 686 { "+undercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 687 { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse }, 688 { "+unique", 0L, DeprecateOptionFlag, MagickTrue }, 689 { "-unique", 0L, ImageInfoOptionFlag, MagickFalse }, 690 { "+unique-colors", 0L, DeprecateOptionFlag, MagickTrue }, 691 { "-unique-colors", 0L, SimpleOperatorOptionFlag, MagickFalse }, 692 { "+units", 0L, ImageInfoOptionFlag, MagickFalse }, 693 { "-units", 1L, ImageInfoOptionFlag, MagickFalse }, 694 { "+unsharp", 1L, DeprecateOptionFlag, MagickTrue }, 695 { "-unsharp", 1L, SimpleOperatorOptionFlag, MagickFalse }, 696 { "+update", 0L, NonConvertOptionFlag, MagickFalse }, 697 { "-update", 1L, NonConvertOptionFlag, MagickFalse }, 698 { "+use-pixmap", 0L, NonConvertOptionFlag, MagickFalse }, 699 { "-use-pixmap", 1L, NonConvertOptionFlag, MagickFalse }, 700 { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse }, 701 { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse }, 702 { "+version", 0L, SpecialOperatorOptionFlag, MagickFalse }, 703 { "-version", 1L, SpecialOperatorOptionFlag, MagickFalse }, 704 { "+view", 0L, ImageInfoOptionFlag, MagickFalse }, 705 { "-view", 1L, ImageInfoOptionFlag, MagickFalse }, 706 { "+vignette", 1L, DeprecateOptionFlag, MagickTrue }, 707 { "-vignette", 1L, SimpleOperatorOptionFlag, MagickFalse }, 708 { "+virtual-pixel", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 709 { "-virtual-pixel", 1L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse }, 710 { "+visual", 0L, NonConvertOptionFlag, MagickFalse }, 711 { "-visual", 1L, NonConvertOptionFlag, MagickFalse }, 712 { "+watermark", 0L, NonConvertOptionFlag, MagickFalse }, 713 { "-watermark", 1L, NonConvertOptionFlag, MagickFalse }, 714 { "+wave", 1L, DeprecateOptionFlag, MagickTrue }, 715 { "-wave", 1L, SimpleOperatorOptionFlag, MagickFalse }, 716 { "+weight", 1L, DeprecateOptionFlag, MagickTrue }, 717 { "-weight", 1L, DrawInfoOptionFlag, MagickFalse }, 718 { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse }, 719 { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse }, 720 { "+white-threshold", 1L, DeprecateOptionFlag, MagickTrue }, 721 { "-white-threshold", 1L, SimpleOperatorOptionFlag, MagickFalse }, 722 { "+window", 0L, NonConvertOptionFlag, MagickFalse }, 723 { "-window", 1L, NonConvertOptionFlag, MagickFalse }, 724 { "+window-group", 0L, NonConvertOptionFlag, MagickFalse }, 725 { "-window-group", 1L, NonConvertOptionFlag, MagickFalse }, 726 { "+write", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 727 { "-write", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse }, 728 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse } 729 }, 730 ComposeOptions[] = 731 { 732 { "Undefined", UndefinedCompositeOp, UndefinedOptionFlag, MagickTrue }, 733 { "Atop", AtopCompositeOp, UndefinedOptionFlag, MagickFalse }, 734 { "Blend", BlendCompositeOp, UndefinedOptionFlag, MagickFalse }, 735 { "Blur", BlurCompositeOp, UndefinedOptionFlag, MagickFalse }, 736 { "Bumpmap", BumpmapCompositeOp, UndefinedOptionFlag, MagickFalse }, 737 { "ChangeMask", ChangeMaskCompositeOp, UndefinedOptionFlag, MagickFalse }, 738 { "Clear", ClearCompositeOp, UndefinedOptionFlag, MagickFalse }, 739 { "ColorBurn", ColorBurnCompositeOp, UndefinedOptionFlag, MagickFalse }, 740 { "ColorDodge", ColorDodgeCompositeOp, UndefinedOptionFlag, MagickFalse }, 741 { "Colorize", ColorizeCompositeOp, UndefinedOptionFlag, MagickFalse }, 742 { "CopyAlpha", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickFalse }, 743 { "CopyBlack", CopyBlackCompositeOp, UndefinedOptionFlag, MagickFalse }, 744 { "CopyBlue", CopyBlueCompositeOp, UndefinedOptionFlag, MagickFalse }, 745 { "CopyCyan", CopyCyanCompositeOp, UndefinedOptionFlag, MagickFalse }, 746 { "CopyGreen", CopyGreenCompositeOp, UndefinedOptionFlag, MagickFalse }, 747 { "Copy", CopyCompositeOp, UndefinedOptionFlag, MagickFalse }, 748 { "CopyMagenta", CopyMagentaCompositeOp, UndefinedOptionFlag, MagickFalse }, 749 { "CopyRed", CopyRedCompositeOp, UndefinedOptionFlag, MagickFalse }, 750 { "CopyYellow", CopyYellowCompositeOp, UndefinedOptionFlag, MagickFalse }, 751 { "Darken", DarkenCompositeOp, UndefinedOptionFlag, MagickFalse }, 752 { "DarkenIntensity", DarkenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse }, 753 { "DivideDst", DivideDstCompositeOp, UndefinedOptionFlag, MagickFalse }, 754 { "DivideSrc", DivideSrcCompositeOp, UndefinedOptionFlag, MagickFalse }, 755 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse }, 756 { "Difference", DifferenceCompositeOp, UndefinedOptionFlag, MagickFalse }, 757 { "Displace", DisplaceCompositeOp, UndefinedOptionFlag, MagickFalse }, 758 { "Dissolve", DissolveCompositeOp, UndefinedOptionFlag, MagickFalse }, 759 { "Distort", DistortCompositeOp, UndefinedOptionFlag, MagickFalse }, 760 { "DstAtop", DstAtopCompositeOp, UndefinedOptionFlag, MagickFalse }, 761 { "DstIn", DstInCompositeOp, UndefinedOptionFlag, MagickFalse }, 762 { "DstOut", DstOutCompositeOp, UndefinedOptionFlag, MagickFalse }, 763 { "DstOver", DstOverCompositeOp, UndefinedOptionFlag, MagickFalse }, 764 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse }, 765 { "Exclusion", ExclusionCompositeOp, UndefinedOptionFlag, MagickFalse }, 766 { "HardLight", HardLightCompositeOp, UndefinedOptionFlag, MagickFalse }, 767 { "Hue", HueCompositeOp, UndefinedOptionFlag, MagickFalse }, 768 { "In", InCompositeOp, UndefinedOptionFlag, MagickFalse }, 769 { "Intensity", IntensityCompositeOp, UndefinedOptionFlag, MagickFalse }, 770 { "Lighten", LightenCompositeOp, UndefinedOptionFlag, MagickFalse }, 771 { "LightenIntensity", LightenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse }, 772 { "LinearBurn", LinearBurnCompositeOp, UndefinedOptionFlag, MagickFalse }, 773 { "LinearDodge", LinearDodgeCompositeOp, UndefinedOptionFlag, MagickFalse }, 774 { "LinearLight", LinearLightCompositeOp, UndefinedOptionFlag, MagickFalse }, 775 { "Luminize", LuminizeCompositeOp, UndefinedOptionFlag, MagickFalse }, 776 { "Mathematics", MathematicsCompositeOp, UndefinedOptionFlag, MagickFalse }, 777 { "MinusDst", MinusDstCompositeOp, UndefinedOptionFlag, MagickFalse }, 778 { "MinusSrc", MinusSrcCompositeOp, UndefinedOptionFlag, MagickFalse }, 779 { "Modulate", ModulateCompositeOp, UndefinedOptionFlag, MagickFalse }, 780 { "ModulusAdd", ModulusAddCompositeOp, UndefinedOptionFlag, MagickFalse }, 781 { "ModulusSubtract", ModulusSubtractCompositeOp, UndefinedOptionFlag, MagickFalse }, 782 { "Multiply", MultiplyCompositeOp, UndefinedOptionFlag, MagickFalse }, 783 { "None", NoCompositeOp, UndefinedOptionFlag, MagickFalse }, 784 { "Out", OutCompositeOp, UndefinedOptionFlag, MagickFalse }, 785 { "Overlay", OverlayCompositeOp, UndefinedOptionFlag, MagickFalse }, 786 { "Over", OverCompositeOp, UndefinedOptionFlag, MagickFalse }, 787 { "PegtopLight", PegtopLightCompositeOp, UndefinedOptionFlag, MagickFalse }, 788 { "PinLight", PinLightCompositeOp, UndefinedOptionFlag, MagickFalse }, 789 { "Plus", PlusCompositeOp, UndefinedOptionFlag, MagickFalse }, 790 { "Replace", ReplaceCompositeOp, UndefinedOptionFlag, MagickFalse }, 791 { "Saturate", SaturateCompositeOp, UndefinedOptionFlag, MagickFalse }, 792 { "Screen", ScreenCompositeOp, UndefinedOptionFlag, MagickFalse }, 793 { "SoftLight", SoftLightCompositeOp, UndefinedOptionFlag, MagickFalse }, 794 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse }, 795 { "SrcAtop", SrcAtopCompositeOp, UndefinedOptionFlag, MagickFalse }, 796 { "SrcIn", SrcInCompositeOp, UndefinedOptionFlag, MagickFalse }, 797 { "SrcOut", SrcOutCompositeOp, UndefinedOptionFlag, MagickFalse }, 798 { "SrcOver", SrcOverCompositeOp, UndefinedOptionFlag, MagickFalse }, 799 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse }, 800 { "VividLight", VividLightCompositeOp, UndefinedOptionFlag, MagickFalse }, 801 { "Xor", XorCompositeOp, UndefinedOptionFlag, MagickFalse }, 802 { "Divide", DivideDstCompositeOp, DeprecateOptionFlag, MagickTrue }, 803 { "Minus", MinusDstCompositeOp, DeprecateOptionFlag, MagickTrue }, 804 { "Threshold", ThresholdCompositeOp, DeprecateOptionFlag, MagickTrue }, 805 { (char *) NULL, UndefinedCompositeOp, UndefinedOptionFlag, MagickFalse } 806 }, 807 CompressOptions[] = 808 { 809 { "Undefined", UndefinedCompression, UndefinedOptionFlag, MagickTrue }, 810 { "B44", B44Compression, UndefinedOptionFlag, MagickFalse }, 811 { "B44A", B44ACompression, UndefinedOptionFlag, MagickFalse }, 812 { "BZip", BZipCompression, UndefinedOptionFlag, MagickFalse }, 813 { "DXT1", DXT1Compression, UndefinedOptionFlag, MagickFalse }, 814 { "DXT3", DXT3Compression, UndefinedOptionFlag, MagickFalse }, 815 { "DXT5", DXT5Compression, UndefinedOptionFlag, MagickFalse }, 816 { "Fax", FaxCompression, UndefinedOptionFlag, MagickFalse }, 817 { "Group4", Group4Compression, UndefinedOptionFlag, MagickFalse }, 818 { "JBIG1", JBIG1Compression, UndefinedOptionFlag, MagickFalse }, 819 { "JBIG2", JBIG2Compression, UndefinedOptionFlag, MagickFalse }, 820 { "JPEG", JPEGCompression, UndefinedOptionFlag, MagickFalse }, 821 { "JPEG2000", JPEG2000Compression, UndefinedOptionFlag, MagickFalse }, 822 { "Lossless", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse }, 823 { "LosslessJPEG", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse }, 824 { "LZMA", LZMACompression, UndefinedOptionFlag, MagickFalse }, 825 { "LZW", LZWCompression, UndefinedOptionFlag, MagickFalse }, 826 { "None", NoCompression, UndefinedOptionFlag, MagickFalse }, 827 { "Piz", PizCompression, UndefinedOptionFlag, MagickFalse }, 828 { "Pxr24", Pxr24Compression, UndefinedOptionFlag, MagickFalse }, 829 { "RLE", RLECompression, UndefinedOptionFlag, MagickFalse }, 830 { "Zip", ZipCompression, UndefinedOptionFlag, MagickFalse }, 831 { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse }, 832 { "ZipS", ZipSCompression, UndefinedOptionFlag, MagickFalse }, 833 { (char *) NULL, UndefinedCompression, UndefinedOptionFlag, MagickFalse } 834 }, 835 ColorspaceOptions[] = 836 { 837 { "Undefined", UndefinedColorspace, UndefinedOptionFlag, MagickTrue }, 838 { "CMY", CMYColorspace, UndefinedOptionFlag, MagickFalse }, 839 { "CMYK", CMYKColorspace, UndefinedOptionFlag, MagickFalse }, 840 { "Gray", GRAYColorspace, UndefinedOptionFlag, MagickFalse }, 841 { "HSB", HSBColorspace, UndefinedOptionFlag, MagickFalse }, 842 { "HSL", HSLColorspace, UndefinedOptionFlag, MagickFalse }, 843 { "HWB", HWBColorspace, UndefinedOptionFlag, MagickFalse }, 844 { "Lab", LabColorspace, UndefinedOptionFlag, MagickFalse }, 845 { "Log", LogColorspace, UndefinedOptionFlag, MagickFalse }, 846 { "OHTA", OHTAColorspace, UndefinedOptionFlag, MagickFalse }, 847 { "Rec601Luma", Rec601LumaColorspace, UndefinedOptionFlag, MagickFalse }, 848 { "Rec601YCbCr", Rec601YCbCrColorspace, UndefinedOptionFlag, MagickFalse }, 849 { "Rec709Luma", Rec709LumaColorspace, UndefinedOptionFlag, MagickFalse }, 850 { "Rec709YCbCr", Rec709YCbCrColorspace, UndefinedOptionFlag, MagickFalse }, 851 { "RGB", RGBColorspace, UndefinedOptionFlag, MagickFalse }, 852 { "sRGB", sRGBColorspace, UndefinedOptionFlag, MagickFalse }, 853 { "Transparent", TransparentColorspace, UndefinedOptionFlag, MagickFalse }, 854 { "XYZ", XYZColorspace, UndefinedOptionFlag, MagickFalse }, 855 { "YCbCr", YCbCrColorspace, UndefinedOptionFlag, MagickFalse }, 856 { "YCC", YCCColorspace, UndefinedOptionFlag, MagickFalse }, 857 { "YIQ", YIQColorspace, UndefinedOptionFlag, MagickFalse }, 858 { "YPbPr", YPbPrColorspace, UndefinedOptionFlag, MagickFalse }, 859 { "YUV", YUVColorspace, UndefinedOptionFlag, MagickFalse }, 860 { (char *) NULL, UndefinedColorspace, UndefinedOptionFlag, MagickFalse } 861 }, 862 DataTypeOptions[] = 863 { 864 { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue }, 865 { "Byte", ByteData, UndefinedOptionFlag, MagickFalse }, 866 { "Long", LongData, UndefinedOptionFlag, MagickFalse }, 867 { "Short", ShortData, UndefinedOptionFlag, MagickFalse }, 868 { "String", StringData, UndefinedOptionFlag, MagickFalse }, 869 { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse } 870 }, 871 DecorateOptions[] = 872 { 873 { "Undefined", UndefinedDecoration, UndefinedOptionFlag, MagickTrue }, 874 { "LineThrough", LineThroughDecoration, UndefinedOptionFlag, MagickFalse }, 875 { "None", NoDecoration, UndefinedOptionFlag, MagickFalse }, 876 { "Overline", OverlineDecoration, UndefinedOptionFlag, MagickFalse }, 877 { "Underline", UnderlineDecoration, UndefinedOptionFlag, MagickFalse }, 878 { (char *) NULL, UndefinedDecoration, UndefinedOptionFlag, MagickFalse } 879 }, 880 DirectionOptions[] = 881 { 882 { "Undefined", UndefinedDirection, UndefinedOptionFlag, MagickTrue }, 883 { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse }, 884 { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse }, 885 { (char *) NULL, UndefinedDirection, UndefinedOptionFlag, MagickFalse } 886 }, 887 DisposeOptions[] = 888 { 889 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickTrue }, 890 { "Background", BackgroundDispose, UndefinedOptionFlag, MagickFalse }, 891 { "None", NoneDispose, UndefinedOptionFlag, MagickFalse }, 892 { "Previous", PreviousDispose, UndefinedOptionFlag, MagickFalse }, 893 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickFalse }, 894 { "0", UndefinedDispose, UndefinedOptionFlag, MagickFalse }, 895 { "1", NoneDispose, UndefinedOptionFlag, MagickFalse }, 896 { "2", BackgroundDispose, UndefinedOptionFlag, MagickFalse }, 897 { "3", PreviousDispose, UndefinedOptionFlag, MagickFalse }, 898 { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse } 899 }, 900 DistortOptions[] = 901 { 902 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue }, 903 { "Affine", AffineDistortion, UndefinedOptionFlag, MagickFalse }, 904 { "AffineProjection", AffineProjectionDistortion, UndefinedOptionFlag, MagickFalse }, 905 { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse }, 906 { "SRT", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse }, 907 { "Perspective", PerspectiveDistortion, UndefinedOptionFlag, MagickFalse }, 908 { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse }, 909 { "Bilinear", BilinearForwardDistortion, UndefinedOptionFlag, MagickTrue }, 910 { "BilinearForward", BilinearForwardDistortion, UndefinedOptionFlag, MagickFalse }, 911 { "BilinearReverse", BilinearReverseDistortion, UndefinedOptionFlag, MagickFalse }, 912 { "Polynomial", PolynomialDistortion, UndefinedOptionFlag, MagickFalse }, 913 { "Arc", ArcDistortion, UndefinedOptionFlag, MagickFalse }, 914 { "Polar", PolarDistortion, UndefinedOptionFlag, MagickFalse }, 915 { "DePolar", DePolarDistortion, UndefinedOptionFlag, MagickFalse }, 916 { "Barrel", BarrelDistortion, UndefinedOptionFlag, MagickFalse }, 917 { "Cylinder2Plane", Cylinder2PlaneDistortion, UndefinedOptionFlag, MagickTrue }, 918 { "Plane2Cylinder", Plane2CylinderDistortion, UndefinedOptionFlag, MagickTrue }, 919 { "BarrelInverse", BarrelInverseDistortion, UndefinedOptionFlag, MagickFalse }, 920 { "Shepards", ShepardsDistortion, UndefinedOptionFlag, MagickFalse }, 921 { "Resize", ResizeDistortion, UndefinedOptionFlag, MagickFalse }, 922 { (char *) NULL, UndefinedDistortion, UndefinedOptionFlag, MagickFalse } 923 }, 924 DitherOptions[] = 925 { 926 { "Undefined", UndefinedDitherMethod, UndefinedOptionFlag, MagickTrue }, 927 { "None", NoDitherMethod, UndefinedOptionFlag, MagickFalse }, 928 { "FloydSteinberg", FloydSteinbergDitherMethod, UndefinedOptionFlag, MagickFalse }, 929 { "Riemersma", RiemersmaDitherMethod, UndefinedOptionFlag, MagickFalse }, 930 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse } 931 }, 932 EndianOptions[] = 933 { 934 { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue }, 935 { "LSB", LSBEndian, UndefinedOptionFlag, MagickFalse }, 936 { "MSB", MSBEndian, UndefinedOptionFlag, MagickFalse }, 937 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse } 938 }, 939 EvaluateOptions[] = 940 { 941 { "Undefined", UndefinedEvaluateOperator, UndefinedOptionFlag, MagickTrue }, 942 { "Abs", AbsEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 943 { "Add", AddEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 944 { "AddModulus", AddModulusEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 945 { "And", AndEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 946 { "Cos", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 947 { "Cosine", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 948 { "Divide", DivideEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 949 { "Exp", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 950 { "Exponential", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 951 { "GaussianNoise", GaussianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 952 { "ImpulseNoise", ImpulseNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 953 { "LaplacianNoise", LaplacianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 954 { "LeftShift", LeftShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 955 { "Log", LogEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 956 { "Max", MaxEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 957 { "Mean", MeanEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 958 { "Median", MedianEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 959 { "Min", MinEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 960 { "MultiplicativeNoise", MultiplicativeNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 961 { "Multiply", MultiplyEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 962 { "Or", OrEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 963 { "PoissonNoise", PoissonNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 964 { "Pow", PowEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 965 { "RightShift", RightShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 966 { "Set", SetEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 967 { "Sin", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 968 { "Sine", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 969 { "Subtract", SubtractEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 970 { "Threshold", ThresholdEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 971 { "ThresholdBlack", ThresholdBlackEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 972 { "ThresholdWhite", ThresholdWhiteEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 973 { "UniformNoise", UniformNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 974 { "Xor", XorEvaluateOperator, UndefinedOptionFlag, MagickFalse }, 975 { (char *) NULL, UndefinedEvaluateOperator, UndefinedOptionFlag, MagickFalse } 976 }, 977 FillRuleOptions[] = 978 { 979 { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue }, 980 { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse }, 981 { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse }, 982 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse } 983 }, 984 FilterOptions[] = 985 { 986 { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue }, 987 { "Bartlett", BartlettFilter, UndefinedOptionFlag, MagickFalse }, 988 { "Blackman", BlackmanFilter, UndefinedOptionFlag, MagickFalse }, 989 { "Bohman", BohmanFilter, UndefinedOptionFlag, MagickFalse }, 990 { "Box", BoxFilter, UndefinedOptionFlag, MagickFalse }, 991 { "Catrom", CatromFilter, UndefinedOptionFlag, MagickFalse }, 992 { "Cubic", CubicFilter, UndefinedOptionFlag, MagickFalse }, 993 { "Gaussian", GaussianFilter, UndefinedOptionFlag, MagickFalse }, 994 { "Hamming", HammingFilter, UndefinedOptionFlag, MagickFalse }, 995 { "Hanning", HanningFilter, UndefinedOptionFlag, MagickFalse }, 996 { "Hermite", HermiteFilter, UndefinedOptionFlag, MagickFalse }, 997 { "Jinc", JincFilter, UndefinedOptionFlag, MagickFalse }, 998 { "Kaiser", KaiserFilter, UndefinedOptionFlag, MagickFalse }, 999 { "Lagrange", LagrangeFilter, UndefinedOptionFlag, MagickFalse }, 1000 { "Lanczos", LanczosFilter, UndefinedOptionFlag, MagickFalse }, 1001 { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse }, 1002 { "Lanczos2", Lanczos2Filter, UndefinedOptionFlag, MagickFalse }, 1003 { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse }, 1004 { "Mitchell", MitchellFilter, UndefinedOptionFlag, MagickFalse }, 1005 { "Parzen", ParzenFilter, UndefinedOptionFlag, MagickFalse }, 1006 { "Point", PointFilter, UndefinedOptionFlag, MagickFalse }, 1007 { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse }, 1008 { "Robidoux", RobidouxFilter, UndefinedOptionFlag, MagickFalse }, 1009 { "Sinc", SincFilter, UndefinedOptionFlag, MagickFalse }, 1010 { "SincFast", SincFastFilter, UndefinedOptionFlag, MagickFalse }, 1011 { "Triangle", TriangleFilter, UndefinedOptionFlag, MagickFalse }, 1012 { "Welsh", WelshFilter, UndefinedOptionFlag, MagickFalse }, 1013 /* For backward compatibility - must be after "Jinc" */ 1014 { "Bessel", JincFilter, UndefinedOptionFlag, MagickTrue }, 1015 { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse } 1016 }, 1017 FunctionOptions[] = 1018 { 1019 { "Undefined", UndefinedFunction, UndefinedOptionFlag, MagickTrue }, 1020 { "Polynomial", PolynomialFunction, UndefinedOptionFlag, MagickFalse }, 1021 { "Sinusoid", SinusoidFunction, UndefinedOptionFlag, MagickFalse }, 1022 { "ArcSin", ArcsinFunction, UndefinedOptionFlag, MagickFalse }, 1023 { "ArcTan", ArctanFunction, UndefinedOptionFlag, MagickFalse }, 1024 { (char *) NULL, UndefinedFunction, UndefinedOptionFlag, MagickFalse } 1025 }, 1026 GravityOptions[] = 1027 { 1028 { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue }, 1029 { "None", UndefinedGravity, UndefinedOptionFlag, MagickFalse }, 1030 { "Center", CenterGravity, UndefinedOptionFlag, MagickFalse }, 1031 { "East", EastGravity, UndefinedOptionFlag, MagickFalse }, 1032 { "Forget", ForgetGravity, UndefinedOptionFlag, MagickFalse }, 1033 { "NorthEast", NorthEastGravity, UndefinedOptionFlag, MagickFalse }, 1034 { "North", NorthGravity, UndefinedOptionFlag, MagickFalse }, 1035 { "NorthWest", NorthWestGravity, UndefinedOptionFlag, MagickFalse }, 1036 { "SouthEast", SouthEastGravity, UndefinedOptionFlag, MagickFalse }, 1037 { "South", SouthGravity, UndefinedOptionFlag, MagickFalse }, 1038 { "SouthWest", SouthWestGravity, UndefinedOptionFlag, MagickFalse }, 1039 { "West", WestGravity, UndefinedOptionFlag, MagickFalse }, 1040 { "Static", StaticGravity, UndefinedOptionFlag, MagickFalse }, 1041 { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse } 1042 }, 1043 IntentOptions[] = 1044 { 1045 { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue }, 1046 { "Absolute", AbsoluteIntent, UndefinedOptionFlag, MagickFalse }, 1047 { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse }, 1048 { "Relative", RelativeIntent, UndefinedOptionFlag, MagickFalse }, 1049 { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse }, 1050 { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse } 1051 }, 1052 InterlaceOptions[] = 1053 { 1054 { "Undefined", UndefinedInterlace, UndefinedOptionFlag, MagickTrue }, 1055 { "Line", LineInterlace, UndefinedOptionFlag, MagickFalse }, 1056 { "None", NoInterlace, UndefinedOptionFlag, MagickFalse }, 1057 { "Plane", PlaneInterlace, UndefinedOptionFlag, MagickFalse }, 1058 { "Partition", PartitionInterlace, UndefinedOptionFlag, MagickFalse }, 1059 { "GIF", GIFInterlace, UndefinedOptionFlag, MagickFalse }, 1060 { "JPEG", JPEGInterlace, UndefinedOptionFlag, MagickFalse }, 1061 { "PNG", PNGInterlace, UndefinedOptionFlag, MagickFalse }, 1062 { (char *) NULL, UndefinedInterlace, UndefinedOptionFlag, MagickFalse } 1063 }, 1064 InterpolateOptions[] = 1065 { 1066 { "Undefined", UndefinedInterpolatePixel, UndefinedOptionFlag, MagickTrue }, 1067 { "Average", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse }, 1068 { "Bicubic", BicubicInterpolatePixel, UndefinedOptionFlag, MagickFalse }, 1069 { "Bilinear", BilinearInterpolatePixel, UndefinedOptionFlag, MagickFalse }, 1070 { "filter", FilterInterpolatePixel, UndefinedOptionFlag, MagickFalse }, 1071 { "Integer", IntegerInterpolatePixel, UndefinedOptionFlag, MagickFalse }, 1072 { "Mesh", MeshInterpolatePixel, UndefinedOptionFlag, MagickFalse }, 1073 { "NearestNeighbor", NearestNeighborInterpolatePixel, UndefinedOptionFlag, MagickFalse }, 1074 { "Spline", SplineInterpolatePixel, UndefinedOptionFlag, MagickFalse }, 1075 { (char *) NULL, UndefinedInterpolatePixel, UndefinedOptionFlag, MagickFalse } 1076 }, 1077 KernelOptions[] = 1078 { 1079 { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue }, 1080 { "Unity", UnityKernel, UndefinedOptionFlag, MagickFalse }, 1081 { "Gaussian", GaussianKernel, UndefinedOptionFlag, MagickFalse }, 1082 { "DoG", DoGKernel, UndefinedOptionFlag, MagickFalse }, 1083 { "LoG", LoGKernel, UndefinedOptionFlag, MagickFalse }, 1084 { "Blur", BlurKernel, UndefinedOptionFlag, MagickFalse }, 1085 { "Comet", CometKernel, UndefinedOptionFlag, MagickFalse }, 1086 { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse }, 1087 { "Sobel", SobelKernel, UndefinedOptionFlag, MagickFalse }, 1088 { "FreiChen", FreiChenKernel, UndefinedOptionFlag, MagickFalse }, 1089 { "Roberts", RobertsKernel, UndefinedOptionFlag, MagickFalse }, 1090 { "Prewitt", PrewittKernel, UndefinedOptionFlag, MagickFalse }, 1091 { "Compass", CompassKernel, UndefinedOptionFlag, MagickFalse }, 1092 { "Kirsch", KirschKernel, UndefinedOptionFlag, MagickFalse }, 1093 { "Diamond", DiamondKernel, UndefinedOptionFlag, MagickFalse }, 1094 { "Square", SquareKernel, UndefinedOptionFlag, MagickFalse }, 1095 { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse }, 1096 { "Disk", DiskKernel, UndefinedOptionFlag, MagickFalse }, 1097 { "Octagon", OctagonKernel, UndefinedOptionFlag, MagickFalse }, 1098 { "Plus", PlusKernel, UndefinedOptionFlag, MagickFalse }, 1099 { "Cross", CrossKernel, UndefinedOptionFlag, MagickFalse }, 1100 { "Ring", RingKernel, UndefinedOptionFlag, MagickFalse }, 1101 { "Peaks", PeaksKernel, UndefinedOptionFlag, MagickFalse }, 1102 { "Edges", EdgesKernel, UndefinedOptionFlag, MagickFalse }, 1103 { "Corners", CornersKernel, UndefinedOptionFlag, MagickFalse }, 1104 { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse }, 1105 { "ThinDiagonals", DiagonalsKernel, DeprecateOptionFlag, MagickTrue }, 1106 { "LineEnds", LineEndsKernel, UndefinedOptionFlag, MagickFalse }, 1107 { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse }, 1108 { "Ridges", RidgesKernel, UndefinedOptionFlag, MagickFalse }, 1109 { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse }, 1110 { "ThinSe", ThinSEKernel, UndefinedOptionFlag, MagickFalse }, 1111 { "Skeleton", SkeletonKernel, UndefinedOptionFlag, MagickFalse }, 1112 { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse }, 1113 { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse }, 1114 { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse }, 1115 { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse }, 1116 { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue }, 1117 { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse } 1118 }, 1119 LayerOptions[] = 1120 { 1121 { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue }, 1122 { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse }, 1123 { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse }, 1124 { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse }, 1125 { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse }, 1126 { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse }, 1127 { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse }, 1128 { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse }, 1129 { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse }, 1130 { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse }, 1131 { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse }, 1132 { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse }, 1133 { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse }, 1134 { "Merge", MergeLayer, UndefinedOptionFlag, MagickFalse }, 1135 { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse }, 1136 { "Mosaic", MosaicLayer, UndefinedOptionFlag, MagickFalse }, 1137 { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse }, 1138 { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse } 1139 }, 1140 LineCapOptions[] = 1141 { 1142 { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue }, 1143 { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse }, 1144 { "Round", RoundCap, UndefinedOptionFlag, MagickFalse }, 1145 { "Square", SquareCap, UndefinedOptionFlag, MagickFalse }, 1146 { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse } 1147 }, 1148 LineJoinOptions[] = 1149 { 1150 { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue }, 1151 { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse }, 1152 { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse }, 1153 { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse }, 1154 { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse } 1155 }, 1156 ListOptions[] = 1157 { 1158 { "Align", MagickAlignOptions, UndefinedOptionFlag, MagickFalse }, 1159 { "Alpha", MagickAlphaOptions, UndefinedOptionFlag, MagickFalse }, 1160 { "Boolean", MagickBooleanOptions, UndefinedOptionFlag, MagickFalse }, 1161 { "Channel", MagickChannelOptions, UndefinedOptionFlag, MagickFalse }, 1162 { "Class", MagickClassOptions, UndefinedOptionFlag, MagickFalse }, 1163 { "ClipPath", MagickClipPathOptions, UndefinedOptionFlag, MagickFalse }, 1164 { "Coder", MagickCoderOptions, UndefinedOptionFlag, MagickFalse }, 1165 { "Color", MagickColorOptions, UndefinedOptionFlag, MagickFalse }, 1166 { "Colorspace", MagickColorspaceOptions, UndefinedOptionFlag, MagickFalse }, 1167 { "Command", MagickCommandOptions, UndefinedOptionFlag, MagickFalse }, 1168 { "Compose", MagickComposeOptions, UndefinedOptionFlag, MagickFalse }, 1169 { "Compress", MagickCompressOptions, UndefinedOptionFlag, MagickFalse }, 1170 { "Configure", MagickConfigureOptions, UndefinedOptionFlag, MagickFalse }, 1171 { "DataType", MagickDataTypeOptions, UndefinedOptionFlag, MagickFalse }, 1172 { "Debug", MagickDebugOptions, UndefinedOptionFlag, MagickFalse }, 1173 { "Decoration", MagickDecorateOptions, UndefinedOptionFlag, MagickFalse }, 1174 { "Delegate", MagickDelegateOptions, UndefinedOptionFlag, MagickFalse }, 1175 { "Direction", MagickDirectionOptions, UndefinedOptionFlag, MagickFalse }, 1176 { "Dispose", MagickDisposeOptions, UndefinedOptionFlag, MagickFalse }, 1177 { "Distort", MagickDistortOptions, UndefinedOptionFlag, MagickFalse }, 1178 { "Dither", MagickDitherOptions, UndefinedOptionFlag, MagickFalse }, 1179 { "Endian", MagickEndianOptions, UndefinedOptionFlag, MagickFalse }, 1180 { "Evaluate", MagickEvaluateOptions, UndefinedOptionFlag, MagickFalse }, 1181 { "FillRule", MagickFillRuleOptions, UndefinedOptionFlag, MagickFalse }, 1182 { "Filter", MagickFilterOptions, UndefinedOptionFlag, MagickFalse }, 1183 { "Font", MagickFontOptions, UndefinedOptionFlag, MagickFalse }, 1184 { "Format", MagickFormatOptions, UndefinedOptionFlag, MagickFalse }, 1185 { "Function", MagickFunctionOptions, UndefinedOptionFlag, MagickFalse }, 1186 { "Gravity", MagickGravityOptions, UndefinedOptionFlag, MagickFalse }, 1187 { "Intent", MagickIntentOptions, UndefinedOptionFlag, MagickFalse }, 1188 { "Interlace", MagickInterlaceOptions, UndefinedOptionFlag, MagickFalse }, 1189 { "Interpolate", MagickInterpolateOptions, UndefinedOptionFlag, MagickFalse }, 1190 { "Kernel", MagickKernelOptions, UndefinedOptionFlag, MagickFalse }, 1191 { "Layers", MagickLayerOptions, UndefinedOptionFlag, MagickFalse }, 1192 { "LineCap", MagickLineCapOptions, UndefinedOptionFlag, MagickFalse }, 1193 { "LineJoin", MagickLineJoinOptions, UndefinedOptionFlag, MagickFalse }, 1194 { "List", MagickListOptions, UndefinedOptionFlag, MagickFalse }, 1195 { "Locale", MagickLocaleOptions, UndefinedOptionFlag, MagickFalse }, 1196 { "LogEvent", MagickLogEventOptions, UndefinedOptionFlag, MagickFalse }, 1197 { "Log", MagickLogOptions, UndefinedOptionFlag, MagickFalse }, 1198 { "Magic", MagickMagicOptions, UndefinedOptionFlag, MagickFalse }, 1199 { "Method", MagickMethodOptions, UndefinedOptionFlag, MagickFalse }, 1200 { "Metric", MagickMetricOptions, UndefinedOptionFlag, MagickFalse }, 1201 { "Mime", MagickMimeOptions, UndefinedOptionFlag, MagickFalse }, 1202 { "Mode", MagickModeOptions, UndefinedOptionFlag, MagickFalse }, 1203 { "Morphology", MagickMorphologyOptions, UndefinedOptionFlag, MagickFalse }, 1204 { "Module", MagickModuleOptions, UndefinedOptionFlag, MagickFalse }, 1205 { "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse }, 1206 { "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse }, 1207 { "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse }, 1208 { "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse }, 1209 { "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse }, 1210 { "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse }, 1211 { "PolicyRights", MagickPolicyRightsOptions, UndefinedOptionFlag, MagickFalse }, 1212 { "Preview", MagickPreviewOptions, UndefinedOptionFlag, MagickFalse }, 1213 { "Primitive", MagickPrimitiveOptions, UndefinedOptionFlag, MagickFalse }, 1214 { "QuantumFormat", MagickQuantumFormatOptions, UndefinedOptionFlag, MagickFalse }, 1215 { "Resource", MagickResourceOptions, UndefinedOptionFlag, MagickFalse }, 1216 { "SparseColor", MagickSparseColorOptions, UndefinedOptionFlag, MagickFalse }, 1217 { "Statistic", MagickStatisticOptions, UndefinedOptionFlag, MagickFalse }, 1218 { "Storage", MagickStorageOptions, UndefinedOptionFlag, MagickFalse }, 1219 { "Stretch", MagickStretchOptions, UndefinedOptionFlag, MagickFalse }, 1220 { "Style", MagickStyleOptions, UndefinedOptionFlag, MagickFalse }, 1221 { "Threshold", MagickThresholdOptions, UndefinedOptionFlag, MagickFalse }, 1222 { "Type", MagickTypeOptions, UndefinedOptionFlag, MagickFalse }, 1223 { "Units", MagickResolutionOptions, UndefinedOptionFlag, MagickFalse }, 1224 { "Undefined", MagickUndefinedOptions, UndefinedOptionFlag, MagickTrue }, 1225 { "Validate", MagickValidateOptions, UndefinedOptionFlag, MagickFalse }, 1226 { "VirtualPixel", MagickVirtualPixelOptions, UndefinedOptionFlag, MagickFalse }, 1227 { (char *) NULL, MagickUndefinedOptions, UndefinedOptionFlag, MagickFalse } 1228 }, 1229 LogEventOptions[] = 1230 { 1231 { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue }, 1232 { "All", (AllEvents &~ TraceEvent), UndefinedOptionFlag, MagickFalse }, 1233 { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse }, 1234 { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse }, 1235 { "Blob", BlobEvent, UndefinedOptionFlag, MagickFalse }, 1236 { "Cache", CacheEvent, UndefinedOptionFlag, MagickFalse }, 1237 { "Coder", CoderEvent, UndefinedOptionFlag, MagickFalse }, 1238 { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse }, 1239 { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse }, 1240 { "Draw", DrawEvent, UndefinedOptionFlag, MagickFalse }, 1241 { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse }, 1242 { "Locale", LocaleEvent, UndefinedOptionFlag, MagickFalse }, 1243 { "Module", ModuleEvent, UndefinedOptionFlag, MagickFalse }, 1244 { "None", NoEvents, UndefinedOptionFlag, MagickFalse }, 1245 { "Pixel", PixelEvent, UndefinedOptionFlag, MagickFalse }, 1246 { "Policy", PolicyEvent, UndefinedOptionFlag, MagickFalse }, 1247 { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse }, 1248 { "Trace", TraceEvent, UndefinedOptionFlag, MagickFalse }, 1249 { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse }, 1250 { "User", UserEvent, UndefinedOptionFlag, MagickFalse }, 1251 { "Wand", WandEvent, UndefinedOptionFlag, MagickFalse }, 1252 { "X11", X11Event, UndefinedOptionFlag, MagickFalse }, 1253 { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse } 1254 }, 1255 MetricOptions[] = 1256 { 1257 { "Undefined", UndefinedMetric, UndefinedOptionFlag, MagickTrue }, 1258 { "AE", AbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse }, 1259 { "Fuzz", FuzzErrorMetric, UndefinedOptionFlag, MagickFalse }, 1260 { "MAE", MeanAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse }, 1261 { "MEPP", MeanErrorPerPixelMetric, UndefinedOptionFlag, MagickFalse }, 1262 { "MSE", MeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse }, 1263 { "NCC", NormalizedCrossCorrelationErrorMetric, UndefinedOptionFlag, MagickFalse }, 1264 { "PAE", PeakAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse }, 1265 { "PSNR", PeakSignalToNoiseRatioMetric, UndefinedOptionFlag, MagickFalse }, 1266 { "RMSE", RootMeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse }, 1267 { (char *) NULL, UndefinedMetric, UndefinedOptionFlag, MagickFalse } 1268 }, 1269 MethodOptions[] = 1270 { 1271 { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue }, 1272 { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse }, 1273 { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse }, 1274 { "Point", PointMethod, UndefinedOptionFlag, MagickFalse }, 1275 { "Replace", ReplaceMethod, UndefinedOptionFlag, MagickFalse }, 1276 { "Reset", ResetMethod, UndefinedOptionFlag, MagickFalse }, 1277 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse } 1278 }, 1279 ModeOptions[] = 1280 { 1281 { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue }, 1282 { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse }, 1283 { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse }, 1284 { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse }, 1285 { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse } 1286 }, 1287 MorphologyOptions[] = 1288 { 1289 { "Undefined", UndefinedMorphology, UndefinedOptionFlag, MagickTrue }, 1290 { "Correlate", CorrelateMorphology, UndefinedOptionFlag, MagickFalse }, 1291 { "Convolve", ConvolveMorphology, UndefinedOptionFlag, MagickFalse }, 1292 { "Dilate", DilateMorphology, UndefinedOptionFlag, MagickFalse }, 1293 { "Erode", ErodeMorphology, UndefinedOptionFlag, MagickFalse }, 1294 { "Close", CloseMorphology, UndefinedOptionFlag, MagickFalse }, 1295 { "Open", OpenMorphology, UndefinedOptionFlag, MagickFalse }, 1296 { "DilateIntensity", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse }, 1297 { "ErodeIntensity", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse }, 1298 { "CloseIntensity", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse }, 1299 { "OpenIntensity", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse }, 1300 { "DilateI", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse }, 1301 { "ErodeI", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse }, 1302 { "CloseI", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse }, 1303 { "OpenI", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse }, 1304 { "Smooth", SmoothMorphology, UndefinedOptionFlag, MagickFalse }, 1305 { "EdgeOut", EdgeOutMorphology, UndefinedOptionFlag, MagickFalse }, 1306 { "EdgeIn", EdgeInMorphology, UndefinedOptionFlag, MagickFalse }, 1307 { "Edge", EdgeMorphology, UndefinedOptionFlag, MagickFalse }, 1308 { "TopHat", TopHatMorphology, UndefinedOptionFlag, MagickFalse }, 1309 { "BottomHat", BottomHatMorphology, UndefinedOptionFlag, MagickFalse }, 1310 { "Distance", DistanceMorphology, UndefinedOptionFlag, MagickFalse }, 1311 { "Hmt", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse }, 1312 { "HitNMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse }, 1313 { "HitAndMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse }, 1314 { "Thinning", ThinningMorphology, UndefinedOptionFlag, MagickFalse }, 1315 { "Thicken", ThickenMorphology, UndefinedOptionFlag, MagickFalse }, 1316 { "Voronoi", VoronoiMorphology, UndefinedOptionFlag, MagickTrue }, 1317 { (char *) NULL, UndefinedMorphology, UndefinedOptionFlag, MagickFalse } 1318 }, 1319 NoiseOptions[] = 1320 { 1321 { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue }, 1322 { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse }, 1323 { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse }, 1324 { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse }, 1325 { "Multiplicative", MultiplicativeGaussianNoise, UndefinedOptionFlag, MagickFalse }, 1326 { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse }, 1327 { "Random", RandomNoise, UndefinedOptionFlag, MagickFalse }, 1328 { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse }, 1329 { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse } 1330 }, 1331 OrientationOptions[] = 1332 { 1333 { "Undefined", UndefinedOrientation, UndefinedOptionFlag, MagickTrue }, 1334 { "TopLeft", TopLeftOrientation, UndefinedOptionFlag, MagickFalse }, 1335 { "TopRight", TopRightOrientation, UndefinedOptionFlag, MagickFalse }, 1336 { "BottomRight", BottomRightOrientation, UndefinedOptionFlag, MagickFalse }, 1337 { "BottomLeft", BottomLeftOrientation, UndefinedOptionFlag, MagickFalse }, 1338 { "LeftTop", LeftTopOrientation, UndefinedOptionFlag, MagickFalse }, 1339 { "RightTop", RightTopOrientation, UndefinedOptionFlag, MagickFalse }, 1340 { "RightBottom", RightBottomOrientation, UndefinedOptionFlag, MagickFalse }, 1341 { "LeftBottom", LeftBottomOrientation, UndefinedOptionFlag, MagickFalse }, 1342 { (char *) NULL, UndefinedOrientation, UndefinedOptionFlag, MagickFalse } 1343 }, 1344 PixelChannelOptions[] = 1345 { 1346 { "Undefined", UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }, 1347 { "Alpha", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse }, 1348 { "Black", BlackPixelChannel, UndefinedOptionFlag, MagickFalse }, 1349 { "Blue", BluePixelChannel, UndefinedOptionFlag, MagickFalse }, 1350 { "Cb", CbPixelChannel, UndefinedOptionFlag, MagickFalse }, 1351 { "Composite", CompositePixelChannel, UndefinedOptionFlag, MagickFalse }, 1352 { "Cr", CrPixelChannel, UndefinedOptionFlag, MagickFalse }, 1353 { "Cyan", CyanPixelChannel, UndefinedOptionFlag, MagickFalse }, 1354 { "Gray", GrayPixelChannel, UndefinedOptionFlag, MagickFalse }, 1355 { "Green", GreenPixelChannel, UndefinedOptionFlag, MagickFalse }, 1356 { "Index", IndexPixelChannel, UndefinedOptionFlag, MagickFalse }, 1357 { "Intensity", IntensityPixelChannel, UndefinedOptionFlag, MagickFalse }, 1358 { "Magenta", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse }, 1359 { "Mask", MaskPixelChannel, UndefinedOptionFlag, MagickFalse }, 1360 { "Red", RedPixelChannel, UndefinedOptionFlag, MagickFalse }, 1361 { "Sync", SyncPixelChannel, UndefinedOptionFlag, MagickFalse }, 1362 { "Y", YPixelChannel, UndefinedOptionFlag, MagickFalse }, 1363 { "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse }, 1364 { (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse } 1365 }, 1366 PixelTraitOptions[] = 1367 { 1368 { "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue }, 1369 { "Blend", BlendPixelTrait, UndefinedOptionFlag, MagickFalse }, 1370 { "Copy", CopyPixelTrait, UndefinedOptionFlag, MagickFalse }, 1371 { "Update", UpdatePixelTrait, UndefinedOptionFlag, MagickFalse }, 1372 { (char *) NULL, UndefinedPixelTrait, UndefinedOptionFlag, MagickFalse } 1373 }, 1374 PolicyDomainOptions[] = 1375 { 1376 { "Undefined", UndefinedPolicyDomain, UndefinedOptionFlag, MagickTrue }, 1377 { "Coder", CoderPolicyDomain, UndefinedOptionFlag, MagickFalse }, 1378 { "Delegate", DelegatePolicyDomain, UndefinedOptionFlag, MagickFalse }, 1379 { "Filter", FilterPolicyDomain, UndefinedOptionFlag, MagickFalse }, 1380 { "Path", PathPolicyDomain, UndefinedOptionFlag, MagickFalse }, 1381 { "Resource", ResourcePolicyDomain, UndefinedOptionFlag, MagickFalse }, 1382 { "System", SystemPolicyDomain, UndefinedOptionFlag, MagickFalse }, 1383 { (char *) NULL, UndefinedPolicyDomain, UndefinedOptionFlag, MagickFalse } 1384 }, 1385 PolicyRightsOptions[] = 1386 { 1387 { "Undefined", UndefinedPolicyRights, UndefinedOptionFlag, MagickTrue }, 1388 { "None", NoPolicyRights, UndefinedOptionFlag, MagickFalse }, 1389 { "Read", ReadPolicyRights, UndefinedOptionFlag, MagickFalse }, 1390 { "Write", WritePolicyRights, UndefinedOptionFlag, MagickFalse }, 1391 { "Execute", ExecutePolicyRights, UndefinedOptionFlag, MagickFalse }, 1392 { (char *) NULL, UndefinedPolicyRights, UndefinedOptionFlag, MagickFalse } 1393 }, 1394 PreviewOptions[] = 1395 { 1396 { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue }, 1397 { "AddNoise", AddNoisePreview, UndefinedOptionFlag, MagickFalse }, 1398 { "Blur", BlurPreview, UndefinedOptionFlag, MagickFalse }, 1399 { "Brightness", BrightnessPreview, UndefinedOptionFlag, MagickFalse }, 1400 { "Charcoal", CharcoalDrawingPreview, UndefinedOptionFlag, MagickFalse }, 1401 { "Despeckle", DespecklePreview, UndefinedOptionFlag, MagickFalse }, 1402 { "Dull", DullPreview, UndefinedOptionFlag, MagickFalse }, 1403 { "EdgeDetect", EdgeDetectPreview, UndefinedOptionFlag, MagickFalse }, 1404 { "Gamma", GammaPreview, UndefinedOptionFlag, MagickFalse }, 1405 { "Grayscale", GrayscalePreview, UndefinedOptionFlag, MagickFalse }, 1406 { "Hue", HuePreview, UndefinedOptionFlag, MagickFalse }, 1407 { "Implode", ImplodePreview, UndefinedOptionFlag, MagickFalse }, 1408 { "JPEG", JPEGPreview, UndefinedOptionFlag, MagickFalse }, 1409 { "OilPaint", OilPaintPreview, UndefinedOptionFlag, MagickFalse }, 1410 { "Quantize", QuantizePreview, UndefinedOptionFlag, MagickFalse }, 1411 { "Raise", RaisePreview, UndefinedOptionFlag, MagickFalse }, 1412 { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse }, 1413 { "Roll", RollPreview, UndefinedOptionFlag, MagickFalse }, 1414 { "Rotate", RotatePreview, UndefinedOptionFlag, MagickFalse }, 1415 { "Saturation", SaturationPreview, UndefinedOptionFlag, MagickFalse }, 1416 { "Segment", SegmentPreview, UndefinedOptionFlag, MagickFalse }, 1417 { "Shade", ShadePreview, UndefinedOptionFlag, MagickFalse }, 1418 { "Sharpen", SharpenPreview, UndefinedOptionFlag, MagickFalse }, 1419 { "Shear", ShearPreview, UndefinedOptionFlag, MagickFalse }, 1420 { "Solarize", SolarizePreview, UndefinedOptionFlag, MagickFalse }, 1421 { "Spiff", SpiffPreview, UndefinedOptionFlag, MagickFalse }, 1422 { "Spread", SpreadPreview, UndefinedOptionFlag, MagickFalse }, 1423 { "Swirl", SwirlPreview, UndefinedOptionFlag, MagickFalse }, 1424 { "Threshold", ThresholdPreview, UndefinedOptionFlag, MagickFalse }, 1425 { "Wave", WavePreview, UndefinedOptionFlag, MagickFalse }, 1426 { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse } 1427 }, 1428 PrimitiveOptions[] = 1429 { 1430 { "Undefined", UndefinedPrimitive, UndefinedOptionFlag, MagickTrue }, 1431 { "Arc", ArcPrimitive, UndefinedOptionFlag, MagickFalse }, 1432 { "Bezier", BezierPrimitive, UndefinedOptionFlag, MagickFalse }, 1433 { "Circle", CirclePrimitive, UndefinedOptionFlag, MagickFalse }, 1434 { "Color", ColorPrimitive, UndefinedOptionFlag, MagickFalse }, 1435 { "Ellipse", EllipsePrimitive, UndefinedOptionFlag, MagickFalse }, 1436 { "Image", ImagePrimitive, UndefinedOptionFlag, MagickFalse }, 1437 { "Line", LinePrimitive, UndefinedOptionFlag, MagickFalse }, 1438 { "Matte", MattePrimitive, UndefinedOptionFlag, MagickFalse }, 1439 { "Path", PathPrimitive, UndefinedOptionFlag, MagickFalse }, 1440 { "Point", PointPrimitive, UndefinedOptionFlag, MagickFalse }, 1441 { "Polygon", PolygonPrimitive, UndefinedOptionFlag, MagickFalse }, 1442 { "Polyline", PolylinePrimitive, UndefinedOptionFlag, MagickFalse }, 1443 { "Rectangle", RectanglePrimitive, UndefinedOptionFlag, MagickFalse }, 1444 { "RoundRectangle", RoundRectanglePrimitive, UndefinedOptionFlag, MagickFalse }, 1445 { "Text", TextPrimitive, UndefinedOptionFlag, MagickFalse }, 1446 { (char *) NULL, UndefinedPrimitive, UndefinedOptionFlag, MagickFalse } 1447 }, 1448 QuantumFormatOptions[] = 1449 { 1450 { "Undefined", UndefinedQuantumFormat, UndefinedOptionFlag, MagickTrue }, 1451 { "FloatingPoint", FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse }, 1452 { "Signed", SignedQuantumFormat, UndefinedOptionFlag, MagickFalse }, 1453 { "Unsigned", UnsignedQuantumFormat, UndefinedOptionFlag, MagickFalse }, 1454 { (char *) NULL, FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse } 1455 }, 1456 ResolutionOptions[] = 1457 { 1458 { "Undefined", UndefinedResolution, UndefinedOptionFlag, MagickTrue }, 1459 { "PixelsPerInch", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse }, 1460 { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse }, 1461 { (char *) NULL, UndefinedResolution, UndefinedOptionFlag, MagickFalse } 1462 }, 1463 ResourceOptions[] = 1464 { 1465 { "Undefined", UndefinedResource, UndefinedOptionFlag, MagickTrue }, 1466 { "Area", AreaResource, UndefinedOptionFlag, MagickFalse }, 1467 { "Disk", DiskResource, UndefinedOptionFlag, MagickFalse }, 1468 { "File", FileResource, UndefinedOptionFlag, MagickFalse }, 1469 { "Map", MapResource, UndefinedOptionFlag, MagickFalse }, 1470 { "Memory", MemoryResource, UndefinedOptionFlag, MagickFalse }, 1471 { "Thread", ThreadResource, UndefinedOptionFlag, MagickFalse }, 1472 { "Time", TimeResource, UndefinedOptionFlag, MagickFalse }, 1473 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse } 1474 }, 1475 SparseColorOptions[] = 1476 { 1477 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue }, 1478 { "Barycentric", BarycentricColorInterpolate, UndefinedOptionFlag, MagickFalse }, 1479 { "Bilinear", BilinearColorInterpolate, UndefinedOptionFlag, MagickFalse }, 1480 { "Inverse", InverseColorInterpolate, UndefinedOptionFlag, MagickFalse }, 1481 { "Shepards", ShepardsColorInterpolate, UndefinedOptionFlag, MagickFalse }, 1482 { "Voronoi", VoronoiColorInterpolate, UndefinedOptionFlag, MagickFalse }, 1483 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse } 1484 }, 1485 StatisticOptions[] = 1486 { 1487 { "Undefined", UndefinedStatistic, UndefinedOptionFlag, MagickTrue }, 1488 { "Gradient", GradientStatistic, UndefinedOptionFlag, MagickFalse }, 1489 { "Maximum", MaximumStatistic, UndefinedOptionFlag, MagickFalse }, 1490 { "Mean", MeanStatistic, UndefinedOptionFlag, MagickFalse }, 1491 { "Median", MedianStatistic, UndefinedOptionFlag, MagickFalse }, 1492 { "Minimum", MinimumStatistic, UndefinedOptionFlag, MagickFalse }, 1493 { "Mode", ModeStatistic, UndefinedOptionFlag, MagickFalse }, 1494 { "Nonpeak", NonpeakStatistic, UndefinedOptionFlag, MagickFalse }, 1495 { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse }, 1496 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse } 1497 }, 1498 StorageOptions[] = 1499 { 1500 { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue }, 1501 { "Char", CharPixel, UndefinedOptionFlag, MagickFalse }, 1502 { "Double", DoublePixel, UndefinedOptionFlag, MagickFalse }, 1503 { "Float", FloatPixel, UndefinedOptionFlag, MagickFalse }, 1504 { "Long", LongPixel, UndefinedOptionFlag, MagickFalse }, 1505 { "LongLong", LongLongPixel, UndefinedOptionFlag, MagickFalse }, 1506 { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse }, 1507 { "Short", ShortPixel, UndefinedOptionFlag, MagickFalse }, 1508 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse } 1509 }, 1510 StretchOptions[] = 1511 { 1512 { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue }, 1513 { "Any", AnyStretch, UndefinedOptionFlag, MagickFalse }, 1514 { "Condensed", CondensedStretch, UndefinedOptionFlag, MagickFalse }, 1515 { "Expanded", ExpandedStretch, UndefinedOptionFlag, MagickFalse }, 1516 { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse }, 1517 { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse }, 1518 { "Normal", NormalStretch, UndefinedOptionFlag, MagickFalse }, 1519 { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse }, 1520 { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse }, 1521 { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse }, 1522 { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse }, 1523 { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse } 1524 }, 1525 StyleOptions[] = 1526 { 1527 { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue }, 1528 { "Any", AnyStyle, UndefinedOptionFlag, MagickFalse }, 1529 { "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse }, 1530 { "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse }, 1531 { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse }, 1532 { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse } 1533 }, 1534 TypeOptions[] = 1535 { 1536 { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue }, 1537 { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse }, 1538 { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse }, 1539 { "ColorSeparationMatte", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse }, 1540 { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse }, 1541 { "GrayscaleMatte", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse }, 1542 { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse }, 1543 { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse }, 1544 { "PaletteBilevelMatte", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse }, 1545 { "PaletteMatte", PaletteMatteType, UndefinedOptionFlag, MagickFalse }, 1546 { "TrueColorMatte", TrueColorMatteType, UndefinedOptionFlag, MagickFalse }, 1547 { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse }, 1548 { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse } 1549 }, 1550 ValidateOptions[] = 1551 { 1552 { "Undefined", UndefinedValidate, UndefinedOptionFlag, MagickTrue }, 1553 { "All", AllValidate, UndefinedOptionFlag, MagickFalse }, 1554 { "Compare", CompareValidate, UndefinedOptionFlag, MagickFalse }, 1555 { "Composite", CompositeValidate, UndefinedOptionFlag, MagickFalse }, 1556 { "Convert", ConvertValidate, UndefinedOptionFlag, MagickFalse }, 1557 { "FormatsInMemory", FormatsInMemoryValidate, UndefinedOptionFlag, MagickFalse }, 1558 { "FormatsOnDisk", FormatsOnDiskValidate, UndefinedOptionFlag, MagickFalse }, 1559 { "Identify", IdentifyValidate, UndefinedOptionFlag, MagickFalse }, 1560 { "ImportExport", ImportExportValidate, UndefinedOptionFlag, MagickFalse }, 1561 { "Montage", MontageValidate, UndefinedOptionFlag, MagickFalse }, 1562 { "Stream", StreamValidate, UndefinedOptionFlag, MagickFalse }, 1563 { "None", NoValidate, UndefinedOptionFlag, MagickFalse }, 1564 { (char *) NULL, UndefinedValidate, UndefinedOptionFlag, MagickFalse } 1565 }, 1566 VirtualPixelOptions[] = 1567 { 1568 { "Undefined", UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickTrue }, 1569 { "Background", BackgroundVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1570 { "Black", BlackVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1571 { "Constant", BackgroundVirtualPixelMethod, DeprecateOptionFlag, MagickTrue }, 1572 { "CheckerTile", CheckerTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1573 { "Dither", DitherVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1574 { "Edge", EdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1575 { "Gray", GrayVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1576 { "HorizontalTile", HorizontalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1577 { "HorizontalTileEdge", HorizontalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1578 { "Mirror", MirrorVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1579 { "Random", RandomVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1580 { "Tile", TileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1581 { "Transparent", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1582 { "VerticalTile", VerticalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1583 { "VerticalTileEdge", VerticalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1584 { "White", WhiteVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }, 1585 { (char *) NULL, UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickFalse } 1586 }; 1587 1588/* 1589%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1590% % 1591% % 1592% % 1593% C l o n e I m a g e O p t i o n s % 1594% % 1595% % 1596% % 1597%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1598% 1599% CloneImageOptions() clones one or more image options. 1600% 1601% The format of the CloneImageOptions method is: 1602% 1603% MagickBooleanType CloneImageOptions(ImageInfo *image_info, 1604% const ImageInfo *clone_info) 1605% 1606% A description of each parameter follows: 1607% 1608% o image_info: the image info. 1609% 1610% o clone_info: the clone image info. 1611% 1612*/ 1613MagickExport MagickBooleanType CloneImageOptions(ImageInfo *image_info, 1614 const ImageInfo *clone_info) 1615{ 1616 assert(image_info != (ImageInfo *) NULL); 1617 assert(image_info->signature == MagickSignature); 1618 if (image_info->debug != MagickFalse) 1619 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", 1620 image_info->filename); 1621 assert(clone_info != (const ImageInfo *) NULL); 1622 assert(clone_info->signature == MagickSignature); 1623 if (clone_info->options != (void *) NULL) 1624 image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options, 1625 (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString); 1626 return(MagickTrue); 1627} 1628 1629/* 1630%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1631% % 1632% % 1633% % 1634% D e f i n e I m a g e O p t i o n % 1635% % 1636% % 1637% % 1638%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1639% 1640% DefineImageOption() associates an assignment string of the form 1641% "key=value" with an image option. It is equivelent to SetImageOption(). 1642% 1643% The format of the DefineImageOption method is: 1644% 1645% MagickBooleanType DefineImageOption(ImageInfo *image_info, 1646% const char *option) 1647% 1648% A description of each parameter follows: 1649% 1650% o image_info: the image info. 1651% 1652% o option: the image option assignment string. 1653% 1654*/ 1655MagickExport MagickBooleanType DefineImageOption(ImageInfo *image_info, 1656 const char *option) 1657{ 1658 char 1659 key[MaxTextExtent], 1660 value[MaxTextExtent]; 1661 1662 register char 1663 *p; 1664 1665 assert(image_info != (ImageInfo *) NULL); 1666 assert(option != (const char *) NULL); 1667 (void) CopyMagickString(key,option,MaxTextExtent); 1668 for (p=key; *p != '\0'; p++) 1669 if (*p == '=') 1670 break; 1671 *value='\0'; 1672 if (*p == '=') 1673 (void) CopyMagickString(value,p+1,MaxTextExtent); 1674 *p='\0'; 1675 return(SetImageOption(image_info,key,value)); 1676} 1677 1678/* 1679%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1680% % 1681% % 1682% % 1683% D e l e t e I m a g e O p t i o n % 1684% % 1685% % 1686% % 1687%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1688% 1689% DeleteImageOption() deletes an key from the image map. 1690% 1691% The format of the DeleteImageOption method is: 1692% 1693% MagickBooleanType DeleteImageOption(ImageInfo *image_info, 1694% const char *key) 1695% 1696% A description of each parameter follows: 1697% 1698% o image_info: the image info. 1699% 1700% o option: the image option. 1701% 1702*/ 1703MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info, 1704 const char *option) 1705{ 1706 assert(image_info != (ImageInfo *) NULL); 1707 assert(image_info->signature == MagickSignature); 1708 if (image_info->debug != MagickFalse) 1709 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", 1710 image_info->filename); 1711 if (image_info->options == (void *) NULL) 1712 return(MagickFalse); 1713 return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option)); 1714} 1715 1716/* 1717%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1718% % 1719% % 1720% % 1721% D e s t r o y I m a g e O p t i o n s % 1722% % 1723% % 1724% % 1725%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1726% 1727% DestroyImageOptions() releases memory associated with image option values. 1728% 1729% The format of the DestroyDefines method is: 1730% 1731% void DestroyImageOptions(ImageInfo *image_info) 1732% 1733% A description of each parameter follows: 1734% 1735% o image_info: the image info. 1736% 1737*/ 1738MagickExport void DestroyImageOptions(ImageInfo *image_info) 1739{ 1740 assert(image_info != (ImageInfo *) NULL); 1741 assert(image_info->signature == MagickSignature); 1742 if (image_info->debug != MagickFalse) 1743 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", 1744 image_info->filename); 1745 if (image_info->options != (void *) NULL) 1746 image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options); 1747} 1748 1749/* 1750%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1751% % 1752% % 1753% % 1754% G e t I m a g e O p t i o n % 1755% % 1756% % 1757% % 1758%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1759% 1760% GetImageOption() gets a value associated with an image option. 1761% 1762% The format of the GetImageOption method is: 1763% 1764% const char *GetImageOption(const ImageInfo *image_info, 1765% const char *option) 1766% 1767% A description of each parameter follows: 1768% 1769% o image_info: the image info. 1770% 1771% o option: the option. 1772% 1773*/ 1774MagickExport const char *GetImageOption(const ImageInfo *image_info, 1775 const char *option) 1776{ 1777 assert(image_info != (ImageInfo *) NULL); 1778 assert(image_info->signature == MagickSignature); 1779 if (image_info->debug != MagickFalse) 1780 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", 1781 image_info->filename); 1782 if (image_info->options == (void *) NULL) 1783 return((const char *) NULL); 1784 return((const char *) GetValueFromSplayTree((SplayTreeInfo *) 1785 image_info->options,option)); 1786} 1787 1788/* 1789%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1790% % 1791% % 1792% % 1793% G e t C o m m a n d O p t i o n F l a g s % 1794% % 1795% % 1796% % 1797%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1798% 1799% GetCommandOptionFlags() parses a string and returns an enumerated option 1800% flags(s). Return a value of -1 if no such option is found. 1801% 1802% The format of the GetCommandOptionFlags method is: 1803% 1804% ssize_t GetCommandOptionFlags(const CommandOption option, 1805% const MagickBooleanType list,const char *options) 1806% 1807% A description of each parameter follows: 1808% 1809% o option: Index to the option table to lookup 1810% 1811% o list: A option other than zero permits more than one option separated by 1812% a comma or pipe. 1813% 1814% o options: One or more options separated by commas. 1815% 1816*/ 1817 1818static const OptionInfo *GetOptionInfo(const CommandOption option) 1819{ 1820 switch (option) 1821 { 1822 case MagickAlignOptions: return(AlignOptions); 1823 case MagickAlphaOptions: return(AlphaOptions); 1824 case MagickBooleanOptions: return(BooleanOptions); 1825 case MagickChannelOptions: return(ChannelOptions); 1826 case MagickClassOptions: return(ClassOptions); 1827 case MagickClipPathOptions: return(ClipPathOptions); 1828 case MagickColorspaceOptions: return(ColorspaceOptions); 1829 case MagickCommandOptions: return(CommandOptions); 1830 case MagickComposeOptions: return(ComposeOptions); 1831 case MagickCompressOptions: return(CompressOptions); 1832 case MagickDataTypeOptions: return(DataTypeOptions); 1833 case MagickDebugOptions: return(LogEventOptions); 1834 case MagickDecorateOptions: return(DecorateOptions); 1835 case MagickDirectionOptions: return(DirectionOptions); 1836 case MagickDisposeOptions: return(DisposeOptions); 1837 case MagickDistortOptions: return(DistortOptions); 1838 case MagickDitherOptions: return(DitherOptions); 1839 case MagickEndianOptions: return(EndianOptions); 1840 case MagickEvaluateOptions: return(EvaluateOptions); 1841 case MagickFillRuleOptions: return(FillRuleOptions); 1842 case MagickFilterOptions: return(FilterOptions); 1843 case MagickFunctionOptions: return(FunctionOptions); 1844 case MagickGravityOptions: return(GravityOptions); 1845/* case MagickImageListOptions: return(ImageListOptions); */ 1846 case MagickIntentOptions: return(IntentOptions); 1847 case MagickInterlaceOptions: return(InterlaceOptions); 1848 case MagickInterpolateOptions: return(InterpolateOptions); 1849 case MagickKernelOptions: return(KernelOptions); 1850 case MagickLayerOptions: return(LayerOptions); 1851 case MagickLineCapOptions: return(LineCapOptions); 1852 case MagickLineJoinOptions: return(LineJoinOptions); 1853 case MagickListOptions: return(ListOptions); 1854 case MagickLogEventOptions: return(LogEventOptions); 1855 case MagickMetricOptions: return(MetricOptions); 1856 case MagickMethodOptions: return(MethodOptions); 1857 case MagickModeOptions: return(ModeOptions); 1858 case MagickMorphologyOptions: return(MorphologyOptions); 1859 case MagickNoiseOptions: return(NoiseOptions); 1860 case MagickOrientationOptions: return(OrientationOptions); 1861 case MagickPixelChannelOptions: return(PixelChannelOptions); 1862 case MagickPixelTraitOptions: return(PixelTraitOptions); 1863 case MagickPolicyDomainOptions: return(PolicyDomainOptions); 1864 case MagickPolicyRightsOptions: return(PolicyRightsOptions); 1865 case MagickPreviewOptions: return(PreviewOptions); 1866 case MagickPrimitiveOptions: return(PrimitiveOptions); 1867 case MagickQuantumFormatOptions: return(QuantumFormatOptions); 1868 case MagickResolutionOptions: return(ResolutionOptions); 1869 case MagickResourceOptions: return(ResourceOptions); 1870 case MagickSparseColorOptions: return(SparseColorOptions); 1871 case MagickStatisticOptions: return(StatisticOptions); 1872 case MagickStorageOptions: return(StorageOptions); 1873 case MagickStretchOptions: return(StretchOptions); 1874 case MagickStyleOptions: return(StyleOptions); 1875 case MagickTypeOptions: return(TypeOptions); 1876 case MagickValidateOptions: return(ValidateOptions); 1877 case MagickVirtualPixelOptions: return(VirtualPixelOptions); 1878 default: break; 1879 } 1880 return((const OptionInfo *) NULL); 1881} 1882 1883MagickExport ssize_t GetCommandOptionFlags(const CommandOption option, 1884 const MagickBooleanType list,const char *options) 1885{ 1886 char 1887 token[MaxTextExtent]; 1888 1889 const OptionInfo 1890 *option_info; 1891 1892 int 1893 sentinel; 1894 1895 MagickBooleanType 1896 negate; 1897 1898 register char 1899 *q; 1900 1901 register const char 1902 *p; 1903 1904 register ssize_t 1905 i; 1906 1907 ssize_t 1908 option_types; 1909 1910 option_info=GetOptionInfo(option); 1911 if (option_info == (const OptionInfo *) NULL) 1912 return(-1); 1913 option_types=0; 1914 sentinel=','; 1915 if (strchr(options,'|') != (char *) NULL) 1916 sentinel='|'; 1917 for (p=options; p != (char *) NULL; p=strchr(p,sentinel)) 1918 { 1919 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) && 1920 (*p != '\0')) 1921 p++; 1922 negate=(*p == '!') ? MagickTrue : MagickFalse; 1923 if (negate != MagickFalse) 1924 p++; 1925 q=token; 1926 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) && 1927 (*p != '\0')) 1928 { 1929 if ((q-token) >= (MaxTextExtent-1)) 1930 break; 1931 *q++=(*p++); 1932 } 1933 *q='\0'; 1934 for (i=0; option_info[i].mnemonic != (char *) NULL; i++) 1935 if (LocaleCompare(token,option_info[i].mnemonic) == 0) 1936 { 1937 if (*token == '!') 1938 option_types=option_types &~ option_info[i].flags; 1939 else 1940 option_types=option_types | option_info[i].flags; 1941 break; 1942 } 1943 if ((option_info[i].mnemonic == (char *) NULL) && 1944 ((strchr(token+1,'-') != (char *) NULL) || 1945 (strchr(token+1,'_') != (char *) NULL))) 1946 { 1947 while ((q=strchr(token+1,'-')) != (char *) NULL) 1948 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q)); 1949 while ((q=strchr(token+1,'_')) != (char *) NULL) 1950 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q)); 1951 for (i=0; option_info[i].mnemonic != (char *) NULL; i++) 1952 if (LocaleCompare(token,option_info[i].mnemonic) == 0) 1953 { 1954 if (*token == '!') 1955 option_types=option_types &~ option_info[i].flags; 1956 else 1957 option_types=option_types | option_info[i].flags; 1958 break; 1959 } 1960 } 1961 if (option_info[i].mnemonic == (char *) NULL) 1962 return(-1); 1963 if (list == MagickFalse) 1964 break; 1965 } 1966 return(option_types); 1967} 1968 1969/* 1970%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1971% % 1972% % 1973% % 1974% G e t C o m m a n d O p t i o n s % 1975% % 1976% % 1977% % 1978%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1979% 1980% GetCommandOptions() returns a list of values. 1981% 1982% The format of the GetCommandOptions method is: 1983% 1984% const char **GetCommandOptions(const CommandOption value) 1985% 1986% A description of each parameter follows: 1987% 1988% o value: the value. 1989% 1990*/ 1991MagickExport char **GetCommandOptions(const CommandOption value) 1992{ 1993 char 1994 **values; 1995 1996 const OptionInfo 1997 *option_info; 1998 1999 register ssize_t 2000 i; 2001 2002 option_info=GetOptionInfo(value); 2003 if (option_info == (const OptionInfo *) NULL) 2004 return((char **) NULL); 2005 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ; 2006 values=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*values)); 2007 if (values == (char **) NULL) 2008 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed"); 2009 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) 2010 values[i]=AcquireString(option_info[i].mnemonic); 2011 values[i]=(char *) NULL; 2012 return(values); 2013} 2014 2015/* 2016%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2017% % 2018% % 2019% % 2020% G e t N e x t I m a g e O p t i o n % 2021% % 2022% % 2023% % 2024%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2025% 2026% GetNextImageOption() gets the next image option value. 2027% 2028% The format of the GetNextImageOption method is: 2029% 2030% char *GetNextImageOption(const ImageInfo *image_info) 2031% 2032% A description of each parameter follows: 2033% 2034% o image_info: the image info. 2035% 2036*/ 2037MagickExport char *GetNextImageOption(const ImageInfo *image_info) 2038{ 2039 assert(image_info != (ImageInfo *) NULL); 2040 assert(image_info->signature == MagickSignature); 2041 if (image_info->debug != MagickFalse) 2042 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", 2043 image_info->filename); 2044 if (image_info->options == (void *) NULL) 2045 return((char *) NULL); 2046 return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options)); 2047} 2048 2049/* 2050%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2051% % 2052% % 2053% % 2054% I s C o m m a n d O p t i o n % 2055% % 2056% % 2057% % 2058%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2059% 2060% IsCommandOption() returns MagickTrue if the option begins with a - or + and 2061% the first character that follows is alphanumeric. 2062% 2063% The format of the IsCommandOption method is: 2064% 2065% MagickBooleanType IsCommandOption(const char *option) 2066% 2067% A description of each parameter follows: 2068% 2069% o option: the option. 2070% 2071*/ 2072MagickExport MagickBooleanType IsCommandOption(const char *option) 2073{ 2074 assert(option != (const char *) NULL); 2075 if ((*option != '-') && (*option != '+')) 2076 return(MagickFalse); 2077 if (strlen(option) == 1) 2078 return(MagickFalse); 2079 option++; 2080 if (isalpha((int) ((unsigned char) *option)) == 0) 2081 return(MagickFalse); 2082 return(MagickTrue); 2083} 2084 2085/* 2086%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2087% % 2088% % 2089% % 2090% C o m m a n d O p t i o n T o M n e m o n i c % 2091% % 2092% % 2093% % 2094%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2095% 2096% CommandOptionToMnemonic() returns an enumerated value as a mnemonic. 2097% 2098% The format of the CommandOptionToMnemonic method is: 2099% 2100% const char *CommandOptionToMnemonic(const CommandOption option, 2101% const ssize_t type) 2102% 2103% A description of each parameter follows: 2104% 2105% o option: the option. 2106% 2107% o type: one or more values separated by commas. 2108% 2109*/ 2110MagickExport const char *CommandOptionToMnemonic(const CommandOption option, 2111 const ssize_t type) 2112{ 2113 const OptionInfo 2114 *option_info; 2115 2116 register ssize_t 2117 i; 2118 2119 option_info=GetOptionInfo(option); 2120 if (option_info == (const OptionInfo *) NULL) 2121 return((const char *) NULL); 2122 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) 2123 if (type == option_info[i].type) 2124 break; 2125 if (option_info[i].mnemonic == (const char *) NULL) 2126 return("undefined"); 2127 return(option_info[i].mnemonic); 2128} 2129 2130/* 2131%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2132% % 2133% % 2134% % 2135% L i s t C o m m a n d O p t i o n s % 2136% % 2137% % 2138% % 2139%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2140% 2141% ListCommandOptions() lists the contents of enumerated option type(s). 2142% 2143% The format of the ListCommandOptions method is: 2144% 2145% MagickBooleanType ListCommandOptions(FILE *file, 2146% const CommandOption option,ExceptionInfo *exception) 2147% 2148% A description of each parameter follows: 2149% 2150% o file: list options to this file handle. 2151% 2152% o option: list these options. 2153% 2154% o exception: return any errors or warnings in this structure. 2155% 2156*/ 2157MagickExport MagickBooleanType ListCommandOptions(FILE *file, 2158 const CommandOption option,ExceptionInfo *magick_unused(exception)) 2159{ 2160 const OptionInfo 2161 *option_info; 2162 2163 register ssize_t 2164 i; 2165 2166 if (file == (FILE *) NULL) 2167 file=stdout; 2168 option_info=GetOptionInfo(option); 2169 if (option_info == (const OptionInfo *) NULL) 2170 return(MagickFalse); 2171 for (i=0; option_info[i].mnemonic != (char *) NULL; i++) 2172 { 2173 if (option_info[i].stealth != MagickFalse) 2174 continue; 2175 (void) FormatLocaleFile(file,"%s\n",option_info[i].mnemonic); 2176 } 2177 return(MagickTrue); 2178} 2179 2180/* 2181%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2182% % 2183% % 2184% % 2185% P a r s e C h a n n e l O p t i o n % 2186% % 2187% % 2188% % 2189%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2190% 2191% ParseChannelOption() parses a string and returns an enumerated channel 2192% type(s). 2193% 2194% The format of the ParseChannelOption method is: 2195% 2196% ssize_t ParseChannelOption(const char *channels) 2197% 2198% A description of each parameter follows: 2199% 2200% o options: One or more values separated by commas. 2201% 2202*/ 2203MagickExport ssize_t ParseChannelOption(const char *channels) 2204{ 2205 register ssize_t 2206 i; 2207 2208 ssize_t 2209 channel; 2210 2211 channel=ParseCommandOption(MagickChannelOptions,MagickTrue,channels); 2212 if (channel >= 0) 2213 return(channel); 2214 channel=0; 2215 for (i=0; i < (ssize_t) strlen(channels); i++) 2216 { 2217 switch (channels[i]) 2218 { 2219 case 'A': 2220 case 'a': 2221 { 2222 channel|=OpacityChannel; 2223 break; 2224 } 2225 case 'B': 2226 case 'b': 2227 { 2228 channel|=BlueChannel; 2229 break; 2230 } 2231 case 'C': 2232 case 'c': 2233 { 2234 channel|=CyanChannel; 2235 break; 2236 } 2237 case 'g': 2238 case 'G': 2239 { 2240 channel|=GreenChannel; 2241 break; 2242 } 2243 case 'K': 2244 case 'k': 2245 { 2246 channel|=BlackChannel; 2247 break; 2248 } 2249 case 'M': 2250 case 'm': 2251 { 2252 channel|=MagentaChannel; 2253 break; 2254 } 2255 case 'o': 2256 case 'O': 2257 { 2258 channel|=OpacityChannel; 2259 break; 2260 } 2261 case 'R': 2262 case 'r': 2263 { 2264 channel|=RedChannel; 2265 break; 2266 } 2267 case 'Y': 2268 case 'y': 2269 { 2270 channel|=YellowChannel; 2271 break; 2272 } 2273 case ',': 2274 { 2275 ssize_t 2276 type; 2277 2278 /* 2279 Gather the additional channel flags and merge with shorthand. 2280 */ 2281 type=ParseCommandOption(MagickChannelOptions,MagickTrue,channels+i+1); 2282 if (type < 0) 2283 return(type); 2284 channel|=type; 2285 return(channel); 2286 } 2287 default: 2288 return(-1); 2289 } 2290 } 2291 return(channel); 2292} 2293 2294/* 2295%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2296% % 2297% % 2298% % 2299% P a r s e C o m m a n d O p t i o n % 2300% % 2301% % 2302% % 2303%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2304% 2305% ParseCommandOption() parses a string and returns an enumerated option 2306% type(s). Return a value of -1 if no such option is found. 2307% 2308% The format of the ParseCommandOption method is: 2309% 2310% ssize_t ParseCommandOption(const CommandOption option, 2311% const MagickBooleanType list,const char *options) 2312% 2313% A description of each parameter follows: 2314% 2315% o option: Index to the option table to lookup 2316% 2317% o list: A option other than zero permits more than one option separated by 2318% a comma or pipe. 2319% 2320% o options: One or more options separated by commas. 2321% 2322*/ 2323MagickExport ssize_t ParseCommandOption(const CommandOption option, 2324 const MagickBooleanType list,const char *options) 2325{ 2326 char 2327 token[MaxTextExtent]; 2328 2329 const OptionInfo 2330 *option_info; 2331 2332 int 2333 sentinel; 2334 2335 MagickBooleanType 2336 negate; 2337 2338 register char 2339 *q; 2340 2341 register const char 2342 *p; 2343 2344 register ssize_t 2345 i; 2346 2347 ssize_t 2348 option_types; 2349 2350 option_info=GetOptionInfo(option); 2351 if (option_info == (const OptionInfo *) NULL) 2352 return(-1); 2353 option_types=0; 2354 sentinel=','; 2355 if (strchr(options,'|') != (char *) NULL) 2356 sentinel='|'; 2357 for (p=options; p != (char *) NULL; p=strchr(p,sentinel)) 2358 { 2359 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) && 2360 (*p != '\0')) 2361 p++; 2362 negate=(*p == '!') ? MagickTrue : MagickFalse; 2363 if (negate != MagickFalse) 2364 p++; 2365 q=token; 2366 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) && 2367 (*p != '\0')) 2368 { 2369 if ((q-token) >= (MaxTextExtent-1)) 2370 break; 2371 *q++=(*p++); 2372 } 2373 *q='\0'; 2374 for (i=0; option_info[i].mnemonic != (char *) NULL; i++) 2375 if (LocaleCompare(token,option_info[i].mnemonic) == 0) 2376 { 2377 if (*token == '!') 2378 option_types=option_types &~ option_info[i].type; 2379 else 2380 option_types=option_types | option_info[i].type; 2381 break; 2382 } 2383 if ((option_info[i].mnemonic == (char *) NULL) && 2384 ((strchr(token+1,'-') != (char *) NULL) || 2385 (strchr(token+1,'_') != (char *) NULL))) 2386 { 2387 while ((q=strchr(token+1,'-')) != (char *) NULL) 2388 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q)); 2389 while ((q=strchr(token+1,'_')) != (char *) NULL) 2390 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q)); 2391 for (i=0; option_info[i].mnemonic != (char *) NULL; i++) 2392 if (LocaleCompare(token,option_info[i].mnemonic) == 0) 2393 { 2394 if (*token == '!') 2395 option_types=option_types &~ option_info[i].type; 2396 else 2397 option_types=option_types | option_info[i].type; 2398 break; 2399 } 2400 } 2401 if (option_info[i].mnemonic == (char *) NULL) 2402 return(-1); 2403 if (list == MagickFalse) 2404 break; 2405 } 2406 return(option_types); 2407} 2408 2409/* 2410%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2411% % 2412% % 2413% % 2414% R e m o v e I m a g e O p t i o n % 2415% % 2416% % 2417% % 2418%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2419% 2420% RemoveImageOption() removes an option from the image and returns its value. 2421% 2422% The format of the RemoveImageOption method is: 2423% 2424% char *RemoveImageOption(ImageInfo *image_info,const char *option) 2425% 2426% A description of each parameter follows: 2427% 2428% o image_info: the image info. 2429% 2430% o option: the image option. 2431% 2432*/ 2433MagickExport char *RemoveImageOption(ImageInfo *image_info,const char *option) 2434{ 2435 char 2436 *value; 2437 2438 assert(image_info != (ImageInfo *) NULL); 2439 assert(image_info->signature == MagickSignature); 2440 if (image_info->debug != MagickFalse) 2441 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", 2442 image_info->filename); 2443 if (image_info->options == (void *) NULL) 2444 return((char *) NULL); 2445 value=(char *) RemoveNodeFromSplayTree((SplayTreeInfo *) 2446 image_info->options,option); 2447 return(value); 2448} 2449 2450/* 2451%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2452% % 2453% % 2454% % 2455% R e s e t I m a g e O p t i o n % 2456% % 2457% % 2458% % 2459%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2460% 2461% ResetImageOptions() resets the image_info option. That is, it deletes 2462% all options associated with the image_info structure. 2463% 2464% The format of the ResetImageOptions method is: 2465% 2466% ResetImageOptions(ImageInfo *image_info) 2467% 2468% A description of each parameter follows: 2469% 2470% o image_info: the image info. 2471% 2472*/ 2473MagickExport void ResetImageOptions(const ImageInfo *image_info) 2474{ 2475 assert(image_info != (ImageInfo *) NULL); 2476 assert(image_info->signature == MagickSignature); 2477 if (image_info->debug != MagickFalse) 2478 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", 2479 image_info->filename); 2480 if (image_info->options == (void *) NULL) 2481 return; 2482 ResetSplayTree((SplayTreeInfo *) image_info->options); 2483} 2484 2485/* 2486%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2487% % 2488% % 2489% % 2490% R e s e t I m a g e O p t i o n I t e r a t o r % 2491% % 2492% % 2493% % 2494%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2495% 2496% ResetImageOptionIterator() resets the image_info values iterator. Use it 2497% in conjunction with GetNextImageOption() to iterate over all the values 2498% associated with an image option. 2499% 2500% The format of the ResetImageOptionIterator method is: 2501% 2502% ResetImageOptionIterator(ImageInfo *image_info) 2503% 2504% A description of each parameter follows: 2505% 2506% o image_info: the image info. 2507% 2508*/ 2509MagickExport void ResetImageOptionIterator(const ImageInfo *image_info) 2510{ 2511 assert(image_info != (ImageInfo *) NULL); 2512 assert(image_info->signature == MagickSignature); 2513 if (image_info->debug != MagickFalse) 2514 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", 2515 image_info->filename); 2516 if (image_info->options == (void *) NULL) 2517 return; 2518 ResetSplayTreeIterator((SplayTreeInfo *) image_info->options); 2519} 2520 2521/* 2522%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2523% % 2524% % 2525% % 2526% S e t I m a g e O p t i o n % 2527% % 2528% % 2529% % 2530%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2531% 2532% SetImageOption() associates an value with an image option. 2533% 2534% The format of the SetImageOption method is: 2535% 2536% MagickBooleanType SetImageOption(ImageInfo *image_info, 2537% const char *option,const char *value) 2538% 2539% A description of each parameter follows: 2540% 2541% o image_info: the image info. 2542% 2543% o option: the image option. 2544% 2545% o values: the image option values. 2546% 2547*/ 2548MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info, 2549 const char *option,const char *value) 2550{ 2551 assert(image_info != (ImageInfo *) NULL); 2552 assert(image_info->signature == MagickSignature); 2553 if (image_info->debug != MagickFalse) 2554 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", 2555 image_info->filename); 2556 2557 /* This should not be here! - but others might */ 2558 if (LocaleCompare(option,"size") == 0) 2559 (void) CloneString(&image_info->size,value); 2560 2561 /* create tree if needed - specify how key,values are to be freed */ 2562 if (image_info->options == (void *) NULL) 2563 image_info->options=NewSplayTree(CompareSplayTreeString, 2564 RelinquishMagickMemory,RelinquishMagickMemory); 2565 2566 /* Delete Option if NULL */ 2567 if (value == (const char *) NULL) 2568 return(DeleteImageOption(image_info,option)); 2569 2570 /* add option and return */ 2571 return(AddValueToSplayTree((SplayTreeInfo *) image_info->options, 2572 ConstantString(option),ConstantString(value))); 2573} 2574