scrcpy/app
Romain Vimont dd36d6135f Support camera size selection using -m/--camera-ar
In addition to --camera-size to specify an explicit size, make it
possible to select the camera size automatically, respecting the maximum
size (already used for display mirroring) and an aspect ratio.

For example, "scrcpy --video-source=camera" followed by:
 - (no additional arguments)
    : mirrors at the maximum size, any a-r
 - -m1920
    : only consider valid sizes having both dimensions not above 1920
 - --camera-ar=4:3
    : only consider valid sizes having an aspect ratio of 4:3 (+/- 10%)
 - -m2048 --camera-ar=1.6
    : only consider valid sizes having both dimensions not above 2048
      and an aspect ratio of 1.6 (+/- 10%)

PR #4213 <https://github.com/Genymobile/scrcpy/pull/4213>

Co-authored-by: Simon Chan <1330321+yume-chan@users.noreply.github.com>
2023-10-31 15:57:06 +01:00
..
data Support camera size selection using -m/--camera-ar 2023-10-31 15:57:06 +01:00
prebuilt-deps Upgrade platform-tools (34.0.3) for Windows 2023-06-22 00:10:37 +02:00
src Support camera size selection using -m/--camera-ar 2023-10-31 15:57:06 +01:00
tests Replace sprintf() with safer snprintf() 2023-10-25 16:13:34 +02:00
meson.build Add --time-limit 2023-06-10 16:04:51 +02:00
scrcpy-windows.manifest Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy-windows.rc Bump version to 2.1.1 2023-07-14 18:58:58 +02:00
scrcpy.1 Support camera size selection using -m/--camera-ar 2023-10-31 15:57:06 +01:00