summaryrefslogtreecommitdiffstats
path: root/host-utils.h
diff options
context:
space:
mode:
authorCorentin Chary <corentincj@iksaif.net>2011-02-04 09:05:55 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-02-23 16:28:28 -0600
commit999342a0fe959dcd549396a255a04d000678e910 (patch)
tree691a2efef3cf2d56c704e946360d8cf9ec8cd288 /host-utils.h
parentb31f519e278601225c53519e3b16333d86770ecf (diff)
downloadhqemu-999342a0fe959dcd549396a255a04d000678e910.zip
hqemu-999342a0fe959dcd549396a255a04d000678e910.tar.gz
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>
Diffstat (limited to 'host-utils.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud