From f9a09871bf3f931d458f4fbf772e418689be2982 Mon Sep 17 00:00:00 2001 From: Tonton Th Date: Tue, 3 Nov 2020 00:00:09 +0100 Subject: [PATCH] bla --- Fonderie/crapulator.c | 11 ++++++++--- Fonderie/crapulator.h | 8 ++++++++ Fonderie/fonderie.c | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Fonderie/crapulator.c b/Fonderie/crapulator.c index 11458b9..b57bfec 100644 --- a/Fonderie/crapulator.c +++ b/Fonderie/crapulator.c @@ -11,7 +11,10 @@ #include "crapulator.h" /* -------------------------------------------------------------- */ - +/* + * This is the main filter engine + * used both for input and output + */ int crapulator(FloatImg *image, int idFx, float fval) { int retval, foo; @@ -25,10 +28,12 @@ fprintf(stderr, ">>> %s ( %p %d %f )\n", __func__, image, idFx, fval); #endif +retval = 0; + if (666==count) { flag_debug = 1; fprintf(stderr, "DEBUG PT 1 in %s:%d\n", __func__, __LINE__); - fimg_save_as_png(image, "source.png", 0); + fimg_save_as_png(image, "crap_before.png", 0); } switch (idFx) { @@ -100,7 +105,7 @@ switch (idFx) { if (flag_debug) { fprintf(stderr, "DEBUG PT 2 in %s:%d\n", __func__, __LINE__); - fimg_save_as_png(image, "after.png", 0); + fimg_save_as_png(image, "crap_after.png", 0); } count++; flag_debug = 0; diff --git a/Fonderie/crapulator.h b/Fonderie/crapulator.h index 58d15e9..dc41214 100644 --- a/Fonderie/crapulator.h +++ b/Fonderie/crapulator.h @@ -2,5 +2,13 @@ * crapulator.h */ +/* + * some constants for effect numbers */ + + +/* + * the main function */ + int crapulator(FloatImg *image, int id_effect, float fparam); + diff --git a/Fonderie/fonderie.c b/Fonderie/fonderie.c index fa8e303..fe0142b 100644 --- a/Fonderie/fonderie.c +++ b/Fonderie/fonderie.c @@ -84,7 +84,7 @@ fprintf(stderr, ">>> %s ( '%s' -> '%s' %d )\n", __func__, pattern, outdir, szfifo); #endif -fprintf(stderr, "\tstep is %d\n", step); +// fprintf(stderr, "\tstep is %d\n", step); (void)fimg_timer_set(0);