diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-08-19 04:57:18 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-08-19 04:57:18 +0000 |
commit | b4a8323c25f6440c3051f98439d8246c3e170ce4 (patch) | |
tree | 5332faf29b104f1ab5bf5c8eca4b9d8fbd065511 /common/rfb/encodings.h | |
parent | 887c5fd86e052f31a4cd039b5634a16af7c8e780 (diff) | |
download | tigervnc-b4a8323c25f6440c3051f98439d8246c3e170ce4.tar.gz tigervnc-b4a8323c25f6440c3051f98439d8246c3e170ce4.zip |
Add support for TurboVNC pseudo-encodings and Grayscale JPEG compression so that, when a TurboVNC viewer is connected, the TigerVNC Server will behave exactly like the TurboVNC Server.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4641 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/encodings.h')
-rw-r--r-- | common/rfb/encodings.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/rfb/encodings.h b/common/rfb/encodings.h index 16cd73a4..40f5f101 100644 --- a/common/rfb/encodings.h +++ b/common/rfb/encodings.h @@ -1,4 +1,5 @@ /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. + * Copyeight (C) 2011 D. R. Commander. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -43,6 +44,16 @@ namespace rfb { const int pseudoEncodingCompressLevel0 = -256; const int pseudoEncodingCompressLevel9 = -247; + // TurboVNC-specific + const int pseudoEncodingFineQualityLevel0 = -512; + const int pseudoEncodingFineQualityLevel100 = -412; + const int pseudoEncodingSubsamp1X = -768; + const int pseudoEncodingSubsamp4X = -767; + const int pseudoEncodingSubsamp2X = -766; + const int pseudoEncodingSubsampGray = -765; + const int pseudoEncodingSubsamp8X = -764; + const int pseudoEncodingSubsamp16X = -763; + int encodingNum(const char* name); const char* encodingName(int num); } |