LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

imgdata.sizes.raw_pitch is only available after unpacking?

Hi,

The document https://www.libraw.org/docs/API-CXX.html#open_datastream says that it will fill imgdata.sizes. However, it seems that raw_pitch is not really filled, and is only available after unpacking. Is this expected? Are there any fields listed in the doc also available only after unpacking? It will be useful to know this as unpacking takes time and I would like to be able to do some initialization in parallel based on the available data. Thanks!

Forums: 

iPhone 11 Halide DNG gives black image.

I am using libraw to try and read an image from an iPhone 11. I use the libraw->rawdata.raw_image field to access bayer data.

I have also tried converting the image with dng converter (no compression) and libraw still gives a black image.

Why could this error be happening?

The DNG file is here:
https://drive.google.com/file/d/1SlVyBiHgIamv7Z8G6qhA6A4KyTwxpvqZ/view?u...

Forums: 

Fuji X-Trans files opening slow

I am the developer of librawFX (https://github.com/lanthale/librawfx) and I am using with this way libraw. Generally all is working well and also the speed is good for reading raw files.

Nevertheless if I open Canon/Nikon file it takes 1-2 s to open the file (max. 3s). Opening a Sigma file takes around 3s. But if I open a fuji x-trans file it takes 15 - 20s.

Do I have to ship some extra libs to get here the same speed as with Sigma files ? Or is it a bug actually that it takes so long ?

Forums: 

Floating-point DNG: can convert it with libraw on macos, not on linux

Hi,

I have a DNG that I successfully converted with dcraw_emu on Mac OS (libraw 0.20.2 was installed with homebrew).
But on Debian 11, same command is not working (libraw 0.20.2-1), I get an error: cannot unpack file.dng: Corrupted data or unexpected EOF.

I tried to re-compile libraw to be sure that zlib is included, but no luck.

Here is the file: https://www.dropbox.com/s/d7u46lj8tevvjha/22_xav.dng?dl=0

Forums: 

What exactly is pre_mul in libraw_colordata_t?

Hi,

I am new to raw image processing, and was just playing LibRaw for a couple of weeks. I apologize if this question has been asked before. So, I was trying to read a .CR2 file. In my first version, the image was very green, and I found that it was because I didn't multiply pixels with pre_mul. With a bit of code tracing, I found that pre_mul is calculated (in my case, lossless jpeg decoder) in cam_xyz_coeff() in utils_dcraw.cpp as follow:

Forums: 

Issue while converting CR3 using draw_emu

Hi folks,

I am trying to use LibRAW to convert the CR3 files to tiff and then convert the tiff to jpeg using imagemagick. I want to run this as a container on AWS using Fargate (nodejs application).

The process runs perfectly for CR2 files but for CR3 file the tiff file is not getting created and draw_emu is not throwing any error too.

Command used for conversion:

dcraw_emu -6 -T -w -v test.cr3

Forums: 

Canon AFInfoData mismatch with ExifTool parsed result

CR3 file: https://www.dpreview.com/sample-galleries/8035448300/canon-eos-m50-mark-...

I've dumped the HTML analysis file though this: exiftool -htmldump IMG_0993.CR3.

Pls check the png comparison file uploaded below. The Libraw AFInfoData dropped a lot of useful info here.

Thanks~

Forums: 

Pages

Subscribe to RSS - LibRaw technical support