LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

What can cause different output inside Docker container?

Hello,

I'm executing `dcraw_emu` inside a Docker container that uses `node:23-alpine` and the latest version of LibRaw.

When I run LibRaw to convert a DNG file inside the container running locally, I get good results. However, when the container is running on Digital Ocean, my results look very different: there's a lot of data lost in the output TIFF file that causes the result to look way too bright.

This happens only to a specific DNG file that comes from a scanner operated by SilverFast software. Other DNG files work fine and look the same on both systems.

Forums: 

Unknown error code (0x16) returned by libraw_dcraw_process()

Having correctly unpacked my raw image into raw_image, I tried to use libraw_dcraw_process() to create a debayered image with params.half_size = 1 (as per sample code), but I get a return code 22 (0x16) which libraw_strerror converts to "Unknown error code". Any hints as to what might be wrong?

Forums: 

JNA wrappers for LibRaw

I'm trying to write some JNA wrappers for LibRaw, but I'm struggling with the JNA spell for the raw data, specifically for the *raw_image member of the libraw_rawdata_t structure. I can access other members of this and other related structure as expected, but assuming that I would need to use a JNA Pointer type for *raw_image, I only ever get a null for this member after an unpack (no errors) call. I assume libraw.dlI allocates the memory for this data and return a pointer to a short array.

Forums: 

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: 

Pages

Subscribe to RSS - LibRaw technical support