summaryrefslogtreecommitdiffstats
path: root/common/rfb/SMsgWriter.cxx
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-08-17 02:27:59 +0000
committerDRC <dcommander@users.sourceforge.net>2011-08-17 02:27:59 +0000
commitffe09d68f578f6765ed73f3b2bf9d4ea37a0b66b (patch)
tree35a2d8caf9c4393a894b39a3f1e3a6a3748f02a2 /common/rfb/SMsgWriter.cxx
parent4c44600b9b8c0ca5b5bf078470cdc4c1b4fc2c48 (diff)
downloadtigervnc-ffe09d68f578f6765ed73f3b2bf9d4ea37a0b66b.tar.gz
tigervnc-ffe09d68f578f6765ed73f3b2bf9d4ea37a0b66b.zip
Further optimizations to the Tight encoder to eliminate getImage() overhead. The encoder now directly accesses the framebuffer for solid rectangle computation, JPEG encoding, and color counting (if pixel translation is not required.) Also moved everything in tightEncode.h into the TightEncoder class to eliminate all of the static mess (this will be important later on if we decide to multi-thread the encoder.)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4631 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/SMsgWriter.cxx')
-rw-r--r--common/rfb/SMsgWriter.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rfb/SMsgWriter.cxx b/common/rfb/SMsgWriter.cxx
index 2262be09..f0a97c59 100644
--- a/common/rfb/SMsgWriter.cxx
+++ b/common/rfb/SMsgWriter.cxx
@@ -142,7 +142,7 @@ void SMsgWriter::writeNoDataUpdate()
vlog.error("writeNoDataUpdate() called");
}
-void SMsgWriter::writeRects(const UpdateInfo& ui, ImageGetter* ig,
+void SMsgWriter::writeRects(const UpdateInfo& ui, TransImageGetter* ig,
Region* updatedRegion)
{
std::vector<Rect> rects;
@@ -164,13 +164,13 @@ void SMsgWriter::writeRects(const UpdateInfo& ui, ImageGetter* ig,
}
}
-bool SMsgWriter::writeRect(const Rect& r, ImageGetter* ig, Rect* actual)
+bool SMsgWriter::writeRect(const Rect& r, TransImageGetter* ig, Rect* actual)
{
return writeRect(r, cp->currentEncoding(), ig, actual);
}
bool SMsgWriter::writeRect(const Rect& r, int encoding,
- ImageGetter* ig, Rect* actual)
+ TransImageGetter* ig, Rect* actual)
{
if (!encoders[encoding]) {
encoders[encoding] = Encoder::createEncoder(encoding, this);