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