forked from tTh/FloatImg
useless fine tuning and a little oups
This commit is contained in:
parent
b0fc5107c9
commit
54b061232d
@ -58,6 +58,10 @@ fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, ptr_glob,
|
|||||||
ptr_idxval, method);
|
ptr_idxval, method);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (0 == method) {
|
||||||
|
fprintf(stderr, "\tWTF? in %s, method was ZERO?\n", __func__);
|
||||||
|
}
|
||||||
|
|
||||||
nombre = ptr_glob->gl_pathc;
|
nombre = ptr_glob->gl_pathc;
|
||||||
|
|
||||||
/* allocate the array for the sorting action */
|
/* allocate the array for the sorting action */
|
||||||
@ -66,7 +70,7 @@ if (NULL==idxvalues) {
|
|||||||
fprintf(stderr, "MEMORY ERROR in %s\n", __func__);
|
fprintf(stderr, "MEMORY ERROR in %s\n", __func__);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
fprintf(stderr, "IdxValues array at %p\n", idxvalues);
|
// fprintf(stderr, "IdxValues array at %p\n", idxvalues);
|
||||||
|
|
||||||
*ptr_idxval = idxvalues;
|
*ptr_idxval = idxvalues;
|
||||||
average = 0.0;
|
average = 0.0;
|
||||||
@ -104,7 +108,7 @@ if (verbosity > 1) {
|
|||||||
average /= (double)nombre;
|
average /= (double)nombre;
|
||||||
*p_average = average;
|
*p_average = average;
|
||||||
|
|
||||||
fprintf(stderr, "\naverage %f\n", average);
|
fprintf(stderr, "\naverage of ??? is %f\n", average);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -126,14 +130,14 @@ float coef;
|
|||||||
double meanmetric;
|
double meanmetric;
|
||||||
IdxValue *idx_values; /* gni? */
|
IdxValue *idx_values; /* gni? */
|
||||||
|
|
||||||
fprintf(stderr, " interpolate from '%s' to '%s' with %d steps.\n",
|
fprintf(stderr, " interpolate from '%s' to '%s' with %d steps.\n",
|
||||||
pattern, outdir, Nsteps);
|
pattern, outdir, Nsteps);
|
||||||
|
|
||||||
if (negative) fprintf(stderr, "%s: negative ON\n", __func__);
|
if (negative) fprintf(stderr, "%s: negative ON\n", __func__);
|
||||||
|
|
||||||
memset(&globbuf, 0, sizeof(glob_t));
|
memset(&globbuf, 0, sizeof(glob_t));
|
||||||
foo = glob(pattern, 0, NULL, &globbuf);
|
foo = glob(pattern, 0, NULL, &globbuf);
|
||||||
fprintf(stderr, "globbing '%s' -> %d, %d files found\n",
|
fprintf(stderr, " globbing '%s' -> %d, %d files found\n",
|
||||||
pattern, foo, (int)globbuf.gl_pathc);
|
pattern, foo, (int)globbuf.gl_pathc);
|
||||||
if (0 == globbuf.gl_pathc) {
|
if (0 == globbuf.gl_pathc) {
|
||||||
fprintf(stderr, "%s : no file found, aborting\n", __func__);
|
fprintf(stderr, "%s : no file found, aborting\n", __func__);
|
||||||
@ -253,7 +257,7 @@ int sort = 0;
|
|||||||
char *InFchain = "0";
|
char *InFchain = "0";
|
||||||
char *OutFchain = "0";
|
char *OutFchain = "0";
|
||||||
|
|
||||||
fprintf(stderr, "*** %s : compiled by tTh, %s %s\n", __FILE__,
|
fprintf(stderr, "*** %s\n\tcompiled by tTh, %s %s\n", argv[0],
|
||||||
__DATE__, __TIME__);
|
__DATE__, __TIME__);
|
||||||
fimg_print_version(2);
|
fimg_print_version(2);
|
||||||
|
|
||||||
@ -303,6 +307,7 @@ if (verbosity) {
|
|||||||
fprintf(stderr, "\toutput dir '%s'\n", argv[optind+1]);
|
fprintf(stderr, "\toutput dir '%s'\n", argv[optind+1]);
|
||||||
fprintf(stderr, "\tsrc filter '%s'\n", InFchain);
|
fprintf(stderr, "\tsrc filter '%s'\n", InFchain);
|
||||||
fprintf(stderr, "\tout filter '%s'\n", OutFchain);
|
fprintf(stderr, "\tout filter '%s'\n", OutFchain);
|
||||||
|
fprintf(stderr, "\tsort %d\n", sort);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (verbosity > 1) {
|
if (verbosity > 1) {
|
||||||
|
@ -25,6 +25,9 @@
|
|||||||
int verbosity;
|
int verbosity;
|
||||||
|
|
||||||
/* ----------------------------------------------------------- */
|
/* ----------------------------------------------------------- */
|
||||||
|
/*
|
||||||
|
* parameter 'duplic' is the repetition factor
|
||||||
|
*/
|
||||||
int run_the_singlepass(char *globber, char *destdir, int duplic,
|
int run_the_singlepass(char *globber, char *destdir, int duplic,
|
||||||
int fchain, int outfmt)
|
int fchain, int outfmt)
|
||||||
{
|
{
|
||||||
@ -35,8 +38,8 @@ char *fname;
|
|||||||
double elapsed;
|
double elapsed;
|
||||||
|
|
||||||
#if DEBUG_LEVEL
|
#if DEBUG_LEVEL
|
||||||
fprintf(stderr, ">>> %s ( '%s' '%s' %d %d )\n", __func__,
|
fprintf(stderr, ">>> %s ( '%s' '%s' %d %d %d )\n", __func__,
|
||||||
globber, destdir, fchain, outfmt);
|
globber, destdir, duplic, fchain, outfmt);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (verbosity) filterstack_list(fchain, "Run the single pass");
|
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);
|
fprintf(stderr, "error %d on push_picture\n", foo);
|
||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
if (loop) {
|
|
||||||
/* this is just a wip XXX */
|
|
||||||
microglitch(&image, loop);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n\n");
|
||||||
|
|
||||||
globfree(&globbuf);
|
globfree(&globbuf);
|
||||||
|
|
||||||
@ -156,7 +155,7 @@ char *outdir = "./p8";
|
|||||||
int do_xper = 0;
|
int do_xper = 0;
|
||||||
int repeat = 1;
|
int repeat = 1;
|
||||||
|
|
||||||
fprintf(stderr, "*** %s : compiled %s %s\n", __FILE__,
|
fprintf(stderr, "*** %s\n\tcompiled %s %s\n", argv[0],
|
||||||
__DATE__, __TIME__);
|
__DATE__, __TIME__);
|
||||||
fimg_print_version(2);
|
fimg_print_version(2);
|
||||||
|
|
||||||
@ -212,6 +211,9 @@ if (verbosity) {
|
|||||||
fprintf(stderr, "\tdo xper %d\n", do_xper);
|
fprintf(stderr, "\tdo xper %d\n", do_xper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* REAL action here
|
||||||
|
*/
|
||||||
foo = run_the_singlepass(globbing, outdir, repeat,
|
foo = run_the_singlepass(globbing, outdir, repeat,
|
||||||
FILTERS, FILE_TYPE_PNG);
|
FILTERS, FILE_TYPE_PNG);
|
||||||
fprintf(stderr, "\n\tRun the single pass --> %d\n", foo);
|
fprintf(stderr, "\n\tRun the single pass --> %d\n", foo);
|
||||||
|
Loading…
Reference in New Issue
Block a user