diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-15 13:23:43 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 13:27:09 +0200 |
commit | b948a9172f7cc1fd24761221bc1e2d8d10648c10 (patch) | |
tree | 050bb91b53744a9d16c4225139e8811f904fcb9a /common/rfb/TightEncoder.h | |
parent | 947b48de71e03df2df7010c5760766b93483c9e5 (diff) | |
download | tigervnc-b948a9172f7cc1fd24761221bc1e2d8d10648c10.tar.gz tigervnc-b948a9172f7cc1fd24761221bc1e2d8d10648c10.zip |
Make the subsampling setting follow the common style
Diffstat (limited to 'common/rfb/TightEncoder.h')
-rw-r--r-- | common/rfb/TightEncoder.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/rfb/TightEncoder.h b/common/rfb/TightEncoder.h index 5faef444..3632539d 100644 --- a/common/rfb/TightEncoder.h +++ b/common/rfb/TightEncoder.h @@ -22,6 +22,7 @@ #include <rdr/MemOutStream.h> #include <rdr/ZlibOutStream.h> #include <rfb/Encoder.h> +#include <rfb/JpegCompressor.h> // FIXME: Check if specifying extern "C" is really necessary. #include <stdio.h> @@ -40,7 +41,7 @@ namespace rfb { int idxMaxColorsDivisor; int palMaxColorsWithJPEG; int jpegQuality; - JPEG_SUBSAMP jpegSubsampling; + int jpegSubsampling; }; // @@ -83,7 +84,7 @@ namespace rfb { virtual void setCompressLevel(int level); virtual void setQualityLevel(int level); - virtual void setFineQualityLevel(int quality, JPEG_SUBSAMP subsampling); + virtual void setFineQualityLevel(int quality, int subsampling); virtual int getNumRects(const Rect &r); virtual bool writeRect(const Rect& r, TransImageGetter* ig, Rect* actual); @@ -158,7 +159,7 @@ namespace rfb { const TIGHT_CONF* pconf; int jpegQuality; - JPEG_SUBSAMP jpegSubsampling; + int jpegSubsampling; }; } |