MagickCore  7.0.3
option.c File Reference
Include dependency graph for option.c:

Go to the source code of this file.

Functions

MagickExport MagickBooleanType CloneImageOptions (ImageInfo *image_info, const ImageInfo *clone_info)
 
MagickExport MagickBooleanType DefineImageOption (ImageInfo *image_info, const char *option)
 
MagickExport MagickBooleanType DeleteImageOption (ImageInfo *image_info, const char *option)
 
MagickExport void DestroyImageOptions (ImageInfo *image_info)
 
MagickExport const char * GetImageOption (const ImageInfo *image_info, const char *option)
 
static const OptionInfoGetOptionInfo (const CommandOption option)
 
MagickExport ssize_t GetCommandOptionFlags (const CommandOption option, const MagickBooleanType list, const char *options)
 
MagickExport const OptionInfoGetCommandOptionInfo (const char *option)
 
MagickExport char ** GetCommandOptions (const CommandOption option)
 
MagickExport char * GetNextImageOption (const ImageInfo *image_info)
 
MagickExport MagickBooleanType IsCommandOption (const char *option)
 
MagickExport const char * CommandOptionToMnemonic (const CommandOption option, const ssize_t type)
 
MagickExport MagickBooleanType IsOptionMember (const char *option, const char *options)
 
MagickExport MagickBooleanType ListCommandOptions (FILE *file, const CommandOption option, ExceptionInfo *magick_unused(exception))
 
MagickExport ssize_t ParseChannelOption (const char *channels)
 
MagickExport ssize_t ParseCommandOption (const CommandOption option, const MagickBooleanType list, const char *options)
 
MagickExport ssize_t ParsePixelChannelOption (const char *channels)
 
MagickExport char * RemoveImageOption (ImageInfo *image_info, const char *option)
 
MagickExport void ResetImageOptions (const ImageInfo *image_info)
 
MagickExport void ResetImageOptionIterator (const ImageInfo *image_info)
 
MagickExport MagickBooleanType SetImageOption (ImageInfo *image_info, const char *option, const char *value)
 

Variables

static const OptionInfo AlignOptions []
 
static const OptionInfo AlphaChannelOptions []
 
static const OptionInfo AutoThresholdOptions []
 
static const OptionInfo BooleanOptions []
 
static const OptionInfo CacheOptions []
 
static const OptionInfo ChannelOptions []
 
static const OptionInfo ClassOptions []
 
static const OptionInfo CLIOptions []
 
static const OptionInfo ClipPathOptions []
 
static const OptionInfo ColorspaceOptions []
 
static const OptionInfo ComplexOptions []
 
static const OptionInfo CommandOptions []
 
static const OptionInfo ComplianceOptions []
 
static const OptionInfo ComposeOptions []
 
static const OptionInfo CompressOptions []
 
static const OptionInfo DataTypeOptions []
 
static const OptionInfo DecorateOptions []
 
static const OptionInfo DirectionOptions []
 
static const OptionInfo DisposeOptions []
 
static const OptionInfo DistortOptions []
 
static const OptionInfo DitherOptions []
 
static const OptionInfo EndianOptions []
 
static const OptionInfo EvaluateOptions []
 
static const OptionInfo FillRuleOptions []
 
static const OptionInfo FilterOptions []
 
static const OptionInfo FunctionOptions []
 
static const OptionInfo GradientOptions []
 
static const OptionInfo GravityOptions []
 
static const OptionInfo IntentOptions []
 
static const OptionInfo InterlaceOptions []
 
static const OptionInfo InterpolateOptions []
 
static const OptionInfo KernelOptions []
 
static const OptionInfo LayerOptions []
 
static const OptionInfo LineCapOptions []
 
static const OptionInfo LineJoinOptions []
 
static const OptionInfo ListOptions []
 
static const OptionInfo LogEventOptions []
 
static const OptionInfo MetricOptions []
 
static const OptionInfo MethodOptions []
 
static const OptionInfo ModeOptions []
 
static const OptionInfo MorphologyOptions []
 
static const OptionInfo NoiseOptions []
 
static const OptionInfo OrientationOptions []
 
static const OptionInfo PixelChannelOptions []
 
static const OptionInfo PixelIntensityOptions []
 
static const OptionInfo PixelMaskOptions []
 
static const OptionInfo PixelTraitOptions []
 
static const OptionInfo PolicyDomainOptions []
 
static const OptionInfo PolicyRightsOptions []
 
static const OptionInfo PreviewOptions []
 
static const OptionInfo PrimitiveOptions []
 
static const OptionInfo QuantumFormatOptions []
 
static const OptionInfo ResolutionOptions []
 
static const OptionInfo ResourceOptions []
 
static const OptionInfo SparseColorOptions []
 
static const OptionInfo StatisticOptions []
 
static const OptionInfo StorageOptions []
 
static const OptionInfo StretchOptions []
 
static const OptionInfo StyleOptions []
 
static const OptionInfo ToolOptions []
 
static const OptionInfo TypeOptions []
 
static const OptionInfo ValidateOptions []
 
static const OptionInfo VirtualPixelOptions []
 
