use JPEG compress for client -server connection
All checks were successful
gitea-sync/antd-wvnc-plugin/pipeline/head This commit looks good
gitea-sync/antd-wvnc-plugin/pipeline/tag This commit looks good

This commit is contained in:
DanyLE 2023-08-07 17:18:09 +02:00
parent 9c7f4d1cba
commit 6c1df8e4d5

8
wvnc.c
View File

@ -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;