LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

Linking Libraw to VS project

I was able to compile the Libraw .lib, .dll, and examples programs successfully. I've tested the sample programs and they work. However, now I'm trying to link the library into a Visual Studio 2013 project I'm working on and can't figure out why it's not working.
Under Linker->Input->Additional Dependencies, I've added the path to the lib/libraw.lib file. At the top of my code I've also added a #include <libraw.h> and in C/C++->General->Additional Include Directories I've added the path to the LibRaw-0.16.2/libraw folder.

Forums: 

LibRaw image size data vs Adobe interpretation

Hi,

I have been doing some comparison of the size data (i.e., libraw_image_sizes_t struct) that LibRaw reads vs how Adobe interprets raw images (by using the DNG converter and reading the tags - same data as in Lightroom/Photoshop). Reason is that I'm working on a DNG-converter using LibRaw and would like the results to be as close to Adobe's version as possible (rightly or wrongly).

Forums: 

LibRaw 1.7beta1 vs dcraw 9.26 result

Hi,
I was trying to get the similar output to dcraw 9.26-x64 from LibRaw 1.7beta1-x64, but had no luck. Is it possible to get the exact 1:1 match to dcraw? It seems LibRaw is performing some sort of auto adjustment beyond "no_auto_bright", I tried "no_auto_scale" from my code too but it didn't help.

dcraw command:
"dcraw.exe" -v -w +M -n 10 -H 0 -o 1 -W -g 1.0 1.0 -q 3 -6 -4 -T "image.cr2"

dcraw_emu command:
"dcraw_emu.exe" -v -w +M -n 10 -H 0 -o 1 -W -g 1.0 1.0 -q 3 -6 -4 -T "image.cr2"

Forums: 

optimisation/bug in convert_to_rgb() ?

I'm wondering if the code in dcraw_common in convert_to_rgb() is wrong...

#ifndef LIBRAW_LIBRARY_BUILD
raw_color |= colors == 1 || document_mode ||
output_color < 1 || output_color > 5;
#else
...

I thought it should be setting libraw_internal_data.internal_output_params.raw_color so that the convert_to_rgb_loop() function would not apply the matrix?

Also I wondered about adding an option to not compute the histogram in that function?

Thanks

Kevin

Forums: 

Modify parameters of raw image

How can I modify parameters like "ISO speed","shutter ","timestamp".
For example : firstly, open a Raw file "test.CR2", then define LibRaw RawProcessor; i want to modify "shutter"of "test.CR2",my opinion is : RawProcessor.imagedata.other.shutter=8.9. But it does not work, the "test.CR2" file is not changed. how can i modify some parameters of RAW images.

Forums: 

Difference dcraw and dcraw_emu in sequential brightness.

Case: i have two exactly the same images, shot with 5 seconds in between.
These two images are visually identical when viewed:
In their JPEG preview.
In Adobe ACR
In dcraw (tested v9.22, 9.24 and 9.25) with commands -T -w -W.

Then when i use dcraw_emu as:
dcraw_emu -T -w -W

Forums: 

Relations between cam_xyz and rgb_cam

Hi,

First of all, thanks for library. I have to say LibRaw is amazing.

I was confused when I tried to transform color space between camera color space, sRGB, and CIE XYZ.

I have read the documents from https://github.com/LibRaw/LibRaw/blob/master/doc/API-datastruct.html
It seems cam_xyz converts from camera color space to CIE XYZ, and rgb_cam converts from camera color space to sRGB.

Forums: 

Pages

Subscribe to RSS - LibRaw technical support