LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

I don't understand why I get only 2 components data in all pixels

I tried to find some topic that already exists, and describes this problem, but I did not find one. Therefore, I decided to create this topic to seek help. I have a CR2 raw file, and I just want to get the raw pixel values, without "demosaic". Here is my source code so far:

Forums: 

Version Marking for 202403 Snapshot

Please could someone confirm the LibRaw version marking which should be displayed by an application using the 202403 snapshot?

I confess to being confused by LibRaw versioning. According to https://www.libraw.org/ "Minor updates (0.20.1, 0.20.2…) do not change the API/ABI and new cameras are not added; generally they are just bugfixes." Therefore I would expect 21.3 to just be a bugfix on 21.0.

Forums: 

RAW Processing Theory Resources (highlight recovery especially)

First, I solemnly swear I'm not expecting LibRaw to process my RAW data! I am trying to do my own RAW processing and LibRaw has wonderfully extracting the RAW data for me :)

I also recognize this forum isn't for RAW processing techniques, but there are many experienced people here so I'm hoping you all can point me to some resources that I can educate myself regarding the topic. I'm specifically interested to learn about different highlight recovery techniques.

Forums: 

Sony YCbCr white balance difference seems off

Hi,

I have a question regarding these two images:

https://drive.google.com/file/d/1FZDh3jiw-85sJy3qJUh-xL4E5fA1mEfV/view?u...
https://drive.google.com/file/d/1GWI7D2sY2VcZrlFASAzkSklQl7vJ0qYn/view?u...

These are Sony YCbCr images, shot at the same camera white balance. I see they have

Forums: 

Steps for building dcraw_emu with USE_DNGSDK

Hello!

I'm trying to build dcraw_emu with the DNG SDK support enabled and I can't figure out how to get the DNG SDK to generate static or dynamic libs to link against. I saw the commented out lines to enable DNG SDK Support in Makefile.dist, but when I build dngvalidate, it just builds the executable and doesn't populate libs into a release folder like the makefile is expecting.

Forums: 

JPXL preview in DNG, Adobe DNG SDK

I've integrated LibRaw with the Adobe DNG SDK, but it seems dcraw_make_mem_thumb() cannot be used to extract the embedded JPXL preview?

I can extract the embedded JPXL using ExifTool and save it to disk. The resulting JXL has 5472x3648 pixel and loads fine in Photoshop and Affinity. It looks like the "developed" DNG in ACR.

In my code, I do basically this:
...
plraw->set_dng_host(host.get());
plraw->imgdata.rawparams.use_dngsdk = LIBRAW_DNG_ALL;
plraw->imgdata.rawparams.options |= LIBRAW_RAWOPTIONS_ALLOW_JPEGXL_PREVIEWS;

Forums: 

White balance problem

Hi
I have some debayer sony images, and the WB coeffs confuse me. I find FRV will set the cam_mul to [1, 1, 1] different to Libraw. And when i convert raw to dng file, the value may be [1.73, 1.27, 1]. Can you explain why set to [1, 1, 1] for debayer images (just assume WB coeffs already applied). But for [1.73, 1.27, 1], the result looks not good.

Forums: 

Pages

Subscribe to RSS - LibRaw technical support