Revision: 4259
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4259&view=rev
Author:   dcommander
Date:     2011-02-08 18:10:24 +0000 (Tue, 08 Feb 2011)

Log Message:
-----------
libjpeg-turbo produces about the same image quality with the fast integer DCT 
if the JPEG quality is <= 95, and it's a lot faster.  Slow integer DCT is 
retained for quality >= 96, because fast integer degrades at those quality 
levels.

Modified Paths:
--------------
    trunk/common/rfb/tightEncode.h

Modified: trunk/common/rfb/tightEncode.h
===================================================================
--- trunk/common/rfb/tightEncode.h      2011-02-07 23:59:09 UTC (rev 4258)
+++ trunk/common/rfb/tightEncode.h      2011-02-08 18:10:24 UTC (rev 4259)
@@ -574,6 +574,8 @@
 
   jpeg_set_defaults(&cinfo);
   jpeg_set_quality(&cinfo, s_pjconf->jpegQuality, TRUE);
+  if(s_pjconf->jpegQuality >= 96) cinfo.dct_method = JDCT_ISLOW;
+  else cinfo.dct_method = JDCT_FASTEST;
 
   switch (s_pjconf->jpegSubSample) {
   case SUBSAMP_420:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to