g4tools  5.4.0
Classes | Namespaces | Macros | Functions
png File Reference
#include <cstdio>
#include <string>
#include <tools/sout>
#include <tools/mnmx>
#include <png.h>
#include <ostream>
#include <tools/xpm>
#include <tools/image>
#include <vector>
Include dependency graph for png:

Go to the source code of this file.

Classes

class  tools::png::reader
 

Namespaces

 tools
 inlined C code : ///////////////////////////////////
 
 tools::png
 

Macros

#define tools_png
 
#define Z_DEFAULT_COMPRESSION   (-1)
 

Functions

bool tools::png::is (const std::string &a_file)
 
unsigned char * tools::png::read_FILE (FILE *a_file, unsigned int &a_width, unsigned int &a_height, unsigned int &a_bpp)
 
unsigned char * tools::png::read (std::ostream &a_out, const std::string &a_file, unsigned int &a_width, unsigned int &a_height, unsigned int &a_bpp)
 
unsigned char * tools::png::read_part (std::ostream &a_out, const std::string &a_file, unsigned int a_sx, unsigned int a_sy, unsigned int a_sw, unsigned int a_sh, unsigned int &a_rw, unsigned int &a_rh, unsigned int &a_rbpp)
 
bool tools::png::write_FILE (FILE *a_file, unsigned char *a_buffer, unsigned int a_width, unsigned int a_height, unsigned int a_bpp)
 
bool tools::png::write (std::ostream &a_out, const std::string &a_file, unsigned char *a_buffer, unsigned int a_width, unsigned int a_height, unsigned int a_bpp)
 
bool tools::png::infos_FILE (FILE *a_file, unsigned int &a_width, unsigned int &a_height, unsigned int &a_bpp)
 
bool tools::png::infos (std::ostream &a_out, const std::string &a_file, unsigned int &a_width, unsigned int &a_height, unsigned int &a_bpp)
 
bool tools::png::to_xpm (std::ostream &a_out, const std::string &a_file, const std::string &a_name, bool a_verbose=false)
 
bool tools::png::concatenate (std::ostream &a_out, const std::vector< std::string > &a_files, unsigned int a_cols, unsigned int a_rows, unsigned int a_bw, unsigned int a_bh, unsigned char a_bc, const std::string &a_file)
 

Macro Definition Documentation

◆ tools_png

#define tools_png

Definition at line 5 of file png.

◆ Z_DEFAULT_COMPRESSION

#define Z_DEFAULT_COMPRESSION   (-1)