MagickCore  7.0.8
Convert, Edit, Or Compose Bitmap Images
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

◆ CloneImageOptions()

◆ CommandOptionToMnemonic()

◆ DefineImageOption()

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

Definition at line 2173 of file option.c.

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

◆ DeleteImageOption()

◆ DestroyImageOptions()

◆ GetCommandOptionFlags()

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

◆ GetCommandOptionInfo()

MagickExport const OptionInfo* GetCommandOptionInfo ( const char *  option)

Definition at line 2523 of file option.c.

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

◆ GetCommandOptions()

MagickExport char** GetCommandOptions ( const CommandOption  option)

◆ GetImageOption()

◆ GetNextImageOption()

◆ GetOptionInfo()

static const OptionInfo* GetOptionInfo ( const CommandOption  option)
static

Definition at line 2342 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().

◆ IsCommandOption()

MagickExport MagickBooleanType IsCommandOption ( const char *  option)

Definition at line 2637 of file option.c.

References MagickFalse, and MagickTrue.

◆ IsOptionMember()

MagickExport MagickBooleanType IsOptionMember ( const char *  option,
const char *  options 
)

◆ ListCommandOptions()

MagickExport MagickBooleanType ListCommandOptions ( FILE *  file,
const CommandOption  option,
ExceptionInfo magick_unusedexception 
)

◆ ParseChannelOption()

MagickExport ssize_t ParseChannelOption ( const char *  channels)

◆ ParseCommandOption()

◆ ParsePixelChannelOption()

MagickExport ssize_t ParsePixelChannelOption ( const char *  channels)

◆ RemoveImageOption()

◆ ResetImageOptionIterator()

◆ ResetImageOptions()

◆ SetImageOption()

Variable Documentation

◆ AlignOptions

◆ AlphaChannelOptions

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

Definition at line 97 of file option.c.

Referenced by GetOptionInfo().

◆ AutoThresholdOptions

◆ BooleanOptions

const OptionInfo BooleanOptions[]
static

◆ CacheOptions

const OptionInfo CacheOptions[]
static

◆ ChannelOptions

const OptionInfo ChannelOptions[]
static

Definition at line 143 of file option.c.

Referenced by GetOptionInfo().

◆ ClassOptions

const OptionInfo ClassOptions[]
static

◆ CLIOptions

const OptionInfo CLIOptions[]
static

Definition at line 221 of file option.c.

Referenced by GetOptionInfo().

◆ ClipPathOptions

const OptionInfo ClipPathOptions[]
static

◆ ColorspaceOptions

const OptionInfo ColorspaceOptions[]
static

Definition at line 459 of file option.c.

Referenced by GetOptionInfo().

◆ CommandOptions

const OptionInfo CommandOptions[]
static

Definition at line 510 of file option.c.

Referenced by GetCommandOptionInfo(), and GetOptionInfo().

◆ ComplexOptions

◆ ComplianceOptions

◆ ComposeOptions

const OptionInfo ComposeOptions[]
static

Definition at line 1140 of file option.c.

Referenced by GetOptionInfo().

◆ CompressOptions

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

Definition at line 1220 of file option.c.

Referenced by GetOptionInfo().

◆ DataTypeOptions

◆ DecorateOptions

◆ DirectionOptions

const OptionInfo DirectionOptions[]
static

◆ DisposeOptions

◆ DistortOptions

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

Definition at line 1285 of file option.c.

Referenced by GetOptionInfo().

◆ DitherOptions

◆ EndianOptions

const OptionInfo EndianOptions[]
static

◆ EvaluateOptions

const OptionInfo EvaluateOptions[]
static

Definition at line 1323 of file option.c.

Referenced by GetOptionInfo().

◆ FillRuleOptions

const OptionInfo FillRuleOptions[]
static
Initial value:

Definition at line 1364 of file option.c.

Referenced by GetOptionInfo().

◆ FilterOptions

const OptionInfo FilterOptions[]
static

Definition at line 1371 of file option.c.

Referenced by GetOptionInfo().

◆ FunctionOptions

◆ GradientOptions

const OptionInfo GradientOptions[]
static

◆ GravityOptions

const OptionInfo GravityOptions[]
static

◆ IntentOptions

◆ InterlaceOptions

◆ InterpolateOptions

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

Definition at line 1462 of file option.c.

Referenced by GetOptionInfo().

◆ KernelOptions

const OptionInfo KernelOptions[]
static

Definition at line 1481 of file option.c.

Referenced by GetOptionInfo().

◆ LayerOptions

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

Definition at line 1523 of file option.c.

Referenced by GetOptionInfo().

◆ LineCapOptions

const OptionInfo LineCapOptions[]
static
Initial value:

Definition at line 1544 of file option.c.

Referenced by GetOptionInfo().

◆ LineJoinOptions

const OptionInfo LineJoinOptions[]
static
Initial value:

Definition at line 1552 of file option.c.

Referenced by GetOptionInfo().

◆ ListOptions

const OptionInfo ListOptions[]
static

Definition at line 1560 of file option.c.

Referenced by GetOptionInfo().

◆ LogEventOptions

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 1644 of file option.c.

Referenced by GetOptionInfo().

◆ MethodOptions

◆ MetricOptions

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

Definition at line 1671 of file option.c.

Referenced by GetOptionInfo().

◆ ModeOptions

const OptionInfo ModeOptions[]
static

◆ MorphologyOptions

const OptionInfo MorphologyOptions[]
static

Definition at line 1706 of file option.c.

Referenced by GetOptionInfo().

◆ NoiseOptions

◆ OrientationOptions

◆ PixelChannelOptions

const OptionInfo PixelChannelOptions[]
static

Definition at line 1764 of file option.c.

Referenced by GetOptionInfo().

◆ PixelIntensityOptions

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

Definition at line 1798 of file option.c.

Referenced by GetOptionInfo().

◆ PixelMaskOptions

◆ PixelTraitOptions

◆ PolicyDomainOptions

◆ PolicyRightsOptions

◆ PreviewOptions

const OptionInfo PreviewOptions[]
static

Definition at line 1853 of file option.c.

Referenced by GetOptionInfo().

◆ PrimitiveOptions

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

Definition at line 1887 of file option.c.

Referenced by GetOptionInfo().

◆ QuantumFormatOptions

◆ ResolutionOptions

◆ ResourceOptions

const OptionInfo ResourceOptions[]
static
Initial value:

Definition at line 1926 of file option.c.

Referenced by GetOptionInfo().

◆ SparseColorOptions

◆ StatisticOptions

const OptionInfo StatisticOptions[]
static
Initial value:

Definition at line 1953 of file option.c.

Referenced by GetOptionInfo().

◆ StorageOptions

◆ StretchOptions

const OptionInfo StretchOptions[]
static
Initial value:

Definition at line 1980 of file option.c.

Referenced by GetOptionInfo().

◆ StyleOptions

const OptionInfo StyleOptions[]
static

◆ ToolOptions

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 2005 of file option.c.

Referenced by GetOptionInfo().

◆ TypeOptions

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

Definition at line 2020 of file option.c.

Referenced by GetOptionInfo().

◆ ValidateOptions

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

Definition at line 2041 of file option.c.

Referenced by GetOptionInfo().

◆ VirtualPixelOptions

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

Definition at line 2059 of file option.c.

Referenced by GetOptionInfo().

◆ WeightOptions

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 2081 of file option.c.

Referenced by GetOptionInfo().