[gnome-remote-desktop] rdp-graphics-pipeline: Add support for RDPGFX_CAPVERSION_107
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] rdp-graphics-pipeline: Add support for RDPGFX_CAPVERSION_107
- Date: Wed, 10 Aug 2022 10:10:18 +0000 (UTC)
commit 4360dc619eabb7945be4bd4665b648f2a9524813
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Thu Jun 9 06:59:09 2022 +0200
rdp-graphics-pipeline: Add support for RDPGFX_CAPVERSION_107
RDPGFX_CAPVERSION_107 is similar to RDPGFX_CAPVERSION_106, except that
the client can announce with RDPGFX_CAPVERSION_107, that it does not
support any map-PDUs, that do perform scaling.
Since gnome-remote-desktop does not use these PDUs currently, adding
support for RDPGFX_CAPVERSION_107 is trivial. So, add it.
src/grd-rdp-graphics-pipeline.c | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
---
diff --git a/src/grd-rdp-graphics-pipeline.c b/src/grd-rdp-graphics-pipeline.c
index 0a14462a..f2f266fc 100644
--- a/src/grd-rdp-graphics-pipeline.c
+++ b/src/grd-rdp-graphics-pipeline.c
@@ -1143,15 +1143,16 @@ rdpgfx_channel_id_assigned (RdpgfxServerContext *rdpgfx_context,
static uint32_t cap_list[] =
{
- RDPGFX_CAPVERSION_106,
- RDPGFX_CAPVERSION_105,
- RDPGFX_CAPVERSION_104,
- RDPGFX_CAPVERSION_103,
- RDPGFX_CAPVERSION_102,
- RDPGFX_CAPVERSION_101,
- RDPGFX_CAPVERSION_10,
- RDPGFX_CAPVERSION_81,
- RDPGFX_CAPVERSION_8,
+ RDPGFX_CAPVERSION_107, /* [MS-RDPEGFX] 2.2.3.10 */
+ RDPGFX_CAPVERSION_106, /* [MS-RDPEGFX] 2.2.3.9 */
+ RDPGFX_CAPVERSION_105, /* [MS-RDPEGFX] 2.2.3.8 */
+ RDPGFX_CAPVERSION_104, /* [MS-RDPEGFX] 2.2.3.7 */
+ RDPGFX_CAPVERSION_103, /* [MS-RDPEGFX] 2.2.3.6 */
+ RDPGFX_CAPVERSION_102, /* [MS-RDPEGFX] 2.2.3.5 */
+ RDPGFX_CAPVERSION_101, /* [MS-RDPEGFX] 2.2.3.4 */
+ RDPGFX_CAPVERSION_10, /* [MS-RDPEGFX] 2.2.3.3 */
+ RDPGFX_CAPVERSION_81, /* [MS-RDPEGFX] 2.2.3.2 */
+ RDPGFX_CAPVERSION_8, /* [MS-RDPEGFX] 2.2.3.1 */
};
static gboolean
@@ -1193,6 +1194,7 @@ cap_sets_would_disable_avc (RDPGFX_CAPSET *cap_sets,
switch (cap_sets[j].version)
{
+ case RDPGFX_CAPVERSION_107:
case RDPGFX_CAPVERSION_106:
case RDPGFX_CAPVERSION_105:
case RDPGFX_CAPVERSION_104:
@@ -1640,6 +1642,8 @@ rdpgfx_caps_version_to_string (uint32_t caps_version)
{
switch (caps_version)
{
+ case RDPGFX_CAPVERSION_107:
+ return "RDPGFX_CAPVERSION_107";
case RDPGFX_CAPVERSION_106:
return "RDPGFX_CAPVERSION_106";
case RDPGFX_CAPVERSION_105:
@@ -1684,6 +1688,7 @@ test_caps_version (GrdRdpGraphicsPipeline *graphics_pipeline,
switch (caps_version)
{
+ case RDPGFX_CAPVERSION_107:
case RDPGFX_CAPVERSION_106:
case RDPGFX_CAPVERSION_105:
case RDPGFX_CAPVERSION_104:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]