This commit is contained in:
twinaphex 2020-08-24 18:18:18 +02:00
parent b91c0d672a
commit 3d86e1c699

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