vnc-enc-tight.c (8cb4a6b755788925eea2beead87e201dfd4ba8bc) | vnc-enc-tight.c (80e0c8c39b663cd44ea8d47efe256897b7102f50) |
---|---|
1/* 2 * QEMU VNC display driver: tight encoding 3 * 4 * From libvncserver/libvncserver/tight.c 5 * Copyright (C) 2000, 2001 Const Kaplinsky. All Rights Reserved. 6 * Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. 7 * 8 * Copyright (C) 2010 Corentin Chary <corentin.chary@gmail.com> --- 1532 unchanged lines hidden (view full) --- 1541 1542 vnc_framebuffer_update(vs, x, y, w, h, vs->tight.type); 1543 1544 vnc_tight_start(vs); 1545 vnc_raw_send_framebuffer_update(vs, x, y, w, h); 1546 vnc_tight_stop(vs); 1547 1548#ifdef CONFIG_VNC_JPEG | 1/* 2 * QEMU VNC display driver: tight encoding 3 * 4 * From libvncserver/libvncserver/tight.c 5 * Copyright (C) 2000, 2001 Const Kaplinsky. All Rights Reserved. 6 * Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. 7 * 8 * Copyright (C) 2010 Corentin Chary <corentin.chary@gmail.com> --- 1532 unchanged lines hidden (view full) --- 1541 1542 vnc_framebuffer_update(vs, x, y, w, h, vs->tight.type); 1543 1544 vnc_tight_start(vs); 1545 vnc_raw_send_framebuffer_update(vs, x, y, w, h); 1546 vnc_tight_stop(vs); 1547 1548#ifdef CONFIG_VNC_JPEG |
1549 if (vs->tight.quality != (uint8_t)-1) { | 1549 if (!vs->vd->non_adaptive && vs->tight.quality != (uint8_t)-1) { |
1550 double freq = vnc_update_freq(vs, x, y, w, h); 1551 1552 if (freq < tight_jpeg_conf[vs->tight.quality].jpeg_freq_min) { 1553 allow_jpeg = false; 1554 } 1555 if (freq >= tight_jpeg_conf[vs->tight.quality].jpeg_freq_threshold) { 1556 force_jpeg = true; 1557 vnc_sent_lossy_rect(vs, x, y, w, h); --- 209 unchanged lines hidden --- | 1550 double freq = vnc_update_freq(vs, x, y, w, h); 1551 1552 if (freq < tight_jpeg_conf[vs->tight.quality].jpeg_freq_min) { 1553 allow_jpeg = false; 1554 } 1555 if (freq >= tight_jpeg_conf[vs->tight.quality].jpeg_freq_threshold) { 1556 force_jpeg = true; 1557 vnc_sent_lossy_rect(vs, x, y, w, h); --- 209 unchanged lines hidden --- |