Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 1 | /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. |
DRC | b4a8323 | 2011-08-19 04:57:18 +0000 | [diff] [blame] | 2 | * Copyeight (C) 2011 D. R. Commander. All Rights Reserved. |
Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 3 | * |
| 4 | * This is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This software is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this software; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
| 17 | * USA. |
| 18 | */ |
| 19 | #ifndef __RFB_ENCODINGS_H__ |
| 20 | #define __RFB_ENCODINGS_H__ |
| 21 | |
| 22 | namespace rfb { |
| 23 | |
Peter Åstrand | 98fe98c | 2010-02-10 07:43:02 +0000 | [diff] [blame] | 24 | const int encodingRaw = 0; |
| 25 | const int encodingCopyRect = 1; |
| 26 | const int encodingRRE = 2; |
| 27 | const int encodingCoRRE = 4; |
| 28 | const int encodingHextile = 5; |
| 29 | const int encodingTight = 7; |
| 30 | const int encodingZRLE = 16; |
Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 31 | |
Peter Åstrand | 98fe98c | 2010-02-10 07:43:02 +0000 | [diff] [blame] | 32 | const int encodingMax = 255; |
Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 33 | |
Peter Åstrand | 98fe98c | 2010-02-10 07:43:02 +0000 | [diff] [blame] | 34 | const int pseudoEncodingXCursor = -240; |
| 35 | const int pseudoEncodingCursor = -239; |
| 36 | const int pseudoEncodingDesktopSize = -223; |
| 37 | const int pseudoEncodingExtendedDesktopSize = -308; |
| 38 | const int pseudoEncodingDesktopName = -307; |
Pierre Ossman | c754cce | 2011-11-14 15:44:11 +0000 | [diff] [blame] | 39 | const int pseudoEncodingFence = -312; |
Pierre Ossman | c898d9a | 2011-11-14 16:22:23 +0000 | [diff] [blame] | 40 | const int pseudoEncodingContinuousUpdates = -313; |
Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 41 | |
| 42 | // TightVNC-specific |
Peter Åstrand | 98fe98c | 2010-02-10 07:43:02 +0000 | [diff] [blame] | 43 | const int pseudoEncodingLastRect = -224; |
| 44 | const int pseudoEncodingQualityLevel0 = -32; |
| 45 | const int pseudoEncodingQualityLevel9 = -23; |
| 46 | const int pseudoEncodingCompressLevel0 = -256; |
| 47 | const int pseudoEncodingCompressLevel9 = -247; |
Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 48 | |
DRC | b4a8323 | 2011-08-19 04:57:18 +0000 | [diff] [blame] | 49 | // TurboVNC-specific |
| 50 | const int pseudoEncodingFineQualityLevel0 = -512; |
| 51 | const int pseudoEncodingFineQualityLevel100 = -412; |
| 52 | const int pseudoEncodingSubsamp1X = -768; |
| 53 | const int pseudoEncodingSubsamp4X = -767; |
| 54 | const int pseudoEncodingSubsamp2X = -766; |
| 55 | const int pseudoEncodingSubsampGray = -765; |
| 56 | const int pseudoEncodingSubsamp8X = -764; |
| 57 | const int pseudoEncodingSubsamp16X = -763; |
| 58 | |
Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 59 | int encodingNum(const char* name); |
Peter Åstrand | 98fe98c | 2010-02-10 07:43:02 +0000 | [diff] [blame] | 60 | const char* encodingName(int num); |
Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 61 | } |
| 62 | #endif |