vnc: tight: specific zlib level and filters for each compression level
authorCorentin Chary <corentincj@iksaif.net>
Wed, 7 Jul 2010 18:57:57 +0000 (20:57 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 26 Jul 2010 22:36:14 +0000 (17:36 -0500)
commit6c44df7edb78f9c2bb72c7cc66f586968465a1cf
treed87e2e6c483687a3fd32949c894a9b7b6543de92
parentce118c535ab671dea853312d90b6ce1cbe4a5fb3
vnc: tight: specific zlib level and filters for each compression level

Disable png filters for lower compression levels. This should lower
the CPU consumption and reduce encoding time.

This isn't in tight_conf because:
* tight_conf structure must not change, because it's shared with other
  tight implementations (libvncserver, etc..).
* it'd exceed the 80 col limit.
* PNG_ macros are only defined if CONFIG_VNC_PNG is defined

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ui/vnc-enc-tight.c