summaryrefslogtreecommitdiffstats
path: root/common/rfb/Encoder.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-09-20 10:52:15 +0200
committerPierre Ossman <ossman@cendio.se>2018-09-21 10:38:41 +0200
commitbeab2b6e4adcdab1fd71964c5ab7533c6050edbf (patch)
treedebf0b7f8ad3c74e45a9076531ec5f7b8db0468d /common/rfb/Encoder.cxx
parentab9fd6b4d5060cd02bfad7846fa5164353f5c277 (diff)
downloadtigervnc-beab2b6e4adcdab1fd71964c5ab7533c6050edbf.tar.gz
tigervnc-beab2b6e4adcdab1fd71964c5ab7533c6050edbf.zip
Allow perceptually lossless refresh
Loosen the definition of "lossless" a bit so that we can use high quality JPEG to refresh damaged parts of the screen. Although this isn't bit perfect, it is close enough that most users will not be able to tell the difference. Level 9 is used rather than level 8 because some monitors have exaggerated contrast that allows the artefacts from level 8 to be noticeable.
Diffstat (limited to 'common/rfb/Encoder.cxx')
-rw-r--r--common/rfb/Encoder.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/rfb/Encoder.cxx b/common/rfb/Encoder.cxx
index 18b66809..0e29f1df 100644
--- a/common/rfb/Encoder.cxx
+++ b/common/rfb/Encoder.cxx
@@ -24,9 +24,11 @@
using namespace rfb;
Encoder::Encoder(SConnection *conn_, int encoding_,
- enum EncoderFlags flags_, unsigned int maxPaletteSize_) :
+ enum EncoderFlags flags_,
+ unsigned int maxPaletteSize_, int losslessQuality_) :
encoding(encoding_), flags(flags_),
- maxPaletteSize(maxPaletteSize_), conn(conn_)
+ maxPaletteSize(maxPaletteSize_), losslessQuality(losslessQuality_),
+ conn(conn_)
{
}