• Home
  • Raw
  • Download

Lines Matching refs:cli_wand

111 WandExport void ProcessScriptOptions(MagickCLI *cli_wand,const char *filename,  in ProcessScriptOptions()  argument
129 assert(cli_wand != (MagickCLI *) NULL); in ProcessScriptOptions()
130 assert(cli_wand->signature == MagickWandSignature); in ProcessScriptOptions()
131 if (cli_wand->wand.debug != MagickFalse) in ProcessScriptOptions()
144 cli_wand->location="in \"%s\" at line %u,column %u"; in ProcessScriptOptions()
146 cli_wand->filename="stdin"; in ProcessScriptOptions()
148 cli_wand->filename=filename; in ProcessScriptOptions()
157 cli_wand->line=token_info->token_line; in ProcessScriptOptions()
158 cli_wand->column=token_info->token_column; in ProcessScriptOptions()
169 cli_wand->command = GetCommandOptionInfo(option); in ProcessScriptOptions()
170 count=cli_wand->command->type; in ProcessScriptOptions()
171 option_type=(CommandOptionFlags) cli_wand->command->flags; in ProcessScriptOptions()
174 cli_wand->line, cli_wand->line, option, cli_wand->command->mnemonic ); in ProcessScriptOptions()
182 cli_wand->line, cli_wand->line, option); in ProcessScriptOptions()
186 cli_wand->command=(const OptionInfo *) NULL; in ProcessScriptOptions()
187 CLIOption(cli_wand,"-read",option); in ProcessScriptOptions()
216 cli_wand->line,cli_wand->line,option,count,option_type,arg1,arg2); in ProcessScriptOptions()
247 CLIOption(cli_wand, option, arg1, arg2); in ProcessScriptOptions()
257 GetImageListLength(cli_wand->wand.images) ); in ProcessScriptOptions()
259 if (CLICatchException(cli_wand, MagickFalse) != MagickFalse) in ProcessScriptOptions()
273 if (cli_wand->image_list_stack != (Stack *) NULL) in ProcessScriptOptions()
275 else if (cli_wand->image_info_stack != (Stack *) NULL) in ProcessScriptOptions()
298 if (cli_wand->wand.debug != MagickFalse) in ProcessScriptOptions()
355 WandExport int ProcessCommandOptions(MagickCLI *cli_wand,int argc,char **argv, in ProcessCommandOptions() argument
375 assert(cli_wand != (MagickCLI *) NULL); in ProcessCommandOptions()
376 assert(cli_wand->signature == MagickWandSignature); in ProcessCommandOptions()
380 cli_wand->location="at %s arg %u"; in ProcessCommandOptions()
381 cli_wand->filename="CLI"; in ProcessCommandOptions()
382 cli_wand->line=index; /* note first argument we will process */ in ProcessCommandOptions()
384 if (cli_wand->wand.debug != MagickFalse) in ProcessCommandOptions()
385 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in ProcessCommandOptions()
389 if ( (cli_wand->process_flags & ProcessImplictWrite) != 0 ) in ProcessCommandOptions()
394 if ( (cli_wand->process_flags & ProcessOneOptionOnly) != 0 && i != index ) in ProcessCommandOptions()
400 cli_wand->line=i; /* note the argument for this option */ in ProcessCommandOptions()
403 cli_wand->command = GetCommandOptionInfo(argv[i]); in ProcessCommandOptions()
404 count=cli_wand->command->type; in ProcessCommandOptions()
405 option_type=(CommandOptionFlags) cli_wand->command->flags; in ProcessCommandOptions()
408 i, argv[i], cli_wand->command->mnemonic ); in ProcessCommandOptions()
418 if ( (cli_wand->process_flags & ProcessImplictRead) != 0 ) { in ProcessCommandOptions()
420 cli_wand->command=(const OptionInfo *) NULL; in ProcessCommandOptions()
421 CLIOption(cli_wand,"-read",option); in ProcessCommandOptions()
430 ((cli_wand->process_flags & ProcessScriptOption) != 0) && in ProcessCommandOptions()
438 ProcessScriptOptions(cli_wand,argv[i+1],argc,argv,i+count); in ProcessCommandOptions()
445 if ( CLICatchException(cli_wand, MagickFalse) != MagickFalse ) in ProcessCommandOptions()
467 if ( (cli_wand->process_flags & ProcessExitOption) != 0 in ProcessCommandOptions()
474 CLIOption(cli_wand, option, arg1, arg2); in ProcessCommandOptions()
482 (long) GetImageListLength(cli_wand->wand.images) ); in ProcessCommandOptions()
484 if ( CLICatchException(cli_wand, MagickFalse) != MagickFalse ) in ProcessCommandOptions()
489 if ( (cli_wand->process_flags & ProcessImplictWrite) == 0 ) in ProcessCommandOptions()
498 cli_wand->line=i; in ProcessCommandOptions()
501 if (cli_wand->image_list_stack != (Stack *) NULL) in ProcessCommandOptions()
503 else if (cli_wand->image_info_stack != (Stack *) NULL) in ProcessCommandOptions()
505 if ( CLICatchException(cli_wand, MagickFalse) != MagickFalse ) in ProcessCommandOptions()
525 cli_wand->command=(const OptionInfo *) NULL; in ProcessCommandOptions()
526 CLIOption(cli_wand,"-write",option); in ProcessCommandOptions()
687 *cli_wand; in MagickImageCommand() local
698 cli_wand=AcquireMagickCLI(image_info,exception); in MagickImageCommand()
699 cli_wand->location="Initializing"; in MagickImageCommand()
700 cli_wand->filename=argv[0]; in MagickImageCommand()
701 cli_wand->line=1; in MagickImageCommand()
703 if (cli_wand->wand.debug != MagickFalse) in MagickImageCommand()
704 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in MagickImageCommand()
708 GetPathComponent(argv[0],TailPath,cli_wand->wand.name); in MagickImageCommand()
709 SetClientName(cli_wand->wand.name); in MagickImageCommand()
710 ConcatenateMagickString(cli_wand->wand.name,"-CLI",MagickPathExtent); in MagickImageCommand()
716 cli_wand->process_flags = ConvertCommandOptionFlags; in MagickImageCommand()
724 GetPathComponent(argv[1],TailPath,cli_wand->wand.name); in MagickImageCommand()
725 ProcessScriptOptions(cli_wand,argv[1],argc,argv,2); in MagickImageCommand()
734 CLIOption(cli_wand, "-version"); in MagickImageCommand()
739 if (cli_wand->wand.debug != MagickFalse) in MagickImageCommand()
740 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in MagickImageCommand()
746 if (cli_wand->wand.debug != MagickFalse) in MagickImageCommand()
747 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in MagickImageCommand()
749 CLIOption(cli_wand, "-version" ); in MagickImageCommand()
765 if (cli_wand->wand.debug != MagickFalse) in MagickImageCommand()
766 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in MagickImageCommand()
774 CLIOption(cli_wand, argv[1], argv[2]); in MagickImageCommand()
786 GetPathComponent(argv[2],TailPath,cli_wand->wand.name); in MagickImageCommand()
787 ProcessScriptOptions(cli_wand,argv[2],argc,argv,3); in MagickImageCommand()
791 ProcessCommandOptions(cli_wand,argc,argv,1); in MagickImageCommand()
796 cli_wand->location="Cleanup"; in MagickImageCommand()
797 cli_wand->filename=argv[0]; in MagickImageCommand()
798 if (cli_wand->wand.debug != MagickFalse) in MagickImageCommand()
799 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in MagickImageCommand()
804 while ((cli_wand->image_list_stack != (Stack *) NULL) && in MagickImageCommand()
805 (cli_wand->image_list_stack->next != (Stack *) NULL)) in MagickImageCommand()
806 CLIOption(cli_wand,")"); in MagickImageCommand()
807 while ((cli_wand->image_info_stack != (Stack *) NULL) && in MagickImageCommand()
808 (cli_wand->image_info_stack->next != (Stack *) NULL)) in MagickImageCommand()
809 CLIOption(cli_wand,"}"); in MagickImageCommand()
812 assert(cli_wand->wand.image_info == image_info); in MagickImageCommand()
813 assert(cli_wand->wand.exception == exception); in MagickImageCommand()
825 text=InterpretImageProperties(image_info,cli_wand->wand.images,format, in MagickImageCommand()
837 cli_wand->location="Exiting"; in MagickImageCommand()
838 cli_wand->filename=argv[0]; in MagickImageCommand()
839 if (cli_wand->wand.debug != MagickFalse) in MagickImageCommand()
840 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in MagickImageCommand()
844 cli_wand->wand.image_info = (ImageInfo *) NULL; /* not these */ in MagickImageCommand()
845 cli_wand->wand.exception = (ExceptionInfo *) NULL; in MagickImageCommand()
846 cli_wand=DestroyMagickCLI(cli_wand); in MagickImageCommand()