blob: a65d863ba131638d8a279beb393aa02f6e4be994 [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;
Pierre Ossmanc754cce2011-11-14 15:44:11 +000039 const int pseudoEncodingFence = -312;
Pierre Ossmanc898d9a2011-11-14 16:22:23 +000040 const int pseudoEncodingContinuousUpdates = -313;
Pierre Ossmana4c0aac2017-02-19 15:50:29 +010041 const int pseudoEncodingCursorWithAlpha = -314;
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000042
43 // TightVNC-specific
Peter Åstrand98fe98c2010-02-10 07:43:02 +000044 const int pseudoEncodingLastRect = -224;
45 const int pseudoEncodingQualityLevel0 = -32;
46 const int pseudoEncodingQualityLevel9 = -23;
47 const int pseudoEncodingCompressLevel0 = -256;
48 const int pseudoEncodingCompressLevel9 = -247;
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000049
DRCb4a83232011-08-19 04:57:18 +000050 // TurboVNC-specific
51 const int pseudoEncodingFineQualityLevel0 = -512;
52 const int pseudoEncodingFineQualityLevel100 = -412;
53 const int pseudoEncodingSubsamp1X = -768;
54 const int pseudoEncodingSubsamp4X = -767;
55 const int pseudoEncodingSubsamp2X = -766;
56 const int pseudoEncodingSubsampGray = -765;
57 const int pseudoEncodingSubsamp8X = -764;
58 const int pseudoEncodingSubsamp16X = -763;
59
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000060 int encodingNum(const char* name);
Peter Åstrand98fe98c2010-02-10 07:43:02 +000061 const char* encodingName(int num);
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000062}
63#endif