png_get_sBIT

Name

png_get_sBIT -- get number of significant bits for each color channel

Synopsis

#include <png.h>

png_uint_32 png_get_sBIT(png_structp png_ptr, png_infop info_ptr, png_color_8p * sig_bit);

Description

png_get_sBIT() shall return the number of significant bit for each of the gray, red, blue and green color channels.

Return Value

On success, png_get_sBIT() shall return PNG_INFO_sBIT. Otherwise, png_get_sBIT() shall return 0.