summaryrefslogtreecommitdiffstats
path: root/common/rfb/ConnParams.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/ConnParams.h')
-rw-r--r--common/rfb/ConnParams.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/common/rfb/ConnParams.h b/common/rfb/ConnParams.h
index fa0fe022..43267ffd 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();
@@ -67,9 +75,9 @@ namespace rfb {
void setName(const char* name);
rdr::S32 currentEncoding() { return currentEncoding_; }
- int nEncodings() { return nEncodings_; }
- const rdr::S32* encodings() { return encodings_; }
+
void setEncodings(int nEncodings, const rdr::S32* encodings);
+
bool useCopyRect;
bool supportsLocalCursor;
@@ -83,19 +91,15 @@ namespace rfb {
bool supportsFence;
bool supportsContinuousUpdates;
- bool customCompressLevel;
int compressLevel;
- bool noJpeg;
int qualityLevel;
int fineQualityLevel;
- JPEG_SUBSAMP subsampling;
+ int subsampling;
private:
PixelFormat pf_;
char* name_;
- int nEncodings_;
- rdr::S32* encodings_;
int currentEncoding_;
char verStr[13];
int verStrPos;