MagickCore  6.8.5
option.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License.
6  obtain a copy of the License at
7 
8  http://www.imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickCore option methods.
17 */
18 #ifndef _MAGICKCORE_OPTION_H
19 #define _MAGICKCORE_OPTION_H
20 
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24 
25 typedef enum
26 {
98 
99 typedef enum
100 {
102  NoValidate = 0x00000,
103  CompareValidate = 0x00001,
104  CompositeValidate = 0x00002,
105  ConvertValidate = 0x00004,
108  IdentifyValidate = 0x00020,
110  MontageValidate = 0x00080,
111  StreamValidate = 0x00100,
113  AllValidate = 0x7fffffff
114 } ValidateType;
115 
116 typedef struct _OptionInfo
117 {
118  const char
120 
121  ssize_t
123  flags;
124 
127 } OptionInfo;
128 
129 /*
130  Flags to describe classes of image processing options.
131 */
132 typedef enum
133 {
135  FireOptionFlag = 0x0001, /* Option sequence firing point */
136  ImageInfoOptionFlag = 0x0002, /* Sets ImageInfo, no image needed */
137  DrawInfoOptionFlag = 0x0004, /* Sets DrawInfo, no image needed */
138  QuantizeInfoOptionFlag = 0x0008, /* Sets QuantizeInfo, no image needed */
139  GlobalOptionFlag = 0x0010, /* Sets Global Option, no image needed */
140  SimpleOperatorOptionFlag = 0x0100, /* Simple Image processing operator */
141  ListOperatorOptionFlag = 0x0200, /* Multi-Image List processing operator */
142  SpecialOperatorOptionFlag = 0x0400, /* Specially handled Operator Option */
143  GenesisOptionFlag = 0x0400, /* Genesis Command Wrapper Option */
144  NonConvertOptionFlag = 0x4000, /* Option not used by Convert */
145  DeprecateOptionFlag = 0x8000 /* Deprecate option, give warning */
147 
148 extern MagickExport char
150  *GetNextImageOption(const ImageInfo *),
151  *RemoveImageOption(ImageInfo *,const char *);
152 
153 extern MagickExport const char
154  *CommandOptionToMnemonic(const CommandOption,const ssize_t),
155  *GetImageOption(const ImageInfo *,const char *);
156 
159  DefineImageOption(ImageInfo *,const char *),
160  DeleteImageOption(ImageInfo *,const char *),
161  IsCommandOption(const char *),
163  SetImageOption(ImageInfo *,const char *,const char *);
164 
165 extern MagickExport ssize_t
167  const char *),
168  ParseChannelOption(const char *),
169  ParseCommandOption(const CommandOption,const MagickBooleanType,const char *);
170 
171 extern MagickExport void
173  ResetImageOptions(const ImageInfo *),
175 
176 #if defined(__cplusplus) || defined(c_plusplus)
177 }
178 #endif
179 
180 #endif