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