last update 20 Sep 2009 |
#include <cvrIOJPEG.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
parameters & | copy (const parameters &other) |
parameters & | operator= (const parameters &other) |
virtual const std::string & | name () const |
virtual parameters * | clone () const |
virtual parameters * | newInstance () const |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
int | quality |
bool | progressive |
std::string | comment |
int | rowsPerRestart |
cvr::ioJPEG::ioJPEG::parameters::parameters | ( | ) |
cvr::ioJPEG::ioJPEG::parameters::parameters | ( | const parameters & | other | ) |
virtual parameters* cvr::ioJPEG::ioJPEG::parameters::clone | ( | ) | const [virtual] |
Returns a pointer to a clone of the parameters.
Implements cvr::ioImageInterface::ioImageInterface::parameters.
parameters& cvr::ioJPEG::ioJPEG::parameters::copy | ( | const parameters & | other | ) |
virtual const std::string& cvr::ioJPEG::ioJPEG::parameters::name | ( | ) | const [virtual] |
Returns the name of this class.
Reimplemented from cvr::ioImageInterface::ioImageInterface::parameters.
virtual parameters* cvr::ioJPEG::ioJPEG::parameters::newInstance | ( | ) | const [virtual] |
Returns a pointer to a new instance of the parameters.
Implements cvr::ioImageInterface::ioImageInterface::parameters.
parameters& cvr::ioJPEG::ioJPEG::parameters::operator= | ( | const parameters & | other | ) |
virtual bool cvr::ioJPEG::ioJPEG::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [virtual] |
Write the parameters in the given ioHandler.
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from cvr::ioImageInterface::ioImageInterface::parameters.
virtual bool cvr::ioJPEG::ioJPEG::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [virtual] |
Write the parameters in the given ioHandler.
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from cvr::ioImageInterface::ioImageInterface::parameters.
std::string cvr::ioJPEG::ioJPEG::parameters::comment |
Save a comment chunk in the file.
Default is an empty string.
bool cvr::ioJPEG::ioJPEG::parameters::progressive |
Save in progressive or sequential mode.
Default is sequential mode (false).
int cvr::ioJPEG::ioJPEG::parameters::quality |
Determines the compression of the image when saved.
Valid values range from 1 to 100. Default value is 75.
int cvr::ioJPEG::ioJPEG::parameters::rowsPerRestart |
Number of rows between restart markers (0 = no restart markers) when saving.
Default is 0.