libraw-0.22.2

#### Beyond Linux® From Scratch (System V Edition) - Version r13.0-1374

### Chapter 10. Graphics and Font Libraries

- Prev

  libqrencode-4.1.1

- Next

  librsvg-2.62.3

- Up
- Home

# libraw-0.22.2

## Introduction to libraw

Libraw is a library for reading RAW files obtained from digital cameras (CRW/CR2, NEF, RAF, DNG, and others).

### Note

This version of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable version of the System V books.

### Package Information

- Download (HTTP): https://www.libraw.org/data/LibRaw-0.22.2.tar.gz

- Download MD5 sum: 18b348b6c461d92fac7fd991c816b50a

- Download size: 1.7 MB

- Estimated disk space required: 43 MB

- Estimated build time: 0.1 SBU (Using parallelism=4)

### libraw Dependencies

#### Recommended

libjpeg-turbo-3.2.0, jasper-4.2.9, and Little CMS-2.19.1

## Installation of libraw

Install libraw by running the following commands:

    ./configure --prefix=/usr    \
                --enable-jpeg    \
                --enable-jasper  \
                --enable-lcms    \
                --disable-static \
                --docdir=/usr/share/doc/libraw-0.22.2 &&
    make

This package does not come with a test suite.

Now, as the `root` user:

    make install

## Command Explanations

`--enable-jpeg`: This switch enables support for JPEG images. Remove it if you don't have libjpeg-turbo-3.2.0 installed.

`--enable-jasper`: This switch enables support for JPEG2000 images. Remove it if you don't have jasper-4.2.9 installed.

`--enable-lcms`: This switch enables support for color management. Remove it if you don't have Little CMS-2.19.1 installed.

`--disable-static`: This switch prevents installation of static versions of the libraries.

## Contents

### Note

All of the installed programs are examples of using libraw.

Installed Programs: 4channels, dcraw_emu, dcraw_half, half_mt, mem_image, multirender_test, postprocessing_benchmark, raw-identify, rawtextdump, simple_dcraw, and unprocessed_raw
Installed Library: libraw.so and libraw_r.so
Installed Directories: /usr/include/libraw and /usr/share/doc/libraw-0.22.2

### Short Descriptions

4channels | generates four TIFF files from RAW data, with one file per channel
dcraw_half | emulates running "dcraw -h" (see DCRAW manpage)
mem_image | emulates running "dcraw [-4] [-6] [-e]" (see DCRAW manpage)
postprocessing_benchmark | creates eight different renderings from one source file. The first and fourth one should be identical
simple_dcraw | emulates running "dcraw [-D] [-T] [-v] [-e] [-4]" (see DCRAW manpage)
dcraw_emu | is an almost complete dcraw emulator (see DCRAW manpage)
half_mt | emulates running "dcraw -h [-w] [-a] [-v]" (see DCRAW manpage)
multirender_test | creates eight different renderings from one source file. The first and fourth one should be identical
raw-identify | emulates running "dcraw -i [-v]" (see DCRAW manpage)
rawtextdump | dumps a (small) selection of a RAW file as tab-separated text file
unprocessed_raw | generates an unprocessed raw image (with masked pixels and without black subtraction)
`libraw.so` | contains functions used for parsing, editing, and saving RAW image data.

- Prev

  libqrencode-4.1.1

- Next

  librsvg-2.62.3

- Up
- Home