You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

encodings.h 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
  2. * Copyeight (C) 2011 D. R. Commander. All Rights Reserved.
  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. namespace rfb {
  22. const int encodingRaw = 0;
  23. const int encodingCopyRect = 1;
  24. const int encodingRRE = 2;
  25. const int encodingCoRRE = 4;
  26. const int encodingHextile = 5;
  27. const int encodingTight = 7;
  28. const int encodingZRLE = 16;
  29. const int encodingMax = 255;
  30. const int pseudoEncodingXCursor = -240;
  31. const int pseudoEncodingCursor = -239;
  32. const int pseudoEncodingDesktopSize = -223;
  33. const int pseudoEncodingLEDState = -261;
  34. const int pseudoEncodingExtendedDesktopSize = -308;
  35. const int pseudoEncodingDesktopName = -307;
  36. const int pseudoEncodingFence = -312;
  37. const int pseudoEncodingContinuousUpdates = -313;
  38. const int pseudoEncodingCursorWithAlpha = -314;
  39. const int pseudoEncodingQEMUKeyEvent = -258;
  40. // TightVNC-specific
  41. const int pseudoEncodingLastRect = -224;
  42. const int pseudoEncodingQualityLevel0 = -32;
  43. const int pseudoEncodingQualityLevel9 = -23;
  44. const int pseudoEncodingCompressLevel0 = -256;
  45. const int pseudoEncodingCompressLevel9 = -247;
  46. // TurboVNC-specific
  47. const int pseudoEncodingFineQualityLevel0 = -512;
  48. const int pseudoEncodingFineQualityLevel100 = -412;
  49. const int pseudoEncodingSubsamp1X = -768;
  50. const int pseudoEncodingSubsamp4X = -767;
  51. const int pseudoEncodingSubsamp2X = -766;
  52. const int pseudoEncodingSubsampGray = -765;
  53. const int pseudoEncodingSubsamp8X = -764;
  54. const int pseudoEncodingSubsamp16X = -763;
  55. // VMware-specific
  56. const int pseudoEncodingVMwareCursor = 0x574d5664;
  57. const int pseudoEncodingVMwareLEDState = 0x574d5668;
  58. // UltraVNC-specific
  59. const int pseudoEncodingExtendedClipboard = 0xC0A1E5CE;
  60. int encodingNum(const char* name);
  61. const char* encodingName(int num);
  62. }
  63. #endif