linuxstb / pidvbip

tvheadend client for the Raspberry Pi
http://www.pidvbip.org
GNU General Public License v2.0
53 stars 22 forks source link

Display is hard-coded to 1920x1080 #23

Open campag opened 11 years ago

campag commented 11 years ago

Many thanks for the Pi client Dave.

Using with a Pi + Atrix Lapdock, I see only part of the video. The Lapdock display is 1366x768. A quick hack is to edit vcodex_omx.c and change each occurrence of

omx_set_display_region(pipe, 0, 0, 1920, 1080); to omx_set_display_region(pipe, 0, 0, 1366, 768); and omx_set_display_region(pipe, 240, 0, 1440, 1080); to omx_set_display_region(pipe, 171, 0, 1024, 768);

I guess on starting, pidvbip should read the current video mode and scale accordingly.

linuxstb commented 11 years ago

Thanks for the report. This is just laziness on my part - due to all my displays being 1080 ;)

The vcodec_omx.c changes should be straightforward, but I think you'll also find that the OSD is also hard-coded for 1080i. That will be a bit more work to fix, but I'll try and do it.