Mercurial > mplayer.hg
annotate TVout/matroxfbtune @ 7125:3aeb57cc8ac6
10l fix
author | alex |
---|---|
date | Wed, 28 Aug 2002 21:55:44 +0000 |
parents | e14bf7fc7694 |
children |
rev | line source |
---|---|
2457
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
1 #!/bin/sh |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
2 # needs very much fixing |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
3 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
4 # |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
5 # 720x576, the upper left corner is right on my TV, but |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
6 # it's too tall and wide |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
7 # |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
8 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
9 LEFT=54 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
10 RIGHT=-36 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
11 UPPER=55 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
12 LOWER=-6 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
13 XRES=720 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
14 YRES=576 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
15 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
16 while [ 1 ]; do |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
17 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
18 clear |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
19 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
20 echo q w left |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
21 echo a s right |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
22 echo e r upper |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
23 echo d f lower |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
24 echo t y xres |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
25 echo g h yres |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
26 echo z reset |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
27 echo x save |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
28 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
29 echo n LEFT |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
30 echo m RIGHT |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
31 echo o TALLER -BUG- |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
32 echo k SHORTER -BUG- |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
33 echo p UP |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
34 echo l DOWN |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
35 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
36 echo $LEFT $RIGHT |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
37 echo $UPPER $LOWER |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
38 echo $XRES $YRES |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
39 echo |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
40 fbset |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
41 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
42 read ABC |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
43 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
44 case "$ABC" in |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
45 q) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
46 LEFT=$(($LEFT-2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
47 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
48 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
49 w) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
50 LEFT=$(($LEFT+2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
51 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
52 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
53 a) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
54 RIGHT=$(($RIGHT-2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
55 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
56 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
57 s) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
58 RIGHT=$(($RIGHT+2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
59 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
60 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
61 e) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
62 UPPER=$(($UPPER-2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
63 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
64 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
65 r) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
66 UPPER=$(($UPPER+2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
67 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
68 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
69 d) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
70 LOWER=$(($LOWER-2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
71 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
72 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
73 f) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
74 LOWER=$(($LOWER+2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
75 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
76 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
77 t) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
78 XRES=$(($XRES-2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
79 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
80 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
81 y) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
82 XRES=$(($XRES+2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
83 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
84 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
85 g) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
86 YRES=$(($YRES-2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
87 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
88 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
89 h) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
90 YRES=$(($YRES+2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
91 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
92 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
93 n) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
94 LEFT=$(($LEFT-2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
95 RIGHT=$(($RIGHT+2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
96 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
97 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
98 m) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
99 LEFT=$(($LEFT+2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
100 RIGHT=$(($RIGHT-2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
101 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
102 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
103 o) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
104 UPPER=$(($UPPER-2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
105 LOWER=$(($LOWER-2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
106 YRES=$(($YRES+4)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
107 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
108 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
109 k) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
110 UPPER=$(($UPPER+2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
111 LOWER=$(($LOWER+2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
112 YRES=$(($YRES-4)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
113 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
114 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
115 p) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
116 UPPER=$(($UPPER-2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
117 LOWER=$(($LOWER+2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
118 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
119 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
120 l) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
121 UPPER=$(($UPPER+2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
122 LOWER=$(($LOWER-2)) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
123 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
124 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
125 z) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
126 LEFT=54 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
127 RIGHT=-36 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
128 UPPER=55 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
129 LOWER=-6 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
130 XRES=720 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
131 YRES=576 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
132 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
133 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
134 x) |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
135 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 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
136 ;; |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
137 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
138 esac |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
139 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
140 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 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
141 |
e14bf7fc7694
can set framebuffer like with xvidtune. tested with matroxfb only.
gabucino
parents:
diff
changeset
|
142 done |