[6054745] | 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 libraw-download-http "http://www.libraw.org/data/LibRaw-&libraw-version;.tar.gz">
|
---|
| 8 | <!ENTITY libraw-download-ftp " ">
|
---|
[dd3d87b] | 9 | <!ENTITY libraw-md5sum "7bd923ea7c9cc71897b005be46c01b2b">
|
---|
[6a06803c] | 10 | <!ENTITY libraw-size "1.2 MB">
|
---|
[dd3d87b] | 11 | <!ENTITY libraw-buildsize "19 MB">
|
---|
[28113fe] | 12 | <!ENTITY libraw-time "0.2 SBU">
|
---|
[6054745] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libraw" xreflabel="libraw-&libraw-version;">
|
---|
| 16 | <?dbhtml filename="libraw.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
[d027410] | 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[6054745] | 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>libraw-&libraw-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="libraw">
|
---|
| 26 | <primary sortas="a-libraw">libraw</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to libraw</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | <application>Libraw</application> is a library for reading RAW files
|
---|
[8b9ad6e] | 34 | obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others).
|
---|
[6054745] | 35 | </para>
|
---|
| 36 |
|
---|
[6a10ced] | 37 | &lfs80_checked;
|
---|
[6054745] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&libraw-download-http;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&libraw-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download MD5 sum: &libraw-md5sum;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download size: &libraw-size;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated disk space required: &libraw-buildsize;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Estimated build time: &libraw-time;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect3">libraw Dependencies</bridgehead>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 76 | <para role="recommended">
|
---|
[8b9ad6e] | 77 | <xref linkend="libjpeg"/>,
|
---|
[6054745] | 78 | <xref linkend="jasper"/>, and
|
---|
| 79 | <xref linkend="lcms2"/>
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 83 | <para role="optional">
|
---|
| 84 | <ulink url="http://www.libraw.org/download">LibRaw-demosaic-pack-GPL2</ulink> and
|
---|
| 85 | <ulink url="http://www.libraw.org/download">LibRaw-demosaic-pack-GPL3</ulink>
|
---|
| 86 | </para>
|
---|
| 87 |
|
---|
| 88 | <para condition="html" role="usernotes">User Notes:
|
---|
| 89 | <ulink url="&blfs-wiki;/libraw"/>
|
---|
| 90 | </para>
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2 role="installation">
|
---|
| 94 | <title>Installation of libraw</title>
|
---|
| 95 |
|
---|
| 96 | <para>
|
---|
| 97 | Install <application>libraw</application> by running the following
|
---|
| 98 | commands:
|
---|
| 99 | </para>
|
---|
| 100 |
|
---|
[6a06803c] | 101 | <screen><userinput>./configure --prefix=/usr \
|
---|
[6054745] | 102 | --enable-jpeg \
|
---|
| 103 | --enable-jasper \
|
---|
| 104 | --enable-lcms \
|
---|
| 105 | --disable-static \
|
---|
| 106 | --docdir=/usr/share/doc/libraw-&libraw-version; &&
|
---|
| 107 | make</userinput></screen>
|
---|
| 108 |
|
---|
| 109 | <para>
|
---|
[8b9ad6e] | 110 | This package does not come with a test suite.
|
---|
[6054745] | 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <para>
|
---|
| 114 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 115 | </para>
|
---|
| 116 |
|
---|
| 117 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 118 |
|
---|
| 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2 role="commands">
|
---|
| 122 | <title>Command Explanations</title>
|
---|
| 123 |
|
---|
[4c1494d] | 124 | <para>
|
---|
| 125 | <envar>CXX="g++ -Wno-narrowing"</envar>: This environment variable
|
---|
| 126 | disables a warning that prevents the package from compiling.
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
[6054745] | 129 | <para>
|
---|
[f1d7196] | 130 | <parameter>--enable-jpeg</parameter>: This switch enables
|
---|
[6054745] | 131 | support for jpeg. Remove if you don't have
|
---|
| 132 | <xref linkend="libjpeg"/> installed.
|
---|
| 133 | </para>
|
---|
[8b9ad6e] | 134 |
|
---|
[6054745] | 135 | <para>
|
---|
[f1d7196] | 136 | <parameter>--enable-jasper</parameter>: This switch enables
|
---|
[6054745] | 137 | support for jasper. Remove if you don't have
|
---|
| 138 | <xref linkend="jasper"/> installed.
|
---|
| 139 | </para>
|
---|
[8b9ad6e] | 140 |
|
---|
[6054745] | 141 | <para>
|
---|
[f1d7196] | 142 | <parameter>--enable-lcms</parameter>: This switch enables
|
---|
[6054745] | 143 | support for Little CMS2. Remove if you don't have
|
---|
| 144 | <xref linkend="lcms2"/> installed.
|
---|
| 145 | </para>
|
---|
[8b9ad6e] | 146 |
|
---|
[6054745] | 147 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 148 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 149 |
|
---|
| 150 | </sect2>
|
---|
| 151 |
|
---|
| 152 | <sect2 role="content">
|
---|
| 153 | <title>Contents</title>
|
---|
| 154 |
|
---|
[2a879b7c] | 155 | <note>
|
---|
| 156 | <para>
|
---|
| 157 | All the installed programs are examples of libraw use.
|
---|
| 158 | </para>
|
---|
| 159 | </note>
|
---|
| 160 |
|
---|
[6054745] | 161 | <segmentedlist>
|
---|
| 162 | <segtitle>Installed Programs</segtitle>
|
---|
| 163 | <segtitle>Installed Library</segtitle>
|
---|
| 164 | <segtitle>Installed Directories</segtitle>
|
---|
| 165 |
|
---|
| 166 | <seglistitem>
|
---|
| 167 | <seg>
|
---|
[8b9ad6e] | 168 | 4channels, dcraw_emu, dcraw_half, half_mt, mem_image,
|
---|
| 169 | multirender_test, postprocessing_benchmark, raw-identify,
|
---|
| 170 | simple_dcraw, and unprocessed_raw
|
---|
[6054745] | 171 | </seg>
|
---|
| 172 | <seg>
|
---|
| 173 | libraw.so and libraw_r.so
|
---|
| 174 | </seg>
|
---|
| 175 | <seg>
|
---|
| 176 | /usr/include/libraw and
|
---|
| 177 | /usr/share/doc/libraw-&libraw-version;
|
---|
| 178 | </seg>
|
---|
| 179 | </seglistitem>
|
---|
| 180 | </segmentedlist>
|
---|
[2a879b7c] | 181 |
|
---|
[6054745] | 182 | <variablelist>
|
---|
| 183 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 184 | <?dbfo list-presentation="list"?>
|
---|
| 185 | <?dbhtml list-presentation="table"?>
|
---|
| 186 |
|
---|
[2a879b7c] | 187 | <varlistentry id="_4channels">
|
---|
| 188 | <term><command>4channels</command></term>
|
---|
| 189 | <listitem>
|
---|
| 190 | <para>
|
---|
[af5248e2] | 191 | generates four TIFF files from RAW data, one file per channel.
|
---|
[2a879b7c] | 192 | </para>
|
---|
| 193 | <indexterm zone="libraw _4channels">
|
---|
| 194 | <primary sortas="b-_4channels">4channels</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
| 198 |
|
---|
| 199 | <varlistentry id="dcraw_half">
|
---|
| 200 | <term><command>dcraw_half</command></term>
|
---|
| 201 | <listitem>
|
---|
| 202 | <para>
|
---|
[8b9ad6e] | 203 | emulates "dcraw -h" (see <ulink
|
---|
[8c74510f] | 204 | url="http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">
|
---|
[2a879b7c] | 205 | DCRAW manpage</ulink>).
|
---|
| 206 | </para>
|
---|
| 207 | <indexterm zone="libraw dcraw_half">
|
---|
| 208 | <primary sortas="b-dcraw_half">dcraw_half</primary>
|
---|
| 209 | </indexterm>
|
---|
| 210 | </listitem>
|
---|
| 211 | </varlistentry>
|
---|
| 212 |
|
---|
| 213 | <varlistentry id="mem_image">
|
---|
| 214 | <term><command>mem_image</command></term>
|
---|
| 215 | <listitem>
|
---|
| 216 | <para>
|
---|
[8b9ad6e] | 217 | emulates "dcraw [-4] [-6] [-e]" (see <ulink
|
---|
[8c74510f] | 218 | url="http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">
|
---|
[2a879b7c] | 219 | DCRAW manpage</ulink>).
|
---|
| 220 | </para>
|
---|
| 221 | <indexterm zone="libraw mem_image">
|
---|
| 222 | <primary sortas="b-mem_image">mem_image</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
| 226 |
|
---|
| 227 | <varlistentry id="postprocessing_benchmark">
|
---|
| 228 | <term><command>postprocessing_benchmark</command></term>
|
---|
| 229 | <listitem>
|
---|
| 230 | <para>
|
---|
[8b9ad6e] | 231 | creates eight different renderings from one source file.
|
---|
[af5248e2] | 232 | The first and fourth one should be identical.
|
---|
[2a879b7c] | 233 | </para>
|
---|
| 234 | <indexterm zone="libraw postprocessing_benchmark">
|
---|
| 235 | <primary sortas="b-postprocessing_benchmark">
|
---|
| 236 | postprocessing_benchmark</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
| 240 |
|
---|
| 241 | <varlistentry id="simple_dcraw">
|
---|
| 242 | <term><command>simple_dcraw</command></term>
|
---|
| 243 | <listitem>
|
---|
| 244 | <para>
|
---|
[8b9ad6e] | 245 | emulates call to "dcraw [-D] [-T] [-v] [-e] [-4]" (see <ulink
|
---|
[8c74510f] | 246 | url="http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">
|
---|
[2a879b7c] | 247 | DCRAW manpage</ulink>).
|
---|
| 248 | </para>
|
---|
| 249 | <indexterm zone="libraw simple_dcraw">
|
---|
| 250 | <primary sortas="b-simple_dcraw">simple_dcraw</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="dcraw_emu">
|
---|
| 256 | <term><command>dcraw_emu</command></term>
|
---|
| 257 | <listitem>
|
---|
| 258 | <para>
|
---|
[8b9ad6e] | 259 | is an almost complete dcraw emulator (see <ulink
|
---|
[8c74510f] | 260 | url="http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">
|
---|
[2a879b7c] | 261 | DCRAW manpage</ulink>).
|
---|
| 262 | </para>
|
---|
| 263 | <indexterm zone="libraw dcraw_emu">
|
---|
| 264 | <primary sortas="b-dcraw_emu">dcraw_emu</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="half_mt">
|
---|
| 270 | <term><command>half_mt</command></term>
|
---|
| 271 | <listitem>
|
---|
| 272 | <para>
|
---|
[8b9ad6e] | 273 | emulates call to "dcraw -h [-w] [-a] [-v]" (see <ulink
|
---|
[8c74510f] | 274 | url="http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">
|
---|
[2a879b7c] | 275 | DCRAW manpage</ulink>).
|
---|
| 276 | </para>
|
---|
| 277 | <indexterm zone="libraw half_mt">
|
---|
| 278 | <primary sortas="b-half_mt">half_mt</primary>
|
---|
| 279 | </indexterm>
|
---|
| 280 | </listitem>
|
---|
| 281 | </varlistentry>
|
---|
| 282 |
|
---|
| 283 | <varlistentry id="multirender_test">
|
---|
| 284 | <term><command>multirender_test</command></term>
|
---|
| 285 | <listitem>
|
---|
| 286 | <para>
|
---|
[8b9ad6e] | 287 | creates eight different renderings from one source file.
|
---|
[af5248e2] | 288 | The first and fourth one should be identical.
|
---|
[2a879b7c] | 289 | </para>
|
---|
| 290 | <indexterm zone="libraw multirender_test">
|
---|
| 291 | <primary sortas="b-multirender_test">multirender_test</primary>
|
---|
| 292 | </indexterm>
|
---|
| 293 | </listitem>
|
---|
| 294 | </varlistentry>
|
---|
| 295 |
|
---|
| 296 | <varlistentry id="raw-identify">
|
---|
| 297 | <term><command>raw-identify</command></term>
|
---|
| 298 | <listitem>
|
---|
| 299 | <para>
|
---|
[8b9ad6e] | 300 | emulates call to "dcraw -i [-v]" (see <ulink
|
---|
[8c74510f] | 301 | url="http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">
|
---|
[2a879b7c] | 302 | DCRAW manpage</ulink>).
|
---|
| 303 | </para>
|
---|
| 304 | <indexterm zone="libraw raw-identify">
|
---|
| 305 | <primary sortas="b-raw-identify">half_mt</primary>
|
---|
| 306 | </indexterm>
|
---|
| 307 | </listitem>
|
---|
| 308 | </varlistentry>
|
---|
| 309 |
|
---|
| 310 | <varlistentry id="unprocessed_raw">
|
---|
| 311 | <term><command>unprocessed_raw</command></term>
|
---|
| 312 | <listitem>
|
---|
| 313 | <para>
|
---|
[8b9ad6e] | 314 | generates unprocessed raw image: with masked pixels and without
|
---|
[2a879b7c] | 315 | black subtraction.
|
---|
| 316 | </para>
|
---|
| 317 | <indexterm zone="libraw unprocessed_raw">
|
---|
| 318 | <primary sortas="b-unprocessed_raw">unprocessed_raw</primary>
|
---|
| 319 | </indexterm>
|
---|
| 320 | </listitem>
|
---|
| 321 | </varlistentry>
|
---|
| 322 |
|
---|
| 323 | <!-- <varlistentry id="libraw-lib">
|
---|
[6054745] | 324 | <term><filename class='libraryfile'>libraw.so</filename></term>
|
---|
| 325 | <listitem>
|
---|
| 326 | <para>
|
---|
| 327 | contains functions used for parsing, editing, and saving
|
---|
| 328 | data.
|
---|
| 329 | </para>
|
---|
| 330 | <indexterm zone="libraw libraw-lib">
|
---|
| 331 | <primary sortas="c-libraw">libraw.so</primary>
|
---|
| 332 | </indexterm>
|
---|
| 333 | </listitem>
|
---|
[2a879b7c] | 334 | </varlistentry> -->
|
---|
[6054745] | 335 |
|
---|
| 336 | </variablelist>
|
---|
[2a879b7c] | 337 |
|
---|
[6054745] | 338 | </sect2>
|
---|
| 339 |
|
---|
| 340 | </sect1>
|
---|