mirror of
https://github.com/lxsang/antd-wvnc-plugin.git
synced 2024-12-27 12:28:22 +01:00
use JPEG compress for client -server connection
This commit is contained in:
parent
9c7f4d1cba
commit
6c1df8e4d5
8
wvnc.c
8
wvnc.c
@ -710,6 +710,14 @@ void event_loop(void *data)
|
|||||||
vncl->listenPort = LISTEN_PORT_OFFSET;
|
vncl->listenPort = LISTEN_PORT_OFFSET;
|
||||||
vncl->listen6Port = LISTEN_PORT_OFFSET;
|
vncl->listen6Port = LISTEN_PORT_OFFSET;
|
||||||
vncl->appData.useRemoteCursor = true;
|
vncl->appData.useRemoteCursor = true;
|
||||||
|
// use server JPEG encoding
|
||||||
|
vncl->appData.enableJPEG = true;
|
||||||
|
vncl->appData.qualityLevel = user_data->quality / 10;
|
||||||
|
if(vncl->appData.qualityLevel > 9)
|
||||||
|
{
|
||||||
|
vncl->appData.qualityLevel = 9;
|
||||||
|
}
|
||||||
|
//user_data->quality
|
||||||
//vncl->GotCursorShape = cursor_changed;
|
//vncl->GotCursorShape = cursor_changed;
|
||||||
user_data->status = READY; // 1 for ready for connect
|
user_data->status = READY; // 1 for ready for connect
|
||||||
user_data->vncl = vncl;
|
user_data->vncl = vncl;
|
||||||
|
Loading…
Reference in New Issue
Block a user