static const OptionInfo WeightOptions []
 

Function Documentation

MagickExport MagickBooleanType DefineImageOption ( ImageInfo image_info,
const char *  option 
)

Definition at line 2177 of file option.c.

References CopyMagickString(), MagickPathExtent, and SetImageOption().

MagickExport ssize_t GetCommandOptionFlags ( const CommandOption  option,
const MagickBooleanType  list,
const char *  options 
)
MagickExport const OptionInfo* GetCommandOptionInfo ( const char *  option)

Definition at line 2527 of file option.c.

References CommandOptions, LocaleCompare(), and _OptionInfo::mnemonic.

MagickExport char** GetCommandOptions ( const CommandOption  option)
static const OptionInfo* GetOptionInfo ( const CommandOption  option)
static

Definition at line 2346 of file option.c.

References AlignOptions, AlphaChannelOptions, AutoThresholdOptions, BooleanOptions, CacheOptions, ChannelOptions, ClassOptions, CLIOptions, ClipPathOptions, ColorspaceOptions, CommandOptions, ComplexOptions, ComplianceOptions, ComposeOptions, CompressOptions, DataTypeOptions, DecorateOptions, DirectionOptions, DisposeOptions, DistortOptions, DitherOptions, EndianOptions, EvaluateOptions, FillRuleOptions, FilterOptions, FunctionOptions, GradientOptions, GravityOptions, IntentOptions, InterlaceOptions, InterpolateOptions, KernelOptions, LayerOptions, LineCapOptions, LineJoinOptions, ListOptions, LogEventOptions, MagickAlignOptions, MagickAlphaChannelOptions, MagickAutoThresholdOptions, MagickBooleanOptions, MagickCacheOptions, MagickChannelOptions, MagickClassOptions, MagickCLIOptions, MagickClipPathOptions, MagickColorspaceOptions, MagickCommandOptions, MagickComplexOptions, MagickComplianceOptions, MagickComposeOptions, MagickCompressOptions, MagickDataTypeOptions, MagickDebugOptions, MagickDecorateOptions, MagickDirectionOptions, MagickDisposeOptions, MagickDistortOptions, MagickDitherOptions, MagickEndianOptions, MagickEvaluateOptions, MagickFillRuleOptions, MagickFilterOptions, MagickFunctionOptions, MagickGradientOptions, MagickGravityOptions, MagickIntentOptions, MagickInterlaceOptions, MagickInterpolateOptions, MagickKernelOptions, MagickLayerOptions, MagickLineCapOptions, MagickLineJoinOptions, MagickListOptions, MagickLogEventOptions, MagickMethodOptions, MagickMetricOptions, MagickModeOptions, MagickMorphologyOptions, MagickNoiseOptions, MagickOrientationOptions, MagickPixelChannelOptions, MagickPixelIntensityOptions, MagickPixelMaskOptions, MagickPixelTraitOptions, MagickPolicyDomainOptions, MagickPolicyRightsOptions, MagickPreviewOptions, MagickPrimitiveOptions, MagickQuantumFormatOptions, MagickResolutionOptions, MagickResourceOptions, MagickSparseColorOptions, MagickStatisticOptions, MagickStorageOptions, MagickStretchOptions, MagickStyleOptions, MagickToolOptions, MagickTypeOptions, MagickValidateOptions, MagickVirtualPixelOptions, MagickWeightOptions, MethodOptions, MetricOptions, ModeOptions, MorphologyOptions, NoiseOptions, OrientationOptions, PixelChannelOptions, PixelIntensityOptions, PixelMaskOptions, PixelTraitOptions, PolicyDomainOptions, PolicyRightsOptions, PreviewOptions, PrimitiveOptions, QuantumFormatOptions, ResolutionOptions, ResourceOptions, SparseColorOptions, StatisticOptions, StorageOptions, StretchOptions, StyleOptions, ToolOptions, TypeOptions, ValidateOptions, VirtualPixelOptions, and WeightOptions.

Referenced by CommandOptionToMnemonic(), GetCommandOptionFlags(), GetCommandOptions(), ListCommandOptions(), and ParseCommandOption().

MagickExport MagickBooleanType IsCommandOption ( const char *  option)

Definition at line 2641 of file option.c.

References MagickFalse, and MagickTrue.

MagickExport MagickBooleanType IsOptionMember ( const char *  option,
const char *  options 
)
MagickExport MagickBooleanType ListCommandOptions ( FILE *  file,
const CommandOption  option,
ExceptionInfo magick_unusedexception 
)
MagickExport ssize_t ParseChannelOption ( const char *  channels)
MagickExport ssize_t ParsePixelChannelOption ( const char *  channels)

Variable Documentation

const OptionInfo AlphaChannelOptions[]
static
Initial value:
=
{
}

Definition at line 97 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo BooleanOptions[]
static
const OptionInfo CacheOptions[]
static
const OptionInfo ChannelOptions[]
static

Definition at line 143 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo ClassOptions[]
static
const OptionInfo CLIOptions[]
static

Definition at line 221 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo ClipPathOptions[]
static
const OptionInfo ColorspaceOptions[]
static

