vnc: tight: add palette encoding
commitaa7d73fd3db9262f426017a1eeef0d681373db5d
authorCorentin Chary <corentincj@iksaif.net>
Wed, 19 May 2010 07:24:12 +0000 (19 09:24 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 1 Jun 2010 17:53:09 +0000 (1 12:53 -0500)
tree2a742171bac7ede5aea4b46efa5cdaf3a30de3e2
parentb4bea3f2b848a0815a28e316c14dc22919bc082b
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 <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc-encoding-tight.c