|
NCEPLIBS-g2
3.4.8
|
This program writes PNG stream to 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 |
| Long integer type. More... | |
| typedef struct png_stream | png_stream |
| location to write PNG stream. More... | |
Functions | |
| int | enc_png (char *data, g2int *width, g2int *height, g2int *nbits, char *pngbuf) |
| create png_structs to write png stream into memory. More... | |
| static void | user_flush_data (png_structp png_ptr) |
| Dummy Custom flush function. More... | |
| static 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. More... | |
This program writes PNG stream to memory.
Definition in file enc_png.c.
| typedef struct png_stream png_stream |
create png_structs to write png stream into memory.
| data | data. |
| width | width. |
| height | height. |
| nbits | number of bits. |
| pngbuf | PNG buffer. |
Definition at line 79 of file enc_png.c.
References drstemplates::j, user_flush_data(), and user_write_data().
Referenced by pngpack().
|
static |
|
static |