Make the subsampling setting follow the common style
diff --git a/common/rfb/JpegCompressor.h b/common/rfb/JpegCompressor.h
index d50e587..8fbb7a9 100644
--- a/common/rfb/JpegCompressor.h
+++ b/common/rfb/JpegCompressor.h
@@ -36,14 +36,6 @@
namespace rfb {
- enum JPEG_SUBSAMP {
- SUBSAMP_UNDEFINED = -1,
- SUBSAMP_NONE = 0,
- SUBSAMP_420,
- SUBSAMP_422,
- SUBSAMP_GRAY
- };
-
class JpegCompressor : public rdr::MemOutStream {
public:
@@ -51,8 +43,7 @@
JpegCompressor(int bufferLen = 128*1024);
virtual ~JpegCompressor();
- void compress(const rdr::U8 *, int, const Rect&, const PixelFormat&, int,
- JPEG_SUBSAMP);
+ void compress(const rdr::U8 *, int, const Rect&, const PixelFormat&, int, int);
void writeBytes(const void*, int);