summaryrefslogtreecommitdiffstats
path: root/common/rfb/ConnParams.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-01-15 13:23:43 +0100
committerPierre Ossman <ossman@cendio.se>2014-07-07 13:27:09 +0200
commitb948a9172f7cc1fd24761221bc1e2d8d10648c10 (patch)
tree050bb91b53744a9d16c4225139e8811f904fcb9a /common/rfb/ConnParams.h
parent947b48de71e03df2df7010c5760766b93483c9e5 (diff)
downloadtigervnc-b948a9172f7cc1fd24761221bc1e2d8d10648c10.tar.gz
tigervnc-b948a9172f7cc1fd24761221bc1e2d8d10648c10.zip
Make the subsampling setting follow the common style
Diffstat (limited to 'common/rfb/ConnParams.h')
-rw-r--r--common/rfb/ConnParams.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/common/rfb/ConnParams.h b/common/rfb/ConnParams.h
index 47ec14a3..68e20754 100644
--- a/common/rfb/ConnParams.h
+++ b/common/rfb/ConnParams.h
@@ -1,4 +1,5 @@
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
+ * Copyright 2014 Pierre Ossman for Cendio AB
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -25,12 +26,19 @@
#include <rdr/types.h>
#include <rfb/PixelFormat.h>
#include <rfb/ScreenSet.h>
-#include <rfb/JpegCompressor.h>
namespace rdr { class InStream; }
namespace rfb {
+ const int subsampleUndefined = -1;
+ const int subsampleNone = 0;
+ const int subsampleGray = 1;
+ const int subsample2X = 2;
+ const int subsample4X = 3;
+ const int subsample8X = 4;
+ const int subsample16X = 5;
+
class ConnParams {
public:
ConnParams();
@@ -88,7 +96,7 @@ namespace rfb {
bool noJpeg;
int qualityLevel;
int fineQualityLevel;
- JPEG_SUBSAMP subsampling;
+ int subsampling;
private: