|
| JPEGCompressor (int quality) |
| Constructor.
|
|
void | setQuality (int factor) |
| Set the compression quality.
|
|
int | getQuality () const |
| Get the current quality level.
|
|
void | InitCompression (const RawTile &rawtile, unsigned int strip_height) |
| Initialise strip based compression.
|
|
unsigned int | CompressStrip (unsigned char *s, unsigned char *o, unsigned int tile_height) |
| Compress a strip of image data.
|
|
unsigned int | Finish (unsigned char *output) |
| Finish the strip based compression and free memory.
|
|
unsigned int | Compress (RawTile &t) |
| Compress an entire buffer of image data at once in one command.
|
|
unsigned int | getHeaderSize () const |
| Return the JPEG header size.
|
|
unsigned char * | getHeader () |
| Return a pointer to the header itself.
|
|
const char * | getMimeType () const |
| Return the JPEG mime type.
|
|
const char * | getSuffix () const |
| Return the image filename suffix.
|
|
CompressionType | getCompressionType () const |
| Get compression type.
|
|
| Compressor (int compressionLevel) |
| Constructor.
|
|
int | getQuality () const |
| Get the current quality level.
|
|
void | setResolution (float x, float y, int units) |
| Set the physical output resolution.
|
|
void | setICCProfile (const std::string &profile) |
| Set the ICC profile.
|
|
void | setXMPMetadata (const std::string &x) |
| Set XMP metadata.
|
|
virtual unsigned int | getHeaderSize () const |
| Return the image header size.
|
|
virtual unsigned char * | getHeader () |
| Return a pointer to the image header itself.
|
|
virtual void | InitCompression (const RawTile &rawtile, unsigned int strip_height) |
| Initialise strip based compression.
|
|
virtual unsigned int | CompressStrip (unsigned char *s, unsigned char *o, unsigned int tile_height) |
| Compress a strip of image data.
|
|
virtual unsigned int | Finish (unsigned char *output) |
| Finish the strip based compression and free memory.
|
|
virtual unsigned int | Compress (RawTile &t) |
| Compress an entire buffer of image data at once in one command.
|
|
virtual void | addXMPMetadata (const std::string &m) |
| Add metadata to the image header.
|
|
virtual const char * | getMimeType () const |
| Get mime type.
|
|
virtual const char * | getSuffix () const |
| Get file suffix.
|
|
virtual CompressionType | getCompressionType () const |
| Get compression type.
|
|
Wrapper class to the IJG JPEG library.