glfs/shareddeps/drivers/libvdpau.xml
Zeckmathederg a5a5f0f785 Removed all unstable notes on all packages.
Important: Added a section about stability.

Also fixed a build failure with last commit (missing ending para tag).
2024-10-18 12:39:05 -06:00

204 lines
6.5 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-download-http "https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/&libvdpau-version;/libvdpau-&libvdpau-version;.tar.bz2">
<!ENTITY libvdpau-download-ftp " ">
]>
<sect1 id="libvdpau" xreflabel="libvdpau-&libvdpau-version;">
<?dbhtml filename="libvdpau.html"?>
<sect1info>
<date>$Date$</date>
</sect1info>
<title>libvdpau-&libvdpau-version;</title>
<indexterm zone="libvdpau">
<primary sortas="a-libvdpau">libvdpau</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to libvdpau</title>
<para>
The <application>libvdpau</application> package contains a library which
implements the VDPAU library.
</para>
<para>
VDPAU (Video Decode and Presentation API for Unix) is an open source
library (libvdpau) and API originally designed by Nvidia for its GeForce
8 series and later GPU hardware targeted at the X Window System.
This VDPAU API allows video programs to offload portions of the video
decoding process and video post-processing to the GPU video-hardware.
</para>
<para>
Currently, the portions capable of being offloaded by VDPAU onto the GPU
are motion compensation (mo comp), inverse discrete cosine transform
(iDCT), VLD (variable-length decoding) and deblocking for MPEG-1, MPEG-2,
MPEG-4 ASP (MPEG-4 Part 2), H.264/MPEG-4 AVC and VC-1, WMV3/WMV9 encoded
videos. Which specific codecs of these that can be offloaded to the
GPU depends on the version of the GPU hardware; specifically,
to also decode MPEG-4 ASP (MPEG-4 Part 2), Xvid/OpenDivX (DivX 4), and
DivX 5 formats, a GeForce 200M (2xxM) Series (the eleventh generation of
Nvidia's GeForce graphics processing units) or newer GPU hardware is
required.
</para>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&libvdpau-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&libvdpau-download-ftp;"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">libvdpau Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="xorg7-lib"/>
</para>
<bridgehead renderas="sect4">Recommended (Runtime)</bridgehead>
<!-- "nodep" to prevent BLFS tool from blindly installing all the
drivers -->
<para role='nodep'>
The VDPAU driver suitable for the hardware in your system:
<xref linkend='libvdpau-va-gl'/> (for Intel GPUs) and
<xref linkend='mesa'/> (providing the <literal>r600</literal>,
<literal>radeonsi</literal>, and <literal>nouveau</literal> VDPAU
drivers, for the ATI/AMD Radeon HD 2xxx GPUs and later, and
<ulink url='https://nouveau.freedesktop.org/VideoAcceleration.html'>
supported
NVIDIA GPUs</ulink>; Mesa must be built after this package for these
drivers)
</para>
</sect2>
<sect2 role="installation">
<title>Installation of libvdpau</title>
<para>
Install <application>libvdpau</application> by running the following
commands:
</para>
<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;
meson setup --prefix=$XORG_PREFIX .. &amp;&amp;
ninja</userinput></screen>
<para>
To test the results, issue: <command>ninja test</command>.
There is only one test for this package, dlclose, and it is known to
fail on some systems.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>ninja install</userinput></screen>
<para>
If <application>doxygen</application> is present at build time
place the documentation in a versioned directory as the
<systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>[ -e $XORG_PREFIX/share/doc/libvdpau ] &amp;&amp; mv -v $XORG_PREFIX/share/doc/libvdpau{,&libvdpau-version;}</userinput></screen>
</sect2>
<sect2 role="installation">
<title>32-bit Installation of libvdpau</title>
<para>
First clean the build directory:
</para>
<screen><userinput>rm -rf *</userinput></screen>
<para>
Install lib32-<application>libvdpau</application> by running the following
commands:
</para>
<screen><userinput>CC="gcc -m32" CXX="g++ -m32" \
PKG_CONFIG_PATH=$XORG_PREFIX/lib32/pkgconfig \
meson setup --prefix=$XORG_PREFIX \
--libdir=$XORG_PREFIX/lib32 \
.. &amp;&amp;
ninja</userinput></screen>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>DESTDIR=$PWD/DESTDIR ninja install
cp -vr DESTDIR/$XORG_PREFIX/lib32/* $XORG_PREFIX/lib32
rm -rf DESTDIR
ldconfig</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.so
</seg>
<seg>
$XORG_PREFIX/{include,lib}/vdpau
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect2">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libvdpau-lib">
<term><filename class="libraryfile">libvdpau.so</filename></term>
<listitem>
<para>
contains functions to offload portions of the video decoding
process and video post-processing to the GPU video-hardware
</para>
<indexterm zone="libvdpau libvdpau-lib">
<primary sortas="c-libvdpau">libvdpau.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>