mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-11 05:44:38 +08:00
The layout of distfiles.gentoo.org has suddenly changed. Let's just stop using it (or we need to include a two-bit prefix of some hash in the URL and IMO doing so is just stupid, as we can always use http instead).
221 lines
6.5 KiB
XML
221 lines
6.5 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!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 libmpeg2-download-http "https://libmpeg2.sourceforge.net/files/libmpeg2-&libmpeg2-version;.tar.gz">
|
|
<!ENTITY libmpeg2-download-ftp "">
|
|
<!ENTITY libmpeg2-md5sum "0f92c7454e58379b4a5a378485bbd8ef">
|
|
<!ENTITY libmpeg2-size "513 KB">
|
|
<!ENTITY libmpeg2-buildsize "6 MB">
|
|
<!ENTITY libmpeg2-time "0.1 SBU">
|
|
]>
|
|
|
|
<sect1 id="libmpeg2" xreflabel="libmpeg2-&libmpeg2-version;">
|
|
<?dbhtml filename="libmpeg2.html"?>
|
|
|
|
|
|
<title>libmpeg2-&libmpeg2-version;</title>
|
|
|
|
<indexterm zone="libmpeg2">
|
|
<primary sortas="a-libmpeg2">libmpeg2</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to libmpeg2</title>
|
|
|
|
<para>
|
|
The <application>libmpeg2</application> package contains a library for
|
|
decoding MPEG-2 and MPEG-1 video streams. The library is able to decode
|
|
all MPEG streams that conform to certain restrictions: <quote>constrained
|
|
parameters</quote> for MPEG-1, and <quote>main profile</quote> for MPEG-2.
|
|
This is useful for programs and applications needing to decode MPEG-2 and
|
|
MPEG-1 video streams.
|
|
</para>
|
|
|
|
&lfs120_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&libmpeg2-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&libmpeg2-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &libmpeg2-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &libmpeg2-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &libmpeg2-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &libmpeg2-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">libmpeg2 Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="x-window-system"/> and
|
|
<xref linkend="sdl"/>
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of libmpeg2</title>
|
|
|
|
<para>
|
|
Install <application>libmpeg2</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>sed -i 's/static const/static/' libmpeg2/idct_mmx.c &&
|
|
|
|
./configure --prefix=/usr \
|
|
--enable-shared \
|
|
--disable-static &&
|
|
make</userinput></screen>
|
|
|
|
<para>
|
|
To test the results, issue: <command>make check</command>. To
|
|
perform a more comprehensive regression test, see the file
|
|
<filename>test/README</filename> in the source tree.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
|
|
install -v -m755 -d /usr/share/doc/libmpeg2-&libmpeg2-version; &&
|
|
install -v -m644 README doc/libmpeg2.txt \
|
|
/usr/share/doc/libmpeg2-&libmpeg2-version;</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<command>sed -i ...</command>: This <command>sed</command> fixes
|
|
problems with recent GCC compilers.
|
|
</para>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>corrupt_mpeg2, extract_mpeg2 and mpeg2dec</seg>
|
|
<seg>libmpeg2.so and libmpeg2convert.so</seg>
|
|
<seg>
|
|
/usr/include/mpeg2dec and
|
|
/usr/share/doc/libmpeg2-&libmpeg2-version;
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<!--
|
|
Don't fill this one in. It's designed for a user to corrupt their own
|
|
mpeg files, which can be used for malice.
|
|
<varlistentry id="corrupt_mpeg2">
|
|
<term><command>corrupt_mpeg2</command></term>
|
|
<listitem>
|
|
<para>
|
|
|
|
</para>
|
|
<indexterm zone="libmpeg2 corrupt_mpeg2">
|
|
<primary sortas="b-corrupt_mpeg2">corrupt_mpeg2</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
-->
|
|
<varlistentry id="extract_mpeg2">
|
|
<term><command>extract_mpeg2</command></term>
|
|
<listitem>
|
|
<para>
|
|
extracts MPEG video streams from a multiplexed stream
|
|
</para>
|
|
<indexterm zone="libmpeg2 extract_mpeg2">
|
|
<primary sortas="b-extract_mpeg2">extract_mpeg2</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="mpeg2dec">
|
|
<term><command>mpeg2dec</command></term>
|
|
<listitem>
|
|
<para>
|
|
decodes MPEG1 and MPEG2 video streams
|
|
</para>
|
|
<indexterm zone="libmpeg2 mpeg2dec">
|
|
<primary sortas="b-mpeg2dec">mpeg2dec</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libmpeg2-lib">
|
|
<term><filename class="libraryfile">libmpeg2.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains API functions used to decode MPEG video streams
|
|
</para>
|
|
<indexterm zone="libmpeg2 libmpeg2-lib">
|
|
<primary sortas="c-libmpeg2">libmpeg2.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libmpeg2convert">
|
|
<term><filename class="libraryfile">libmpeg2convert.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains API functions used for color conversions of MPEG
|
|
video streams
|
|
</para>
|
|
<indexterm zone="libmpeg2 libmpeg2convert">
|
|
<primary sortas="c-libmpeg2convert">libmpeg2convert.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|