summaryrefslogtreecommitdiffstats
path: root/common/rfb/TightEncoder.cxx
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2012-02-13 03:55:10 +0000
committerDRC <dcommander@users.sourceforge.net>2012-02-13 03:55:10 +0000
commit56dee1a252e66142cc1995cf298945fc4d9c9ba4 (patch)
tree3f81b22c216ea7780b8384e5737e6630ac3ca67b /common/rfb/TightEncoder.cxx
parent550a4df9a31bf6a7a7cfa8f557d1e680fad917f0 (diff)
downloadtigervnc-56dee1a252e66142cc1995cf298945fc4d9c9ba4.tar.gz
tigervnc-56dee1a252e66142cc1995cf298945fc4d9c9ba4.zip
Fix regression caused by r4841. That patch assumed that JPEG encoding always uses the raw buffer, which is not true. If pixel translation is necessary, then JPEG images will sometimes be encoded from the translated (intermediate) buffer instead.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4852 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/TightEncoder.cxx')
-rw-r--r--common/rfb/TightEncoder.cxx16
1 files changed, 0 insertions, 16 deletions
diff --git a/common/rfb/TightEncoder.cxx b/common/rfb/TightEncoder.cxx
index fcd9d9b0..9be4581e 100644
--- a/common/rfb/TightEncoder.cxx
+++ b/common/rfb/TightEncoder.cxx
@@ -418,19 +418,3 @@ void TightEncoder::writeSubrect(const Rect& r, bool forceSolid)
os->writeBytes(mos.data(), mos.length());
writer->endRect();
}
-
-void TightEncoder::encodeJpegRect(const Rect& r, rdr::OutStream *os)
-{
- const rdr::U8 *buf;
- int stride;
-
- buf = ig->getRawPixelsR(r, &stride);
-
- jc.clear();
- jc.compress(buf, stride * serverpf.bpp / 8, r, serverpf,
- jpegQuality, jpegSubsampling);
-
- os->writeU8(0x09 << 4);
- os->writeCompactLength(jc.length());
- os->writeBytes(jc.data(), jc.length());
-}