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