Need A Way To Scale/zoom Tv Out For 4:3 Screens.


dgame

Active Member
Joined
Oct 1, 2006
Messages
945
The best I have done is modify the tvout script to use a smaller vertical resolution (~400 lines) and this puts things in the correct (letterbox) aspect ratio. However, when using this letterbox resolution I also get pillarbox (borders on all sides) when viewing native 4:3 aspect material like Neo-Geo games on an actual 4:3 screen.

This is is what results. Ignore the DVDR and Optus box labes as this is the best image I could find to illustrate the problem.
The center box to outside borders ratio is what I get using Pandora's TV Out to display 4:3 output:

display.png


I think the Maemo/N900 community has figured it out with this plugin/applet:

The TV out control home plugin has been written by Ville Syrjälä - I've just packaged his source for Extras. This thread is the "bugtracker" link for the package, so if you experience any problems with this, report your problems here.

Features of the plugin that are not available in the control panel:

* Aspect ratio control - switch between 4:3 and 16:9
* Scale control - scale the display to fill the TV screen area, or make it smaller


Link to Maeomo TV Out Control thread including Source Code

I don't know if any of that could be made to work to on the Pandora. Help!?
 
This is the content of my modified tvout script (saved as tvout.sh):
Code:
#!/bin/bash
# These are just some very basic TV-Out scripts. The picture will most likely not properly be centered, etc. An enhanced one is currently being scripted. 

while mainsel=$(zenity --title="TV-Out Configuration" --width="380" --height="200" --list --column "id" --column "Please select" --hide-column=1 --text="This is a very simple TV Out Script. It will be enhanced." "pal" "Enable TV Out in PAL Mode" "ntsc" "Enable TV Out in NTSC Mode" "ntsclb" "Enable TV Out in letterbox NTSC Mode" "disable" "Disable TV Out"); do

case $mainsel in
  "pal")
  cd /sys/devices/platform/omapdss
  echo 0 > overlay0/enabled
  echo 0 > overlay2/enabled
  echo 0 > overlay1/enabled
  echo 0 > display1/enabled
  echo "" > /sys/class/graphics/fb2/overlays
  echo "0,2" > /sys/class/graphics/fb0/overlays
  echo "658,520" > overlay2/output_size
  echo "tv" > overlay2/manager
  echo "35,35" > overlay2/position 
  echo "pal" > display1/timings
  echo 1 > overlay0/enabled
  echo 1 > overlay2/enabled
  echo 1 > display1/enabled
  zenity --info --title="TV Out" --text "TV Out (PAL Mode) has been enabled." --timeout 6
  ;;

  "ntsc")
  cd /sys/devices/platform/omapdss
  echo 0 > overlay0/enabled
  echo 0 > overlay2/enabled
  echo 0 > overlay1/enabled
  echo 0 > display1/enabled
  echo "" > /sys/class/graphics/fb2/overlays
  echo "0,2" > /sys/class/graphics/fb0/overlays
  echo "655,455" > overlay2/output_size
  echo "tv" > overlay2/manager
  echo "40,15" > overlay2/position 
  echo "ntsc" > display1/timings
  echo 1 > overlay0/enabled
  echo 1 > overlay2/enabled
  echo 1 > display1/enabled   
  zenity --info --title="TV Out" --text "TV Out (NTSC Mode) has been enabled." --timeout 6  
  ;;

  "ntsclb")
  cd /sys/devices/platform/omapdss
  echo 0 > overlay0/enabled
  echo 0 > overlay2/enabled
  echo 0 > overlay1/enabled
  echo 0 > display1/enabled
  echo "" > /sys/class/graphics/fb2/overlays
  echo "0,2" > /sys/class/graphics/fb0/overlays
  echo "658,400" > overlay2/output_size
  echo "tv" > overlay2/manager
  echo "40,40" > overlay2/position
  echo "ntsc" > display1/timings
  echo 1 > overlay0/enabled
  echo 1 > overlay2/enabled
  echo 1 > display1/enabled   
  zenity --info --title="TV Out" --text "TV Out (letterbox NTSC Mode) has been enabled." --timeout 6  
  ;;

  "disable")
  cd /sys/devices/platform/omapdss
  echo 0 > overlay0/enabled
  echo 0 > overlay2/enabled
  echo 0 > overlay1/enabled
  echo 0 > display1/enabled
  echo "" > /sys/class/graphics/fb2/overlays
  echo "0" > /sys/class/graphics/fb0/overlays
  echo 1 > overlay0/enabled
  zenity --info --title="TV Out" --text "TV Out has been disabled." --timeout 6
  ;;    
  esac
done
 
Back
Top