History | View | Annotate | Download (4.4 kB)
vnc: only use a single zlib stream
According to http://tigervnc.org/cgi-bin/rfbproto#zlib-encodingzlib encoding only uses a single stream. Current implementation defines4 streams but only uses the first one. Remove them and only use a singlestream.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>...
vnc: adjust compression zstream level
Adjust zlib compression level if needed by calling deflateParams.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc: don't clear zlib stream on set_encoding
On init, values are already NULL, but we shouldn't tryto reset them each time a client send a set encodingcommand because this break everything. For example,libvncclient re-send a set encoding command if the...
vnc: remove a memory leak in zlib
Makes sure we free all ressources used in zlib encoding (zlib streamand buffer).
vnc: return the number of rectangles
Some encodings like tight supports tiling (spliting inmultiple sub-rectangles). So we needed a way to tellvnc_update_client() how much rectangles are in the buffer.
zlib, raw and hextile always send a full rectangle....
vnc: add basic tight support
Add support for tight encoding [1]. This patch only add supportfor "basic" tight compression without any filter.
[1] http://tigervnc.org/cgi-bin/rfbproto#tight-encoding.
vnc: split encoding in specific files
This will allow to implement new encodings (tight, zrle, ..)in a cleaner way. This may hurt performances, because somefunctions like vnc_convert_pixel are not static anymore, butshould not be a problem with gcc 4.5 and the new -flto....