debug function added

This commit is contained in:
2020-06-11 15:57:12 +02:00
parent baddd6dedd
commit ba28fb9e80
3 changed files with 12 additions and 2 deletions

View File

@@ -48,6 +48,12 @@ if (51 == k) {
return 0;
}
/* --------------------------------------------------------------------- */
void fimg_print_sizeof(void)
{
fprintf(stderr, " sz FloatImg = %lu\n", sizeof(FloatImg));
fprintf(stderr, " sz filehead = %lu\n", sizeof(FimgFileHead));
}
/* --------------------------------------------------------------------- */
void fimg_printhead(FloatImg *h)
{
printf("%5d %5d %2d %p %p %p %p\n", h->width, h->height, h->type,

View File

@@ -266,7 +266,10 @@ while ((opt = getopt(argc, argv, "gn:v")) != -1) {
}
}
if (verbosity) fimg_print_version(0);
if (verbosity) {
fimg_print_version(1);
fimg_print_sizeof();
}
// foo = essai_normalize();
// fprintf(stderr, "retour essai normalize -> %d\n", foo);