Revision 368d2588
b/ui/vnc-enc-tight.c | ||
---|---|---|
1546 | 1546 |
vnc_tight_stop(vs); |
1547 | 1547 |
|
1548 | 1548 |
#ifdef CONFIG_VNC_JPEG |
1549 |
if (vs->tight.quality != -1) { |
|
1549 |
if (vs->tight.quality != (uint8_t)-1) {
|
|
1550 | 1550 |
double freq = vnc_update_freq(vs, x, y, w, h); |
1551 | 1551 |
|
1552 | 1552 |
if (freq < tight_jpeg_conf[vs->tight.quality].jpeg_freq_min) { |
... | ... | |
1711 | 1711 |
vs->tight.pixel24 = false; |
1712 | 1712 |
} |
1713 | 1713 |
|
1714 |
if (vs->tight.quality != -1) { |
|
1714 |
if (vs->tight.quality != (uint8_t)-1) {
|
|
1715 | 1715 |
double freq = vnc_update_freq(vs, x, y, w, h); |
1716 | 1716 |
|
1717 | 1717 |
if (freq > tight_jpeg_conf[vs->tight.quality].jpeg_freq_threshold) { |
b/ui/vnc-enc-zrle.c | ||
---|---|---|
260 | 260 |
int zywrle_level; |
261 | 261 |
|
262 | 262 |
if (vs->zrle.type == VNC_ENCODING_ZYWRLE) { |
263 |
if (!vs->vd->lossy || vs->tight.quality < 0 || vs->tight.quality == 9) { |
|
263 |
if (!vs->vd->lossy || vs->tight.quality == (uint8_t)-1 |
|
264 |
|| vs->tight.quality == 9) { |
|
264 | 265 |
zywrle_level = 0; |
265 | 266 |
vs->zrle.type = VNC_ENCODING_ZRLE; |
266 | 267 |
} else if (vs->tight.quality < 3) { |
Also available in: Unified diff