Home | History | Annotate | Download | only in MagickWand

Lines Matching refs:cli_wand

404 %    void CLISettingOptionInfo(MagickCLI *cli_wand,
409 % o cli_wand: structure holding settings to be applied
417 WandPrivate void CLISettingOptionInfo(MagickCLI *cli_wand,
427 #define _image_info (cli_wand->wand.image_info)
428 #define _image (cli_wand->wand.images)
429 #define _exception (cli_wand->wand.exception)
430 #define _draw_info (cli_wand->draw_info)
431 #define _quantize_info (cli_wand->quantize_info)
438 assert(cli_wand != (MagickCLI *) NULL);
439 assert(cli_wand->signature == MagickWandSignature);
440 assert(cli_wand->wand.signature == MagickWandSignature);
442 if (cli_wand->wand.debug != MagickFalse)
443 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(),
450 #define _process_flags (cli_wand->process_flags)
451 #define _option_type ((CommandOptionFlags) cli_wand->command->flags)
602 CLISettingOptionInfo(cli_wand,"-undercolor",arg1, arg2);
700 cli_wand->wand.debug=IsEventLogging();
1619 % MagickBooleanType CLISimpleOperatorImages(MagickCLI *cli_wand,const char *option,
1624 % o cli_wand: structure holding settings and images to be operated on
1649 static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand,
1672 #define _image_info (cli_wand->wand.image_info)
1673 #define _image (cli_wand->wand.images)
1674 #define _exception (cli_wand->wand.exception)
1675 #define _draw_info (cli_wand->draw_info)
1676 #define _quantize_info (cli_wand->quantize_info)
1677 cli_wand->process_flags)
1678 #define _option_type ((CommandOptionFlags) cli_wand->command->flags)
1684 assert(cli_wand != (MagickCLI *) NULL);
1685 assert(cli_wand->signature == MagickWandSignature);
1686 assert(cli_wand->wand.signature == MagickWandSignature);
1688 if (cli_wand->wand.debug != MagickFalse)
1689 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",cli_wand->wand.name);
2004 /* Create a write mask from cli_wand mask image */
2463 (void) CLISimpleOperatorImage(cli_wand,"-gaussian-blur",arg1,NULL,exception);
2736 (void) CLISimpleOperatorImage(cli_wand,"-remap",NULL,NULL,exception);
2742 (void) CLISimpleOperatorImage(cli_wand,"-read-mask",NULL,NULL,
2771 (void) CLISimpleOperatorImage(cli_wand,"-statistic","Median",arg1,exception);
2778 (void) CLISimpleOperatorImage(cli_wand,"-statistic","Mode",arg1,exception);
2864 (void) CLISimpleOperatorImage(cli_wand,"-statistic","NonPeak",arg1,exception);
3098 (void) CLISimpleOperatorImage(cli_wand,"-color-matrix",arg1,NULL,exception);
3608 WandPrivate MagickBooleanType CLISimpleOperatorImages(MagickCLI *cli_wand,
3617 assert(cli_wand != (MagickCLI *) NULL);
3618 assert(cli_wand->signature == MagickWandSignature);
3619 assert(cli_wand->wand.signature == MagickWandSignature);
3620 assert(cli_wand->wand.images != (Image *) NULL); /* images must be present */
3622 if (cli_wand->wand.debug != MagickFalse)
3623 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(),
3629 n=GetImageListLength(cli_wand->wand.images);
3630 cli_wand->wand.images=GetFirstImageInList(cli_wand->wand.images);
3633 CLISimpleOperatorImage(cli_wand, option, arg1, arg2,exception);
3634 if ( cli_wand->wand.images->next == (Image *) NULL )
3636 cli_wand->wand.images=cli_wand->wand.images->next;
3639 cli_wand->wand.images=GetFirstImageInList(cli_wand->wand.images);
3641 MagickResetIterator(&cli_wand->wand);
3642 while (MagickNextImage(&cli_wand->wand) != MagickFalse)
3643 (void) CLISimpleOperatorImage(cli_wand, option, arg1, arg2,exception);
3644 MagickResetIterator(&cli_wand->wand);
3668 % MagickBooleanType CLIListOperatorImages(MagickCLI *cli_wand,
3673 % o cli_wand: structure holding settings to be applied
3681 WandPrivate MagickBooleanType CLIListOperatorImages(MagickCLI *cli_wand,
3697 #define _image_info (cli_wand->wand.image_info)
3698 #define _images (cli_wand->wand.images)
3699 #define _exception (cli_wand->wand.exception)
3700 #define _draw_info (cli_wand->draw_info)
3701 #define _quantize_info (cli_wand->quantize_info)
3702 #define _process_flags (cli_wand->process_flags)
3703 #define _option_type ((CommandOptionFlags) cli_wand->command->flags)
3708 assert(cli_wand != (MagickCLI *) NULL);
3709 assert(cli_wand->signature == MagickWandSignature);
3710 assert(cli_wand->wand.signature == MagickWandSignature);
3713 if (cli_wand->wand.debug != MagickFalse)
3714 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(),
3760 (void) CLIListOperatorImages(cli_wand,"-evaluate-sequence","Mean",NULL);
3992 (void) CLIListOperatorImages(cli_wand,"-layer","CompareAny",NULL);
4058 (void) CLIListOperatorImages(cli_wand,"-layers",option+1,NULL);
4314 (void) CLIListOperatorImages(cli_wand,"-layers",option+1,NULL);
4591 % void CLINoImageOption(MagickCLI *cli_wand,const char *option,
4596 % o cli_wand: the main CLI Wand to use. (sometimes not required)
4604 WandPrivate void CLINoImageOperator(MagickCLI *cli_wand,
4611 #define _image_info (cli_wand->wand.image_info)
4612 #define _images (cli_wand->wand.images)
4613 #define _exception (cli_wand->wand.exception)
4614 #define _process_flags (cli_wand->process_flags)
4615 #define _option_type ((CommandOptionFlags) cli_wand->command->flags)
4619 assert(cli_wand != (MagickCLI *) NULL);
4620 assert(cli_wand->signature == MagickWandSignature);
4621 assert(cli_wand->wand.signature == MagickWandSignature);
4623 if (cli_wand->wand.debug != MagickFalse)
4624 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(),
4765 node=cli_wand->image_list_stack;
4774 node->data = (void *)cli_wand->wand.images;
4775 node->next = cli_wand->image_list_stack;
4776 cli_wand->image_list_stack = node;
4777 cli_wand->wand.images = NewImageList();
4780 if (IsStringTrue(GetImageOption(cli_wand->wand.image_info,
4796 node=cli_wand->image_info_stack;
4806 node->data = (void *)cli_wand->wand.image_info;
4807 node->next = cli_wand->image_info_stack;
4809 cli_wand
4810 cli_wand->wand.image_info = CloneImageInfo(cli_wand->wand.image_info);
4811 if (cli_wand->wand.image_info == (ImageInfo *) NULL) {
4814 cli_wand->wand.image_info = (ImageInfo *)node->data;
4826 node = (Stack *)cli_wand->image_list_stack;
4829 cli_wand->image_list_stack = node->next;
4831 AppendImageToList((Image **)&node->data,cli_wand->wand.images);
4832 cli_wand->wand.images= (Image *)node->data;
4836 node = cli_wand->image_info_stack;
4840 cli_wand->wand.image_info,"respect-parenthesis")) != MagickFalse)
4854 node = (Stack *)cli_wand->image_info_stack;
4857 cli_wand->image_info_stack = node->next;
4859 (void) DestroyImageInfo(cli_wand->wand.image_info);
4860 cli_wand->wand.image_info = (ImageInfo *)node->data;
4863 GetDrawInfo(cli_wand->wand.image_info, cli_wand->draw_info);
4864 cli_wand->quantize_info=DestroyQuantizeInfo(cli_wand->quantize_info);
4865 cli_wand->quantize_info=AcquireQuantizeInfo(cli_wand->wand.image_info);
4912 MagickResetIterator(&cli_wand->wand);
4913 while (MagickNextImage(&cli_wand->wand) != MagickFalse)
4915 MagickResetIterator(&cli_wand->wand);
4936 MagickResetIterator(&cli_wand->wand);
4937 while (MagickNextImage(&cli_wand->wand) != MagickFalse)
4955 MagickResetIterator(&cli_wand->wand);
4967 if ( cli_wand->image_list_stack == (Stack *) NULL)
4969 new_images = (Image *)cli_wand->image_list_stack->data;
5099 % If the cli_wand->command pointer is non-null, then it is assumed that the
5110 % void CLIOption(MagickCLI *cli_wand,const char *option, ...)
5114 % o cli_wand: the main CLI Wand to use.
5122 % CLIoption(cli_wand,"-read","rose:");
5123 % CLIoption(cli_wand,"-virtual-pixel","transparent");
5124 % CLIoption(cli_wand,"-distort","SRT:","30");
5125 % CLIoption(cli_wand,"-write","rotated_rose.png");
5128 WandExport void CLIOption(MagickCLI *cli_wand,const char *option,...)
5137 assert(cli_wand != (MagickCLI *) NULL);
5138 assert(cli_wand->signature == MagickWandSignature);
5139 assert(cli_wand->wand.signature == MagickWandSignature);
5144 if ( cli_wand->command == (const OptionInfo *) NULL )
5145 cli_wand->command = GetCommandOptionInfo(option);
5148 option, cli_wand->command->mnemonic );
5150 option_type=(CommandOptionFlags) cli_wand->command->flags;
5155 assert( LocaleCompare(cli_wand->command->mnemonic,option) == 0 );
5170 count = (size_t) cli_wand->command->type;
5197 if ( cli_wand->wand.images != (Image *) NULL )
5198 (void) SyncImagesSettings(cli_wand->wand.image_info,cli_wand->wand.images,
5199 cli_wand->wand.exception);
5202 CLISettingOptionInfo(cli_wand, option, arg1, arg2);
5208 CLINoImageOperator(cli_wand, option, arg1, arg2);
5213 if ( cli_wand->wand.images == (Image *) NULL )
5220 cli_wand->wand.images != (Image *) NULL) /* temp hack */
5223 (void) CLISimpleOperatorImages(cli_wand, option, arg1, arg2,exception);
5229 (void) CLIListOperatorImages(cli_wand, option, arg1, arg2);
5235 cli_wand->command = (const OptionInfo *) NULL; /* prevent re-use later */