History | View | Annotate | Download (36 kB)
Move stdbool.h
Move inclusion of stdbool.h to common header files, instead of includingin an ad-hoc manner.
Signed-off-by: Paul Brook <paul@codesourcery.com>
vnc: tight: don't forget last pixel in tight_encode_indexed_rect
A simple patch would have been to just remove count = 1, but thisone 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 <corentincj@iksaif.net>...
vnc: tight: don't forget the third color
While couting color, if the third color was only present onetime it wasn't added to the palette.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
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: add support for tight fill encoding
Fill encoding detects rectangles using only one color and send onlyone pixel value.
vnc: tight: add palette encoding
Add palette tight encoding. Palette encoding will try to count the numberof colors for a given rectangle, and if this number is low enough(< 256) it will send the palette + the rectangle with indexed colors.