• Home
  • Raw
  • Download

Lines Matching refs:cli_wand

77     *cli_wand;  in AcquireMagickCLI()  local
88 cli_wand=(MagickCLI *) AcquireMagickMemory(sizeof(*cli_wand)); in AcquireMagickCLI()
89 if (cli_wand == (MagickCLI *) NULL) in AcquireMagickCLI()
97 cli_wand->wand.id=AcquireWandId(); in AcquireMagickCLI()
98 (void) FormatLocaleString(cli_wand->wand.name,MagickPathExtent, in AcquireMagickCLI()
99 "%s-%.20g","MagickWandCLI", (double) cli_wand->wand.id); in AcquireMagickCLI()
100 cli_wand->wand.images=NewImageList(); in AcquireMagickCLI()
102 cli_wand->wand.image_info=AcquireImageInfo(); in AcquireMagickCLI()
104 cli_wand->wand.image_info=image_info; in AcquireMagickCLI()
106 cli_wand->wand.exception=AcquireExceptionInfo(); in AcquireMagickCLI()
108 cli_wand->wand.exception=exception; in AcquireMagickCLI()
109 cli_wand->wand.debug=IsEventLogging(); in AcquireMagickCLI()
110 cli_wand->wand.signature=MagickWandSignature; in AcquireMagickCLI()
113 cli_wand->draw_info=CloneDrawInfo(cli_wand->wand.image_info,(DrawInfo *) NULL); in AcquireMagickCLI()
114 cli_wand->quantize_info=AcquireQuantizeInfo(cli_wand->wand.image_info); in AcquireMagickCLI()
115 cli_wand->process_flags=MagickCommandOptionFlags; /* assume "magick" CLI */ in AcquireMagickCLI()
116 cli_wand->command=(const OptionInfo *) NULL; /* no option at this time */ in AcquireMagickCLI()
117 cli_wand->image_list_stack=(Stack *) NULL; in AcquireMagickCLI()
118 cli_wand->image_info_stack=(Stack *) NULL; in AcquireMagickCLI()
123 cli_wand->location="from \"%s\""; /* location format using arguments: */ in AcquireMagickCLI()
125 cli_wand->filename="unknown"; /* script filename, unknown source */ in AcquireMagickCLI()
126 cli_wand->line=0; /* line from script OR CLI argument */ in AcquireMagickCLI()
127 cli_wand->column=0; /* column from script */ in AcquireMagickCLI()
129 cli_wand->signature=MagickWandSignature; in AcquireMagickCLI()
130 if (cli_wand->wand.debug != MagickFalse) in AcquireMagickCLI()
131 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",cli_wand->wand.name); in AcquireMagickCLI()
132 return(cli_wand); in AcquireMagickCLI()
155 WandExport MagickCLI *DestroyMagickCLI(MagickCLI *cli_wand) in DestroyMagickCLI() argument
160 assert(cli_wand != (MagickCLI *) NULL); in DestroyMagickCLI()
161 assert(cli_wand->signature == MagickWandSignature); in DestroyMagickCLI()
162 assert(cli_wand->wand.signature == MagickWandSignature); in DestroyMagickCLI()
163 if (cli_wand->wand.debug != MagickFalse) in DestroyMagickCLI()
164 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",cli_wand->wand.name); in DestroyMagickCLI()
167 if (cli_wand->draw_info != (DrawInfo *) NULL ) in DestroyMagickCLI()
168 cli_wand->draw_info=DestroyDrawInfo(cli_wand->draw_info); in DestroyMagickCLI()
169 if (cli_wand->quantize_info != (QuantizeInfo *) NULL ) in DestroyMagickCLI()
170 cli_wand->quantize_info=DestroyQuantizeInfo(cli_wand->quantize_info); in DestroyMagickCLI()
171 while(cli_wand->image_list_stack != (Stack *) NULL) in DestroyMagickCLI()
173 node=cli_wand->image_list_stack; in DestroyMagickCLI()
174 cli_wand->image_list_stack=node->next; in DestroyMagickCLI()
178 while(cli_wand->image_info_stack != (Stack *) NULL) in DestroyMagickCLI()
180 node=cli_wand->image_info_stack; in DestroyMagickCLI()
181 cli_wand->image_info_stack=node->next; in DestroyMagickCLI()
185 cli_wand->signature=(~MagickWandSignature); in DestroyMagickCLI()
188 cli_wand->wand.images=DestroyImageList(cli_wand->wand.images); in DestroyMagickCLI()
189 if (cli_wand->wand.image_info != (ImageInfo *) NULL ) in DestroyMagickCLI()
190 cli_wand->wand.image_info=DestroyImageInfo(cli_wand->wand.image_info); in DestroyMagickCLI()
191 if (cli_wand->wand.exception != (ExceptionInfo *) NULL ) in DestroyMagickCLI()
192 cli_wand->wand.exception=DestroyExceptionInfo(cli_wand->wand.exception); in DestroyMagickCLI()
193 RelinquishWandId(cli_wand->wand.id); in DestroyMagickCLI()
194 cli_wand->wand.signature=(~MagickWandSignature); in DestroyMagickCLI()
195 cli_wand=(MagickCLI *) RelinquishMagickMemory(cli_wand); in DestroyMagickCLI()
232 WandExport MagickBooleanType CLICatchException(MagickCLI *cli_wand, in CLICatchException() argument
238 assert(cli_wand != (MagickCLI *) NULL); in CLICatchException()
239 assert(cli_wand->signature == MagickWandSignature); in CLICatchException()
240 assert(cli_wand->wand.signature == MagickWandSignature); in CLICatchException()
241 if (cli_wand->wand.debug != MagickFalse) in CLICatchException()
242 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",cli_wand->wand.name); in CLICatchException()
247 status=cli_wand->wand.exception->severity > ErrorException ? MagickTrue : in CLICatchException()
251 CatchException(cli_wand->wand.exception); /* output and clear exceptions */ in CLICatchException()
271 WandExport MagickBooleanType CLILogEvent(MagickCLI *cli_wand, in CLILogEvent() argument
289 (void) FormatLocaleString(new_format,MagickPathExtent,cli_wand->location, in CLILogEvent()
290 cli_wand->filename, cli_wand->line, cli_wand->column); in CLILogEvent()
315 WandExport MagickBooleanType CLIThrowException(MagickCLI *cli_wand, in CLIThrowException() argument
341 cli_wand->location,cli_wand->filename,cli_wand->line,cli_wand->column); in CLIThrowException()
344 status=ThrowMagickExceptionList(cli_wand->wand.exception,module,function, in CLIThrowException()