using namespace rfb;
-CopyRectDecoder::CopyRectDecoder()
+CopyRectDecoder::CopyRectDecoder() : Decoder(DecoderPlain)
{
}
using namespace rfb;
-Decoder::Decoder()
+Decoder::Decoder(enum DecoderFlags flags) : flags(flags)
{
}
class ConnParams;
class ModifiablePixelBuffer;
class Rect;
+ class Region;
+
+ enum DecoderFlags {
+ // A constant for decoders that don't need anything special
+ DecoderPlain = 0,
+ };
class Decoder {
public:
- Decoder();
+ Decoder(enum DecoderFlags flags);
virtual ~Decoder();
// These functions are the main interface to an individual decoder
public:
static bool supported(int encoding);
static Decoder* createDecoder(int encoding);
+
+ public:
+ const enum DecoderFlags flags;
};
}
#include <rfb/hextileDecode.h>
#undef BPP
-HextileDecoder::HextileDecoder()
+HextileDecoder::HextileDecoder() : Decoder(DecoderPlain)
{
}
#include <rfb/rreDecode.h>
#undef BPP
-RREDecoder::RREDecoder()
+RREDecoder::RREDecoder() : Decoder(DecoderPlain)
{
}
using namespace rfb;
-RawDecoder::RawDecoder()
+RawDecoder::RawDecoder() : Decoder(DecoderPlain)
{
}
#include <rfb/tightDecode.h>
#undef BPP
-TightDecoder::TightDecoder()
+TightDecoder::TightDecoder() : Decoder(DecoderPlain)
{
}
#undef CPIXEL
#undef BPP
-ZRLEDecoder::ZRLEDecoder()
+ZRLEDecoder::ZRLEDecoder() : Decoder(DecoderPlain)
{
}