summaryrefslogtreecommitdiffstats
path: root/vnc-encoding-tight.c
Commit message (Collapse)AuthorAgeFilesLines
* vnc: tight: don't forget the third colorCorentin Chary2010-06-011-0/+1
| | | | | | | | While couting color, if the third color was only present one time 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: tight: don't forget last pixel in tight_encode_indexed_rectCorentin Chary2010-06-011-5/+4
| | | | | | | | | 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 <corentincj@iksaif.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* vnc: tight: add palette encodingCorentin Chary2010-06-011-12/+425
| | | | | | | | | 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 <corentincj@iksaif.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* vnc: add support for tight fill encodingCorentin Chary2010-06-011-2/+255
| | | | | | | | Fill encoding detects rectangles using only one color and send only one pixel value. Signed-off-by: Corentin Chary <corentincj@iksaif.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* vnc: add basic tight supportCorentin Chary2010-06-011-0/+295
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 <corentincj@iksaif.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
OpenPOWER on IntegriCloud