diff options
author | DRC <dcommander@users.sourceforge.net> | 2009-03-12 19:26:44 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2009-03-12 19:26:44 +0000 |
commit | 773cf3c770d0b2528da66b5e28648cbfbaa494b5 (patch) | |
tree | cd1ea46c49459d34b72c17afce4cfb14e04f0e4a /common/rfb/TightEncoder.h | |
parent | a4c2fae43fd3fe16fa08b980900f69e98f5aca30 (diff) | |
download | tigervnc-773cf3c770d0b2528da66b5e28648cbfbaa494b5.tar.gz tigervnc-773cf3c770d0b2528da66b5e28648cbfbaa494b5.zip |
Change JPEG quality/subsampling map to produce meaningful compression ratios, as defined by the VirtualGL project study of rendered frames from SPECviewperf 9
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3666 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/TightEncoder.h')
-rw-r--r-- | common/rfb/TightEncoder.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common/rfb/TightEncoder.h b/common/rfb/TightEncoder.h index 35f2f599..a36340fc 100644 --- a/common/rfb/TightEncoder.h +++ b/common/rfb/TightEncoder.h @@ -30,12 +30,19 @@ extern "C" { namespace rfb { + enum subsampEnum { + SUBSAMP_NONE, + SUBSAMP_422, + SUBSAMP_420 + }; + struct TIGHT_CONF { unsigned int maxRectSize, maxRectWidth; unsigned int monoMinRectSize; int idxZlibLevel, monoZlibLevel, rawZlibLevel; int idxMaxColorsDivisor; - int jpegQuality, jpegSubSample; + int jpegQuality; + subsampEnum jpegSubSample; }; // |