Files
scrcpy/app/src
Romain Vimont 264110fd70 Dissociate virtual display size and capture size
Allow capturing virtual displays at a lower resolution using
-m/--max-size.

In the original implementation in #5370, the virtual display size was
necessarily the same as the capture size. The --max-size value was only
allowed to determine the virtual display size when no explicit size was
provided.

Since the dpi was scaled down accordingly, it is often better to create
a virtual display at the target capture size directly. However, not
everything is rendered according to the virtual display DPI. For
example, a page in Firefox is rendered too big on small virtual
displays. Thus, it makes sense to be able create a virtual display at a
given size, and capture it at a lower resolution with --max-size. This
is now possible using OpenGL filters.

Therefore, change the behavior of --max-size for virtual displays:
 - --max-size does not impact --new-display without size argument
   anymore (the virtual display size is the main display size);
 - it is used to limit the capture size (whether an explicit size is
   provided or not).

This new behavior is consistent with main display capture.

Refs #5370 comment <https://github.com/Genymobile/scrcpy/pull/5370#issuecomment-2438944401>
Refs #5370 <https://github.com/Genymobile/scrcpy/pull/5370>
PR #5506 <https://github.com/Genymobile/scrcpy/pull/5506>
2024-11-21 18:36:23 +01:00
..
2024-02-01 09:19:47 +01:00
2024-08-05 16:13:02 +02:00
2024-06-09 18:27:30 +02:00
2024-09-15 11:21:56 +02:00
2024-09-15 11:21:56 +02:00
2024-10-06 18:07:05 +02:00
2024-11-18 18:48:26 +01:00
2024-09-23 23:59:08 +02:00
2024-09-23 23:59:08 +02:00
2024-06-23 19:15:45 +02:00
2024-09-12 11:06:13 +02:00
2023-03-30 20:58:33 +02:00
2023-03-03 01:18:10 +01:00
2023-03-10 22:22:15 +01:00
2024-09-14 14:42:00 +02:00
2023-03-11 15:57:25 +01:00
2023-03-11 15:57:25 +01:00
2024-09-11 15:41:49 +02:00
2024-09-11 15:41:29 +02:00
2024-06-29 13:10:45 +02:00
2023-03-10 22:22:15 +01:00
2024-03-01 00:52:00 +01:00
2024-03-01 00:52:00 +01:00
2024-10-12 15:57:24 +02:00
2023-03-10 22:22:15 +01:00
2022-01-27 19:02:07 +01:00
2024-06-29 13:10:45 +02:00
2022-04-12 23:59:01 +02:00
2024-09-15 11:21:56 +02:00
2024-09-15 11:21:56 +02:00
2024-09-14 21:24:15 +02:00
2024-10-07 16:54:15 +02:00
2024-06-29 12:42:19 +02:00
2024-06-29 12:42:19 +02:00
2022-03-30 12:01:01 +02:00
2024-11-20 07:50:45 +01:00
2024-11-20 07:50:45 +01:00
2023-02-11 09:44:33 +01:00
2023-02-11 09:44:33 +01:00
2024-09-15 11:21:56 +02:00
2024-11-18 18:48:26 +01:00
2023-11-23 23:34:46 +01:00
2024-11-20 07:50:45 +01:00
2024-10-06 18:00:56 +02:00
2024-11-20 07:50:45 +01:00
2024-11-20 07:50:45 +01:00
2024-06-29 13:10:45 +02:00
2023-03-11 15:57:25 +01:00
2022-02-09 10:15:19 +01:00