.TH "dec_png.c" 3 "Tue May 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME dec_png.c \- PNG functions\&. .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include 'grib2\&.h'\fP .br .SS "Typedefs" .in +1c .ti -1c .RI "typedef struct png_stream \fBpng_stream\fP" .br .RI "Typedef for PNG stream\&. " .in -1c .SS "Functions" .in +1c .ti -1c .RI "int \fBdec_png\fP (unsigned char *pngbuf, \fBg2int\fP *width, \fBg2int\fP *height, char *cout)" .br .RI "Decode PNG\&. " .ti -1c .RI "void \fBuser_read_data\fP (png_structp png_ptr, png_bytep data, png_uint_32 length)" .br .RI "Custom read function used so that libpng will read a PNG stream from memory instead of a file on disk\&. " .in -1c .SH "Detailed Description" .PP PNG functions\&. .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP .PP Definition in file \fBdec_png\&.c\fP\&. .SH "Typedef Documentation" .PP .SS "typedef struct png_stream png_stream" .PP Typedef for PNG stream\&. .PP Definition at line 1 of file dec_png\&.c\&. .SH "Function Documentation" .PP .SS "int dec_png (unsigned char * pngbuf, \fBg2int\fP * width, \fBg2int\fP * height, char * cout)" .PP Decode PNG\&. .PP \fBParameters\fP .RS 4 \fIpngbuf\fP Pointer to PNG buffer\&. .br \fIwidth\fP Pointer to width\&. .br \fIheight\fP Pointer to height\&. .br \fIcout\fP Output buffer\&. .RE .PP \fBReturns\fP .RS 4 0 for success, error code otherwise\&. .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP .PP Definition at line 67 of file dec_png\&.c\&. .PP References user_read_data()\&. .PP Referenced by pngunpack()\&. .SS "void user_read_data (png_structp png_ptr, png_bytep data, png_uint_32 length)" .PP Custom read function used so that libpng will read a PNG stream from memory instead of a file on disk\&. .PP \fBParameters\fP .RS 4 \fIpng_ptr\fP Pointer to PNG\&. .br \fIdata\fP Pointer to data\&. .br \fIlength\fP Length\&. .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP .PP Definition at line 41 of file dec_png\&.c\&. .PP Referenced by dec_png()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.