supportsContinuousUpdates(false),
customCompressLevel(false), compressLevel(2),
noJpeg(false), qualityLevel(-1), fineQualityLevel(-1),
- subsampling(SUBSAMP_UNDEFINED),
- name_(0), nEncodings_(0), encodings_(0),
+ subsampling(SUBSAMP_UNDEFINED), name_(0),
currentEncoding_(encodingRaw), verStrPos(0)
{
setName("");
ConnParams::~ConnParams()
{
delete [] name_;
- delete [] encodings_;
}
bool ConnParams::readVersion(rdr::InStream* is, bool* done)
void ConnParams::setEncodings(int nEncodings, const rdr::S32* encodings)
{
- if (nEncodings > nEncodings_) {
- delete [] encodings_;
- encodings_ = new rdr::S32[nEncodings];
- }
- nEncodings_ = nEncodings;
useCopyRect = false;
supportsLocalCursor = false;
supportsDesktopResize = false;
currentEncoding_ = encodingRaw;
for (int i = nEncodings-1; i >= 0; i--) {
- encodings_[i] = encodings[i];
-
if (encodings[i] == encodingCopyRect)
useCopyRect = true;
else if (encodings[i] == pseudoEncodingCursor)
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;
PixelFormat pf_;
char* name_;
- int nEncodings_;
- rdr::S32* encodings_;
int currentEncoding_;
char verStr[13];
int verStrPos;