.TH "enc_png.c" 3 "Tue May 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME enc_png.c \- Functions for dealing with PNG\&. .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 \fBenc_png\fP (char *data, \fBg2int\fP width, \fBg2int\fP height, \fBg2int\fP nbits, char *pngbuf)" .br .RI "Encode PNG\&. " .ti -1c .RI "void \fBuser_flush_data\fP (png_structp png_ptr)" .br .RI "Dummy Custom flush function\&. " .ti -1c .RI "void \fBuser_write_data\fP (png_structp png_ptr, png_bytep data, png_uint_32 length)" .br .RI "Custom write function used to that libpng will write to memory location instead of a file on disk\&. " .in -1c .SH "Detailed Description" .PP Functions for dealing with PNG\&. .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP .PP Definition in file \fBenc_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 enc_png\&.c\&. .SH "Function Documentation" .PP .SS "int enc_png (char * data, \fBg2int\fP width, \fBg2int\fP height, \fBg2int\fP nbits, char * pngbuf)" .PP Encode PNG\&. .PP \fBParameters\fP .RS 4 \fIdata\fP data\&. .br \fIwidth\fP width\&. .br \fIheight\fP height\&. .br \fInbits\fP number of bits\&. .br \fIpngbuf\fP PNG buffer\&. .RE .PP \fBReturns\fP .RS 4 PNG length, or negative number for error\&. .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP .PP Definition at line 81 of file enc_png\&.c\&. .PP References user_flush_data(), and user_write_data()\&. .PP Referenced by pngpack()\&. .SS "void user_flush_data (png_structp png_ptr)" .PP Dummy Custom flush function\&. .PP \fBParameters\fP .RS 4 \fIpng_ptr\fP Pointer to PNG struct\&. .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP .PP Definition at line 61 of file enc_png\&.c\&. .PP Referenced by enc_png()\&. .SS "void user_write_data (png_structp png_ptr, png_bytep data, png_uint_32 length)" .PP Custom write function used to that libpng will write to memory location instead of a file on disk\&. .PP \fBParameters\fP .RS 4 \fIpng_ptr\fP pointer .br \fIdata\fP data .br \fIlength\fP length .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP .PP Definition at line 38 of file enc_png\&.c\&. .PP Referenced by enc_png()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.