diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-28 14:13:12 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 13:27:08 +0200 |
commit | 945cddacef4ff607017cd62f580ea682cbd45806 (patch) | |
tree | 97b2ef9643851907325bd57b6db688117314b056 /common/rfb/tightDecode.h | |
parent | 823665c23920ef0917b2036079b4be2951445e2c (diff) | |
download | tigervnc-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.h | 8 |
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; } |