[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 |
|
---|
[c6b192c] | 7 | <!ENTITY libraw-download-http "https://www.libraw.org/data/LibRaw-&libraw-version;.tar.gz">
|
---|
[6054745] | 8 | <!ENTITY libraw-download-ftp " ">
|
---|
[1334c9a] | 9 | <!ENTITY libraw-md5sum "2e5bedb59ea433e2d2ef6bbbe5253179">
|
---|
[cfb077c9] | 10 | <!ENTITY libraw-size "1.4 MB">
|
---|
[1334c9a] | 11 | <!ENTITY libraw-buildsize "29 MB">
|
---|
| 12 | <!ENTITY libraw-time "0.2 SBU (Using parallelism=4)">
|
---|
[be8721c] | 13 | <!ENTITY dcraw-manpage-url "https://linux.die.net/man/1/dcraw">
|
---|
[6054745] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="libraw" xreflabel="libraw-&libraw-version;">
|
---|
| 17 | <?dbhtml filename="libraw.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
[d027410] | 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 |
|
---|
[38030654] | 37 | &lfs111_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>
|
---|
[3520967a] | 81 | <!--
|
---|
[6054745] | 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>
|
---|
[3520967a] | 87 | -->
|
---|
[6054745] | 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 |
|
---|
[1334c9a] | 101 | <screen><userinput>autoreconf -fiv &&
|
---|
| 102 | ./configure --prefix=/usr \
|
---|
[461c584] | 103 | --enable-jpeg \
|
---|
| 104 | --enable-jasper \
|
---|
| 105 | --enable-lcms \
|
---|
| 106 | --disable-static \
|
---|
| 107 | --docdir=/usr/share/doc/libraw-&libraw-version; &&
|
---|
[6054745] | 108 | make</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
[8b9ad6e] | 111 | This package does not come with a test suite.
|
---|
[6054745] | 112 | </para>
|
---|
| 113 |
|
---|
| 114 | <para>
|
---|
| 115 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 119 |
|
---|
| 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 | <sect2 role="commands">
|
---|
| 123 | <title>Command Explanations</title>
|
---|
| 124 |
|
---|
| 125 | <para>
|
---|
[f1d7196] | 126 | <parameter>--enable-jpeg</parameter>: This switch enables
|
---|
[6054745] | 127 | support for jpeg. Remove if you don't have
|
---|
| 128 | <xref linkend="libjpeg"/> installed.
|
---|
| 129 | </para>
|
---|
[8b9ad6e] | 130 |
|
---|
[6054745] | 131 | <para>
|
---|
[f1d7196] | 132 | <parameter>--enable-jasper</parameter>: This switch enables
|
---|
[6054745] | 133 | support for jasper. Remove if you don't have
|
---|
| 134 | <xref linkend="jasper"/> installed.
|
---|
| 135 | </para>
|
---|
[8b9ad6e] | 136 |
|
---|
[6054745] | 137 | <para>
|
---|
[f1d7196] | 138 | <parameter>--enable-lcms</parameter>: This switch enables
|
---|
[6054745] | 139 | support for Little CMS2. Remove if you don't have
|
---|
| 140 | <xref linkend="lcms2"/> installed.
|
---|
| 141 | </para>
|
---|
[8b9ad6e] | 142 |
|
---|
[6054745] | 143 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 144 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 145 |
|
---|
| 146 | </sect2>
|
---|
| 147 |
|
---|
| 148 | <sect2 role="content">
|
---|
| 149 | <title>Contents</title>
|
---|
| 150 |
|
---|
[2a879b7c] | 151 | <note>
|
---|
| 152 | <para>
|
---|
[5f789db] | 153 | All the installed programs are examples of using libraw.
|
---|
[2a879b7c] | 154 | </para>
|
---|
| 155 | </note>
|
---|
| 156 |
|
---|
[6054745] | 157 | <segmentedlist>
|
---|
| 158 | <segtitle>Installed Programs</segtitle>
|
---|
| 159 | <segtitle>Installed Library</segtitle>
|
---|
| 160 | <segtitle>Installed Directories</segtitle>
|
---|
| 161 |
|
---|
| 162 | <seglistitem>
|
---|
| 163 | <seg>
|
---|
[8b9ad6e] | 164 | 4channels, dcraw_emu, dcraw_half, half_mt, mem_image,
|
---|
| 165 | multirender_test, postprocessing_benchmark, raw-identify,
|
---|
| 166 | simple_dcraw, and unprocessed_raw
|
---|
[6054745] | 167 | </seg>
|
---|
| 168 | <seg>
|
---|
| 169 | libraw.so and libraw_r.so
|
---|
| 170 | </seg>
|
---|
| 171 | <seg>
|
---|
| 172 | /usr/include/libraw and
|
---|
| 173 | /usr/share/doc/libraw-&libraw-version;
|
---|
| 174 | </seg>
|
---|
| 175 | </seglistitem>
|
---|
| 176 | </segmentedlist>
|
---|
[2a879b7c] | 177 |
|
---|
[6054745] | 178 | <variablelist>
|
---|
| 179 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 180 | <?dbfo list-presentation="list"?>
|
---|
| 181 | <?dbhtml list-presentation="table"?>
|
---|
| 182 |
|
---|
[2a879b7c] | 183 | <varlistentry id="_4channels">
|
---|
| 184 | <term><command>4channels</command></term>
|
---|
| 185 | <listitem>
|
---|
| 186 | <para>
|
---|
[4c24eb0a] | 187 | generates four TIFF files from RAW data, one file per channel
|
---|
[2a879b7c] | 188 | </para>
|
---|
| 189 | <indexterm zone="libraw _4channels">
|
---|
| 190 | <primary sortas="b-_4channels">4channels</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="dcraw_half">
|
---|
| 196 | <term><command>dcraw_half</command></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>
|
---|
[4c24eb0a] | 199 | emulates "dcraw -h" (see
|
---|
| 200 | <ulink url="&dcraw-manpage-url;"> DCRAW manpage</ulink>)
|
---|
[2a879b7c] | 201 | </para>
|
---|
| 202 | <indexterm zone="libraw dcraw_half">
|
---|
| 203 | <primary sortas="b-dcraw_half">dcraw_half</primary>
|
---|
| 204 | </indexterm>
|
---|
| 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
| 207 |
|
---|
| 208 | <varlistentry id="mem_image">
|
---|
| 209 | <term><command>mem_image</command></term>
|
---|
| 210 | <listitem>
|
---|
| 211 | <para>
|
---|
[4c24eb0a] | 212 | emulates "dcraw [-4] [-6] [-e]" (see
|
---|
| 213 | <ulink url="&dcraw-manpage-url;"> DCRAW manpage</ulink>)
|
---|
[2a879b7c] | 214 | </para>
|
---|
| 215 | <indexterm zone="libraw mem_image">
|
---|
| 216 | <primary sortas="b-mem_image">mem_image</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="postprocessing_benchmark">
|
---|
| 222 | <term><command>postprocessing_benchmark</command></term>
|
---|
| 223 | <listitem>
|
---|
| 224 | <para>
|
---|
[8b9ad6e] | 225 | creates eight different renderings from one source file.
|
---|
[4c24eb0a] | 226 | The first and fourth one should be identical
|
---|
[2a879b7c] | 227 | </para>
|
---|
| 228 | <indexterm zone="libraw postprocessing_benchmark">
|
---|
| 229 | <primary sortas="b-postprocessing_benchmark">
|
---|
| 230 | postprocessing_benchmark</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | <varlistentry id="simple_dcraw">
|
---|
| 236 | <term><command>simple_dcraw</command></term>
|
---|
| 237 | <listitem>
|
---|
| 238 | <para>
|
---|
[4c24eb0a] | 239 | emulates call to "dcraw [-D] [-T] [-v] [-e] [-4]" (see
|
---|
| 240 | <ulink url="&dcraw-manpage-url;"> DCRAW manpage</ulink>)
|
---|
[2a879b7c] | 241 | </para>
|
---|
| 242 | <indexterm zone="libraw simple_dcraw">
|
---|
| 243 | <primary sortas="b-simple_dcraw">simple_dcraw</primary>
|
---|
| 244 | </indexterm>
|
---|
| 245 | </listitem>
|
---|
| 246 | </varlistentry>
|
---|
| 247 |
|
---|
| 248 | <varlistentry id="dcraw_emu">
|
---|
| 249 | <term><command>dcraw_emu</command></term>
|
---|
| 250 | <listitem>
|
---|
| 251 | <para>
|
---|
[4c24eb0a] | 252 | is an almost complete dcraw emulator (see
|
---|
| 253 | <ulink url="&dcraw-manpage-url;"> DCRAW manpage</ulink>)
|
---|
[2a879b7c] | 254 | </para>
|
---|
| 255 | <indexterm zone="libraw dcraw_emu">
|
---|
| 256 | <primary sortas="b-dcraw_emu">dcraw_emu</primary>
|
---|
| 257 | </indexterm>
|
---|
| 258 | </listitem>
|
---|
| 259 | </varlistentry>
|
---|
| 260 |
|
---|
| 261 | <varlistentry id="half_mt">
|
---|
| 262 | <term><command>half_mt</command></term>
|
---|
| 263 | <listitem>
|
---|
| 264 | <para>
|
---|
[4c24eb0a] | 265 | emulates call to "dcraw -h [-w] [-a] [-v]" (see
|
---|
| 266 | <ulink url="&dcraw-manpage-url;">DCRAW manpage</ulink>)
|
---|
[2a879b7c] | 267 | </para>
|
---|
| 268 | <indexterm zone="libraw half_mt">
|
---|
| 269 | <primary sortas="b-half_mt">half_mt</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
| 274 | <varlistentry id="multirender_test">
|
---|
| 275 | <term><command>multirender_test</command></term>
|
---|
| 276 | <listitem>
|
---|
| 277 | <para>
|
---|
[8b9ad6e] | 278 | creates eight different renderings from one source file.
|
---|
[4c24eb0a] | 279 | The first and fourth one should be identical
|
---|
[2a879b7c] | 280 | </para>
|
---|
| 281 | <indexterm zone="libraw multirender_test">
|
---|
| 282 | <primary sortas="b-multirender_test">multirender_test</primary>
|
---|
| 283 | </indexterm>
|
---|
| 284 | </listitem>
|
---|
| 285 | </varlistentry>
|
---|
| 286 |
|
---|
| 287 | <varlistentry id="raw-identify">
|
---|
| 288 | <term><command>raw-identify</command></term>
|
---|
| 289 | <listitem>
|
---|
| 290 | <para>
|
---|
[4c24eb0a] | 291 | emulates call to "dcraw -i [-v]" (see
|
---|
| 292 | <ulink url="&dcraw-manpage-url;"> DCRAW manpage</ulink>)
|
---|
[2a879b7c] | 293 | </para>
|
---|
| 294 | <indexterm zone="libraw raw-identify">
|
---|
| 295 | <primary sortas="b-raw-identify">half_mt</primary>
|
---|
| 296 | </indexterm>
|
---|
| 297 | </listitem>
|
---|
| 298 | </varlistentry>
|
---|
| 299 |
|
---|
| 300 | <varlistentry id="unprocessed_raw">
|
---|
| 301 | <term><command>unprocessed_raw</command></term>
|
---|
| 302 | <listitem>
|
---|
| 303 | <para>
|
---|
[8b9ad6e] | 304 | generates unprocessed raw image: with masked pixels and without
|
---|
[4c24eb0a] | 305 | black subtraction
|
---|
[2a879b7c] | 306 | </para>
|
---|
| 307 | <indexterm zone="libraw unprocessed_raw">
|
---|
| 308 | <primary sortas="b-unprocessed_raw">unprocessed_raw</primary>
|
---|
| 309 | </indexterm>
|
---|
| 310 | </listitem>
|
---|
| 311 | </varlistentry>
|
---|
| 312 |
|
---|
| 313 | <!-- <varlistentry id="libraw-lib">
|
---|
[6054745] | 314 | <term><filename class='libraryfile'>libraw.so</filename></term>
|
---|
| 315 | <listitem>
|
---|
| 316 | <para>
|
---|
| 317 | contains functions used for parsing, editing, and saving
|
---|
| 318 | data.
|
---|
| 319 | </para>
|
---|
| 320 | <indexterm zone="libraw libraw-lib">
|
---|
| 321 | <primary sortas="c-libraw">libraw.so</primary>
|
---|
| 322 | </indexterm>
|
---|
| 323 | </listitem>
|
---|
[2a879b7c] | 324 | </varlistentry> -->
|
---|
[6054745] | 325 |
|
---|
| 326 | </variablelist>
|
---|
[2a879b7c] | 327 |
|
---|
[6054745] | 328 | </sect2>
|
---|
| 329 |
|
---|
| 330 | </sect1>
|
---|