Statistics
| Branch: | Revision:

root / vnc-encoding-tight.c @ a88790a1

History | View | Annotate | Download (36 kB)

# Date Author Comment
11165820 06/13/2010 09:00 pm Paul Brook

Move stdbool.h

Move inclusion of stdbool.h to common header files, instead of including
in an ad-hoc manner.

Signed-off-by: Paul Brook <>

54d43eac 06/02/2010 12:15 am Corentin Chary

vnc: tight: don't forget last pixel in tight_encode_indexed_rect

A simple patch would have been to just remove count = 1, but this
one also replace the while (count-
) with a for(i = 0; i < count; i++)
which I believe is more easy to understand.

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

270ec219 06/02/2010 12:15 am Corentin Chary

vnc: tight: don't forget the third color

While couting color, if the third color was only present one
time it wasn't added to the palette.

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

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 <>...

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

vnc: add support for tight fill encoding

Fill encoding detects rectangles using only one color and send only
one pixel value.

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

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

vnc: tight: add palette encoding

Add palette tight encoding. Palette encoding will try to count the number
of colors for a given rectangle, and if this number is low enough
(< 256) it will send the palette + the rectangle with indexed colors.

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