Constructor

VipsImagedcrawload

Declaration [src]

int
vips_dcrawload (
  const char* filename,
  VipsImage** out,
  ...
)

Description [src]

Read a RAW camera file using LibRaw.

This loader supports the most RAW formats, including ARW, CR2, CR3, CRW, DNG, NEF, NRW, ORF, PEF, RAF, RAW, RW2, SRW, X3F, and many others.

The loader applies demosaicing and basic processing to produce an RGB or grayscale image suitable for further processing. It attaches XMP and ICC metadata, if present.

::: tip “Optional arguments” * bitdepth: gint, load as 8 or 16 bit data.

Parameters

filename const char*
 

File to load.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
out VipsImage
 

Output image.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.
... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.