Recent comments

Reply to: Underexposing does not recover clipped highlights   11 years 10 months 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 10 months 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 10 months 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 10 months 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 10 months 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 10 months 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 10 months ago

You definitely need this define for compiling libraw sources.

Reply to: Using LibRaw directly within project   11 years 10 months 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 10 months 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 10 months ago

You need additional define LIBRAW_LIBRARY_BUILD to build the library

Reply to: Out of order call of libraw fucntion   11 years 10 months 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 11 months 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   12 years 3 weeks 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   12 years 3 weeks 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   12 years 2 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   12 years 4 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   12 years 5 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   12 years 5 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   12 years 5 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

Reply to: Error occurs while using libraw.dll in VS 2010   12 years 5 months ago

I solved the problem by creating another new project in VS2010 and copy everything to the new project. I don't know why this can solve the problem though. Btw, examples work well. :)

Reply to: Error occurs while using libraw.dll in VS 2010   12 years 5 months ago

Are the LibRaw examples works OK?

Reply to: Exposure corrections problem   12 years 6 months ago

You also need to turn off auto brightness. If not, values will be scaled to fill full data range.

Reply to: Copy memory buffer to BitmapData   12 years 6 months ago

It may be caused by read-only memory in .Net Bitmap object (I know nothing about Bitmap type).

After you've called dcraw_make_mem_image, the RGB pixels are contained in image->data. You may try to create Bitmap directly from this array without extra copy_mem_image() call.

Reply to: Copy memory buffer to BitmapData   12 years 6 months ago

Thanks for your quick reply, but even though I changed the 'step' to image->width*3, it still gives me an error at the line of copy_mem_image(&bmpPtr, step, 0). The error is: Unhandled exception at 0x77ea15de in Raw_Tool.exe: 0xC0000005: Access violation. Could you tell me why?

Reply to: Copy memory buffer to BitmapData   12 years 6 months ago

Should the 'step', which is also called stride for bitmap, has to be a multiple of 4?? If width*3 is not multiple of 4, would it gives an error when creating an bitmap object??

Pages