[gnome-remote-desktop] session-rdp: Set RLGR mode before encoding frame data
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] session-rdp: Set RLGR mode before encoding frame data
- Date: Fri, 3 Sep 2021 09:34:41 +0000 (UTC)
commit 9b0f07cb3008a81ce4b9d57d14cd92c152ab2cdb
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Sun Mar 14 22:17:29 2021 +0100
session-rdp: Set RLGR mode before encoding frame data
RFX and RFX Progressive are similar codecs. However, they are not the
same and even when progressive encoding is not used, the encoded frame
will not be the same.
RFX uses for the Golomb-Rice coding the RLGR3 mode, while RFX
Progressive uses the RLGR1 mode.
Since, with the introduction of the graphics pipeline, both are
supported, set the RLGR mode before encoding the frame data to ensure
that the correct mode is used.
src/grd-session-rdp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
index 6f82ff2..1b197db 100644
--- a/src/grd-session-rdp.c
+++ b/src/grd-session-rdp.c
@@ -583,6 +583,7 @@ rdp_peer_refresh_rfx (GrdSessionRdp *session_rdp,
BOOL first, last;
size_t i;
+ rdp_peer_context->rfx_context->mode = RLGR3;
if (!rdp_surface->valid)
{
rfx_context_reset (rdp_peer_context->rfx_context,
@@ -1513,7 +1514,6 @@ rdp_peer_context_new (freerdp_peer *peer,
rdp_peer_context->frame_id = 0;
rdp_peer_context->rfx_context = rfx_context_new (TRUE);
- rdp_peer_context->rfx_context->mode = RLGR3;
rfx_context_set_pixel_format (rdp_peer_context->rfx_context,
PIXEL_FORMAT_BGRX32);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]