blob: 40f5f1010951b2ab6919eaf8574af435c0241fab [file] [log] [blame]
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +00001/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
DRCb4a83232011-08-19 04:57:18 +00002 * Copyeight (C) 2011 D. R. Commander. All Rights Reserved.
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +00003 *
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
22namespace rfb {
23
Peter Åstrand98fe98c2010-02-10 07:43:02 +000024 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 Kaplinskya2adc8d2006-05-25 05:01:55 +000031
Peter Åstrand98fe98c2010-02-10 07:43:02 +000032 const int encodingMax = 255;
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000033
Peter Åstrand98fe98c2010-02-10 07:43:02 +000034 const int pseudoEncodingXCursor = -240;
35 const int pseudoEncodingCursor = -239;
36 const int pseudoEncodingDesktopSize = -223;
37 const int pseudoEncodingExtendedDesktopSize = -308;
38 const int pseudoEncodingDesktopName = -307;
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000039
40 // TightVNC-specific
Peter Åstrand98fe98c2010-02-10 07:43:02 +000041 const int pseudoEncodingLastRect = -224;
42 const int pseudoEncodingQualityLevel0 = -32;
43 const int pseudoEncodingQualityLevel9 = -23;
44 const int pseudoEncodingCompressLevel0 = -256;
45 const int pseudoEncodingCompressLevel9 = -247;
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000046
DRCb4a83232011-08-19 04:57:18 +000047 // TurboVNC-specific
48 const int pseudoEncodingFineQualityLevel0 = -512;
49 const int pseudoEncodingFineQualityLevel100 = -412;
50 const int pseudoEncodingSubsamp1X = -768;
51 const int pseudoEncodingSubsamp4X = -767;
52 const int pseudoEncodingSubsamp2X = -766;
53 const int pseudoEncodingSubsampGray = -765;
54 const int pseudoEncodingSubsamp8X = -764;
55 const int pseudoEncodingSubsamp16X = -763;
56
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000057 int encodingNum(const char* name);
Peter Åstrand98fe98c2010-02-10 07:43:02 +000058 const char* encodingName(int num);
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000059}
60#endif