📄 mga_vid.html
字号:
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>8.7.聽Matrox framebuffer (mga_vid)</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="MPlayer - The Movie Player"><link rel="up" href="video.html" title="Chapter聽8.聽Video output devices"><link rel="prev" href="fbdev.html" title="8.6.聽Framebuffer output (FBdev)"><link rel="next" href="tdfxfb.html" title="8.8.聽3Dfx YUV support"><link rel="preface" href="howtoread.html" title="How to read this documentation"><link rel="chapter" href="intro.html" title="Chapter聽1.聽Introduction"><link rel="chapter" href="install.html" title="Chapter聽2.聽Installation"><link rel="chapter" href="usage.html" title="Chapter聽3.聽Usage"><link rel="chapter" href="cd-dvd.html" title="Chapter聽4.聽CD/DVD usage"><link rel="chapter" href="faq.html" title="Chapter聽5.聽Frequently Asked Questions"><link rel="chapter" href="containers.html" title="Chapter聽6.聽Containers"><link rel="chapter" href="codecs.html" title="Chapter聽7.聽Codecs"><link rel="chapter" href="video.html" title="Chapter聽8.聽Video output devices"><link rel="chapter" href="audio.html" title="Chapter聽9.聽Audio output devices"><link rel="chapter" href="tv.html" title="Chapter聽10.聽TV"><link rel="chapter" href="radio.html" title="Chapter聽11.聽Radio"><link rel="chapter" href="ports.html" title="Chapter聽12.聽Ports"><link rel="chapter" href="mencoder.html" title="Chapter聽13.聽Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapter聽14.聽Encoding with MEncoder"><link rel="appendix" href="bugreports.html" title="Appendix聽A.聽How to report bugs"><link rel="appendix" href="bugs.html" title="Appendix聽B.聽Known bugs"><link rel="appendix" href="skin.html" title="Appendix聽C.聽MPlayer skin format"><link rel="appendix" href="history.html" title="Appendix聽D.聽History"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">8.7.聽Matrox framebuffer (mga_vid)</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="fbdev.html">Prev</a>聽</td><th width="60%" align="center">Chapter聽8.聽Video output devices</th><td width="20%" align="right">聽<a accesskey="n" href="tdfxfb.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="mga_vid"></a>8.7.聽Matrox framebuffer (mga_vid)</h2></div></div></div><p>
<code class="systemitem">mga_vid</code> is a combination of a video output driver and
a Linux kernel module that utilitizes the Matrox G200/G400/G450/G550 video
scaler/overlay unit to perform YUV->RGB colorspace conversion and arbitrary
video scaling.
<code class="systemitem">mga_vid</code> has hardware VSYNC support with triple
buffering. It works on both a framebuffer console and under X, but only
with Linux 2.4.x.
</p><p>
For a Linux 2.6.x version of this driver check out
<a class="ulink" href="http://attila.kinali.ch/mga/" target="_top">http://attila.kinali.ch/mga/</a>.
</p><div class="procedure"><a name="id2594205"></a><p class="title"><b>Installation:</b></p><ol type="1"><li><p>
To use it, you first have to compile <tt class="filename">mga_vid.o</tt>:
</p><pre class="screen">
cd drivers
make</pre><p>
</p></li><li><p>
Then run (as <code class="systemitem">root</code>)
</p><pre class="screen">make install</pre><p>
which should install the module and create the device node for you.
Load the driver with
</p><pre class="screen">insmod mga_vid.o</pre><p>
</p></li><li><p>
You should verify the memory size detection using the
<span class="command"><strong>dmesg</strong></span> command. If it's bad, use the
<tt class="option">mga_ram_size</tt> option
(<span class="command"><strong>rmmod mga_vid</strong></span> first),
specify card's memory size in MB:
</p><pre class="screen">insmod mga_vid.o mga_ram_size=16</pre><p>
</p></li><li><p>
To make it load/unload automatically when needed, first insert the
following line at the end of <tt class="filename">/etc/modules.conf</tt>:
</p><pre class="programlisting">alias char-major-178 mga_vid</pre><p>
</p></li><li><p>
Now you have to (re)compile <span class="application">MPlayer</span>,
<span class="command"><strong>./configure</strong></span> will detect
<tt class="filename">/dev/mga_vid</tt> and build the 'mga' driver. Using it
from <span class="application">MPlayer</span> goes by <tt class="option">-vo mga</tt>
if you have matroxfb console, or <tt class="option">-vo xmga</tt> under XFree86
3.x.x or 4.x.x.
</p></li></ol></div><p>
The mga_vid driver cooperates with Xv.
</p><p>
The <tt class="filename">/dev/mga_vid</tt> device file can be read for some
info, for example by
</p><pre class="screen">cat /dev/mga_vid</pre><p>
and can be written for brightness change:
</p><pre class="screen">echo "brightness=120" > /dev/mga_vid</pre><p>
</p><p>
There is a test application called <span class="command"><strong>mga_vid_test</strong></span> in the same
directory. It should draw 256x256 images on the screen if all is working well.
</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="fbdev.html">Prev</a>聽</td><td width="20%" align="center"><a accesskey="u" href="video.html">Up</a></td><td width="40%" align="right">聽<a accesskey="n" href="tdfxfb.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">8.6.聽Framebuffer output (FBdev)聽</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">聽8.8.聽3Dfx YUV support</td></tr></table></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -