summaryrefslogtreecommitdiffstats
path: root/common/rfb/TightEncoder.cxx
diff options
context:
space:
mode:
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());
-}