.TH "pngunpack.c" 3 "Fri Jun 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME pngunpack.c .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include 'grib2\&.h'\fP .br .SS "Functions" .in +1c .ti -1c .RI "int \fBdec_png\fP (unsigned char *, \fBg2int\fP *, \fBg2int\fP *, char *)" .br .RI "Decode PNG\&. " .ti -1c .RI "\fBg2int\fP \fBpngunpack\fP (unsigned char *cpack, \fBg2int\fP len, \fBg2int\fP *idrstmpl, \fBg2int\fP ndpts, \fBg2float\fP *fld)" .br .RI "This subroutine unpacks a data field that was packed into a PNG image format using info from the GRIB2 Data Representation Template 5\&.41 or 5\&.40010\&. " .in -1c .SH "Detailed Description" .PP .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2003-08-27 .RE .PP .PP Definition in file \fBpngunpack\&.c\fP\&. .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 "\fBg2int\fP pngunpack (unsigned char * cpack, \fBg2int\fP len, \fBg2int\fP * idrstmpl, \fBg2int\fP ndpts, \fBg2float\fP * fld)" .PP This subroutine unpacks a data field that was packed into a PNG image format using info from the GRIB2 Data Representation Template 5\&.41 or 5\&.40010\&. .PP \fBParameters\fP .RS 4 \fIcpack\fP The packed data field (character*1 array)\&. .br \fIlen\fP length of packed field cpack()\&. .br \fIidrstmpl\fP Pointer to array of values for Data Representation Template 5\&.41 or 5\&.40010\&. .br \fIndpts\fP The number of data values to unpack\&. .br \fIfld\fP Contains the unpacked data values\&. .RE .PP \fBReturns\fP .RS 4 0 for success, 1 for memory allocation error\&. .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2003-08-27 .RE .PP .PP Definition at line 27 of file pngunpack\&.c\&. .PP References dec_png(), gbits(), int_power(), and rdieee()\&. .PP Referenced by g2_unpack7()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.