NCEPLIBS-g2c 1.9.0
|
PNG functions. More...
Go to the source code of this file.
Typedefs | |
typedef struct png_stream | png_stream |
Typedef for PNG stream. | |
Functions | |
int | dec_png (unsigned char *pngbuf, g2int *width, g2int *height, unsigned char *cout) |
Decode PNG. | |
void | user_read_data (png_structp png_ptr, png_bytep data, png_uint_32 length) |
Custom read function used so that libpng will read a PNG stream from memory instead of a file on disk. | |
PNG functions.
Definition in file dec_png.c.
typedef struct png_stream png_stream |
Decode PNG.
pngbuf | Pointer to PNG buffer. |
width | Pointer to width. |
height | Pointer to height. |
cout | Output buffer. |
Definition at line 61 of file dec_png.c.
References user_read_data().
Referenced by pngunpack_int().
void user_read_data | ( | png_structp | png_ptr, |
png_bytep | data, | ||
png_uint_32 | length | ||
) |