xmas commit

This commit is contained in:
tonton th 2020-12-24 10:28:56 +01:00
parent 1a185d05c5
commit db05907447
4 changed files with 16 additions and 4 deletions

View File

@ -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 $<

View File

@ -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;

View File

@ -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) {

View File

@ -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]);