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