Recent comments

Reply to: linking libraw in Linux   11 years 1 week ago

It works now, thanks.

Reply to: linking libraw in Linux   11 years 1 week ago

Place libraries *after* your sources in linker command line:

g++ main.cpp -o readraw -lraw -lm
Reply to: LibRaw::open_file hang   11 years 3 weeks ago

Please drop a note if setting second open_file() parameter to 0 helps.
This means, that C++ I/O library on your platform is broken, while C FILE* I/O routines works fine.

Reply to: LibRaw::open_file hang   11 years 3 weeks ago

I figured as much. Since I haven't been able to recreate it on any devices here I was hoping there might be a logical source that I didn't know about.

Since the issue seems to be that opening is hanging I doubt it will help, but I'll create a new build set to force FILE* input for the user to run.

Reply to: LibRaw::open_file hang   11 years 3 weeks ago

There is no way to help you without 'reproducers'. I need sample file (which definitely hang).

To fully emulate dcraw behavior you need to pass second argument (max_buf_size) to LibRaw::open_file(filename, max_buf_size).
By default, small files are processed using C++ buffered streams (faster), while large files use FILE* internal interface similar to dcraw. Default value of max_buf_size is 250M.
Set it to 0 or 1 and you'll use (slower) FILE* interface for all files.

Reply to: Underexposing does not recover clipped highlights   11 years 1 month ago

Lightroom tries to recover highlights (i.e. modulate overexposed channel by differences in lower exposed channels) automatically.

You may try to use our RawDigger software ( www.rawdigger.com/download ) to explore the raw data histogram and see is real data clipping exists

Reply to: Underexposing does not recover clipped highlights   11 years 1 month ago

Thanks for your reply Alex!

I was wondering why there's so much more definition if I expose the same raw file down using lightroom?

Thanks a lot,

Nhat

Reply to: Using in VS to read/write DNG files   11 years 1 month ago

You may use LibRaw or Adobe DNG SDK to read DNG files and Adobe DNG SDK to write DNG files.

Reply to: Unpacking chunks/scanlines of rawdata   11 years 1 month ago

Unfortunately, partial unpacking is not supported.
For several (most common: Canon CR2, Nikon NEF) formats it is not possible because of compressed data structure (no chunks, entire image compressed).

Reply to: Underexposing does not recover clipped highlights   11 years 1 month ago

If you data is already clipped, the exposure correction will not help.
You may try to use highlight recovery (slow!), but it will help only if some details exists in some channels (e.g blue or red)

Reply to: About LibRaw   11 years 1 month ago

I'm not VB.NET programmer.
use simple_dcraw.cpp sample as guide (you need open_file then extract_thumb, then write thumb to memory buffer).

But I do not now how to call C++ library from VB.NET

Reply to: Using LibRaw directly within project   11 years 1 month ago

Also, you should not compile *all sources*
Both dcb-demosaic and wf-debanding are #included into demosaic-packs.cpp

Reply to: Using LibRaw directly within project   11 years 1 month ago

You definitely need this define for compiling libraw sources.

Reply to: Using LibRaw directly within project   11 years 1 month ago

No, I don't want to build libraw as a library, I want it to run from within the project like normal source code for debugging purposes like using gdb.

Reply to: Out of order call of libraw fucntion   11 years 1 month ago

Yes, thumbnail extraction based on x3f tools library (i.e. without demosaic packs) do not work yet (0.16 still in Alpha)

Reply to: Using LibRaw directly within project   11 years 1 month ago

You need additional define LIBRAW_LIBRARY_BUILD to build the library

Reply to: Out of order call of libraw fucntion   11 years 1 month ago

Just remembered I hadn't enabled the demosaic packs after the update. With the demosaic packs enabled the thumbnail extraction works. If you could still explain the out of order error for this case I'd appreciate it. Thanks!

Reply to: About LibRaw   11 years 1 month ago

Hi, I have downloaded VS project and succesfully comiled with VS desktop version 2012.
I am not C programmer but VB.NET
After compilation I got a bunch of exe files.
My mission is to create small thumbnail jpg image file from raw file. That is all.
How do I do that.

Rgards,
Dusan

Reply to: Mac issue in 0.15.2 vs. 0.14.8   11 years 3 months ago

Yes, major LibRaw versions (0.14 vs 0.15 or 0.13 vs 0.12) are binary incompatible.

Reply to: Mac issue in 0.15.2 vs. 0.14.8   11 years 3 months ago

Well, after hitting this with 0.15.3 again, I banged my head against it some more. As far as I can tell, there was something cached in XCode that even a Project, Clean wasn't taking care of. I moved all prior LibRAWs away, did a clean, and rebuilt and voila! No signs things were pointing to these, but I can only assume some structure size difference b/n 0.14 and 0.15 was getting things off.

Reply to: Problem with libraw 0.15.2   11 years 4 months ago

Hi Alex,

I am using your new version 0.15.3 and the error about the canon cr2 files (canon 50D) has gone.

Thanks for the very quick release :-)

All the best,
Michael

Reply to: Compile visual studio solution with demosaic pack   11 years 7 months ago

You need to
1) add LIBRAW_DEMOSAIC_PACK_GPL2 and/or LIBRAW_DEMOSAIC_PACK_GPL3 to C++ preprocessor defines
2) add path to Demosaic Pack(s) to #include path

Reply to: The usage of user_sat   11 years 7 months ago

user_sat is used to set RAW data saturation point (all values above user sat will be clipped).

This clipping occurs before white balance, so wrong user_sat may cause wrong colors, not only brightness change.

Use bright field if you wish to change output image brightness

Reply to: output_color = 0 and half_size = 1 gives RGBA-Color   11 years 7 months ago

could you provide sampe code you use?
The imgdata.image[] arraw is always 4-component (but not RGBA)
The dcraw_make_mem_image() call always creates 3-component output,

Reply to: libraw_imgother_t.timestamp is missing subseconds   11 years 7 months ago

There is no plans to add subseconds because
Canon tags are canon specific
changing time_t to anything more precise will broke programs uses this field.

BTW, you can use exiftool and specific canon tags for file renaming

Pages