png_get_hIST

Name

png_get_hIST -- get the histogram for given image

Synopsis

#include <png.h>

png_uint_32 png_get_hIST(png_structp png_ptr, png_infop info_ptr, png_uint_16p * hist);

Description

Returns the histogram of an image to *hist if the hIST chunk information is valid for the image.

Return Value

PNG_INFO_hIST - if png_ptr, info_ptr, hist are not NULL and hIST chunk information is valid 0 - otherwise.