LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

libraw-0.21.1\libraw\libraw_datastream.h(183) : error C3861: 'data': identifier not found

Hello,

I compiled the new LibRaw 0.21.1 as a Windows DLL - it worked perfectly as a 64-bit DLL, using the 2019 edition of Visual Studio.

I would also like to compile a 32-bit DLL using an older edition of Visual Studio, that works with Windows XP. When I do this, I get lots of these errors:

libraw-0.21.1\libraw\libraw_datastream.h(183) : error C3861: 'data': identifier not found

and

Forums: 

LibRaw 0.21.1 and RawSpeed v3

I followed the instructions on downloading a specific commit of rawspeed from DarkTable and I applied the 4 patches (actually, patch 01. is not needed as it is already in the rawspeed source code).

I was able to compile RawSpeed 3 successfully.

But when I enabled RawSpeed 3 support in the Makefile.dist of LibRaw and make the correct reference to the RawSpeed3 directory, LibRaw would compile but with the following linker errors:

Forums: 

Color Information - Documentation

Hi Alex:

In the Structure "libraw_colordata_t: Color Information", there are two arrays:-
float rgb_cam[3][4], described as "Camera to sRGB conversion matrix", and
float cmatrix[3][4], described as "Camera color data read from RAW file (if any)".

Could you advise me on the various properties contained within these arrays, or which source file(s) describes these arrays?

Thanks

Steve

Forums: 

preserving DNG brightness on conversion to RGB

I'm trying to use libRAW to convert some DNG files into a format readable from Matlab.

I take a number of images with specific exposure times and I need the conversion from DNG to any RGB format to preserve the relative luminosity of the images.

If I do the conversion using the Adobe DNG SDK it works well (I use stage 3 of the conversion, before auto-exposure and other processing).

If I use DCraw_emu from the libRAW Windows binaries, I see that the relative brightness of the images is altered.

Forums: 

libraw_rawdata_t not being populated with C API

While working with the C API, I found some behaviour that I think is probably user error (my error) but might be a bug, and if it is my error, I would like to know how to fix it.

Looking at the documentation, after calling libraw_unpack() I expect the libraw_rawdata_t structure to be populated with the raw data.

This is partially what is happening, libraw_rawdata_t.raw_image[] is populated with the raw bayer data, the data in the structure appears to be correct, and I can successfully demosaic it into a proper image.

Forums: 

Camera Makes and Models

Hi Alex

I am working on an astronomy software project in VB.NET accessing LibRaw through a Wrapper from https://github.com/hurlbertvisionlab.
To further test my software, would you be able to give me one example of camera Make and Model that produces output for each these 5 data fields i.e. presumably 5 different Makes/Models:-

unsigned short (*color3_image)[3]
unsigned short (*color4_image)[4]
float *float_image
float (*float3_image)[3]
float (*float4_image)[4]

Forums: 

Windows platform libraw bring in dng sdk has no effect or can't open dng file

Windows platform libraw bring in dng sdk has no effect or can't open dng file

I compiled dngsdk under Windows as described in dngsdk.txt and tested dng_validate and it works fine
But when I bring the entire dng sdk header file and static library into libraw to compile and set the `USE_DNGSDK ` preprocessing macro, it compiles fine but when I open the dng file with libraw, it tells me that it can't be opened for unsupported file formats. So I would like to ask if I am missing something?

Forums: 

Pages

Subscribe to RSS - LibRaw technical support