rdp: Allow configuring the refresh rate

We currently hardcode a 60Hz update rate for the rdp backend.

In some cases it may be useful to override this to increase the rate
for a faster monitor, or to decrease it to reduce network traffic.

Co-authored-by: Steve Pronovost <spronovo@microsoft.com>
Co-authored-by: Brenton DeGeer <brdegeer@microsoft.com>
Signed-off-by: Hideyuki Nagase <hideyukn@microsoft.com>
Signed-off-by: Steve Pronovost <spronovo@microsoft.com>
Signed-off-by: Brenton DeGeer <brdegeer@microsoft.com>
This commit is contained in:
Hideyuki Nagase
2022-03-17 12:08:42 -05:00
committed by Derek Foreman
parent bd214edf26
commit cf5ddd05cb
5 changed files with 30 additions and 4 deletions
+2
View File
@@ -34,6 +34,7 @@ extern "C" {
#include <libweston/plugin-registry.h>
#define WESTON_RDP_OUTPUT_API_NAME "weston_rdp_output_api_v1"
#define RDP_DEFAULT_FREQ 60
struct weston_rdp_output_api {
/** Initialize a RDP output with specified width and height.
@@ -68,6 +69,7 @@ struct weston_rdp_backend_config {
int force_no_compression;
bool remotefx_codec;
int external_listener_fd;
int refresh_rate;
};
#ifdef __cplusplus