LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

Segmentation fault when called subtract_black() version LibRaw-0.15.0-Beta1

Probed with .CR2 file from canon 350d.

Segmentation fault launch at line 2204 of libraw_cxx.cpp

 
2202           for(i=0; i< size*4; i++)
2203              {
2204               int val = imgdata.image[0][i];
2205                val -= cblk[i & 3];
2205                imgdata.image[0][i] = CLIP(val);
2205                if(C.data_maximum < val) C.data_maximum = val;
2205              }

Forums: 

Cannot figure out correct color conversion

I trying to get correct color after iProcessor.unpack(), but was puzzled by contents of libraw_colordata_t structure. Suppose that I have already done demosaicing but still have color in camera color space. What formulas do I need to use to convert (R,G,B) -> (X,Y,Z)? I tried these without success:

Forums: 

Crash with NEF file in scale_colors

Hi,
I'm trying out Libraw 14.6 and many images seem to work fine, but an old Nikon D70 NEF is causing crashes that seem to occur in scale_colors.

Can someone please test this file with the latest version and let me know if the crash is real or I am doing something wrong when using the library?
http://saar.se/temp/_DSC0178.NEF

Regards,
William

Forums: 

Problem with precompiled libraw 0.14.7

// typedefinition: somewhere in another h file:
 
typedef libraw_data_t *           (*libraw_init_dll_def)(int v);
typedef void                      (*libraw_set_progress_handler_dll_def)(libraw_data_t*,progress_callback cb,void *datap);
typedef int                       (*libraw_open_file_dll_def)(libraw_data_t*, const char *);
typedef int                       (*libraw_adjust_sizes_info_only_dll_def)(libraw_data_t*);
typedef void                      (*libraw_close_dll_def)(libraw_data_t*);
typedef int                       (*libraw_unpack_dll_def)(libraw_data_t*);

Forums: 

Cannot do "Native Building" using LibRaw-0.15.0-Alpha1

I could build the .lib, .dll and samples using LibRaw-0.14.7 by following the instructions of "Windows: Native Building". However when I tried to do the same thing using LibRaw-0.15.0-Alpha1, I got an error saying that

"cl.exe /EHsc /MP /MT /I. /DWIN32 /O2 /W0 /nologo /DUSE_JPEG /I..\jpeg-8d /DLIBRAW_BUILDLIB /Fo"object\\dcraw_common.obj" /c internal\dcraw_common.cpp
dcraw_common.cpp
.\internal/defines.h(58) : fatal error C1083: Cannot open include file: 'jpeglib.h': No such file or directory"

Does anyone know why??

Forums: 

Build LibRaw for Windows 64bit

Hi Everyone,
I've just downloaded LibRaw and I want to use it in my project. I got the source files and I built it in my Visual Studio 2010 as 64 bit. However, When I tried to integrate it to my project, I got the errors below. I believe there is something about the way it is compiled - my project usually only accepts static libs, that might be the problem.
Could you help me? Maybe telling me how to compile LibRaw as static lib...

Error	286	error LNK2005: atoi already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(atox.obj)

Forums: 

Noob Compilation question on linux (ubuntu 11.10)

Hi,
So I configured and ran make in the libraw folder. The library has been installed.
I just want to compile a very simple program on this page http://www.libraw.org/docs/Samples-LibRaw-eng.html
I have replaced the function name with main and file pointer with a constant.
What I don't get is to how to actually compile it.

I run the following command in the terminal
g++ -o rawexec -I/usr/local/include -L/usr/local/lib -lraw librawfile.cpp
and get a bunch of errors:
/usr/local/lib/libraw.so: undefined reference to `GOMP_loop_dynamic_next'

Forums: 

Pages

Subscribe to RSS - LibRaw technical support