useless fine tuning and a little oups

This commit is contained in:
tTh
2023-07-04 17:26:46 +02:00
parent b0fc5107c9
commit 54b061232d
2 changed files with 20 additions and 13 deletions

View File

@@ -25,6 +25,9 @@
int verbosity;
/* ----------------------------------------------------------- */
/*
* parameter 'duplic' is the repetition factor
*/
int run_the_singlepass(char *globber, char *destdir, int duplic,
int fchain, int outfmt)
{
@@ -35,8 +38,8 @@ char *fname;
double elapsed;
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( '%s' '%s' %d %d )\n", __func__,
globber, destdir, fchain, outfmt);
fprintf(stderr, ">>> %s ( '%s' '%s' %d %d %d )\n", __func__,
globber, destdir, duplic, fchain, outfmt);
#endif
if (verbosity) filterstack_list(fchain, "Run the single pass");
@@ -107,14 +110,10 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
fprintf(stderr, "error %d on push_picture\n", foo);
return foo;
}
if (loop) {
/* this is just a wip XXX */
microglitch(&image, loop);
}
}
}
fprintf(stderr, "\n");
fprintf(stderr, "\n\n");
globfree(&globbuf);
@@ -156,7 +155,7 @@ char *outdir = "./p8";
int do_xper = 0;
int repeat = 1;
fprintf(stderr, "*** %s : compiled %s %s\n", __FILE__,
fprintf(stderr, "*** %s\n\tcompiled %s %s\n", argv[0],
__DATE__, __TIME__);
fimg_print_version(2);
@@ -212,6 +211,9 @@ if (verbosity) {
fprintf(stderr, "\tdo xper %d\n", do_xper);
}
/*
* REAL action here
*/
foo = run_the_singlepass(globbing, outdir, repeat,
FILTERS, FILE_TYPE_PNG);
fprintf(stderr, "\n\tRun the single pass --> %d\n", foo);