]> git.proxmox.com Git - qemu.git/commit
vnc: add a way to get the update frequency for a given region
authorCorentin Chary <corentincj@iksaif.net>
Fri, 4 Feb 2011 08:05:55 +0000 (09:05 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 23 Feb 2011 22:28:28 +0000 (16:28 -0600)
commit999342a0fe959dcd549396a255a04d000678e910
tree691a2efef3cf2d56c704e946360d8cf9ec8cd288
parentb31f519e278601225c53519e3b16333d86770ecf
vnc: add a way to get the update frequency for a given region

This patch compute the update frequency (in Hz) for each 64x64 rects.
Any adaptive encoding can get this value using vnc_update_freq(), and
switch to a lossy encoding if the value is too high.

The frequency is pre-calculated every 500ms, based on the last 10
updates per 64x64 rect.

If a 64x64 rect was not updated in the last 2 second, then the frequency
became 0, and all the stored timestamp are reseted.

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