[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[7ca0e36] | 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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY libjpeg-download-http "&sourceforge-dl;/libjpeg-turbo/libjpeg-turbo-&libjpeg-turbo-version;.tar.gz">
|
---|
[7ca0e36] | 8 | <!ENTITY libjpeg-download-ftp " ">
|
---|
[1612127] | 9 | <!ENTITY libjpeg-md5sum "1fdc6494521a8724f5f7cf39b0f6aff3">
|
---|
[8d23330a] | 10 | <!ENTITY libjpeg-size "2.7 MB">
|
---|
| 11 | <!ENTITY libjpeg-buildsize "55 MB (with tests)">
|
---|
| 12 | <!ENTITY libjpeg-time "0.5 SBU (with tests; both using parallelism=4)">
|
---|
[7ca0e36] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libjpeg" xreflabel="libjpeg-turbo-&libjpeg-turbo-version;">
|
---|
| 16 | <?dbhtml filename="libjpeg.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>libjpeg-turbo-&libjpeg-turbo-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="libjpeg">
|
---|
| 22 | <primary sortas="a-libjpeg-turbo">libjpeg-turbo</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to libjpeg-turbo</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <application>libjpeg-turbo</application> is a fork of the original
|
---|
| 30 | IJG <application>libjpeg</application> which uses SIMD to accelerate
|
---|
| 31 | baseline JPEG compression and decompression.
|
---|
| 32 | <application>libjpeg</application> is a library that implements JPEG
|
---|
| 33 | image encoding, decoding and transcoding.
|
---|
| 34 | </para>
|
---|
| 35 |
|
---|
[3c9b5e9] | 36 | &lfs122_checked;
|
---|
[7ca0e36] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&libjpeg-download-http;"/>
|
---|
| 43 | </para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&libjpeg-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download MD5 sum: &libjpeg-md5sum;
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download size: &libjpeg-size;
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Estimated disk space required: &libjpeg-buildsize;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Estimated build time: &libjpeg-time;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
[e389130] | 72 | <bridgehead renderas="sect3">libjpeg-turbo Dependencies</bridgehead>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 75 | <para role="required">
|
---|
[3ca986e0] | 76 | <xref linkend="cmake"/>
|
---|
| 77 | </para>
|
---|
| 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 80 | <para role="recommended">
|
---|
| 81 | <xref linkend="nasm"/> or <xref linkend="yasm"/>
|
---|
| 82 | (for building the package with optimized assembly routine)
|
---|
[e389130] | 83 | </para>
|
---|
| 84 |
|
---|
[7ca0e36] | 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
| 88 | <title>Installation of libjpeg-turbo</title>
|
---|
| 89 |
|
---|
| 90 | <para>
|
---|
| 91 | Install <application>libjpeg-turbo</application> by running the
|
---|
| 92 | following commands:
|
---|
| 93 | </para>
|
---|
| 94 |
|
---|
[f3a6aaca] | 95 | <screen><userinput>mkdir build &&
|
---|
[97828bc] | 96 | cd build &&
|
---|
| 97 |
|
---|
[cbfa153] | 98 | cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
---|
| 99 | -D CMAKE_BUILD_TYPE=RELEASE \
|
---|
| 100 | -D ENABLE_STATIC=FALSE \
|
---|
| 101 | -D CMAKE_INSTALL_DEFAULT_LIBDIR=lib \
|
---|
| 102 | -D CMAKE_SKIP_INSTALL_RPATH=ON \
|
---|
| 103 | -D CMAKE_INSTALL_DOCDIR=/usr/share/doc/libjpeg-turbo-&libjpeg-turbo-version; \
|
---|
[97828bc] | 104 | .. &&
|
---|
[7ca0e36] | 105 | make</userinput></screen>
|
---|
| 106 |
|
---|
| 107 | <para>
|
---|
| 108 | To test the results, issue: <command>make test</command>.
|
---|
| 109 | </para>
|
---|
[ed7ed607] | 110 | <!--
|
---|
[637f310] | 111 | <note><para>
|
---|
| 112 | If installing <application>libjpeg-turbo</application> over an older jpeg
|
---|
| 113 | installation, not all library symbolic links are updated properly. To fix
|
---|
| 114 | this before installation, run the following as the <systemitem
|
---|
| 115 | class="username">root</systemitem> user:</para>
|
---|
| 116 |
|
---|
| 117 | <screen role="root"><userinput>rm -f /usr/lib/libjpeg.so*</userinput></screen>
|
---|
| 118 |
|
---|
| 119 | </note>
|
---|
[ed7ed607] | 120 | -->
|
---|
[7ca0e36] | 121 | <para>
|
---|
| 122 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
[2203185] | 125 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[7ca0e36] | 126 |
|
---|
| 127 | </sect2>
|
---|
[abf53e1] | 128 |
|
---|
[7ca0e36] | 129 | <sect2 role="commands">
|
---|
| 130 | <title>Command Explanations</title>
|
---|
| 131 |
|
---|
[4dc1987] | 132 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 133 | href="../../xincludes/cmake-skip-install-rpath.xml"/>
|
---|
| 134 |
|
---|
[f2710d28] | 135 | <para>
|
---|
[cbfa153] | 136 | <option>-D WITH_JPEG8=ON</option>: This switch enables compatibility
|
---|
[eecab611] | 137 | with <application>libjpeg</application> version 8.
|
---|
[f2710d28] | 138 | </para>
|
---|
[abf53e1] | 139 | </sect2>
|
---|
| 140 |
|
---|
[7ca0e36] | 141 | <sect2 role="content">
|
---|
| 142 | <title>Contents</title>
|
---|
| 143 |
|
---|
| 144 | <segmentedlist>
|
---|
| 145 | <segtitle>Installed Programs</segtitle>
|
---|
| 146 | <segtitle>Installed Libraries</segtitle>
|
---|
| 147 | <segtitle>Installed Directories</segtitle>
|
---|
| 148 |
|
---|
| 149 | <seglistitem>
|
---|
| 150 | <seg>
|
---|
[eecab611] | 151 | cjpeg, djpeg, jpegtran, rdjpgcom, tjbench, and wrjpgcom
|
---|
[7ca0e36] | 152 | </seg>
|
---|
| 153 | <seg>
|
---|
| 154 | libjpeg.so and libturbojpeg.so
|
---|
| 155 | </seg>
|
---|
| 156 | <seg>
|
---|
| 157 | /usr/share/doc/libjpeg-turbo-&libjpeg-turbo-version;
|
---|
| 158 | </seg>
|
---|
| 159 | </seglistitem>
|
---|
| 160 | </segmentedlist>
|
---|
| 161 |
|
---|
| 162 | <variablelist>
|
---|
| 163 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 164 | <?dbfo list-presentation="list"?>
|
---|
| 165 | <?dbhtml list-presentation="table"?>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="cjpeg">
|
---|
| 168 | <term><command>cjpeg</command></term>
|
---|
| 169 | <listitem>
|
---|
[09f0998] | 170 | <para>
|
---|
| 171 | compresses image files to produce a JPEG/JFIF file on the
|
---|
| 172 | standard output. Currently supported input file formats are: PPM
|
---|
| 173 | (PBMPLUS color format), PGM (PBMPLUS gray-scale format),
|
---|
[4c24eb0a] | 174 | BMP, and Targa
|
---|
[09f0998] | 175 | </para>
|
---|
[7ca0e36] | 176 | <indexterm zone="libjpeg cjpeg">
|
---|
| 177 | <primary sortas="b-cjpeg">cjpeg</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="djpeg">
|
---|
| 183 | <term><command>djpeg</command></term>
|
---|
| 184 | <listitem>
|
---|
[09f0998] | 185 | <para>
|
---|
| 186 | decompresses image files from JPEG/JFIF format to either
|
---|
| 187 | PPM (PBMPLUS color format), PGM (PBMPLUS gray-scale format),
|
---|
[4c24eb0a] | 188 | BMP, or Targa format
|
---|
[09f0998] | 189 | </para>
|
---|
[7ca0e36] | 190 | <indexterm zone="libjpeg djpeg">
|
---|
| 191 | <primary sortas="b-djpeg">djpeg</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="jpegtran">
|
---|
| 197 | <term><command>jpegtran</command></term>
|
---|
| 198 | <listitem>
|
---|
[09f0998] | 199 | <para>
|
---|
[4c24eb0a] | 200 | is used for lossless transformation of JPEG files
|
---|
[09f0998] | 201 | </para>
|
---|
[7ca0e36] | 202 | <indexterm zone="libjpeg jpegtran">
|
---|
| 203 | <primary sortas="b-jpegtran">jpegtran</primary>
|
---|
| 204 | </indexterm>
|
---|
| 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
| 207 |
|
---|
| 208 | <varlistentry id="rdjpgcom">
|
---|
| 209 | <term><command>rdjpgcom</command></term>
|
---|
| 210 | <listitem>
|
---|
[09f0998] | 211 | <para>
|
---|
[4c24eb0a] | 212 | displays text comments from within a JPEG file
|
---|
[09f0998] | 213 | </para>
|
---|
[7ca0e36] | 214 | <indexterm zone="libjpeg rdjpgcom">
|
---|
| 215 | <primary sortas="b-rdjpgcom">rdjpgcom</primary>
|
---|
| 216 | </indexterm>
|
---|
| 217 | </listitem>
|
---|
| 218 | </varlistentry>
|
---|
| 219 |
|
---|
[eecab611] | 220 | <varlistentry id="tjbench">
|
---|
| 221 | <term><command>tjbench</command></term>
|
---|
| 222 | <listitem>
|
---|
[09f0998] | 223 | <para>
|
---|
[4c24eb0a] | 224 | is used to benchmark the performance of libjpeg-turbo
|
---|
[09f0998] | 225 | </para>
|
---|
[eecab611] | 226 | <indexterm zone="libjpeg tjbench">
|
---|
| 227 | <primary sortas="b-tjbench">tjbench</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
[7ca0e36] | 232 | <varlistentry id="wrjpgcom">
|
---|
| 233 | <term><command>wrjpgcom</command></term>
|
---|
| 234 | <listitem>
|
---|
[09f0998] | 235 | <para>
|
---|
[4c24eb0a] | 236 | inserts text comments into a JPEG file
|
---|
[09f0998] | 237 | </para>
|
---|
[7ca0e36] | 238 | <indexterm zone="libjpeg wrjpgcom">
|
---|
| 239 | <primary sortas="b-wrjpgcom">wrjpgcom</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="libjpeg-lib">
|
---|
| 245 | <term><filename class="libraryfile">libjpeg.so</filename></term>
|
---|
| 246 | <listitem>
|
---|
| 247 | <para>
|
---|
[4c24eb0a] | 248 | contains functions used for reading and writing JPEG images
|
---|
[09f0998] | 249 | </para>
|
---|
[7ca0e36] | 250 | <indexterm zone="libjpeg libjpeg-lib">
|
---|
| 251 | <primary sortas="c-libjpeg">libjpeg.so</primary>
|
---|
| 252 | </indexterm>
|
---|
| 253 | </listitem>
|
---|
| 254 | </varlistentry>
|
---|
| 255 |
|
---|
| 256 | </variablelist>
|
---|
| 257 |
|
---|
| 258 | </sect2>
|
---|
| 259 |
|
---|
| 260 | </sect1>
|
---|