Go to the documentation of this file.
4 #ifndef tools_image_reader
5 #define tools_image_reader
20 virtual bool is(
const std::string&)
const = 0;
21 virtual bool infos(std::ostream& a_out,
const std::string& a_file,
22 unsigned int& a_width,
unsigned int& a_height,
23 unsigned int& a_bpp)
const = 0;
24 virtual unsigned char*
read(std::ostream& a_out,
const std::string& a_file,
25 unsigned int& a_width,
unsigned int& a_height,
26 unsigned int& a_bpp)
const = 0;
27 virtual unsigned char*
read_part(std::ostream& a_out,
28 const std::string& a_file,
29 unsigned int a_sx,
unsigned int a_sy,
30 unsigned int a_sw,
unsigned int a_sh,
31 unsigned int& a_rw,
unsigned int& a_rh,
32 unsigned int& a_rbpp)
const = 0;
46 if(&a_from==
this)
return *
this;
60 void _copy(
const std::vector<named_reader>& a_from) {
#define tools_vforit(a__T, a__v, a__it)
#define tools_vforcit(a__T, a__v, a__it)