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

Go to the source code of this file.

Classes

struct  tools::jpeg::error_mgr
 
class  tools::jpeg::reader
 

Namespaces

 tools
 inlined C code : ///////////////////////////////////
 
 tools::jpeg
 

Macros

#define tools_jpeg
 

Typedefs

typedef struct error_mgr * tools::jpeg::error_ptr
 

Functions

bool tools::jpeg::write_file (FILE *a_file, int a_quality, unsigned char *a_buffer, unsigned int a_width, unsigned int a_height, unsigned int a_bpp)
 
bool tools::jpeg::write_file_100 (FILE *a_file, unsigned char *a_buffer, unsigned int a_width, unsigned int a_height, unsigned int a_bpp)
 
void tools::jpeg::tools_jpeg_error_exit (j_common_ptr cinfo)
 
bool tools::jpeg::infos_file (FILE *a_file, unsigned int &a_width, unsigned int &a_height, unsigned int &a_bpp)
 
unsigned char * tools::jpeg::read_file (FILE *a_file, unsigned int &a_width, unsigned int &a_height, unsigned int &a_bpp)
 
bool tools::jpeg::is (const std::string &a_file)
 
bool tools::jpeg::infos (std::ostream &a_out, const std::string &a_file, unsigned int &a_width, unsigned int &a_height, unsigned int &a_bpp)
 
unsigned char * tools::jpeg::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::jpeg::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::jpeg::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, int a_quality)
 
bool tools::jpeg::to_xpm (std::ostream &a_out, const std::string &a_file, const std::string &a_name, bool a_verbose=false)
 
bool tools::jpeg::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, int a_quality)
 

Macro Definition Documentation

◆ tools_jpeg

#define tools_jpeg

Definition at line 5 of file jpeg.