mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
vnc: refresh lossy rect after a given timeout
If an adaptive encoding has choosen to send a lossy update based on the result of vnc_update_freq(), then it should advertise it with vnc_sent_lossy_rect(). This will allow to automatically refresh this rect once it's static again. Signed-off-by: Corentin Chary <corentincj@iksaif.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
999342a0fe
commit
7d964c9d2f
3 changed files with 69 additions and 3 deletions
3
ui/vnc.h
3
ui/vnc.h
|
@ -217,6 +217,8 @@ struct VncState
|
|||
|
||||
DisplayState *ds;
|
||||
uint32_t dirty[VNC_MAX_HEIGHT][VNC_DIRTY_WORDS];
|
||||
uint8_t **lossy_rect; /* Not an Array to avoid costly memcpy in
|
||||
* vnc-jobs-async.c */
|
||||
|
||||
VncDisplay *vd;
|
||||
int need_update;
|
||||
|
@ -498,6 +500,7 @@ void vnc_framebuffer_update(VncState *vs, int x, int y, int w, int h,
|
|||
|
||||
void vnc_convert_pixel(VncState *vs, uint8_t *buf, uint32_t v);
|
||||
double vnc_update_freq(VncState *vs, int x, int y, int w, int h);
|
||||
void vnc_sent_lossy_rect(VncState *vs, int x, int y, int w, int h);
|
||||
|
||||
/* Encodings */
|
||||
int vnc_send_framebuffer_update(VncState *vs, int x, int y, int w, int h);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue