table of contents
enc_png.c(3) | NCEPLIBS-g2c | enc_png.c(3) |
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
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
width width.
height height.
nbits number of bits.
pngbuf PNG buffer.
Returns
Author
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
Author
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
data data
length length
Author
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.
Tue May 3 2022 | Version 1.6.4 |