|
NCEPLIBS-g2
3.4.7
|
This program reads PNG stream data from memory. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <png.h>Go to the source code of this file.
Typedefs | |
| typedef int | g2int |
| Integer type. More... | |
| typedef struct png_stream | png_stream |
| location to write PNG stream More... | |
Functions | |
| int | dec_png (unsigned char *pngbuf, g2int *width, g2int *height, char *cout) |
| Decode some PNG compressed data. More... | |
| static 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. More... | |
This program reads PNG stream data from memory.
Definition in file dec_png.c.
| typedef struct png_stream png_stream |
Decode some PNG compressed data.
| pngbuf | Pointer to the PNG buffer to be uncompressed. |
| width | Pointer to the width. |
| height | Pointer to the height. |
| cout | Pointer that gets the unpacked data. |
Definition at line 64 of file dec_png.c.
References drstemplates::j, and user_read_data().
Referenced by pngunpack().
|
static |