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