comparison DOCS/VIDEOCARDS @ 144:ba9f8f547632

corrected A'rpi's many shitty thingy ;)
author gabucino
date Sun, 18 Mar 2001 20:41:46 +0000
parents 0b6b7cad24ef
children f3eb963d1370
comparison
equal deleted inserted replaced
143:75d2740260e9 144:ba9f8f547632
5 * read DOCS/MTRR too! 5 * read DOCS/MTRR too!
6 6
7 "Hardware acceleration" usually means hardware YUV conversion, scaling, 7 "Hardware acceleration" usually means hardware YUV conversion, scaling,
8 bilinear filtering. Under Linux, there are several ways to access it: 8 bilinear filtering. Under Linux, there are several ways to access it:
9 9
10 I. the Xv (XVideo) extension of XFree86-4.0.x 10 I. The Xv (XVideo) extension of XFree86 4.0.x
11 II. opengl drivers with glTexSubImage() support (currently the Utah-GLX drivers) 11 II. OpenGL drivers with glTexSubImage() support (currently the Utah-GLX
12 III. native card-specific drivers, using special abilities of some cards 12 drivers)
13 IV. DGA - direct graphic access. no yuv & scaling, but faster than raw X11 13 III. Native card-specific drivers, using special abilities of some cards
14 IV. DGA - direct graphic access. no YUV & scaling, but faster than raw X11
14 15
15 Now, see them in details: 16 Now, let's see them in details:
16 17
17 I. under XFree86 v4.0.x, using the XVideo extension: 18 I. Under XFree86 4.0.2 or newer, using the XVideo extension:
18 this is what the option '-vo xv' uses. 19 this is what the option '-vo xv' uses.
19 20
20 In order to make this work, be sure to check the following: 21 In order to make this work, be sure to check the following:
21 22
22 1. you use XFree86 4.0.2 or newer (former versions don't have XVideo) 23 1. You use XFree86 4.0.2 or newer (former versions don't have XVideo)
23 24
24 2. your card actually supports harware acceleration (modern cards does) 25 2. Your card actually supports harware acceleration (modern cards do)
25 26
26 3. X loads the XVideo extension, it's something like this: 27 3. X loads the XVideo extension, it's something like this:
27 (II) Loading extension XVideo 28 (II) Loading extension XVideo
28 in /var/log/XFree86.0.log 29 in /var/log/XFree86.0.log
29 NOTE : this loads only the XFree86 support. In a good install, this is 30 NOTE : this loads only the XFree86's extension. In a good install, this is
30 always loaded, and doesn't mean that the _card's_ XVideo support is 31 always loaded, and doesn't mean that the _card's_ XVideo support is
31 loaded! 32 loaded!
32 33
33 4. your card has Xv support under linux. To check, try 'xvinfo', it is the 34 4. Your card has Xv support under Linux. To check, try 'xvinfo', it is the
34 part of the XFree86 distribution. It should display a long text, similar 35 part of the XFree86 distribution. It should display a long text, similar
35 to this: 36 to this:
36 37
37 X-Video Extension version 2.2 38 X-Video Extension version 2.2
38 screen #0 39 screen #0
42 operations supported: PutImage 43 operations supported: PutImage
43 supported visuals: 44 supported visuals:
44 depth 16, visualID 0x22 45 depth 16, visualID 0x22
45 depth 16, visualID 0x23 46 depth 16, visualID 0x23
46 number of attributes: 5 47 number of attributes: 5
48 (...)
49 Number of image formats: 7
50 id: 0x32595559 (YUY2)
51 guid: 59555932-0000-0010-8000-00aa00389b71
52 bits per pixel: 16
53 number of planes: 1
54 type: YUV (packed)
55 id: 0x32315659 (YV12)
56 guid: 59563132-0000-0010-8000-00aa00389b71
57 bits per pixel: 12
58 number of planes: 3
59 type: YUV (planar)
47 (...etc...) 60 (...etc...)
48 61
49 It must support YUY2 packed, and YV12 planar pixel formats to be 62 It must support YUY2 packed, and YV12 planar pixel formats to be
50 usable with MPlayer. 63 usable with MPlayer.
51 64
61 Currently only the old Utah-GLX drivers (for X 3.3.6) have it. 74 Currently only the old Utah-GLX drivers (for X 3.3.6) have it.
62 See http://utah-glx.sourceforge.net for details about how to install it. 75 See http://utah-glx.sourceforge.net for details about how to install it.
63 76
64 The new X4/DRI and nVidia's binary drivers has no usable glTexSubImage :( 77 The new X4/DRI and nVidia's binary drivers has no usable glTexSubImage :(
65 78
66 III. native card-specific drivers 79 III. Native card-specific drivers
67 80
68 There is 3 native drivers for linux: 81 There is 3 native drivers for Linux:
69 1. Matrox G200/G400/G450 BES (Back-End Scaler) support -> mga_vid kernel drv. 82 1. Matrox G200/G400/G450 BES (Back-End Scaler) support -> mga_vid kernel drv.
70 It's active developed by me (A'rpi), and it has hardware VSYNC support 83 It's active developed by me (A'rpi), and it has hardware VSYNC support
71 with triple buffering. It works on both framebuffer console and under X. 84 with triple buffering. It works on both framebuffer console and under X.
72 85
73 To use, simply compile the mga_vid.o in the drivers/ subdir (type: make) 86 To use, simply compile the mga_vid.o in the drivers/ subdir (type: make)
90 was not updated after the mga_vid changes, so it's outdated now. 103 was not updated after the mga_vid changes, so it's outdated now.
91 Volunteers needed to test it and bring the code up-to-date. 104 Volunteers needed to test it and bring the code up-to-date.
92 105
93 3. 3dfx (which ones?) YUV+scaler support, using /dev/3dfx (tdfx.o driver?) 106 3. 3dfx (which ones?) YUV+scaler support, using /dev/3dfx (tdfx.o driver?)
94 The /dev/3dfx kernel driver exists only for 2.2.x kernels, for use with 107 The /dev/3dfx kernel driver exists only for 2.2.x kernels, for use with
95 Glide 2.x linux ports. It's not tested with MPlayer, and so no more 108 Glide 2.x Linux ports. It's not tested with MPlayer, and so no more
96 supported. Volunteers needed to test it and bring the code up-to-date. 109 supported. Volunteers needed to test it and bring the code up-to-date.
97 110
98 111
99 IV. If your card lacks hardware acceleration, you can still boost your fps by 112 IV. If your card lacks hardware acceleration, you can still boost your fps by
100 using the DGA driver: 113 using the DGA driver:
103 (II) Loading extension XFree86-DGA 116 (II) Loading extension XFree86-DGA
104 2. MPlayer's DGA driver is autodetected on ./configure, or you can force it 117 2. MPlayer's DGA driver is autodetected on ./configure, or you can force it
105 with --enable-dga. 118 with --enable-dga.
106 3. Be sure to use 24/32bpp mode, since there is no converter right now.. :( 119 3. Be sure to use 24/32bpp mode, since there is no converter right now.. :(
107 4. Install MPlayer SUID root. 120 4. Install MPlayer SUID root.
108 (see the FAQ on how to do this, and... heed the warning!) 121 'chown root /usr/local/bin/mplayer'
122 'chmod 750 /usr/local/bin/mplayer'
123 'chmod +s /usr/local/bin/mplayer'
124 Now it works as a simple user, too.
125 !!!! BUT STAY TUNED !!!!
126 This is a BIG security risk! Never do this on a server or on a computer
127 can be accessed by more people than only you because they can gain root
128 privilegies through suid root mplayer.
129 !!!! SO YOU HAVE BEEN WARNED ... !!!!
130
109 5. Use '-vo dga' option, and there you go! (hope so:) 131 5. Use '-vo dga' option, and there you go! (hope so:)
110 132
111 If you have fast enough CPU (P3 800 for example) you can try fsdga for 133 If you have fast enough CPU (P3 800 for example) you can try fsdga for
112 fullscreen mpeg playing (using software YUV->RGB scaling): 134 fullscreen mpeg playing (using software YUV->RGB scaling):
113 mplayer -vo fsdga ... 135 mplayer -vo fsdga ...