From 4053baf7fd9673a05b582acec2dd75bf7bec7ea2 Mon Sep 17 00:00:00 2001 From: tonton th Date: Tue, 1 Dec 2020 15:26:15 +0100 Subject: [PATCH] trinarize on stage --- Fonderie/fonderie.c | 15 ++++++++------- Fonderie/sfx.c | 6 +++--- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Fonderie/fonderie.c b/Fonderie/fonderie.c index c3a52b2..84a94db 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 af14152..fe6b75d 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]; }