|
|
|
@ -30,6 +30,10 @@ if (foo) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sprintf(ligne, "p8/%05d.png", numero); |
|
|
|
|
/* ^^^
|
|
|
|
|
XXX hardcoded value ? wtf ? |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
foo = export_fifo(ligne, proc, step); |
|
|
|
|
if (foo) { |
|
|
|
|
fprintf(stderr, "%s: err %d on export\n", __func__, foo); |
|
|
|
@ -67,7 +71,7 @@ return 0; |
|
|
|
|
#define BLANK 40 |
|
|
|
|
|
|
|
|
|
int demarre_la_machine(char *pattern, char *outdir, int szfifo, |
|
|
|
|
int outfx, int step) |
|
|
|
|
int infx, int outfx, int step) |
|
|
|
|
{ |
|
|
|
|
int foo, idx; |
|
|
|
|
glob_t globbuf; |
|
|
|
@ -84,6 +88,8 @@ fprintf(stderr, "\tstep is %d\n", step); |
|
|
|
|
|
|
|
|
|
(void)fimg_timer_set(0); |
|
|
|
|
|
|
|
|
|
if (infx) fprintf(stderr, "\tin fx #%d\n", infx); |
|
|
|
|
else fprintf(stderr, "\tno in fx\n"); |
|
|
|
|
if (outfx) fprintf(stderr, "\tout fx #%d\n", outfx); |
|
|
|
|
else fprintf(stderr, "\tno out fx\n"); |
|
|
|
|
|
|
|
|
@ -114,7 +120,7 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) { |
|
|
|
|
|
|
|
|
|
/* ========================= */ |
|
|
|
|
/* FSCKING INPUT FILTER HERE */ |
|
|
|
|
foo = crapulator(&input, 0, 0.42); |
|
|
|
|
foo = crapulator(&input, infx, 0.42); |
|
|
|
|
if (foo) { |
|
|
|
|
fprintf(stderr, "%s crapulator -> %d\n", __func__, foo); |
|
|
|
|
exit(1); |
|
|
|
@ -152,6 +158,7 @@ puts("\t-I\tinput glob pattern"); |
|
|
|
|
puts("\t-O\toutput directory"); |
|
|
|
|
puts("\t-T\tfifo size"); |
|
|
|
|
puts("\t-v\tincrease verbosity"); |
|
|
|
|
puts("\t-w\tinput effect"); |
|
|
|
|
puts("\t-x\toutput effect"); |
|
|
|
|
|
|
|
|
|
exit(0); |
|
|
|
@ -167,8 +174,8 @@ int in_effect = 0; |
|
|
|
|
int out_effect = 0; |
|
|
|
|
int steps = 1; |
|
|
|
|
|
|
|
|
|
fprintf(stderr, "*** %s : compiled by tTh, %s %s\n", argv[0], |
|
|
|
|
__DATE__, __TIME__); |
|
|
|
|
fprintf(stderr, "*** %s :\n\tcompiled by tTh, %s %s\n\tpid %d\n", |
|
|
|
|
argv[0], __DATE__, __TIME__, getpid()); |
|
|
|
|
fimg_print_version(2); |
|
|
|
|
|
|
|
|
|
while ((opt = getopt(argc, argv, "ghI:O:s:T:vx:")) != -1) { |
|
|
|
@ -186,6 +193,8 @@ while ((opt = getopt(argc, argv, "ghI:O:s:T:vx:")) != -1) { |
|
|
|
|
break; |
|
|
|
|
case 'v': verbosity++; |
|
|
|
|
break; |
|
|
|
|
case 'w': in_effect = atoi(optarg); |
|
|
|
|
break; |
|
|
|
|
case 'x': out_effect = atoi(optarg); |
|
|
|
|
break; |
|
|
|
|
case 's': steps = atoi(optarg); |
|
|
|
@ -193,7 +202,8 @@ while ((opt = getopt(argc, argv, "ghI:O:s:T:vx:")) != -1) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
foo = demarre_la_machine(in_pattern, out_dir, fifosize, out_effect, steps); |
|
|
|
|
foo = demarre_la_machine(in_pattern, out_dir, fifosize, in_effect, |
|
|
|
|
out_effect, steps); |
|
|
|
|
fprintf(stderr, "retour du big-run de la machine -> %d\n", foo); |
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
|