Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
112.55k stars 10.76k forks source link

[Feature request] Digital zoom hotkeys for camera mode #4903

Open parkerlreed opened 6 months ago

parkerlreed commented 6 months ago

Is your feature request related to a problem? Please describe.

I am using my phone as a desktop magnifier. My current solution for zooming involves zooming into the desktop itself, which is less than ideal for a high resolution sensor rendering on something like 1080p.

Describe the solution you'd like

Digital zoom shortcuts taking advantage of high resolution sensor sizes (4032x3024 in my case)

Describe alternatives you've considered

Zooming into desktop which nets you a maximum of the rendered desktop resolution.

Additional Info

Max sensor size fullscreened to desktop Screenshot_20240505_221823

Zooming in with desktop zooming Screenshot_20240505_221833

Resizing the window to much larger than the desktop Screenshot_20240505_221843

Desktop zooming into that with much more detail Screenshot_20240505_221851

rom1v commented 6 months ago

I have this feature in mind for the future (and other camera-related features like turn on/off flashlight). It requires to adapt the control mechanism first, because currently camera implies no control. #4452

Disonantemus commented 1 month ago

I use my smartphone as a magnifier like this (dwm tiling window manager):

  1. Launch scrcpy with main camera.
  2. Drag camera window with MOD+mouse to make it a floating window.
  3. [Alt]+[g] to get 1:1 zoom.
  4. Then rotate/flip/pan window to my liking.

Because camera is 4032x3040 and my monitor is 1920x1080, I get nearly 3x "optical zoom".



System:

distro: Arch Linux x86_64
kernel: 6.6.52-1-lts
shell: bash 5.2.37
term: tmux
wm: dwm
cpu: Intel i7-4790 (8) @ 3.600GHz