glfs/general/graphlib/openjpeg2.xml
2024-01-19 22:39:35 +01:00

194 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 openjpeg2-download-http "https://github.com/uclouvain/openjpeg/archive/v&openjpeg2-version;/openjpeg-&openjpeg2-version;.tar.gz">
<!ENTITY openjpeg2-download-ftp " ">
<!ENTITY openjpeg2-md5sum "5cbb822a1203dd75b85639da4f4ecaab">
<!ENTITY openjpeg2-size "1.8 MB">
<!ENTITY openjpeg2-buildsize "13 MB">
<!ENTITY openjpeg2-time "0.2 SBU">
]>
<sect1 id="openjpeg2" xreflabel="OpenJPEG-&openjpeg2-version;">
<?dbhtml filename="openjpeg2.html"?>
<title>OpenJPEG-&openjpeg2-version;</title>
<indexterm zone="openjpeg2">
<primary sortas="a-openjpeg2">OpenJPEG</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to OpenJPEG</title>
<para>
<application>OpenJPEG</application> is an open-source implementation of
the JPEG-2000 standard. OpenJPEG fully respects the JPEG-2000
specifications and can compress/decompress lossless 16-bit images.
</para>
&lfs120_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&openjpeg2-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&openjpeg2-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &openjpeg2-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &openjpeg2-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &openjpeg2-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &openjpeg2-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">OpenJPEG Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="cmake"/>
</para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<xref linkend="lcms2"/>,
<xref linkend="libpng"/>,
<xref linkend="libtiff"/>, and
<xref linkend="doxygen"/> (to build the API documentation)
</para>
</sect2>
<sect2 role="installation">
<title>Installation of OpenJPEG</title>
<para>
Install <application>OpenJPEG</application> by running the
following commands:
</para>
<screen><userinput>mkdir -v build &amp;&amp;
cd build &amp;&amp;
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_STATIC_LIBS=OFF .. &amp;&amp;
make</userinput></screen>
<!-- Thread discussing the tests, fixing instructions,
but obtaining poor results:
http://lists.linuxfromscratch.org/pipermail/blfs-dev/2015-April/030035.html
There does not seem to be a test suite at all. 2022-05-15 (openjpeg-2.5.0)
-->
<para>
This package does not come with a test suite.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install &amp;&amp;
cp -rv ../doc/man -T /usr/share/man</userinput></screen>
</sect2>
<!--
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<option>-DBUILD_TESTING=ON</option>: This switch enables
building the test suite.
</para>
</sect2>-->
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>opj_compress, opj_decompress, and opj_dump</seg>
<seg>libopenjp2.so</seg>
<seg>/usr/include/openjpeg-&openjpeg2-majmin-version; and /usr/lib/openjpeg-&openjpeg2-majmin-version;</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="opj_compress">
<term><command>opj_compress</command></term>
<listitem>
<para>
converts various image formats to the jpeg2000 format
</para>
<indexterm zone="openjpeg2 opj_compress">
<primary sortas="b-opj_compress">opj_compress</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="opj_decompress">
<term><command>opj_decompress</command></term>
<listitem>
<para>
converts jpeg2000 images to other image types
</para>
<indexterm zone="openjpeg2 opj_decompress">
<primary sortas="b-opj_decompress">opj_decompress</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="opj_dump">
<term><command>opj_dump</command></term>
<listitem>
<para>
reads in a jpeg2000 image and dumps the contents to stdout
</para>
<indexterm zone="openjpeg2 opj_dump">
<primary sortas="b-opj_dump">opj_dump</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>