Mercurial > mplayer.hg
annotate drivers/radeon/README @ 22657:e31e2699d9c1
Merge Rage128 README into general README.
author | diego |
---|---|
date | Sat, 17 Mar 2007 09:02:00 +0000 |
parents | d30207dfe25a |
children | 00b7b3d4181e |
rev | line source |
---|---|
1921 | 1 framebuffer driver for ATI Radeon chipset video boards |
2 ====================================================== | |
3 | |
1919 | 4 These files are replacement for linux-2.4.x-ac.y drivers. |
5 To use this driver you should have at least linux-2.4.5-ac.1 | |
6 then simply replace linux/drivers/video/radeon* with files | |
7 from this directory. | |
1968 | 8 Note: since linux-2.4.10 this driver was moved from -ac to |
9 Linus distribution. | |
1919 | 10 |
1921 | 11 Alternative way: |
12 ~~~~~~~~~~~~~~~~ | |
3244 | 13 Simply type two commands in this directory: |
14 make | |
15 make install | |
1921 | 16 |
17 Anyway you should have 'Frame buffer support' compiled into linux-kernel | |
18 and at least '8bpp packed pixel support' compiled and installed as module. | |
19 (But if you plan to use this module with mplayer you also should have | |
20 16bpp, 24bpp and 32bpp pixel support compiled as modules). | |
21 | |
3164 | 22 |
23 Radeon video overlay | |
24 ==================== | |
25 | |
26 Was designed for mplayer and currently can be used only by mplayer. | |
27 It's RGB-YUV BES for radeon cards (althrough there is experimental | |
28 support for rage128 / rage128pro chips). | |
29 | |
22657 | 30 rage128_vid is contained within radeon_vid.c. As for a Rage128 framebuffer - |
31 use the one from your Linux distribution. | |
32 | |
3164 | 33 Installation: |
34 ~~~~~~~~~~~~~ | |
35 | |
3244 | 36 Simply type two commands in this directory: |
37 make | |
38 make install | |
3246 | 39 If you install it first time then type also: |
40 make nodes | |
3164 | 41 |
42 Using with mplayer: | |
43 ~~~~~~~~~~~~~~~~~~~ | |
44 | |
45 Currently there is only way to use ATI's drivers: | |
3270 | 46 mplayer -vo vesa:lvo:/dev/radeon_vid -<your vesa's options> filename |
3164 | 47 or |
3270 | 48 mplayer -vo vesa:lvo:/dev/rage128_vid -<your vesa's options> filename |
49 | |
50 For YV12 formats you can use also: | |
51 mplayer -vo mga:/dev/radeon_vid -<your mga's option> filename | |
52 | |
53 but in this case you should load at least radeonfb driver from | |
54 this package. | |
3164 | 55 |
3246 | 56 Configuring: |
57 ~~~~~~~~~~~~ | |
58 | |
59 You can tune up some parameters with using following trick: | |
60 echo "parameter=value">/dev/radeon_vid | |
3251 | 61 Example (disables adaptive deinterlacing): |
62 echo "deinterlace=off">/dev/radeon_vid | |
3246 | 63 |
64 To know more about these parameters - try read /dev/radeon_vid file ;) | |
3263 | 65 For example: |
66 cat /dev/radeon_vid | |
3253 | 67 |
68 List of parameters: | |
69 ~~~~~~~~~~~~~~~~~~~ | |
3470 | 70 if you have rage128 chip: |
3921
f6cd00725f6e
Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents:
3470
diff
changeset
|
71 brightness=decval (-64:+63) changes brightness |
f6cd00725f6e
Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents:
3470
diff
changeset
|
72 saturation=decval (0:+31) changes saturation 0 == grayscaled mode |
f6cd00725f6e
Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents:
3470
diff
changeset
|
73 else - if you have radeon: |
f6cd00725f6e
Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents:
3470
diff
changeset
|
74 brightness=decval (-1000:+1000) -1000 == black screen |
f6cd00725f6e
Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents:
3470
diff
changeset
|
75 saturation=decval (-1000:+1000) -1000 == grayscaled mode |
f6cd00725f6e
Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents:
3470
diff
changeset
|
76 contrast=decval (-1000:+1000) -1000 == black screen |
f6cd00725f6e
Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents:
3470
diff
changeset
|
77 hue=decval (-1000:+1000) -1000 == +1000 (full circle) |
f6cd00725f6e
Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents:
3470
diff
changeset
|
78 all other values are within this range |
f6cd00725f6e
Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents:
3470
diff
changeset
|
79 Note: 0 is default value for every parameter on radeons |
3945 | 80 WARNING: This driver violates rule: "no float in the kernel". |
81 So if you have problems then don't use color correction and | |
82 tell me about these problems. | |
3470 | 83 |
3253 | 84 double_buff=on/off enables/disables double buffering |
85 deinterlace=on/off enables/disables adaprive deinterlacing | |
86 deinterlace_pattern=hexval defines deinterlacing pattern | |
3246 | 87 |
3265 | 88 Driver parameters: |
89 ~~~~~~~~~~~~~~~~~~ | |
90 | |
91 You can use some additional parameters during module loading: | |
92 Example: | |
93 modprobe radeon_vid swap_fourcc=1 | |
94 | |
95 List of driver's parameters: | |
96 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
97 mtrr=1/0 configures MTRR (if available) default = 1 | |
98 swap_fourcc=1/0 performs byte swapping of passed fourcc. | |
99 (It's required for compatibility with -vo mga) | |
100 | |
101 To know more about driver's parameters execute: | |
102 modinfo radeon_vid | |
103 or | |
104 modinfo rage128_vid | |
105 | |
3164 | 106 Note: |
107 ~~~~~ | |
3265 | 108 For command line of mplayer: |
3164 | 109 You can pass only options with can be recognized by vo_vesa driver. |
110 (Indeed radeon_vid and rage128_vid are stupid things and can create | |
111 video overlay only. But mode switching and other adjustement performs | |
112 vo_vesa driver. This mean that they use VESA BIOS as graphics server). | |
113 | |
114 Conslusion: | |
115 ~~~~~~~~~~~ | |
116 This stuff (radeon(rage128)_vid) currently doesn't support any standards. | |
117 So after implementing linux standards I'll fully rewrite this driver. | |
118 | |
3265 | 119 Full example: |
120 ~~~~~~~~~~~~~ | |
121 modprobe radeon_vid mtrr=1 | |
3278 | 122 echo "deinterlace_pattern=F0055555">/dev/radeon_vid |
3265 | 123 mplayer -vo vesa:lvo:/dev/radeon_vid -fs -zoom -bpp 32 filename |
124 | |
125 Enjoy! |