Provided by: libg2c-dev_1.6.4-3_amd64 bug

NAME

       enc_png.c - Functions for dealing with PNG.

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 enc_png (char *data, g2int width, g2int height, g2int nbits, char *pngbuf)
           Encode PNG.
       void user_flush_data (png_structp png_ptr)
           Dummy Custom flush function.
       void user_write_data (png_structp png_ptr, png_bytep data, png_uint_32 length)
           Custom write function used to that libpng will write to memory location instead of a
           file on disk.

Detailed Description

       Functions for dealing with PNG.

       Author
           Stephen Gilbert

       Definition in file enc_png.c.

Typedef Documentation

   typedef struct png_stream png_stream
       Typedef for PNG stream.

       Definition at line 1 of file enc_png.c.

Function Documentation

   int enc_png (char * data, g2int width, g2int height, g2int nbits, char * pngbuf)
       Encode PNG.

       Parameters
           data data.
           width width.
           height height.
           nbits number of bits.
           pngbuf PNG buffer.

       Returns
           PNG length, or negative number for error.

       Author
           Stephen Gilbert

       Definition at line 81 of file enc_png.c.

       References user_flush_data(), and user_write_data().

       Referenced by pngpack().

   void user_flush_data (png_structp png_ptr)
       Dummy Custom flush function.

       Parameters
           png_ptr Pointer to PNG struct.

       Author
           Stephen Gilbert

       Definition at line 61 of file enc_png.c.

       Referenced by enc_png().

   void user_write_data (png_structp png_ptr, png_bytep data, png_uint_32 length)
       Custom write function used to that libpng will write to memory location instead of a file
       on disk.

       Parameters
           png_ptr pointer
           data data
           length length

       Author
           Stephen Gilbert

       Definition at line 38 of file enc_png.c.

       Referenced by enc_png().

Author

       Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.