aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2007-09-04 09:08:10 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2007-09-04 09:08:10 +0000
commitd37420a88163979346cd6cab70cf51adbf95f5ca (patch)
treea976d82907afc338e234606c8738484ebfe99947 /common
parentcffb691c486f3a075d5d7ee5afcd02846e0a1f8f (diff)
downloadtigervnc-d37420a88163979346cd6cab70cf51adbf95f5ca.tar.gz
tigervnc-d37420a88163979346cd6cab70cf51adbf95f5ca.zip
Using hardware-accelerated version of JpegEncoder under IRIX.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2334 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common')
-rw-r--r--common/rfb/JpegEncoder.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/rfb/JpegEncoder.cxx b/common/rfb/JpegEncoder.cxx
index 6f980b7a..b2be63f3 100644
--- a/common/rfb/JpegEncoder.cxx
+++ b/common/rfb/JpegEncoder.cxx
@@ -20,6 +20,10 @@
#include <rdr/OutStream.h>
#include <rfb/encodings.h>
+#ifdef HAVE_DMEDIA
+#include <rfb/IrixDMJpegCompressor.h>
+#endif
+
using namespace rfb;
const int JpegEncoder::qualityMap[10] = {
@@ -28,7 +32,11 @@ const int JpegEncoder::qualityMap[10] = {
JpegEncoder::JpegEncoder(SMsgWriter* writer_) : writer(writer_)
{
+#ifdef HAVE_DMEDIA
+ jcomp = new IrixDMJpegCompressor;
+#else
jcomp = new StandardJpegCompressor;
+#endif
jcomp->setQuality(qualityMap[6]);
}