forked from tTh/FloatImg
xmas commit
This commit is contained in:
parent
1a185d05c5
commit
db05907447
@ -21,6 +21,7 @@ t: t.c Makefile ${OBJS}
|
|||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
# the two main programms
|
||||||
#
|
#
|
||||||
|
|
||||||
fonderie: fonderie.c ${DEPS} ${OBJS} Makefile
|
fonderie: fonderie.c ${DEPS} ${OBJS} Makefile
|
||||||
@ -31,7 +32,9 @@ interpolator: interpolator.c ${DEPS} ${OBJS} Makefile
|
|||||||
gcc ${COPT} $< ${OBJS} ${LIBS} -lz -o $@
|
gcc ${COPT} $< ${OBJS} ${LIBS} -lz -o $@
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
|
#
|
||||||
|
# a lot of silly functions
|
||||||
|
#
|
||||||
crapulator.o: crapulator.c ${DEPS} Makefile
|
crapulator.o: crapulator.c ${DEPS} Makefile
|
||||||
gcc ${COPT} -c $<
|
gcc ${COPT} -c $<
|
||||||
|
|
||||||
|
@ -173,6 +173,7 @@ switch (idFx) {
|
|||||||
(void)fimg_killborders(image);
|
(void)fimg_killborders(image);
|
||||||
break;
|
break;
|
||||||
case 13:
|
case 13:
|
||||||
|
/* smooth filter */
|
||||||
retval = insitu_filtre3x3(image, 0);
|
retval = insitu_filtre3x3(image, 0);
|
||||||
break;
|
break;
|
||||||
case 14:
|
case 14:
|
||||||
@ -192,6 +193,7 @@ switch (idFx) {
|
|||||||
retval = upside_down(image);
|
retval = upside_down(image);
|
||||||
break;
|
break;
|
||||||
case 19:
|
case 19:
|
||||||
|
/* hipass filter */
|
||||||
retval = insitu_filtre3x3(image, 1);
|
retval = insitu_filtre3x3(image, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ if (numid < 0 || numid > NUMBER_OF_STACK) {
|
|||||||
exit(1);
|
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",
|
// fprintf(stderr, "stack at %p, size %d, current %d\n",
|
||||||
// f_slots, nbre_filters, idx_slot);
|
// f_slots, nbre_filters, idx_slot);
|
||||||
fprintf(stderr, "idx ___ fx# _ name ________ ival _ fval ___\n");
|
fprintf(stderr, "idx ___ fx# _ name ________ ival _ fval ___\n");
|
||||||
@ -200,6 +200,13 @@ for (;;) {
|
|||||||
if (NULL==cptr) break;
|
if (NULL==cptr) break;
|
||||||
tmparg = NULL; /* for the next pass of strtok */
|
tmparg = NULL; /* for the next pass of strtok */
|
||||||
// fprintf(stderr, " parsing '%s'\n", cptr);
|
// 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)) {
|
if (1 == sscanf(cptr, "%d", &value)) {
|
||||||
foo = filterstack_add(numid, value, 1, 1.0);
|
foo = filterstack_add(numid, value, 1, 1.0);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
|
@ -311,10 +311,10 @@ if (foo) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (verbosity > 1) {
|
if (verbosity > 1) {
|
||||||
puts("==============");
|
puts("=========================");
|
||||||
filterstack_list(0, __FILE__);
|
filterstack_list(0, __FILE__);
|
||||||
filterstack_list(1, __FILE__);
|
filterstack_list(1, __FILE__);
|
||||||
puts("==============");
|
puts("=========================");
|
||||||
}
|
}
|
||||||
|
|
||||||
nbrsteps = atoi(argv[optind+2]);
|
nbrsteps = atoi(argv[optind+2]);
|
||||||
|
Loading…
Reference in New Issue
Block a user