glfs/shareddeps/drivers/libvdpau-va-gl.xml
2024-10-23 07:57:48 -06:00

191 lines
5.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY libvdpau-va-gl-download-http "https://github.com/i-rinat/libvdpau-va-gl/archive/v&libvdpau-va-gl-version;/libvdpau-va-gl-&libvdpau-va-gl-version;.tar.gz">
<!ENTITY libvdpau-va-gl-download-ftp " ">
]>
<sect1 id="libvdpau-va-gl" xreflabel="libvdpau-va-gl-&libvdpau-va-gl-version;">
<?dbhtml filename="libvdpau-va-gl.html"?>
<sect1info>
<date>$Date$</date>
</sect1info>
<title>libvdpau-va-gl-&libvdpau-va-gl-version;</title>
<indexterm zone="libvdpau-va-gl">
<primary sortas="a-libvdpau-va-gl">libvdpau-va-gl</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to libvdpau-va-gl</title>
<para>
The <application>libvdpau-va-gl</application> package contains a library
which implements the VDPAU library. Libvdpau_va_gl uses OpenGL under the
hood to accelerate drawing and scaling and the VA-API (if available) to
accelerate video decoding. For now VA-API is available on some Intel
chips, and on some AMD video adapters with the help of the libvdpau
driver.
</para>
<itemizedlist spacing="compact">
<listitem>
<para>
Libvdpau-va-gl Driver Download (HTTP): <ulink url="&libvdpau-va-gl-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Libvdpau-va-gl Driver Download (FTP): <ulink url="&libvdpau-va-gl-download-ftp;"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">libvdpau-va-gl Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="cmake"/>,
<xref linkend="libvdpau"/>,
<xref linkend="libva"/>, and
<xref linkend="mesa"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of libvdpau-va-gl</title>
<para>
Install <application>libvdpau-va-gl</application> by running the following
commands:
</para>
<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=$XORG_PREFIX .. &amp;&amp;
make</userinput></screen>
<para>
To test the results, issue: <command>make check</command>. The tests must
be run from an Xorg environment.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="installation">
<title>32-bit Installation of libvdpau-va-gl</title>
<para>
First clean the build directory:
</para>
<screen><userinput>rm -rf *</userinput></screen>
<para>
Install lib32-<application>libvdpau-va-gl</application> by running the
following commands:
</para>
<screen><userinput>CC="gcc -m32" CXX="g++ -m32" \
PKG_CONFIG_PATH=$XORG_PREFIX/lib32/pkgconfig \
cmake -D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=$XORG_PREFIX \
.. &amp;&amp;
make</userinput></screen>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make DESTDIR=$PWD/DESTDIR install
cp -vr DESTDIR/$XORG_PREFIX/lib/* $XORG_PREFIX/lib32
rm -rf DESTDIR
ldconfig</userinput></screen>
</sect2>
<!--
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<command>sed -e '/#include &lt;stdlib.h&gt;/a #include &lt;string&gt;' ...</command>:
fix the build for the C++ Standard Library header changes in gcc-13.
</para>
</sect2>
-->
<sect2 role="configuration">
<title>Configuration</title>
<para>
To allow libvdpau to find libvdpau-va-gl, set an environment variable
as the &root; user:
</para>
<screen role="root"><userinput>echo "export VDPAU_DRIVER=va_gl" >> /etc/profile.d/xorg.sh</userinput></screen>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Library</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
None
</seg>
<seg>
libvdpau_va_gl.so
</seg>
<seg>
None
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect2">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libvdpau-va-gl-lib">
<term><filename class="libraryfile">libvdpau_va_gl.so</filename></term>
<listitem>
<para>
contains functions to implement the OpenGL backend to
the VDPAU (Video Decode and Presentation API for Unix) API
</para>
<indexterm zone="libvdpau-va-gl libvdpau-va-gl-lib">
<primary sortas="c-libvdpau-va-gl">libvdpau.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>