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