Add planar compression

Used for the bitmaps transmitted for the login screen over the egfx
channels.
This commit is contained in:
Nexarian
2023-03-15 22:17:05 -04:00
parent 204a6e713b
commit edb8fa7946
6 changed files with 197 additions and 2 deletions
+15 -1
View File
@@ -2094,7 +2094,9 @@ libxrdp_process_monitor_stream(struct stream *s,
}
}
/* set wm geometry if the encompassing area is well formed. Otherwise, log and return an error.*/
/* set wm geometry if the encompassing area is well formed.
Otherwise, log and return an error.
*/
if (all_monitors_encompassing_bounds.right
> all_monitors_encompassing_bounds.left
&& all_monitors_encompassing_bounds.bottom
@@ -2270,3 +2272,15 @@ libxrdp_process_monitor_ex_stream(struct stream *s,
return 0;
}
/*****************************************************************************/
int EXPORT_CC
libxrdp_planar_compress(char *in_data, int width, int height,
struct stream *s, int bpp, int byte_limit,
int start_line, struct stream *temp_s,
int e, int flags)
{
return xrdp_bitmap32_compress(in_data, width, height,
s, bpp, byte_limit,
start_line, temp_s,
e, flags);
}