Zoom
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.
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
The same problem) try to implement here https://github.com/OpenIPC/PixelPilot_rk/pull/103 pls test if you can.
fixed by https://github.com/OpenIPC/PixelPilot_rk/pull/103