NDEVR
API Documentation
TightDecoder

Decodes a VNC stream from TightVNC. More...

Static Public Member Functions

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.

Detailed Description

Decodes a VNC stream from TightVNC.


Definition at line 71 of file TightDecoder.h.

Member Function Documentation

◆ 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]bufferDestination pointer, advanced by size after copy.
[in]valueSource data to copy.
[in]sizeNumber of bytes to copy.
[in,out]total_sizeRunning 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]isThe TCP socket to read from.
[out]osDestination buffer.
[in]sizeNumber 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]rThe rectangle region being decoded.
[in]isThe TCP socket to read compressed data from.
[in]pfThe pixel format of the remote framebuffer.
[in,out]pbThe image to write decoded pixels into.
Returns
true on success.

The documentation for this class was generated from the following file: