Statistics
| Branch: | Revision:

root / vnc-encoding-zlib.c @ 8135aeed

History | View | Annotate | Download (4.4 kB)

# Date Author Comment
b05ad290 06/01/2010 08:53 pm Corentin Chary

vnc: only use a single zlib stream

According to http://tigervnc.org/cgi-bin/rfbproto#zlib-encoding
zlib encoding only uses a single stream. Current implementation defines
4 streams but only uses the first one. Remove them and only use a single
stream.

Signed-off-by: Corentin Chary <>...

9f643ec0 06/01/2010 08:53 pm Corentin Chary

vnc: adjust compression zstream level

Adjust zlib compression level if needed by calling deflateParams.

Signed-off-by: Corentin Chary <>
Signed-off-by: Anthony Liguori <>

78c98c78 06/01/2010 08:53 pm Corentin Chary

vnc: don't clear zlib stream on set_encoding

On init, values are already NULL, but we shouldn't try
to reset them each time a client send a set encoding
command because this break everything. For example,
libvncclient re-send a set encoding command if the...

161c4f20 06/01/2010 08:53 pm Corentin Chary

vnc: remove a memory leak in zlib

Makes sure we free all ressources used in zlib encoding (zlib stream
and buffer).

Signed-off-by: Corentin Chary <>
Signed-off-by: Anthony Liguori <>

a885211e 06/01/2010 08:53 pm Corentin Chary

vnc: return the number of rectangles

Some encodings like tight supports tiling (spliting in
multiple sub-rectangles). So we needed a way to tell
vnc_update_client() how much rectangles are in the buffer.

zlib, raw and hextile always send a full rectangle....

380282b0 06/01/2010 08:53 pm Corentin Chary

vnc: add basic tight support

Add support for tight encoding [1]. This patch only add support
for "basic" tight compression without any filter.

[1] http://tigervnc.org/cgi-bin/rfbproto#tight-encoding.

Signed-off-by: Corentin Chary <>...

70a4568f 05/03/2010 08:09 pm Corentin Chary

vnc: split encoding in specific files

This will allow to implement new encodings (tight, zrle, ..)
in a cleaner way. This may hurt performances, because some
functions like vnc_convert_pixel are not static anymore, but
should not be a problem with gcc 4.5 and the new -flto....