PixelPilot_rk icon indicating copy to clipboard operation
PixelPilot_rk copied to clipboard

Zoom

Open jp39 opened this issue 1 year ago • 3 comments

I own a pair of Avatar Goggles X, and like with some other FPV goggle models with 50˚ FOV or more, for certain people it can be hard to see the corners or even the borders of the screen.

It would be nice if pixelpilot had a zoom feature that would allow to zoom out like 90% and make the image slightly smaller in the center of the screen. Allowing people like me to see the OSD info displayed on the screen edges more clearly.

jp39 avatar Jun 20 '25 10:06 jp39

I have done something similar in my own repo, could probably be added very simply by passing parameters to pixelpilot at startup as a static "crop". Concept overview Linux DRM planes expose a SRC_* rectangle that defines which portion of the framebuffer is sampled before the hardware scaler maps it onto the CRTC (CRTC_*) destination. In your current code path the source rectangle always covers the full decoded image: src_x and src_y are hard-coded to zero and src_w/src_h are set to the decoded dimensions that get cached in vd->src_w / vd->src_h.

Here is my implementation which allowed dynamically changing the crop and also zoom (up to 4x) in drm plane: https://github.com/snokvist/pixelpilot_mini_rk/pull/105

snokvist avatar Nov 02 '25 10:11 snokvist

The same problem) try to implement here https://github.com/OpenIPC/PixelPilot_rk/pull/103 pls test if you can.

DmtryJS avatar Nov 19 '25 18:11 DmtryJS

fixed by https://github.com/OpenIPC/PixelPilot_rk/pull/103

henkwiedig avatar Nov 22 '25 19:11 henkwiedig