aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/tightDecode.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-01-28 14:13:12 +0100
committerPierre Ossman <ossman@cendio.se>2014-07-07 13:27:08 +0200
commit945cddacef4ff607017cd62f580ea682cbd45806 (patch)
tree97b2ef9643851907325bd57b6db688117314b056 /common/rfb/tightDecode.h
parent823665c23920ef0917b2036079b4be2951445e2c (diff)
downloadtigervnc-945cddacef4ff607017cd62f580ea682cbd45806.tar.gz
tigervnc-945cddacef4ff607017cd62f580ea682cbd45806.zip
Be more consistent in referring to pixel byte streams as buffers
Diffstat (limited to 'common/rfb/tightDecode.h')
-rw-r--r--common/rfb/tightDecode.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/rfb/tightDecode.h b/common/rfb/tightDecode.h
index e9f5f6ba..fb39d996 100644
--- a/common/rfb/tightDecode.h
+++ b/common/rfb/tightDecode.h
@@ -156,7 +156,7 @@ void TIGHT_DECODE (const Rect& r)
PIXEL_T *buf;
int stride = r.width();
- if (directDecode) buf = (PIXEL_T *)handler->getRawPixelsRW(r, &stride);
+ if (directDecode) buf = (PIXEL_T *)handler->getRawBufferRW(r, &stride);
else buf = (PIXEL_T *)reader->getImageBuf(r.area());
if (palSize == 0) {
@@ -228,7 +228,7 @@ void TIGHT_DECODE (const Rect& r)
}
}
- if (directDecode) handler->releaseRawPixels(r);
+ if (directDecode) handler->releaseRawBuffer(r);
else IMAGE_RECT(r, buf);
delete [] netbuf;
@@ -256,10 +256,10 @@ DECOMPRESS_JPEG_RECT(const Rect& r)
// We always use direct decoding with JPEG images
int stride;
- rdr::U8 *buf = handler->getRawPixelsRW(r, &stride);
+ rdr::U8 *buf = handler->getRawBufferRW(r, &stride);
jd.decompress(netbuf, compressedLen, buf, stride * clientpf.bpp / 8, r,
clientpf);
- handler->releaseRawPixels(r);
+ handler->releaseRawBuffer(r);
delete [] netbuf;
}