70 Q( compressionLevel ),
125 virtual unsigned int CompressStrip(
unsigned char* s,
unsigned char* o,
unsigned int tile_height ) {
return 0; };
132 virtual unsigned int Finish(
unsigned char* output ) {
return 0; };
149 virtual const char*
getMimeType()
const {
return "image/example"; };
154 virtual const char*
getSuffix()
const {
return "img"; };
Base class for IIP output images.
Definition: Compressor.h:32
virtual const char * getSuffix() const
Get file suffix.
Definition: Compressor.h:154
int dpi_units
Resolution units.
Definition: Compressor.h:50
virtual unsigned int CompressStrip(unsigned char *s, unsigned char *o, unsigned int tile_height)
Compress a strip of image data.
Definition: Compressor.h:125
Compressor(int compressionLevel)
Constructor.
Definition: Compressor.h:69
std::string xmp
XMP metadata.
Definition: Compressor.h:56
int getQuality() const
Get the current quality level.
Definition: Compressor.h:82
virtual void writeICCProfile()
Write ICC profile.
Definition: Compressor.h:59
virtual void writeXMPMetadata()
Write XMP metadata.
Definition: Compressor.h:62
unsigned int header_size
Size of the header data.
Definition: Compressor.h:43
std::string icc
ICC Profile.
Definition: Compressor.h:53
int Q
Quality or compression level for all image types.
Definition: Compressor.h:37
virtual unsigned int Finish(unsigned char *output)
Finish the strip based compression and free memory.
Definition: Compressor.h:132
unsigned char * header
Pointer to the header data for the output image.
Definition: Compressor.h:40
virtual void InitCompression(const RawTile &rawtile, unsigned int strip_height)
Initialise strip based compression.
Definition: Compressor.h:116
float dpi_x
Physical resolution for X and Y directions.
Definition: Compressor.h:46
virtual unsigned int getHeaderSize() const
Return the image header size.
Definition: Compressor.h:101
void setResolution(float x, float y, int units)
Set the physical output resolution.
Definition: Compressor.h:86
virtual CompressionType getCompressionType() const
Get compression type.
Definition: Compressor.h:159
void setICCProfile(const std::string &profile)
Set the ICC profile.
Definition: Compressor.h:91
virtual unsigned char * getHeader()
Return a pointer to the image header itself.
Definition: Compressor.h:106
virtual unsigned int Compress(RawTile &t)
Compress an entire buffer of image data at once in one command.
Definition: Compressor.h:139
virtual void addXMPMetadata(const std::string &m)
Add metadata to the image header.
Definition: Compressor.h:144
void setXMPMetadata(const std::string &x)
Set XMP metadata.
Definition: Compressor.h:96
virtual const char * getMimeType() const
Get mime type.
Definition: Compressor.h:149
Class to represent a single image tile.
Definition: RawTile.h:47