Decodes a VNC stream from TightVNC.
More...
|
| static void | CopyToBuffer (uint01 *&buffer, void *value, uint04 size, uint04 &total_size) |
| | Copies a value into a byte buffer and advances the pointer.
|
| static void | ReadAll (QTcpSocket *is, uint01 *os, uint04 size) |
| | Reads exactly the requested number of bytes from a TCP socket.
|
| static bool | ReadRect (const QRect &r, QTcpSocket *is, const PixelFormat &pf, QImage &pb) |
| | Decodes a Tight-encoded rectangle from the VNC stream into an image.
|
Decodes a VNC stream from TightVNC.
Definition at line 71 of file TightDecoder.h.
◆ CopyToBuffer()
| void TightDecoder::CopyToBuffer |
( |
uint01 *& | buffer, |
|
|
void * | value, |
|
|
uint04 | size, |
|
|
uint04 & | total_size ) |
|
inlinestatic |
Copies a value into a byte buffer and advances the pointer.
- Parameters
-
| [in,out] | buffer | Destination pointer, advanced by size after copy. |
| [in] | value | Source data to copy. |
| [in] | size | Number of bytes to copy. |
| [in,out] | total_size | Running total of bytes written, incremented by size. |
Definition at line 93 of file TightDecoder.h.
◆ ReadAll()
| void TightDecoder::ReadAll |
( |
QTcpSocket * | is, |
|
|
uint01 * | os, |
|
|
uint04 | size ) |
|
static |
Reads exactly the requested number of bytes from a TCP socket.
- Parameters
-
| [in] | is | The TCP socket to read from. |
| [out] | os | Destination buffer. |
| [in] | size | Number of bytes to read. |
◆ ReadRect()
| bool TightDecoder::ReadRect |
( |
const QRect & | r, |
|
|
QTcpSocket * | is, |
|
|
const PixelFormat & | pf, |
|
|
QImage & | pb ) |
|
static |
Decodes a Tight-encoded rectangle from the VNC stream into an image.
- Parameters
-
| [in] | r | The rectangle region being decoded. |
| [in] | is | The TCP socket to read compressed data from. |
| [in] | pf | The pixel format of the remote framebuffer. |
| [in,out] | pb | The image to write decoded pixels into. |
- Returns
- true on success.
The documentation for this class was generated from the following file: