]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
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)
commit3941bf6fb1c98a39bf8a0cfb4feacaef2a23d0db
treed87e2e6c483687a3fd32949c894a9b7b6543de92
parentefe556adb75a20ab71f3e5b1c5b19bf045e7953f
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