LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

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: 

MetaData

Using exiftool on a .CR2 photo converted to DNG, the following tags can be seen in the printout.

AS_SHOT_NEUTRAL
Raw Data Unique ID

However, when unpacking an image captured from the same camera (Canon 7D), I cannot find that data in the libRaw.imgdata structure, despite reading through the sub-structure data several times when in debug mode. I have found almost everything else needed.

I also scanned the documentation.

Any help wold be welcomed.

Thanks. Great library.

Forums: 

Pages

Subscribe to RSS - LibRaw technical support