Definition at line 459 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo CommandOptions[]
static

Definition at line 510 of file option.c.

Referenced by GetCommandOptionInfo(), and GetOptionInfo().

const OptionInfo ComposeOptions[]
static

Definition at line 1142 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo CompressOptions[]
static
Initial value:
=
{
{ "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
}

Definition at line 1222 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo DirectionOptions[]
static
const OptionInfo DistortOptions[]
static
Initial value:
=
{
}

Definition at line 1289 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo EndianOptions[]
static
const OptionInfo EvaluateOptions[]
static

Definition at line 1327 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo FillRuleOptions[]
static
Initial value:

Definition at line 1368 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo FilterOptions[]
static

Definition at line 1375 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo GradientOptions[]
static
const OptionInfo GravityOptions[]
static
Initial value:

Definition at line 1429 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo InterpolateOptions[]
static
Initial value:
=
{
}

Definition at line 1466 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo KernelOptions[]
static

Definition at line 1485 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo LayerOptions[]
static
Initial value:
=
{
{ "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
}

Definition at line 1527 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo LineCapOptions[]
static
Initial value:

Definition at line 1548 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo LineJoinOptions[]
static
Initial value:

Definition at line 1556 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo ListOptions[]
static

Definition at line 1564 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo LogEventOptions[]
static
Initial value:
=
{
}
Definition: log.h:39
Definition: log.h:56
Definition: log.h:44
Definition: log.h:58
Definition: log.h:52
Definition: log.h:40
Definition: log.h:49
Definition: log.h:54
Definition: log.h:55
Definition: log.h:36
Definition: log.h:41

Definition at line 1648 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo MetricOptions[]
static
Initial value:
=
{
}

Definition at line 1675 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo ModeOptions[]
static
const OptionInfo MorphologyOptions[]
static

Definition at line 1710 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo PixelChannelOptions[]
static

Definition at line 1768 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo PixelIntensityOptions[]
static
Initial value:
=
{
}

Definition at line 1802 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo PreviewOptions[]
static

Definition at line 1857 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo PrimitiveOptions[]
static
Initial value:
=
{
}

Definition at line 1891 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo ResourceOptions[]
static
Initial value:

Definition at line 1930 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo StatisticOptions[]
static
Initial value:

Definition at line 1957 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo StretchOptions[]
static
Initial value:

Definition at line 1984 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo StyleOptions[]
static
const OptionInfo ToolOptions[]
static
Initial value:
=
{
{ "animate", 0, UndefinedOptionFlag, MagickFalse },
{ "compare", 0, UndefinedOptionFlag, MagickFalse },
{ "composite", 0, UndefinedOptionFlag, MagickFalse },
{ "conjure", 0, UndefinedOptionFlag, MagickFalse },
{ "convert", 0, UndefinedOptionFlag, MagickFalse },
{ "display", 0, UndefinedOptionFlag, MagickFalse },
{ "identify", 0, UndefinedOptionFlag, MagickFalse },
{ "import", 0, UndefinedOptionFlag, MagickFalse },
{ "mogrify", 0, UndefinedOptionFlag, MagickFalse },
{ "montage", 0, UndefinedOptionFlag, MagickFalse },
{ "stream", 0, UndefinedOptionFlag, MagickFalse },
{ (char *) NULL, 0, UndefinedOptionFlag, MagickFalse }
}

Definition at line 2009 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo TypeOptions[]
static
Initial value:
=
{
}

Definition at line 2024 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo ValidateOptions[]
static
Initial value:
=
{
}

Definition at line 2045 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo VirtualPixelOptions[]
static
Initial value:
=
{
}

Definition at line 2063 of file option.c.

Referenced by GetOptionInfo().

const OptionInfo WeightOptions[]
static
Initial value:
=
{
{ "Undefined", 0L, UndefinedOptionFlag, MagickTrue },
{ "Thin", 100L, UndefinedOptionFlag, MagickFalse },
{ "ExtraLight", 200L, UndefinedOptionFlag, MagickFalse },
{ "UltraLight", 200L, UndefinedOptionFlag, MagickFalse },
{ "Light", 300L, DeprecateOptionFlag, MagickTrue },
{ "Normal", 400L, UndefinedOptionFlag, MagickFalse },
{ "Regular", 400L, UndefinedOptionFlag, MagickFalse },
{ "Medium", 500L, UndefinedOptionFlag, MagickFalse },
{ "DemiBold", 600L, UndefinedOptionFlag, MagickFalse },
{ "SemiBold", 600L, UndefinedOptionFlag, MagickFalse },
{ "Bold", 700L, UndefinedOptionFlag, MagickFalse },
{ "ExtraBold", 800L, UndefinedOptionFlag, MagickFalse },
{ "UltraBold", 800L, UndefinedOptionFlag, MagickFalse },
{ "Heavy", 900L, UndefinedOptionFlag, MagickFalse },
{ "Black", 900L, UndefinedOptionFlag, MagickFalse },
{ (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
}

Definition at line 2085 of file option.c.

Referenced by GetOptionInfo().