LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

Fuji X-T2 raw decode speed difference between half and full

On a Mac Mini quad core i7 running High Sierra with 0.19.0-Beta1:

$ time /opt/local/x86_64-apple-darwin/bin/dcraw_emu -h -w ~/Downloads/fujifilm_x_t2_01.raf

real 0m0.988s
user 0m2.885s
sys 0m0.183s

$ time /opt/local/x86_64-apple-darwin/bin/dcraw_emu -w ~/Downloads/fujifilm_x_t2_01.raf

real 1m13.437s
user 1m14.630s
sys 0m0.543s

I notice the full raw decode is not using any threads. Even so, I was surprised to see the full version taking 25x more user computing time.

Forums: 

D65 or D50 sRGB

I'm trying to get some clarity around exactly which color-spaces are used in libraw's output, as I haven't yet been able to get my colors to look "right". I see in internal/dcraw_common.cpp, there is an xyzd50_srgb matrix. Given the name, and the numbers that are listed, this looks to be using a D50 whitepoint. However, the Wikipedia article on sRGB lists a different matrix which seems to assume a D65 whitepoint.

Forums: 

half size option for dcraw_emu

The "-h" option for dcraw_emu, which sets the half_size flag on imgdata.params, seems to only work for certain files or camera models -- is this by design? In particular, at https://github.com/LibRaw/LibRaw/blob/master/src/libraw_cxx.cpp#L3033-L3037, it looks like the half_size flag is only obeyed if filters is nonzero. I am not familiar enough with the code to understand when or how it gets set to something nonzero, so I'm hoping that someone here can help shed some light.

Forums: 

images get messed up upon opening

Hello,

I am having some issues opening images I took on my Canon 5D Mark IV on my Arch Linux machine with software such as Rawtherapee and UFRaw (not with darktable), which leads me to conclude that the issues are with libraw.
Im using libraw version 0.18.7-1.

The issue I'm having is that the images get messed up upon opening. I seems as if the image is beeing divided into some slices and then put back together in the wrong order. I attached an example image to this post.

Can anyone help me with this? Do you need any further information about my machine?

Forums: 

libraw_open_wfile not found on Windows with Mysys2

Hello.

I am trying to compile my software to Windows with the Mysys2 package manager. Everything is going right but one function.
Indeed, I was using libraw_open_file for my whole app but on Windows it crashes. So I tried to use libraw_open_wfile as defined in the documentation. But I have the following message:

warning: implicit declaration of function 'ibraw_open_wfile'; did you mean 'ibraw_open_file' ?

I went throug the include file and I saw these lines:

Forums: 

Getting all available data and still get the right active area from DNG

Hello, I have a DNG file that specifies DefaultCropOrigin and DefaultCropSize in its metadata. Using libraw I'd like to get all the sensor data available in the DNG file while still retaining informations about the default crop, so that the extra data doesn't get trimmed at this point.
I've patched dcraw_common.cpp to read the default crop info, but I'm still unable to get the result I want.

For reference this is my patch, though at this point I'm not sure this is the right way to do it:

Forums: 

Issue with Canon PowerShot cameras

Hello! I have some problems when open photos from:
Canon PowerShot G1 X,
Canon PowerShot G5 X,
Canon PowerShot G7 X,
Canon PowerShot G7 X Mark II,
Canon PowerShot S120,
Canon PowerShot S130 IS.

There is a vignette effect on every photo made by this cameras.
(Photo from http://www.rawsamples.ch/index.php/en/canon).

Tried v 0.18.6 and built libraw from master, but it didn`t solve the problem.

For example, OpenCV 3.3.0 opens this files correctly.

Forums: 

DNG file causes crash in LibRaw 0.19-Snapshot-20170812

Hi,

I have a DNG file that causes a crash in LibRaw 0.19-Snapshot-20170812 (no problem with LibRaw 0.8.16). The crash happens in the "unpack" function.

I used the Visual Studio project provided in LibRaw 0.19-Snapshot-20170812 without changing any settings. I opened and compiled the project with Visual Studio 2010 Express in 32bit / release mode. I did the same with LibRaw 0.18.6 and got not problem.

Forums: 

Pages

Subscribe to RSS - LibRaw technical support