diff --git a/Fonderie/Makefile b/Fonderie/Makefile index 789b330..9541db8 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 b4e036f..1e3d239 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 45d061a..8e279a6 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 bf2583f..69d622a 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]);