LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

image scaled to 65535 even with no_auto_bright

I have two dng files taken with an iPhone under same setting and when opened from adobe's photoshop one image is saturated when the other clearly isn't. However when in libraw both images have maximum intensities at 65535.

Here's what I did in libraw. Is there something I did wrong?

1. open_file()
2. set params with no_auto_bright=1 and no_auto_scale=1
3. unpack()
4. dcraw_process()
5. get image with dcraw_make_mem_image()

Forums: 

Problems building libraw.dll

In the absence of an updated libraw.dll in your recent releases on Github, I tried to recompile the sources to create it here. I was eventually able to set everything up and run nmake on Makefile.msvc and it appeared to run to completion, but the resulting libraw.dll is apparently 32-bit and not 64-bit as required. Your instructions do not explain how to modify Makefile.msvc to produce 64-bit dll and lib files.

Forums: 

cam_xyz array differs from exiv2 output on Sony A7C

Hello all,

I found that the cam_xyz array returned by libraw doesn't match the one I got in exiv2 after going through Adobe DNG converter. I don't know which one is right. (The two match on my older D3300 camera).

I've uploaded a sample image on https://drive.google.com/drive/folders/1tBty_PqV_3LzDBytnj7d5dbH_C66Vu3d...

The cam_xyz array can be obtained from libraw as follow:

(in python)

Forums: 

Kodak kodak_radc_load_raw function

This function has a rather curious construct in it. There is a variable "int c" and there is:

         for (r=0; r <= !c; r++)

I believe many (most?) C compilers these days are going to result in an integer value of -1. So this for loop iterates once or zero times.

This is enclosed in a "FORC3" construct, which iterates c from 0 to 2.

Forums: 

LibRaw on RPi

Hello,

Can LibRaw be installed on a Raspberry Pi (running Raspbian or some other Linux flavor)? My apologies if this is a simple question - I had a look here (https://www.libraw.org/docs/Install-LibRaw-eng.html), but am a bit inexperienced with compiling and installing packages from source, and am not sure if the RPi hardware/OS is compatible (especially re. its processor architecture). Thank you!

Mike

Forums: 

LIBRAW Thread Safety

Hi team,
I had a question about whether libraw can be used to read and process RAW files in a multithreaded application when using the single-threaded library version. I was not able to get a clear idea based on the API description page: https://www.libraw.org/docs/API-notes.html.

I plan to create a rawProcessor and read a file on a single thread. I plan to use multiple threads to read multiple files simultaneously.

Forums: 

Pages

Subscribe to RSS - LibRaw technical support