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