#include <png.h>
png_byte png_get_bit_depth(png_structp png_ptr, png_infop info_ptr);
png_byte png_get_bit_depth
Returns the image bit_depth.
Returns 0 if png_ptr or info_ptr is NULL, bit_depth otherwise.