22658
|
1 The code in this directory is the old mga_vid driver for Linux kernels
|
|
2 prior to 2.6. It does _not_ compile for version 2.6.x.
|
|
3
|
|
4 For Linux kernel 2.6.x please get the newest version of the 2.6 port from
|
|
5 http://attila.kinali.ch/mga/
|
1
|
6
|
|
7 mga_vid - MGA G200/G400 YUV Overlay kernel module
|
|
8
|
|
9 Author:
|
|
10 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>, Oct 1999
|
|
11
|
|
12 Contributions by:
|
|
13 Fredrik Vraalsen <vraalsen@cs.uiuc.edu>
|
|
14 Alan Cox <alan@lxorguk.ukuu.org.uk>
|
|
15
|
|
16 WARNING ----- WARNING
|
|
17
|
|
18 This code messes with your video card and your xserver. It will probably
|
|
19 lock up your box, format your hard drive, and cause your brand new g400
|
|
20 MAX to spout 6 inch flames. You have been warned.
|
|
21
|
|
22 WARNING ----- WARNING
|
|
23
|
|
24 What does this code do?
|
|
25
|
|
26 mga_vid is a kernel module that utilitizes the Matrox g200/g400 video
|
|
27 scaler/overlay unit to perform YUV->RGB colorspace conversion and
|
|
28 arbitrary video scaling.
|
|
29
|
|
30 mga_vid is also a monster hack.
|
|
31
|
|
32 How does mga_vid work?
|
|
33
|
|
34 This kernel module sets up the BES (backend scaler) with approriate values
|
|
35 based on parameters supplied via ioctl. It also maps a chunk of video
|
|
36 memory into userspace via mmap. This memory is stolen from X (which may
|
|
37 decide to write to it later). The application can then write image data
|
|
38 directly to the frame buffer (if it knows the right padding, etc).
|
|
39
|
|
40
|
|
41 How do I know if mga_vid works on my system?
|
|
42
|
|
43 There are test applications called mga_vid_test_g400 and mga_vid_test_g200.
|
|
44 Use the appropriate one for your card. This test code should draw some
|
|
45 nice 256x256 images for you if all is working well.
|