aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/IrixDMJpegCompressor.h
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2007-12-07 08:23:04 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2007-12-07 08:23:04 +0000
commitcf1d7f11b444452c3692d2ca0cb320d54460c7b7 (patch)
treed9002d16ae5de8ecbb5deeff88dc6e3307bdfb09 /common/rfb/IrixDMJpegCompressor.h
parent3e43ed5fb36aeb33483dded9a335038607544afe (diff)
downloadtigervnc-cf1d7f11b444452c3692d2ca0cb320d54460c7b7.tar.gz
tigervnc-cf1d7f11b444452c3692d2ca0cb320d54460c7b7.zip
Various improvements in the IrixDMJpegCompressor class. Member functions have been declared virtual. The setQuality() function allows compression levels in the range [1..99] now, and calls IrixDMIC_RawToJpeg::setImageQuality() when necessary.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2372 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/IrixDMJpegCompressor.h')
-rw-r--r--common/rfb/IrixDMJpegCompressor.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/rfb/IrixDMJpegCompressor.h b/common/rfb/IrixDMJpegCompressor.h
index 500884af..db242003 100644
--- a/common/rfb/IrixDMJpegCompressor.h
+++ b/common/rfb/IrixDMJpegCompressor.h
@@ -26,15 +26,15 @@ namespace rfb {
bool isValid() const { return m_ic.isValid(); }
// Set JPEG quality level (0..100).
- void setQuality(int level);
+ virtual void setQuality(int level);
// Actually compress the image.
- void compress(const rdr::U32 *buf, const PixelFormat *fmt,
- int w, int h, int stride);
+ virtual void compress(const rdr::U32 *buf, const PixelFormat *fmt,
+ int w, int h, int stride);
// Access results of the compression.
- size_t getDataLength() { return m_compressedLength; }
- const char *getDataPtr() { return m_compressedData; }
+ virtual size_t getDataLength() { return m_compressedLength; }
+ virtual const char *getDataPtr() { return m_compressedData; }
protected:
// Update image size and make sure that our buffer pools will