![]() |
Image Component Library (ICL)
|
encoding class for data-to-data jpeg compression More...
#include <JPEGEncoder.h>
Classes | |
| struct | EncodedData |
| encoded data type More... | |
Public Member Functions | |
| JPEGEncoder (int quality=90) | |
| constructor with given jpeg quality More... | |
| ~JPEGEncoder () | |
| Destructor. More... | |
| void | setQuality (int quality) |
| sets the compression quality level More... | |
| const EncodedData & | encode (const core::ImgBase *image) |
| encodes a given core::ImgBase * (only depth8u is supported natively) More... | |
| void | writeToFile (const core::ImgBase *image, const std::string &filename) |
| first encodes the jpeg in memory and then write the whole memory chunk to disc More... | |
Private Attributes | |
| Data * | m_data |
| pimpl type More... | |
Additional Inherited Members | |
Protected Member Functions inherited from icl::utils::Uncopyable | |
| Uncopyable () | |
| Empty base constructor. More... | |
encoding class for data-to-data jpeg compression
| icl::io::JPEGEncoder::JPEGEncoder | ( | int | quality = 90 | ) |
constructor with given jpeg quality
The quality value is always given in percet (1-100)
| icl::io::JPEGEncoder::~JPEGEncoder | ( | ) |
Destructor.
| const EncodedData& icl::io::JPEGEncoder::encode | ( | const core::ImgBase * | image | ) |
encodes a given core::ImgBase * (only depth8u is supported natively)
non-depth8u images are automatically converted before compression. This might lead to loss of data
| void icl::io::JPEGEncoder::setQuality | ( | int | quality | ) |
sets the compression quality level
| void icl::io::JPEGEncoder::writeToFile | ( | const core::ImgBase * | image, |
| const std::string & | filename | ||
| ) |
first encodes the jpeg in memory and then write the whole memory chunk to disc
|
private |
pimpl type
pimpl pointer
1.8.15