g4tools  5.4.0
Public Member Functions | List of all members
tools::jpeg::reader Class Reference
Inheritance diagram for tools::jpeg::reader:
Inheritance graph
[legend]
Collaboration diagram for tools::jpeg::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 542 of file jpeg.

Constructor & Destructor Documentation

◆ reader() [1/2]

tools::jpeg::reader::reader ( )
inline

Definition at line 571 of file jpeg.

571 {}

◆ ~reader()

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

Definition at line 572 of file jpeg.

572 {}

◆ reader() [2/2]

tools::jpeg::reader::reader ( const reader )
inline

Definition at line 574 of file jpeg.

574 :ireader(){}

Member Function Documentation

◆ copy()

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

Implements tools::image::ireader.

Definition at line 544 of file jpeg.

544 {return new reader(*this);}

◆ infos()

virtual bool tools::jpeg::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 548 of file jpeg.

550  {
551  return tools::jpeg::infos(a_out,a_file,a_width,a_height,a_bpp);
552  }

◆ is()

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

Implements tools::image::ireader.

Definition at line 545 of file jpeg.

545  {
546  return tools::jpeg::is(a_file);
547  }

◆ operator=()

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

Definition at line 575 of file jpeg.

575 {return *this;}

◆ read()

virtual unsigned char* tools::jpeg::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 553 of file jpeg.

555  {
556  return tools::jpeg::read(a_out,a_file,a_width,a_height,a_bpp);
557  }

◆ read_part()

virtual unsigned char* tools::jpeg::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 558 of file jpeg.

563  {
564  return tools::jpeg::read_part(a_out,a_file,
565  a_sx,a_sy,
566  a_sw,a_sh,
567  a_rw,a_rh,
568  a_rbpp);
569  }

The documentation for this class was generated from the following file:
tools::jpeg::is
bool is(const std::string &a_file)
Definition: jpeg:216
tools::jpeg::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: jpeg:316
tools::jpeg::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: jpeg:230
tools::jpeg::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: jpeg:273
tools::jpeg::reader::reader
reader()
Definition: jpeg:571