diff --git a/Fonderie/fonderie.c b/Fonderie/fonderie.c index c3a52b22..84a94db1 100644 --- a/Fonderie/fonderie.c +++ b/Fonderie/fonderie.c @@ -60,10 +60,9 @@ puts(""); return 0; } /* -------------------------------------------------------------- */ -#define BLANK 50 int demarre_la_machine(char *pattern, char *outdir, int szfifo, - int infx, int outfx, int step) + int infx, int outfx, int step, int blk) { int foo, idx, width, height; glob_t globbuf; @@ -118,7 +117,7 @@ foo = create_fifo(szfifo, width, height, FIMG_TYPE_RGB); fprintf(stderr, "init fifo (%d slots) --> %d\n", szfifo, foo); /* XXX inject a few strange pics in the fifo */ -insert_blank(&input, BLANK, outfx, maxvalue, outdir); +insert_blank(&input, blk, outfx, maxvalue, outdir); for (idx=0; idx %d\n", foo); return 0; diff --git a/Fonderie/sfx.c b/Fonderie/sfx.c index af141520..fe6b75d3 100644 --- a/Fonderie/sfx.c +++ b/Fonderie/sfx.c @@ -80,19 +80,19 @@ for (foo=0; foo mRb) fptr[foo] = 0.0; else - fptr[foo] = VAL; + fptr[foo] = mm[1]; fptr = pimg->G; if (fptr[foo] < mGa || fptr[foo] > mGb) fptr[foo] = 0.0; else - fptr[foo] = VAL; + fptr[foo] = mm[3]; fptr = pimg->B; if (fptr[foo] < mBa || fptr[foo] > mBb) fptr[foo] = 0.0; else - fptr[foo] = VAL; + fptr[foo] = mm[5]; }