137 int estimateEncodedBufferSize(
const core::ImgBase *image,
bool skipMetaData);
140 int estimateRawDataSize(
const core::ImgBase *image,
bool skipMetaData);
146 const std::string &quality=std::string()):mode(mode),quality(quality){}
156 char compressionMode[4];
175 inline int imageLen()
const {
return params.dataLen -
sizeof(
Params) - params.metaLen; }
176 inline std::string
getMagickCode()
const {
return std::string(params.magick,params.magick+4); }
177 inline std::string
getCompressionMode()
const {
return std::string(params.compressionMode,params.compressionMode+4); }
186 Header uncompressHeader(
const icl8u *compressedData,
int len);
189 Header createHeader(
const core::ImgBase *image,
bool skipMetaData);
200 bytes(bytes),len(len),compressionRatio(compressionRatio),
201 compression(compression){}
undocument this line if you encounter any issues!
Definition: Any.h:37
Class interface for un-copyable classes.
Definition: Uncopyable.h:64
std::string mode
mode
Definition: ImageCompressor.h:147
Ipp8u icl8u
8Bit unsigned integer type for the ICL
Definition: BasicTypes.h:64
std::string quality
quality
Definition: ImageCompressor.h:148
ICL Time class (taken from the Ice lib)
Definition: Time.h:52
compression specification
Definition: ImageCompressor.h:144
CompressionSpec compression
underlying compression mode
Definition: ImageCompressor.h:213
ICLQt_API ImgROI data(ImgQ &r)
creates full ROI ROI-struct
Ipp32s icl32s
32bit signed integer type for the ICL
Definition: BasicTypes.h:58
most simple dyn-size array with given data and length
Definition: ImageCompressor.h:196
Encoder class for optimized encoding of images.
Definition: ImageCompressor.h:132
#define ICLIO_API
Definition: CompatMacros.h:176
CompressionSpec(const std::string &mode=std::string(), const std::string &quality=std::string())
Definition: ImageCompressor.h:145
float compressionRatio
compression rate (1: no compression, 0.5: 50% compression , ...)
Definition: ImageCompressor.h:210
CompressedData(icl8u *bytes=0, int len=0, float compressionRatio=0, const CompressionSpec &compression=CompressionSpec())
Constructor.
Definition: ImageCompressor.h:198
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
Data * m_data
pimpl type
Definition: ImageCompressor.h:133
icl8u * bytes
data pointer
Definition: ImageCompressor.h:204
int len
num elements
Definition: ImageCompressor.h:207