seekin the holy gral of pipedeprod

This commit is contained in:
tth 2021-04-24 00:16:23 +02:00
parent 6d4df793da
commit ce6d6e58bb
3 changed files with 11 additions and 10 deletions

View File

@ -77,7 +77,7 @@ return 0;
/* -------------------------------------------------------------- */ /* -------------------------------------------------------------- */
int demarre_la_machine(char *pattern, char *outdir, int szfifo, int demarre_la_machine(char *pattern, char *outdir, int szfifo,
int step, int blk) int outfmt, int blk)
{ {
int foo, idx, width, height; int foo, idx, width, height;
glob_t globbuf; glob_t globbuf;
@ -92,8 +92,6 @@ fprintf(stderr, "\n>>> %s ( '%s' -> '%s' %d )\n", __func__,
pattern, outdir, szfifo); pattern, outdir, szfifo);
#endif #endif
if (1 != step) fprintf(stderr, "\tstep is %d\n", step);
(void)fimg_timer_set(0); (void)fimg_timer_set(0);
memset(&globbuf, 0, sizeof(glob_t)); memset(&globbuf, 0, sizeof(glob_t));
@ -197,7 +195,7 @@ int foo, opt;
int fifosize = 10; int fifosize = 10;
char *in_pattern = "capture/?????.fimg"; char *in_pattern = "capture/?????.fimg";
char *out_dir = "p8"; char *out_dir = "p8";
int steps = 1; int outfmt = FILE_TYPE_PNG;
int blanks = 20; int blanks = 20;
char *InFchain = "none"; char *InFchain = "none";
char *OutFchain = "none"; char *OutFchain = "none";
@ -206,7 +204,7 @@ fprintf(stderr, "*** %s\n\tcompiled %s, %s, pid %d\n",
argv[0], __DATE__, __TIME__, getpid()); argv[0], __DATE__, __TIME__, getpid());
fimg_print_version(2); fimg_print_version(2);
while ((opt = getopt(argc, argv, "B:E:F:ghI:LO:s:T:vw:x:")) != -1) { while ((opt = getopt(argc, argv, "B:E:F:ghI:LO:T:vw:x:")) != -1) {
switch(opt) { switch(opt) {
case 'E': InFchain = optarg; break; case 'E': InFchain = optarg; break;
case 'F': OutFchain = optarg; break; case 'F': OutFchain = optarg; break;
@ -227,8 +225,6 @@ while ((opt = getopt(argc, argv, "B:E:F:ghI:LO:s:T:vw:x:")) != -1) {
break; break;
case 'v': verbosity++; case 'v': verbosity++;
break; break;
case 's': steps = atoi(optarg);
break;
} }
} }
@ -256,7 +252,7 @@ if (verbosity) {
fprintf(stderr, ".\n"); fprintf(stderr, ".\n");
} }
foo = demarre_la_machine(in_pattern, out_dir, fifosize, steps, blanks); foo = demarre_la_machine(in_pattern, out_dir, fifosize, outfmt, blanks);
fprintf(stderr, "retour du big-run de la machine -> %d\n", foo); fprintf(stderr, "retour du big-run de la machine -> %d\n", foo);

View File

@ -85,6 +85,10 @@ FloatImg image;
int foo; int foo;
float fval; float fval;
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( '%s' %p %d )\n", __func__, fname, where, mode);
#endif
foo = fimg_create_from_dump(fname, &image); foo = fimg_create_from_dump(fname, &image);
if (foo) { if (foo) {
fprintf(stderr, "%s: err %d loading %s\n", __func__, foo, fname); fprintf(stderr, "%s: err %d loading %s\n", __func__, foo, fname);

View File

@ -142,7 +142,7 @@ int foo, opt;
char *filterchain = "none"; char *filterchain = "none";
char *globbing = "./capture/?????.fimg"; char *globbing = "./capture/?????.fimg";
char *outdir = "./p8"; char *outdir = "./p8";
char *outtype = ".png"; // char *outtype = ".png";
int do_xper = 0; int do_xper = 0;
fprintf(stderr, "*** %s : compiled %s %s\n", __FILE__, fprintf(stderr, "*** %s : compiled %s %s\n", __FILE__,
@ -189,10 +189,11 @@ if (verbosity) {
fprintf(stderr, "\tinput glob %s\n", globbing); fprintf(stderr, "\tinput glob %s\n", globbing);
fprintf(stderr, "\tfilter chain %s\n", filterchain); fprintf(stderr, "\tfilter chain %s\n", filterchain);
fprintf(stderr, "\toutput dir %s\n", outdir); fprintf(stderr, "\toutput dir %s\n", outdir);
// fprintf(stderr, "\toutput type %s\n", outtype);
fprintf(stderr, "\tdo xper %d\n", do_xper); fprintf(stderr, "\tdo xper %d\n", do_xper);
} }
foo = run_the_singlepass(globbing, outdir, FILTERS, -1); foo = run_the_singlepass(globbing, outdir, FILTERS, FILE_TYPE_PNG);
fprintf(stderr, "\n\tRun the single pass --> %d\n", foo); fprintf(stderr, "\n\tRun the single pass --> %d\n", foo);
return 0; return 0;