Lines Matching refs:cli_wand

111 WandExport void ProcessScriptOptions(MagickCLI *cli_wand,const char *filename,  in ProcessScriptOptions()  argument
132 assert(cli_wand != (MagickCLI *) NULL); in ProcessScriptOptions()
133 assert(cli_wand->signature == MagickWandSignature); in ProcessScriptOptions()
134 if (cli_wand->wand.debug != MagickFalse) in ProcessScriptOptions()
147 cli_wand->location="in \"%s\" at line %u,column %u"; in ProcessScriptOptions()
149 cli_wand->filename="stdin"; in ProcessScriptOptions()
151 cli_wand->filename=filename; in ProcessScriptOptions()
160 cli_wand->line=token_info->token_line; in ProcessScriptOptions()
161 cli_wand->column=token_info->token_column; in ProcessScriptOptions()
172 cli_wand->command = GetCommandOptionInfo(option); in ProcessScriptOptions()
173 count=cli_wand->command->type; in ProcessScriptOptions()
174 option_type=(CommandOptionFlags) cli_wand->command->flags; in ProcessScriptOptions()
177 cli_wand->line, cli_wand->line, option, cli_wand->command->mnemonic ); in ProcessScriptOptions()
185 cli_wand->line, cli_wand->line, option); in ProcessScriptOptions()
189 cli_wand->command=(const OptionInfo *) NULL; in ProcessScriptOptions()
190 CLIOption(cli_wand,"-read",option); in ProcessScriptOptions()
219 cli_wand->line,cli_wand->line,option,count,option_type,arg1,arg2); in ProcessScriptOptions()
250 CLIOption(cli_wand, option, arg1, arg2); in ProcessScriptOptions()
260 GetImageListLength(cli_wand->wand.images) ); in ProcessScriptOptions()
262 if (CLICatchException(cli_wand, MagickFalse) != MagickFalse) in ProcessScriptOptions()
276 if (cli_wand->image_list_stack != (Stack *) NULL) in ProcessScriptOptions()
278 else if (cli_wand->image_info_stack != (Stack *) NULL) in ProcessScriptOptions()
301 if (cli_wand->wand.debug != MagickFalse) in ProcessScriptOptions()
358 WandExport int ProcessCommandOptions(MagickCLI *cli_wand,int argc,char **argv, in ProcessCommandOptions() argument
378 assert(cli_wand != (MagickCLI *) NULL); in ProcessCommandOptions()
379 assert(cli_wand->signature == MagickWandSignature); in ProcessCommandOptions()
383 cli_wand->location="at %s arg %u"; in ProcessCommandOptions()
384 cli_wand->filename="CLI"; in ProcessCommandOptions()
385 cli_wand->line=index; /* note first argument we will process */ in ProcessCommandOptions()
387 if (cli_wand->wand.debug != MagickFalse) in ProcessCommandOptions()
388 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in ProcessCommandOptions()
392 if ( (cli_wand->process_flags & ProcessImplictWrite) != 0 ) in ProcessCommandOptions()
397 if ( (cli_wand->process_flags & ProcessOneOptionOnly) != 0 && i != index ) in ProcessCommandOptions()
403 cli_wand->line=i; /* note the argument for this option */ in ProcessCommandOptions()
406 cli_wand->command = GetCommandOptionInfo(argv[i]); in ProcessCommandOptions()
407 count=cli_wand->command->type; in ProcessCommandOptions()
408 option_type=(CommandOptionFlags) cli_wand->command->flags; in ProcessCommandOptions()
411 i, argv[i], cli_wand->command->mnemonic ); in ProcessCommandOptions()
421 if ( (cli_wand->process_flags & ProcessImplictRead) != 0 ) { in ProcessCommandOptions()
423 cli_wand->command=(const OptionInfo *) NULL; in ProcessCommandOptions()
424 CLIOption(cli_wand,"-read",option); in ProcessCommandOptions()
433 ((cli_wand->process_flags & ProcessScriptOption) != 0) && in ProcessCommandOptions()
441 ProcessScriptOptions(cli_wand,argv[i+1],argc,argv,i+count); in ProcessCommandOptions()
448 if ( CLICatchException(cli_wand, MagickFalse) != MagickFalse ) in ProcessCommandOptions()
470 if ( (cli_wand->process_flags & ProcessExitOption) != 0 in ProcessCommandOptions()
477 CLIOption(cli_wand, option, arg1, arg2); in ProcessCommandOptions()
485 (long) GetImageListLength(cli_wand->wand.images) ); in ProcessCommandOptions()
487 if ( CLICatchException(cli_wand, MagickFalse) != MagickFalse ) in ProcessCommandOptions()
492 if ( (cli_wand->process_flags & ProcessImplictWrite) == 0 ) in ProcessCommandOptions()
501 cli_wand->line=i; in ProcessCommandOptions()
504 if (cli_wand->image_list_stack != (Stack *) NULL) in ProcessCommandOptions()
506 else if (cli_wand->image_info_stack != (Stack *) NULL) in ProcessCommandOptions()
508 if ( CLICatchException(cli_wand, MagickFalse) != MagickFalse ) in ProcessCommandOptions()
528 cli_wand->command=(const OptionInfo *) NULL; in ProcessCommandOptions()
529 CLIOption(cli_wand,"-write",option); in ProcessCommandOptions()
692 *cli_wand; in MagickImageCommand() local
703 cli_wand=AcquireMagickCLI(image_info,exception); in MagickImageCommand()
704 cli_wand->location="Initializing"; in MagickImageCommand()
705 cli_wand->filename=argv[0]; in MagickImageCommand()
706 cli_wand->line=1; in MagickImageCommand()
708 if (cli_wand->wand.debug != MagickFalse) in MagickImageCommand()
709 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in MagickImageCommand()
713 GetPathComponent(argv[0],TailPath,cli_wand->wand.name); in MagickImageCommand()
714 SetClientName(cli_wand->wand.name); in MagickImageCommand()
715 ConcatenateMagickString(cli_wand->wand.name,"-CLI",MagickPathExtent); in MagickImageCommand()
721 cli_wand->process_flags = ConvertCommandOptionFlags; in MagickImageCommand()
729 GetPathComponent(argv[1],TailPath,cli_wand->wand.name); in MagickImageCommand()
730 ProcessScriptOptions(cli_wand,argv[1],argc,argv,2); in MagickImageCommand()
739 CLIOption(cli_wand, "-version"); in MagickImageCommand()
744 if (cli_wand->wand.debug != MagickFalse) in MagickImageCommand()
745 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in MagickImageCommand()
751 if (cli_wand->wand.debug != MagickFalse) in MagickImageCommand()
752 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in MagickImageCommand()
754 CLIOption(cli_wand, "-version" ); in MagickImageCommand()
770 if (cli_wand->wand.debug != MagickFalse) in MagickImageCommand()
771 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in MagickImageCommand()
779 CLIOption(cli_wand, argv[1], argv[2]); in MagickImageCommand()
791 GetPathComponent(argv[2],TailPath,cli_wand->wand.name); in MagickImageCommand()
792 ProcessScriptOptions(cli_wand,argv[2],argc,argv,3); in MagickImageCommand()
796 ProcessCommandOptions(cli_wand,argc,argv,1); in MagickImageCommand()
801 cli_wand->location="Cleanup"; in MagickImageCommand()
802 cli_wand->filename=argv[0]; in MagickImageCommand()
803 if (cli_wand->wand.debug != MagickFalse) in MagickImageCommand()
804 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in MagickImageCommand()
809 while ((cli_wand->image_list_stack != (Stack *) NULL) && in MagickImageCommand()
810 (cli_wand->image_list_stack->next != (Stack *) NULL)) in MagickImageCommand()
811 CLIOption(cli_wand,")"); in MagickImageCommand()
812 while ((cli_wand->image_info_stack != (Stack *) NULL) && in MagickImageCommand()
813 (cli_wand->image_info_stack->next != (Stack *) NULL)) in MagickImageCommand()
814 CLIOption(cli_wand,"}"); in MagickImageCommand()
817 assert(cli_wand->wand.image_info == image_info); in MagickImageCommand()
818 assert(cli_wand->wand.exception == exception); in MagickImageCommand()
821 if ((cli_wand->wand.images != (Image *) NULL) && in MagickImageCommand()
831 text=InterpretImageProperties(image_info,cli_wand->wand.images,format, in MagickImageCommand()
844 cli_wand->location="Exiting"; in MagickImageCommand()
845 cli_wand->filename=argv[0]; in MagickImageCommand()
846 if (cli_wand->wand.debug != MagickFalse) in MagickImageCommand()
847 (void) CLILogEvent(cli_wand,CommandEvent,GetMagickModule(), in MagickImageCommand()
851 cli_wand->wand.image_info = (ImageInfo *) NULL; /* not these */ in MagickImageCommand()
852 cli_wand->wand.exception = (ExceptionInfo *) NULL; in MagickImageCommand()
853 cli_wand=DestroyMagickCLI(cli_wand); in MagickImageCommand()