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