LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

Output Color Options

I'm using LibRaw in a macOS application for quickly showing thumbnails to a user of RAW files that aren't natively supported by macOS. It's working great, but I'm a bit confused by the documentation for:

dcraw_process

It says:

"The function is intended solely for demonstration and testing purposes; it is assumed that its source code will be used in most real applications as the reference material concerning the order of RAW data processing."

Forums: 

LibRaw threading requirements.

I'm attempting to use the LibRaw C++ API in a macOS Objective-C application. The LibRaw calls are being made inside an Objective-C++ file (.mm). However, I'm running into consistent crashes when attempting to use LibRaw on a background (non main) thread.

Simply declare a new LibRaw variable is enough to cause a crash:

LibRaw processor;

However, if I first switch over to the main thread using GCD, then it doesn't crash.

Forums: 

WB to Temp and Tint

Hi.
I know, this question was asked more than once, but I still have not been able to find a solution.
I want to translate the white balance coefficients into Temperature and Tint, as for example, this is done in FastRawViewer.
For this, I used dng_temperature from the DNG SDK (about the error with the typing I know).
I receive rgb_cam from cam_xyz with cam_xyz_coeff for my camera. The rgb_cam now stores the matrix from the camera to sRGB.

Forums: 

Saturation

Greetings to all. I ask for help. Did I understand correctly that the user_sat parameter does not change the saturation, in the sense that the saturate in HSL, but indicates the maximum change? So I can't change the saturation? In what situations and how should I change the user_sat?
Thank you in advance

Forums: 

libraw_dcraw_make_mem_image returns image with empty data size

When I call the method libraw_dcraw_make_mem_image the return result is a valid image pointer, but the image->data_size is 0, as well as width + height.
The error code is 317061776, and the image is obviously invalid. The previous call to libraw_dcraw_process returns a status code of 0.

Forums: 

Unpacking RAW without any processing using dcraw_emu

Hi,

I would like to just unpack raw data from a Fuji X-T2 camera and then continue to process the linear raw bayer data in MATLAB/Octave. Thus I am missing the -D option in dcraw_emu. Is there a way to save single channel non-debayered linear raw data to 16bit TIFF via dcraw_emu?

Thank you very much in advance for your help ,

Jan

Forums: 

Loading (unpacking), processing, but no interpolation

I've been using LibRaw for many years to grab the raw Bayer matrix out of files. It's worked like a charm and I love it. In some places, I'll have it not only load the raw data, but run its own debayers, but in other places, I need to be able to debayer on my own. Hence, the grabbing the raw Bayer matrix out.

As I understand it, though, if I set:
RawProcessor.imgdata.params.use_camera_wb = 1;
RawProcessor.imgdata.params.no_iterpolation = 1;
RawProcessor.dcraw_process();
libraw_processed_image_t *image = RawProcessor.dcraw_make_mem_image(&rval);

Forums: 

Pages

Subscribe to RSS - LibRaw technical support