tracking a bug...

This commit is contained in:
tonton Th 2020-02-17 07:40:06 +01:00
parent d0b7ddfd91
commit b1ae9f31ed
4 changed files with 12 additions and 6 deletions

View File

@ -2,7 +2,7 @@
* floatimg.h
*/
#define FIMG_VERSION 91
#define FIMG_VERSION 92
/*
* in memory descriptor

View File

@ -15,7 +15,7 @@ extern int verbosity; /* must be declared around main() */
/* ---------------------------------------------------------------- */
int fimg_images_compatible(FloatImg *a, FloatImg *b)
{
#if DEBUG_LEVEL
#if DEBUG_LEVEL > 1
fprintf(stderr, ">>> %s ( %p %p )\n", __func__, a, b);
#endif

View File

@ -41,15 +41,20 @@ int fimg_interpolate(FloatImg *s1, FloatImg *s2, FloatImg *d, float coef)
{
int foo;
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( %p %p %p %f )\n", __func__,
s1, s2, d, coef);
#endif
foo = fimg_images_compatible(s1, s2);
if (foo) {
fprintf(stderr, "compat -> %d\n", foo);
fprintf(stderr, "compat s1 s2 -> %d\n", foo);
return foo;
}
foo = fimg_images_compatible(s1, d);
if (foo) {
fprintf(stderr, "compat -> %d\n", foo);
fprintf(stderr, "compat s1 d -> %d\n", foo);
return foo;
}

View File

@ -95,6 +95,7 @@ switch (action) {
case OP_MAXI:
foo = fimg_minimum(A, B, D); break;
default:
fprintf(stderr, "fscking action #%d\n", action);
foo = -99; break;
}