|
unsigned char * | _open (const image::ireader &a_reader, const std::string &a_path, unsigned int &a_w, unsigned int &a_h, unsigned int &a_bpp) |
|
void | _clean () |
|
void | _copy (const std::vector< ireader * > &a_from) |
|
Definition at line 279 of file image.
◆ iterator_reader() [1/2]
tools::image::iterator_reader::iterator_reader |
( |
std::ostream & |
a_out, |
|
|
unsigned int |
a_limit |
|
) |
| |
|
inline |
Definition at line 309 of file image.
314 mem::increment(s_class().c_str());
◆ ~iterator_reader()
virtual tools::image::iterator_reader::~iterator_reader |
( |
| ) |
|
|
inlinevirtual |
Definition at line 317 of file image.
320 mem::decrement(s_class().c_str());
◆ iterator_reader() [2/2]
tools::image::iterator_reader::iterator_reader |
( |
const iterator_reader & |
a_from | ) |
|
|
inline |
Definition at line 324 of file image.
330 mem::increment(s_class().c_str());
332 _copy(a_from.m_readers);
◆ _clean()
void tools::image::iterator_reader::_clean |
( |
| ) |
|
|
inlineprotected |
Definition at line 407 of file image.
408 std::vector<ireader*>::iterator it;
◆ _copy()
void tools::image::iterator_reader::_copy |
( |
const std::vector< ireader * > & |
a_from | ) |
|
|
inlineprotected |
◆ _open()
unsigned char* tools::image::iterator_reader::_open |
( |
const image::ireader & |
a_reader, |
|
|
const std::string & |
a_path, |
|
|
unsigned int & |
a_w, |
|
|
unsigned int & |
a_h, |
|
|
unsigned int & |
a_bpp |
|
) |
| |
|
inlineprotected |
Definition at line 345 of file image.
351 unsigned char* buffer = 0;
354 if(!a_reader.infos(
m_out,a_path,a_w,a_h,a_bpp)) {
355 m_out <<
"tools::image::iterator_reader::_open :"
356 <<
" for file " << sout(a_path)
357 <<
" ireader::infos failed."
359 a_w = 0;a_h = 0;a_bpp = 0;
378 if(((2*sw)*(2*sh)*a_bpp)>
m_limit)
break;
383 unsigned int sx = (a_w-sw)/2;
384 unsigned int sy = (a_h-sh)/2;
386 buffer = a_reader.read_part
387 (
m_out,a_path,sx,sy,sw,sh,a_w,a_h,a_bpp);
389 buffer = a_reader.read(
m_out,a_path,a_w,a_h,a_bpp);
392 buffer = a_reader.read(
m_out,a_path,a_w,a_h,a_bpp);
396 m_out <<
"tools::image::iterator_reader::_open :"
397 <<
" for file " << sout(a_path)
400 a_w = 0;a_h = 0;a_bpp = 0;
◆ add_reader()
void tools::image::iterator_reader::add_reader |
( |
ireader * |
a_reader | ) |
|
|
inline |
◆ begin_file()
virtual bool tools::image::iterator_reader::begin_file |
( |
std::string & |
| ) |
|
|
pure virtual |
◆ end_file()
virtual bool tools::image::iterator_reader::end_file |
( |
const std::string & |
| ) |
|
|
pure virtual |
◆ operator=()
Definition at line 334 of file image.
335 if(&a_from==
this)
return *
this;
337 _copy(a_from.m_readers);
◆ read_image()
virtual unsigned char* tools::image::iterator_reader::read_image |
( |
unsigned int & |
a_w, |
|
|
unsigned int & |
a_h, |
|
|
unsigned int & |
a_bpp |
|
) |
| |
|
inlinevirtual |
Implements tools::image::iterator.
Definition at line 288 of file image.
294 if((*it)->is(file)) {
295 unsigned char* buffer =
_open(*(*it),file,a_w,a_h,a_bpp);
302 a_w = 0;a_h = 0;a_bpp = 0;
◆ m_limit
unsigned int tools::image::iterator_reader::m_limit |
|
protected |
◆ m_out
std::ostream& tools::image::iterator_reader::m_out |
|
protected |
◆ m_readers
std::vector<ireader*> tools::image::iterator_reader::m_readers |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/image