Put this behind RPNG_TEST

This commit is contained in:
twinaphex 2020-08-24 18:17:47 +02:00
parent 1f7b338ce0
commit cde5d37eb2

View File

@ -179,12 +179,14 @@ static bool png_process_ihdr(struct png_ihdr *ihdr)
return false;
}
#ifdef RPNG_TEST
fprintf(stderr, "IHDR: (%u x %u), bpc = %u, palette = %s, color = %s, alpha = %s, adam7 = %s.\n",
ihdr->width, ihdr->height,
ihdr_depth, (ihdr->color_type == PNG_IHDR_COLOR_PLT) ? "yes" : "no",
(ihdr->color_type & PNG_IHDR_COLOR_RGB) ? "yes" : "no",
(ihdr->color_type & PNG_IHDR_COLOR_GRAY_ALPHA) ? "yes" : "no",
ihdr->interlace == 1 ? "yes" : "no");
#endif
return true;
}