g4tools  5.4.0
Public Member Functions | List of all members
tools::png::reader Class Reference
Inheritance diagram for tools::png::reader:
Inheritance graph
[legend]
Collaboration diagram for tools::png::reader:
Collaboration graph
[legend]

Public Member Functions

virtual tools::image::ireadercopy () const
 
virtual bool is (const std::string &a_file) const
 
virtual bool infos (std::ostream &a_out, const std::string &a_file, unsigned int &a_width, unsigned int &a_height, unsigned int &a_bpp) const
 
virtual unsigned char * read (std::ostream &a_out, const std::string &a_file, unsigned int &a_width, unsigned int &a_height, unsigned int &a_bpp) const
 
virtual unsigned char * 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) const
 
 reader ()
 
virtual ~reader ()
 
 reader (const reader &)
 
readeroperator= (const reader &)
 
- Public Member Functions inherited from tools::image::ireader
virtual ~ireader ()
 

Detailed Description

Definition at line 467 of file png.

Constructor & Destructor Documentation

◆ reader() [1/2]

tools::png::reader::reader ( )
inline

Definition at line 486 of file png.

486 {}

◆ ~reader()

virtual tools::png::reader::~reader ( )
inlinevirtual

Definition at line 487 of file png.

487 {}

◆ reader() [2/2]

tools::png::reader::reader ( const reader )
inline

Definition at line 489 of file png.

489 :ireader(){}

Member Function Documentation

◆ copy()

virtual tools::image::ireader* tools::png::reader::copy ( ) const
inlinevirtual

Implements tools::image::ireader.

Definition at line 469 of file png.

469 {return new reader(*this);}

◆ infos()

virtual bool tools::png::reader::infos ( std::ostream &  a_out,
const std::string &  a_file,
unsigned int &  a_width,
unsigned int &  a_height,
unsigned int &  a_bpp 
) const
inlinevirtual

Implements tools::image::ireader.

Definition at line 471 of file png.

472  {
473  return tools::png::infos(a_out,a_file,a_width,a_height,a_bpp);
474  }

◆ is()

virtual bool tools::png::reader::is ( const std::string &  a_file) const
inlinevirtual

Implements tools::image::ireader.

Definition at line 470 of file png.

470 {return tools::png::is(a_file);}

◆ operator=()

reader& tools::png::reader::operator= ( const reader )
inline

Definition at line 490 of file png.

490 {return *this;}

◆ read()

virtual unsigned char* tools::png::reader::read ( std::ostream &  a_out,
const std::string &  a_file,
unsigned int &  a_width,
unsigned int &  a_height,
unsigned int &  a_bpp 
) const
inlinevirtual

Implements tools::image::ireader.

Definition at line 475 of file png.

476  {
477  return tools::png::read(a_out,a_file,a_width,a_height,a_bpp);
478  }

◆ read_part()

virtual unsigned char* tools::png::reader::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 
) const
inlinevirtual

Implements tools::image::ireader.

Definition at line 479 of file png.

482  {
483  return tools::png::read_part(a_out,a_file,a_sx,a_sy,a_sw,a_sh,a_rw,a_rh,a_rbpp);
484  }

The documentation for this class was generated from the following file:
tools::png::infos
bool infos(std::ostream &a_out, const std::string &a_file, unsigned int &a_width, unsigned int &a_height, unsigned int &a_bpp)
Definition: png:364
tools::png::is
bool is(const std::string &a_file)
Definition: png:23
tools::png::reader::reader
reader()
Definition: png:486
tools::png::read_part
unsigned char * 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)
Definition: png:172
tools::png::read
unsigned char * read(std::ostream &a_out, const std::string &a_file, unsigned int &a_width, unsigned int &a_height, unsigned int &a_bpp)
Definition: png:145