diff options
author | 2001-10-24 20:33:19 +0000 | |
---|---|---|
committer | 2001-10-24 20:33:19 +0000 | |
commit | f83d1526efde0d294ac1126000236b7e39672f1d (patch) | |
tree | 09b328d60c063af8c5f5a47818d33097904e447f | |
parent | 2166c1e537abffcb1a8ad4e60756d9510cf0e4cb (diff) |
can set framebuffer like with xvidtune. tested with matroxfb only.
how to set wide/tall ?
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2458 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | TVout/matroxfbtune | 142 |
1 files changed, 142 insertions, 0 deletions
diff --git a/TVout/matroxfbtune b/TVout/matroxfbtune new file mode 100755 index 0000000000..012f6c6b79 --- /dev/null +++ b/TVout/matroxfbtune @@ -0,0 +1,142 @@ +#!/bin/sh +# needs very much fixing + +# +# 720x576, the upper left corner is right on my TV, but +# it's too tall and wide +# + +LEFT=54 +RIGHT=-36 +UPPER=55 +LOWER=-6 +XRES=720 +YRES=576 + +while [ 1 ]; do + +clear + +echo q w left +echo a s right +echo e r upper +echo d f lower +echo t y xres +echo g h yres +echo z reset +echo x save + +echo n LEFT +echo m RIGHT +echo o TALLER -BUG- +echo k SHORTER -BUG- +echo p UP +echo l DOWN + +echo $LEFT $RIGHT +echo $UPPER $LOWER +echo $XRES $YRES +echo +fbset + +read ABC + +case "$ABC" in + q) + LEFT=$(($LEFT-2)) + ;; + + w) + LEFT=$(($LEFT+2)) + ;; + + a) + RIGHT=$(($RIGHT-2)) + ;; + + s) + RIGHT=$(($RIGHT+2)) + ;; + + e) + UPPER=$(($UPPER-2)) + ;; + + r) + UPPER=$(($UPPER+2)) + ;; + + d) + LOWER=$(($LOWER-2)) + ;; + + f) + LOWER=$(($LOWER+2)) + ;; + + t) + XRES=$(($XRES-2)) + ;; + + y) + XRES=$(($XRES+2)) + ;; + + g) + YRES=$(($YRES-2)) + ;; + + h) + YRES=$(($YRES+2)) + ;; + + n) + LEFT=$(($LEFT-2)) + RIGHT=$(($RIGHT+2)) + ;; + + m) + LEFT=$(($LEFT+2)) + RIGHT=$(($RIGHT-2)) + ;; + + o) + UPPER=$(($UPPER-2)) + LOWER=$(($LOWER-2)) + YRES=$(($YRES+4)) + ;; + + k) + UPPER=$(($UPPER+2)) + LOWER=$(($LOWER+2)) + YRES=$(($YRES-4)) + ;; + + p) + UPPER=$(($UPPER-2)) + LOWER=$(($LOWER+2)) + ;; + + l) + UPPER=$(($UPPER+2)) + LOWER=$(($LOWER-2)) + ;; + + z) +LEFT=54 +RIGHT=-36 +UPPER=55 +LOWER=-6 +XRES=720 +YRES=576 + ;; + + x) + echo "fbset -fb /dev/fb1 -left $LEFT -right $RIGHT -upper $UPPER -lower $LOWER -hslen 46 -vslen 4 -xres $XRES -yres $YRES -vxres 720 -vyres 576 -depth 32 -laced false -bcast true" > save + ;; + +esac + +fbset -fb /dev/fb1 -left $LEFT -right $RIGHT -upper $UPPER -lower $LOWER -hslen 46 -vslen 4 -xres $XRES -yres $YRES -vxres 720 -vyres 576 -depth 32 -laced false -bcast true + +done |