virtual void setQualityLevel(int level) {};
virtual void setFineQualityLevel(int quality, int subsampling) {};
+ virtual int getCompressLevel() { return -1; };
+ virtual int getQualityLevel() { return -1; };
+
// writeRect() is the main interface that encodes the given rectangle
// with data from the PixelBuffer onto the SConnection given at
// encoder creation.
fineSubsampling = subsampling;
}
+int TightJPEGEncoder::getQualityLevel()
+{
+ return qualityLevel;
+}
+
void TightJPEGEncoder::writeRect(const PixelBuffer* pb, const Palette& palette)
{
const rdr::U8* buffer;
virtual void setQualityLevel(int level);
virtual void setFineQualityLevel(int quality, int subsampling);
+ virtual int getQualityLevel();
+
virtual void writeRect(const PixelBuffer* pb, const Palette& palette);
virtual void writeSolidRect(int width, int height,
const PixelFormat& pf,