79 virtual ~TightDecoder()
95 memcpy(buffer, value, size);
109 static uint04 ReadCompact(QTcpSocket* is);
110 static void FilterGradient(
const uint01* inbuf,
const PixelFormat& pf,
uint04* outbuf,
int stride,
const QRect& r);
112 static void FilterPalette(
const uint01* palette,
uint04 palSize,
const uint01* inbuf,
uint01* outbuf,
int stride,
const QRect& r,
uint04 pixel_size);
The equivelent of std::vector but with a bit more control.
static void CopyToBuffer(uint01 *&buffer, void *value, uint04 size, uint04 &total_size)
Copies a value into a byte buffer and advances the pointer.
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.
static void ReadAll(QTcpSocket *is, uint01 *os, uint04 size)
Reads exactly the requested number of bytes from a TCP socket.
A zlib decompression stream wrapper used by TightDecoder to inflate compressed VNC data.
void deinit()
Releases the zlib inflate state.
~ZlibInStream()
Destructor.
bool readBytes(uint01 *data, size_t length)
Reads and decompresses bytes from the stream.
void init()
Initializes the zlib inflate state.
void reset()
Resets the stream, clearing buffered data and reinitializing zlib.
ZlibInStream()
Constructs and initializes the zlib stream.
void flushUnderlying()
Flushes any remaining data in the underlying buffer.
void setUnderlying(const uint01 *is, size_t bytesIn_)
Appends compressed data to the internal buffer.
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
constexpr t_to cast(const Angle< t_from > &value)
Casts an Angle from one backing type to another.