LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

IsCameraSupported() ?

Is there a way to determine (after calling open_file() or unpack()) whether or not the camera that created the file is supported or not.

If all else fails I suppose I can iterate through all the supported camera names and say it's not supported if I can't find it. However I'm guessing the either open_file() or unpack() probably check whether the camera's supported anyway so this information might be available?

Thanks

Forums: 

Equivalent of scale_colors() for raw_image

I'm starting a new thread for this.

AFAICT the difference between dcraw -d and dcraw -D isn't just black subraction. It would seem the dcraw-d calls scale_colors() on the image.

This appears to operates on an (internal?) 4 component image array rather than on the single component raw_image and the code is (to say the least) somewhat complex.

I'm not an expert on image processing - just trying to convert some existing code to use libraw instead of the orphaned dcraw, so can you recommend how best to scale the raw image in this case.

Sorry if I'm being a pain.

Forums: 

Capturing libraw output as if PGM/PPM data

Some code I am working on uses file i/o redirection and calls the old dcraw under the covers.

Depending on the processing options passed to dcraw, the ouput is passed to the code by the following:

// Intercept the fprintf calls in write_ppm_tiff() for PGM/PPM file output.
int Printf(const char *format, va_list va) // intercepts the fprintf calls in write_ppm_tiff()
{
int nResult;
CString strText;

strText.FormatV(format, va);
nResult = strText.GetLength();

AddToBuffer(strText.GetBuffer(10000), nResult);

Forums: 

Unusual code to check for greyscale image?

I'm looking at some old code that uses dcraw under the covers using file i/o redirection.

The line in question looks like:

m_bColorRAW = is_foveon || !filters;

which is about as clear as mud to me!!!

later on the code then uses this boolean set (or not set) document mode and also sets option -4:

if (!m_bColorRAW)
{
// Document mode (i.e. don't demosaic the image in libraw).
// so set dcraw option "-d "
:
};

Forums: 

Which aces colorspace is defined in -o 6

Hello,

a professor introduced me to libraw because I need to convert my raw files to linear tiff in a defined colorspace.
In the dcraw manpage you can find the argument -o 6 for ACES.
But what aces colorspace is ment by this?
AP1 seems to be a bit to greenish and ap0 a bit to red, but this is only in comparison to my memory.
I attached contact sheet that compares the two here https://ufile.io/chi40f32

Also, is there a way to extract the exact color matrix that is embedded in the .cr2 raw files?

Forums: 

Pages

Subscribe to RSS - LibRaw technical support