|
NCEPLIBS-g2c 1.9.0
|
Functions for dealing with PNG. More...
Go to the source code of this file.
Typedefs | |
| typedef struct png_stream | png_stream |
| Typedef for PNG stream. | |
Functions | |
| int | enc_png (unsigned char *data, g2int width, g2int height, g2int nbits, unsigned 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. | |
Functions for dealing with PNG.
Definition in file enc_png.c.
| typedef struct png_stream png_stream |
| int enc_png | ( | unsigned char * | data, |
| g2int | width, | ||
| g2int | height, | ||
| g2int | nbits, | ||
| unsigned char * | pngbuf | ||
| ) |
Encode PNG.
| data | data. |
| width | width. |
| height | height. |
| nbits | number of bits. |
| pngbuf | PNG buffer. |
Definition at line 75 of file enc_png.c.
References user_flush_data(), and user_write_data().
Referenced by pngpack_int().
| void user_flush_data | ( | png_structp | png_ptr | ) |