![]() |
iipsrv
1.1
iipsrv is an advanced high-performance feature-rich image server for web-based streamed viewing and zooming of ultra high-resolution images
|
Base class for IIP output images. More...
#include <Compressor.h>
Public Member Functions | |
| int | getQuality () |
| Get the current quality level. | |
| void | setICCProfile (const std::string &profile) |
| Set the ICC profile. More... | |
| void | setXMPMetadata (const std::string &x) |
| Set XMP metadata. More... | |
| virtual unsigned int | getHeaderSize () |
| Return the image header size. More... | |
| virtual unsigned char * | getHeader () |
| Return a pointer to the image header itself. More... | |
| virtual void | InitCompression (const RawTile &rawtile, unsigned int strip_height) |
| Initialise strip based compression. More... | |
| virtual unsigned int | CompressStrip (unsigned char *s, unsigned char *o, unsigned int tile_height) |
| Compress a strip of image data. More... | |
| virtual unsigned int | Finish (unsigned char *output) |
| Finish the strip based compression and free memory. More... | |
| virtual unsigned int | Compress (RawTile &t) |
| Compress an entire buffer of image data at once in one command. More... | |
| virtual void | addXMPMetadata (const std::string &m) |
| Add metadata to the image header. More... | |
| virtual const char * | getMimeType () |
| Get mime type. More... | |
| virtual const char * | getSuffix () |
| Get file suffix. More... | |
Protected Member Functions | |
| virtual void | writeICCProfile () |
| Write ICC profile. | |
| virtual void | writeXMPMetadata () |
| Write XMP metadata. | |
Protected Attributes | |
| int | Q |
| Quality level. | |
| std::string | icc |
| ICC Profile. | |
| std::string | xmp |
| XMP metadata. | |
Base class for IIP output images.
|
inlinevirtual |
Add metadata to the image header.
| m | metadata |
|
inlinevirtual |
Compress an entire buffer of image data at once in one command.
| t | tile of image data |
Reimplemented in JPEGCompressor.
|
inlinevirtual |
Compress a strip of image data.
| s | source image data |
| o | output buffer |
| tile_height | pixel height of the tile we are compressing |
Reimplemented in JPEGCompressor.
|
inlinevirtual |
Finish the strip based compression and free memory.
| output | output buffer |
Reimplemented in JPEGCompressor.
|
inlinevirtual |
Return a pointer to the image header itself.
Reimplemented in JPEGCompressor.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Initialise strip based compression.
If we are doing a strip based encoding, we need to first initialise with InitCompression, then compress a single strip at a time using CompressStrip and finally clean up using Finish
| rawtile | tile containing the image to be compressed |
| strip_height | pixel height of the strip we want to compress |
Reimplemented in JPEGCompressor.
|
inline |
|
inline |