LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

Crashes in 0.18.8 potentially due to Chinese metadata?

Hi,

I'm using LibRaw 0.18.8 in an Android application amongst other things to read thumbnails. I'm seeing a lot of crashes that I cannot reproduce. All I have to go on are slightly unhelpful backtraces:

backtrace:
  #00  pc 0000000000032e50  <...>.so (_ZN6LibRaw12unpack_thumbEv+1076)

and less often:

Forums: 

0.19.0-Beta1: change to generate less warnings with mingw build

If I compile under mingw with the supplied configure, I get warnings from the mingw C++ compiler stating that winsock2.h should be included before windows.h. The following patch moves up the definition of winsock2.h in libraw_datastream.h, and then the warnings go away.

Forums: 

0.19.0-Beta1: small fix in thumbnail generation code

Two changes here:

1) use client_data structure, rather than assume the cinfo->err structure has extra space after it which holds the longjmp/setjmp buffer. (This is not a fix but a cleanup.)
2) make sure to return an error code in the event the thumbnail decoding fails.

By the way, is this the right place to submit bug reports?

--- src/libraw_cxx.cpp.dist 2018-02-27 22:35:04.000000000 -0800
+++ src/libraw_cxx.cpp 2018-03-18 23:38:39.000000000 -0700
@@ -4171,7 +4171,7 @@

Forums: 

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: 

Pages

Subscribe to RSS - LibRaw technical support