From db0590744750b9775be798eec62c5352bb612c5f Mon Sep 17 00:00:00 2001 From: tonton th Date: Thu, 24 Dec 2020 10:28:56 +0100 Subject: [PATCH] xmas commit --- Fonderie/Makefile | 5 ++++- Fonderie/crapulator.c | 2 ++ Fonderie/filterstack.c | 9 ++++++++- Fonderie/interpolator.c | 4 ++-- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Fonderie/Makefile b/Fonderie/Makefile index 789b3306..9541db81 100644 --- a/Fonderie/Makefile +++ b/Fonderie/Makefile @@ -21,6 +21,7 @@ t: t.c Makefile ${OBJS} # --------------------------------------------------------- # +# the two main programms # fonderie: fonderie.c ${DEPS} ${OBJS} Makefile @@ -31,7 +32,9 @@ interpolator: interpolator.c ${DEPS} ${OBJS} Makefile gcc ${COPT} $< ${OBJS} ${LIBS} -lz -o $@ # --------------------------------------------------------- - +# +# a lot of silly functions +# crapulator.o: crapulator.c ${DEPS} Makefile gcc ${COPT} -c $< diff --git a/Fonderie/crapulator.c b/Fonderie/crapulator.c index b4e036f5..1e3d2390 100644 --- a/Fonderie/crapulator.c +++ b/Fonderie/crapulator.c @@ -173,6 +173,7 @@ switch (idFx) { (void)fimg_killborders(image); break; case 13: + /* smooth filter */ retval = insitu_filtre3x3(image, 0); break; case 14: @@ -192,6 +193,7 @@ switch (idFx) { retval = upside_down(image); break; case 19: + /* hipass filter */ retval = insitu_filtre3x3(image, 1); break; diff --git a/Fonderie/filterstack.c b/Fonderie/filterstack.c index 45d061a0..8e279a67 100644 --- a/Fonderie/filterstack.c +++ b/Fonderie/filterstack.c @@ -74,7 +74,7 @@ if (numid < 0 || numid > NUMBER_OF_STACK) { exit(1); } -fprintf(stderr, "--- %2d -- %-20s --------\n", numid, txt); +fprintf(stderr, "---- %2d ---- %-20s -----------\n", numid, txt); // fprintf(stderr, "stack at %p, size %d, current %d\n", // f_slots, nbre_filters, idx_slot); fprintf(stderr, "idx ___ fx# _ name ________ ival _ fval ___\n"); @@ -200,6 +200,13 @@ for (;;) { if (NULL==cptr) break; tmparg = NULL; /* for the next pass of strtok */ // fprintf(stderr, " parsing '%s'\n", cptr); + + if ('@' == cptr[0]) { + fprintf(stderr, "%s: got indirect '%s'\n", __func__, + cptr+1); + continue; + } + if (1 == sscanf(cptr, "%d", &value)) { foo = filterstack_add(numid, value, 1, 1.0); if (foo) { diff --git a/Fonderie/interpolator.c b/Fonderie/interpolator.c index bf2583f7..69d622ab 100644 --- a/Fonderie/interpolator.c +++ b/Fonderie/interpolator.c @@ -311,10 +311,10 @@ if (foo) { } if (verbosity > 1) { - puts("=============="); + puts("========================="); filterstack_list(0, __FILE__); filterstack_list(1, __FILE__); - puts("=============="); + puts("========================="); } nbrsteps = atoi(argv[optind+2]);