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-dl;/libjpeg-turbo/libjpeg-turbo-&libjpeg-turbo-version;.tar.gz">
|
---|
8 | <!ENTITY libjpeg-download-ftp " ">
|
---|
9 | <!ENTITY libjpeg-md5sum "aa1f0a1c72cb6772e34d9d5136267f56">
|
---|
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)">
|
---|
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 |
|
---|
36 | &lfs120_checked;
|
---|
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 |
|
---|
72 | <bridgehead renderas="sect3">libjpeg-turbo Dependencies</bridgehead>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
75 | <para role="required">
|
---|
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)
|
---|
83 | </para>
|
---|
84 |
|
---|
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 |
|
---|
95 | <screen><userinput>mkdir build &&
|
---|
96 | cd build &&
|
---|
97 |
|
---|
98 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
99 | -DCMAKE_BUILD_TYPE=RELEASE \
|
---|
100 | -DENABLE_STATIC=FALSE \
|
---|
101 | -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libjpeg-turbo-&libjpeg-turbo-version; \
|
---|
102 | -DCMAKE_INSTALL_DEFAULT_LIBDIR=lib \
|
---|
103 | .. &&
|
---|
104 | make</userinput></screen>
|
---|
105 |
|
---|
106 | <para>
|
---|
107 | To test the results, issue: <command>make test</command>.
|
---|
108 | </para>
|
---|
109 | <!--
|
---|
110 | <note><para>
|
---|
111 | If installing <application>libjpeg-turbo</application> over an older jpeg
|
---|
112 | installation, not all library symbolic links are updated properly. To fix
|
---|
113 | this before installation, run the following as the <systemitem
|
---|
114 | class="username">root</systemitem> user:</para>
|
---|
115 |
|
---|
116 | <screen role="root"><userinput>rm -f /usr/lib/libjpeg.so*</userinput></screen>
|
---|
117 |
|
---|
118 | </note>
|
---|
119 | -->
|
---|
120 | <para>
|
---|
121 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
125 |
|
---|
126 | </sect2>
|
---|
127 |
|
---|
128 | <sect2 role="commands">
|
---|
129 | <title>Command Explanations</title>
|
---|
130 |
|
---|
131 | <para>
|
---|
132 | <option>-DWITH_JPEG8=ON</option>: This switch enables compatibility
|
---|
133 | with <application>libjpeg</application> version 8.
|
---|
134 | </para>
|
---|
135 | </sect2>
|
---|
136 |
|
---|
137 | <sect2 role="content">
|
---|
138 | <title>Contents</title>
|
---|
139 |
|
---|
140 | <segmentedlist>
|
---|
141 | <segtitle>Installed Programs</segtitle>
|
---|
142 | <segtitle>Installed Libraries</segtitle>
|
---|
143 | <segtitle>Installed Directories</segtitle>
|
---|
144 |
|
---|
145 | <seglistitem>
|
---|
146 | <seg>
|
---|
147 | cjpeg, djpeg, jpegtran, rdjpgcom, tjbench, and wrjpgcom
|
---|
148 | </seg>
|
---|
149 | <seg>
|
---|
150 | libjpeg.so and libturbojpeg.so
|
---|
151 | </seg>
|
---|
152 | <seg>
|
---|
153 | /usr/share/doc/libjpeg-turbo-&libjpeg-turbo-version;
|
---|
154 | </seg>
|
---|
155 | </seglistitem>
|
---|
156 | </segmentedlist>
|
---|
157 |
|
---|
158 | <variablelist>
|
---|
159 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
160 | <?dbfo list-presentation="list"?>
|
---|
161 | <?dbhtml list-presentation="table"?>
|
---|
162 |
|
---|
163 | <varlistentry id="cjpeg">
|
---|
164 | <term><command>cjpeg</command></term>
|
---|
165 | <listitem>
|
---|
166 | <para>
|
---|
167 | 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
|
---|
171 | </para>
|
---|
172 | <indexterm zone="libjpeg cjpeg">
|
---|
173 | <primary sortas="b-cjpeg">cjpeg</primary>
|
---|
174 | </indexterm>
|
---|
175 | </listitem>
|
---|
176 | </varlistentry>
|
---|
177 |
|
---|
178 | <varlistentry id="djpeg">
|
---|
179 | <term><command>djpeg</command></term>
|
---|
180 | <listitem>
|
---|
181 | <para>
|
---|
182 | decompresses image files from JPEG/JFIF format to either
|
---|
183 | PPM (PBMPLUS color format), PGM (PBMPLUS gray-scale format),
|
---|
184 | BMP, or Targa format
|
---|
185 | </para>
|
---|
186 | <indexterm zone="libjpeg djpeg">
|
---|
187 | <primary sortas="b-djpeg">djpeg</primary>
|
---|
188 | </indexterm>
|
---|
189 | </listitem>
|
---|
190 | </varlistentry>
|
---|
191 |
|
---|
192 | <varlistentry id="jpegtran">
|
---|
193 | <term><command>jpegtran</command></term>
|
---|
194 | <listitem>
|
---|
195 | <para>
|
---|
196 | is used for lossless transformation of JPEG files
|
---|
197 | </para>
|
---|
198 | <indexterm zone="libjpeg jpegtran">
|
---|
199 | <primary sortas="b-jpegtran">jpegtran</primary>
|
---|
200 | </indexterm>
|
---|
201 | </listitem>
|
---|
202 | </varlistentry>
|
---|
203 |
|
---|
204 | <varlistentry id="rdjpgcom">
|
---|
205 | <term><command>rdjpgcom</command></term>
|
---|
206 | <listitem>
|
---|
207 | <para>
|
---|
208 | displays text comments from within a JPEG file
|
---|
209 | </para>
|
---|
210 | <indexterm zone="libjpeg rdjpgcom">
|
---|
211 | <primary sortas="b-rdjpgcom">rdjpgcom</primary>
|
---|
212 | </indexterm>
|
---|
213 | </listitem>
|
---|
214 | </varlistentry>
|
---|
215 |
|
---|
216 | <varlistentry id="tjbench">
|
---|
217 | <term><command>tjbench</command></term>
|
---|
218 | <listitem>
|
---|
219 | <para>
|
---|
220 | is used to benchmark the performance of libjpeg-turbo
|
---|
221 | </para>
|
---|
222 | <indexterm zone="libjpeg tjbench">
|
---|
223 | <primary sortas="b-tjbench">tjbench</primary>
|
---|
224 | </indexterm>
|
---|
225 | </listitem>
|
---|
226 | </varlistentry>
|
---|
227 |
|
---|
228 | <varlistentry id="wrjpgcom">
|
---|
229 | <term><command>wrjpgcom</command></term>
|
---|
230 | <listitem>
|
---|
231 | <para>
|
---|
232 | inserts text comments into a JPEG file
|
---|
233 | </para>
|
---|
234 | <indexterm zone="libjpeg wrjpgcom">
|
---|
235 | <primary sortas="b-wrjpgcom">wrjpgcom</primary>
|
---|
236 | </indexterm>
|
---|
237 | </listitem>
|
---|
238 | </varlistentry>
|
---|
239 |
|
---|
240 | <varlistentry id="libjpeg-lib">
|
---|
241 | <term><filename class="libraryfile">libjpeg.so</filename></term>
|
---|
242 | <listitem>
|
---|
243 | <para>
|
---|
244 | contains functions used for reading and writing JPEG images
|
---|
245 | </para>
|
---|
246 | <indexterm zone="libjpeg libjpeg-lib">
|
---|
247 | <primary sortas="c-libjpeg">libjpeg.so</primary>
|
---|
248 | </indexterm>
|
---|
249 | </listitem>
|
---|
250 | </varlistentry>
|
---|
251 |
|
---|
252 | </variablelist>
|
---|
253 |
|
---|
254 | </sect2>
|
---|
255 |
|
---|
256 | </sect1>
|
---|