LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

guidance needed to improve image quality

I implemented the simple generic decode using the dcraw model. I see that the resulting image quality is sometimes fine, sometimes problematic (brightness and color conversion incorrect). What am I missing? Am I expected to understand each camera's characteristics and add post-processing to correct the image?

Outline of implementation:

librawdata->params.use_camera_wb = 1;
librawdata->params.output_color = 1;
err = libraw_dcraw_process(librawdata);
RAWimage = libraw_dcraw_make_mem_image(librawdata,&err);

Forums: 

I still get LIBRAW_THUMBNAIL_UNKNOWN from master branch

I got the latest master branch, and when I decode the thumbnail for newer cameras such as Sony A73 and Fuji X-H1, thumbnail.tformat still returns LIBRAW_THUMBNAIL_UNKNOWN.

rawProcessor->unpack_thumb() does return LIBRAW_SUCCESS.

Despite getting LIBRAW_THUMBNAIL_UNKNOWN, I go ahead and treat it as LIBRAW_THUMBNAIL_JPEG and I was able to get the thumbnail (preview image) successfully.

I thought those newer cameras are supported in the master branch, so why am I still get LIBRAW_THUMBNAIL_UNKNOWN return code?

Forums: 

Pink/purple color cast on Sony A7III ARW file?

I'm using LibRaw 0.19.2.

I've this pink/purple color cast issue on just one ARW file taken with the Sony A7III. All the other files from the same camera so far looked fine.

But when I open this problematic file with FastRawViewer or other RAW converters, the colors look fine.

So why am I getting this color cast on this one file?

Forums: 

Reading a file that is just 8 bit Bayer pixels

I have a file from "fswebcam --dumpfile" that is just a stream of 8 bit pixel values. There is no other data in the file. Is it possible to read this into LibRaw and demosaic it into a file such as a TIFF or JPEG file? When I try to read the file in with imread(), it says that the file has an unsupported format.

Basically I want to be able to specify the XY size of the file and the pixel format so that LibRaw can read the file.

Thanks
Chris

Forums: 

order of operations (matrix, white balance etc)

Hello

I'm experimenting with converting raw (Fuji RAF) files and im struggling a little bit to understand the order of how operations are done.

My expectation would be:

dcraw_emu -4 -r 1 1 1 1 -o 0 (raw) -> Camera2rgb matrix -> white balance mult -> srgb = good picture!

However, this results in an overly saturated image with blue colours going into negative values

so I tried a few other combos:

Forums: 

libraw wide char format support on MSYS2

Dear all,
I'm developing a software that uses libraw. This software is multi-platform and is able to run on GNU/Linux, OS X, FreeBSD and Windows through MSYS2.
Indeed, libraw is available on MSYS2 and that makes things easy. However there's a small issue that is kind of annoying: I cannot use the function

libraw_open_wfile

as I would like to do. For example with libtiff i use TIFFOpenW.

Indeed, in libraw.h this line:

Forums: 

Pages

Subscribe to RSS - LibRaw technical support