]> source.dussan.org Git - tigervnc.git/commitdiff
Using hardware-accelerated version of JpegEncoder under IRIX.
authorConstantin Kaplinsky <const@tightvnc.com>
Tue, 4 Sep 2007 09:08:10 +0000 (09:08 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Tue, 4 Sep 2007 09:08:10 +0000 (09:08 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2334 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/JpegEncoder.cxx

index 6f980b7a5e76397dfc7effcf19e2d4c4fb837912..b2be63f3b5c4db951abe183b4a7ef4e89ffefb2c 100644 (file)
 #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]);
 }