[bd81e201] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[c9d79c2] | 7 | <!ENTITY openjpeg2-download-http "https://github.com/uclouvain/openjpeg/archive/v&openjpeg2-version;/openjpeg-&openjpeg2-version;.tar.gz">
|
---|
[bd81e201] | 8 | <!ENTITY openjpeg2-download-ftp " ">
|
---|
[06333e6] | 9 | <!ENTITY openjpeg2-md5sum "5cbb822a1203dd75b85639da4f4ecaab">
|
---|
| 10 | <!ENTITY openjpeg2-size "1.8 MB">
|
---|
| 11 | <!ENTITY openjpeg2-buildsize "13 MB">
|
---|
[b7a6574b] | 12 | <!ENTITY openjpeg2-time "0.2 SBU">
|
---|
[bd81e201] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="openjpeg2" xreflabel="OpenJPEG-&openjpeg2-version;">
|
---|
| 16 | <?dbhtml filename="openjpeg2.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>OpenJPEG-&openjpeg2-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="openjpeg2">
|
---|
| 22 | <primary sortas="a-openjpeg2">OpenJPEG</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to OpenJPEG</title>
|
---|
| 27 |
|
---|
[a06368b] | 28 | <para>
|
---|
| 29 | <application>OpenJPEG</application> is an open-source implementation of
|
---|
| 30 | the JPEG-2000 standard. OpenJPEG fully respects the JPEG-2000
|
---|
| 31 | specifications and can compress/decompress lossless 16-bit images.
|
---|
| 32 | </para>
|
---|
[bd81e201] | 33 |
|
---|
[9d86c703] | 34 | &lfs120_checked;
|
---|
[bd81e201] | 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[09f0998] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&openjpeg2-download-http;"/>
|
---|
| 41 | </para>
|
---|
[bd81e201] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[09f0998] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&openjpeg2-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[bd81e201] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[09f0998] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &openjpeg2-md5sum;
|
---|
| 51 | </para>
|
---|
[bd81e201] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[09f0998] | 54 | <para>
|
---|
| 55 | Download size: &openjpeg2-size;
|
---|
| 56 | </para>
|
---|
[bd81e201] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[09f0998] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &openjpeg2-buildsize;
|
---|
| 61 | </para>
|
---|
[bd81e201] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[09f0998] | 64 | <para>
|
---|
| 65 | Estimated build time: &openjpeg2-time;
|
---|
| 66 | </para>
|
---|
[bd81e201] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">OpenJPEG Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 73 | <para role="required">
|
---|
| 74 | <xref linkend="cmake"/>
|
---|
| 75 | </para>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 78 | <para role="optional">
|
---|
[09f0998] | 79 | <xref linkend="lcms2"/>,
|
---|
| 80 | <xref linkend="libpng"/>,
|
---|
| 81 | <xref linkend="libtiff"/>, and
|
---|
| 82 | <xref linkend="doxygen"/> (to build the API documentation)
|
---|
[bd81e201] | 83 | </para>
|
---|
| 84 |
|
---|
| 85 |
|
---|
| 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2 role="installation">
|
---|
| 89 | <title>Installation of OpenJPEG</title>
|
---|
| 90 |
|
---|
[73bd2c4] | 91 | <para>
|
---|
| 92 | Install <application>OpenJPEG</application> by running the
|
---|
| 93 | following commands:
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
[2263933] | 96 | <screen><userinput>mkdir -v build &&
|
---|
[a06368b] | 97 | cd build &&
|
---|
[059a1a5c] | 98 |
|
---|
[5b23c1e] | 99 | cmake -DCMAKE_BUILD_TYPE=Release \
|
---|
| 100 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 101 | -DBUILD_STATIC_LIBS=OFF .. &&
|
---|
[bd81e201] | 102 | make</userinput></screen>
|
---|
| 103 |
|
---|
[a06368b] | 104 | <!-- Thread discussing the tests, fixing instructions,
|
---|
| 105 | but obtaining poor results:
|
---|
| 106 | http://lists.linuxfromscratch.org/pipermail/blfs-dev/2015-April/030035.html
|
---|
[06333e6] | 107 |
|
---|
| 108 | There does not seem to be a test suite at all. 2022-05-15 (openjpeg-2.5.0)
|
---|
[a06368b] | 109 | -->
|
---|
[09f0998] | 110 | <para>
|
---|
[06333e6] | 111 | This package does not come with a test suite.
|
---|
[09f0998] | 112 | </para>
|
---|
[bd81e201] | 113 |
|
---|
[09f0998] | 114 | <para>
|
---|
| 115 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 116 | </para>
|
---|
[bd81e201] | 117 |
|
---|
| 118 | <screen role="root"><userinput>make install &&
|
---|
[059a1a5c] | 119 |
|
---|
[a06368b] | 120 | pushd ../doc &&
|
---|
[92d2b83] | 121 | for man in man/man?/* ; do
|
---|
| 122 | install -v -D -m 644 $man /usr/share/$man
|
---|
[8558044] | 123 | done
|
---|
[a06368b] | 124 | popd</userinput></screen>
|
---|
[bd81e201] | 125 |
|
---|
| 126 | </sect2>
|
---|
[a06368b] | 127 | <!--
|
---|
[bd81e201] | 128 | <sect2 role="commands">
|
---|
| 129 | <title>Command Explanations</title>
|
---|
| 130 |
|
---|
[09f0998] | 131 | <para>
|
---|
| 132 | <option>-DBUILD_TESTING=ON</option>: This switch enables
|
---|
| 133 | building the test suite.
|
---|
| 134 | </para>
|
---|
[bd81e201] | 135 |
|
---|
[a06368b] | 136 | </sect2>-->
|
---|
[bd81e201] | 137 |
|
---|
| 138 | <sect2 role="content">
|
---|
| 139 | <title>Contents</title>
|
---|
| 140 |
|
---|
| 141 | <segmentedlist>
|
---|
| 142 | <segtitle>Installed Programs</segtitle>
|
---|
| 143 | <segtitle>Installed Libraries</segtitle>
|
---|
| 144 | <segtitle>Installed Directories</segtitle>
|
---|
| 145 |
|
---|
| 146 | <seglistitem>
|
---|
| 147 | <seg>opj_compress, opj_decompress, and opj_dump</seg>
|
---|
| 148 | <seg>libopenjp2.so</seg>
|
---|
[243cb60] | 149 | <seg>/usr/include/openjpeg-&openjpeg2-majmin-version; and /usr/lib/openjpeg-&openjpeg2-majmin-version;</seg>
|
---|
[bd81e201] | 150 | </seglistitem>
|
---|
| 151 | </segmentedlist>
|
---|
| 152 |
|
---|
| 153 | <variablelist>
|
---|
| 154 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 155 | <?dbfo list-presentation="list"?>
|
---|
| 156 | <?dbhtml list-presentation="table"?>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="opj_compress">
|
---|
| 159 | <term><command>opj_compress</command></term>
|
---|
| 160 | <listitem>
|
---|
[09f0998] | 161 | <para>
|
---|
[4c24eb0a] | 162 | converts various image formats to the jpeg2000 format
|
---|
[09f0998] | 163 | </para>
|
---|
[bd81e201] | 164 | <indexterm zone="openjpeg2 opj_compress">
|
---|
| 165 | <primary sortas="b-opj_compress">opj_compress</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="opj_decompress">
|
---|
| 171 | <term><command>opj_decompress</command></term>
|
---|
| 172 | <listitem>
|
---|
[09f0998] | 173 | <para>
|
---|
[4c24eb0a] | 174 | converts jpeg2000 images to other image types
|
---|
[09f0998] | 175 | </para>
|
---|
[bd81e201] | 176 | <indexterm zone="openjpeg2 opj_decompress">
|
---|
| 177 | <primary sortas="b-opj_decompress">opj_decompress</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="opj_dump">
|
---|
| 183 | <term><command>opj_dump</command></term>
|
---|
| 184 | <listitem>
|
---|
[09f0998] | 185 | <para>
|
---|
[4c24eb0a] | 186 | reads in a jpeg2000 image and dumps the contents to stdout
|
---|
[09f0998] | 187 | </para>
|
---|
[bd81e201] | 188 | <indexterm zone="openjpeg2 opj_dump">
|
---|
| 189 | <primary sortas="b-opj_dump">opj_dump</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
| 194 | </variablelist>
|
---|
| 195 |
|
---|
| 196 | </sect2>
|
---|
| 197 |
|
---|
| 198 | </sect1>
|
---|