use of auto_ptr is deprecated and generates warnings in the mingw build. Enclosed is a patch to replace auto_ptr with unique_ptr, which eliminates these warnings with mingw (and hopefully future-proof).
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)
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.
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?
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.
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.
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?
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:
Recent comments