Provided by: libg2c-dev_1.6.4-3_amd64
NAME
dec_png.c - PNG functions.
SYNOPSIS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <png.h> #include 'grib2.h' Typedefs typedef struct png_stream png_stream Typedef for PNG stream. Functions int dec_png (unsigned char *pngbuf, g2int *width, g2int *height, char *cout) Decode PNG. void user_read_data (png_structp png_ptr, png_bytep data, png_uint_32 length) Custom read function used so that libpng will read a PNG stream from memory instead of a file on disk.
Detailed Description
PNG functions. Author Stephen Gilbert Definition in file dec_png.c.
Typedef Documentation
typedef struct png_stream png_stream Typedef for PNG stream. Definition at line 1 of file dec_png.c.
Function Documentation
int dec_png (unsigned char * pngbuf, g2int * width, g2int * height, char * cout) Decode PNG. Parameters pngbuf Pointer to PNG buffer. width Pointer to width. height Pointer to height. cout Output buffer. Returns 0 for success, error code otherwise. Author Stephen Gilbert Definition at line 67 of file dec_png.c. References user_read_data(). Referenced by pngunpack(). void user_read_data (png_structp png_ptr, png_bytep data, png_uint_32 length) Custom read function used so that libpng will read a PNG stream from memory instead of a file on disk. Parameters png_ptr Pointer to PNG. data Pointer to data. length Length. Author Stephen Gilbert Definition at line 41 of file dec_png.c. Referenced by dec_png().
Author
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.