Recent comments

Reply to: Libraw-Licensing   8 years 7 months ago

CDDL will be the weapon of my choice then. Thanks for your instant support. :)

Reply to: Libraw-Licensing   8 years 7 months ago

1) We want to drop this license, so please select from CDDL/LGPL2 (btw, LibRaw license do not cover updates, so in general you need to re-sign when you go from LibRaw 0.17 to 0.18).

2-3) CDDL is very permissive, so yes for both questions

Reply to: Libraw-Licensing   8 years 7 months ago

Thanks for claryfying, Alex :). I have a few follow-up questions though.

1.) Is it possible to use the (own) libraw-license for 0.17?
2.) Which licenses allow static linking without disclosing the complete source?
3.) Which licenses allow including of the source-code without disclosing the complete source?

Cheers, Brian

Reply to: Libraw-Licensing   8 years 7 months ago

LibRaw is licensed in triple-licensing form:
- LGPL2
- or CDDL
- or LibRaw own license (to be dropped in 0.18-release, because all signed agreements has ended).

You (app developer) is free to choose license (from LGPL/CDDL if you wish to use LibRaw 0.18 when we'll release it) that suits you best.

In short:

LGPL2 allows use in Commercial App if you use Library (LibRaw in this case) as shared-library and has published in open-source (under LGPL2) any changes you made to Library source. If you use LibRaw unmodified, you only need to use it in shared-library form (.DLL/.so/.dylib)

CDDL is more permissive, you may just use the library and do not forced to publish your changes to it.

Attribution is needed in both cases. Written/signed form is not needed.

Reply to: dcraw_emu produces a different output than the original dcraw   8 years 7 months ago

For EOS 6D different color profile is used because dcraw's is not good enough.

Also, LibRaw has changed auto-brighness method, so disable auto-brightness for comparison

Reply to: Canon 5D Mark IV support   8 years 8 months ago

Thanks, I look forward to the next snapshot.

Reply to: Canon 5D Mark IV support   8 years 8 months ago

We publish 'public snapshot' twice a year and 'release' once a year or so.

5D4 (and dozens of other cameras) to be supported in next snapshot (in October or so). Current snapshot can read 5D4 files, but you'll need to set black level manually.

Reply to: Sigma X3F CFA images   8 years 8 months ago

Thank you.

Just for knowledge.
How does it work without Bayer filter to get color ?

EDIT: nevermind, I think I found on wikipedia.

Thanks again for your kindness

Reply to: Sigma X3F CFA images   8 years 8 months ago

Yes.

There are 3 pointers in rawdata (raw_data, color3_data, color4_data and only one is not NULL after unpack)

Reply to: Read Fuji RAF in CFA   8 years 8 months ago

Damn, no C API :).

I have to take a look in dcraw.c to see how it is done .... But this code is no easily readable :).

Best regards

Reply to: Read Fuji RAF in CFA   8 years 8 months ago

Thanks !! I will take a look.

Regards

Reply to: Read Fuji RAF in CFA   8 years 8 months ago

Sorry for misinformation.

There is LibRaw::copy_fuji_uncropped() that do the trick.

If you do not use image[][4] array, you may copy-paste it and adopt to your needs.

Reply to: Read Fuji RAF in CFA   8 years 8 months ago

There is no separate LibRaw call to rotate fuji data.

Rotation is performed within LibRaw::raw2image_ex call (which copies data from raw_image array to image[][4] array)

Reply to: Read Fuji RAF in CFA   8 years 8 months ago

Hello Alex.

I've correctly opened RAF file without frames thanks to you.
Now I have to apply the scale to transform my picture from this http://hpics.li/ffe7b4f to this http://hpics.li/f653896.

You say that 45deg rotation allows to use only integer math for the scale? What is the function in dcraw (or libraw) doing that ?
fuji_rotate() is only use in the case of debayered data to go back to normal picture.

Cheers

Reply to: Java JNI support   8 years 8 months ago

I would like to know that as well, the only java solution so far was found in the jAlbum binaries (they seem to have written their own port).

Reply to: Read Fuji RAF in CFA   8 years 8 months ago

I think I should go ahead because I did understand.

Thanks for your help with Fuji

Reply to: Read Fuji RAF in CFA   8 years 8 months ago

What I mean, is when I run this:
dcraw -v -T -4 -o 0 -D -t 0 -k 0 -H 1 image.CR2

I do not have any black frames, and this is the behavior I'm trying to reproduce. I've had this with the use of width and height (but RAF files was buggy).

By the way, many thanks for helping me!!

Reply to: Read Fuji RAF in CFA   8 years 8 months ago

Sorry, cannot understand your question.
Initially your question was about 'dcraw -D' so document mode, so full access to raw with black frame.

Reply to: Read Fuji RAF in CFA   8 years 8 months ago

Correct me if I'm not right, but it was not working because in RAF file you have left and right frame. But in others, like CR2 you have left and top (If I well remember).
So how we remove frames if they aren't in the same place ?

Reply to: Read Fuji RAF in CFA   8 years 8 months ago
OK.

OK.
Fuji are kind of tricky. Thank you for all your advices.
But by using raw_width and raw_height I have black frames I do not want. It was the reason I used width and height.
But apparently this is a problem for Fuji !!

EDIT: and I also have
==21644== Invalid read of size 2 in the line
buf[i++] = raw->rawdata.raw_image[offset + col + (raw_width * row)] ;

EDIT2: Sorry, this is only because offset is not necessary anymore with raw_width and raw_height.

Reply to: Read Fuji RAF in CFA   8 years 8 months ago

Yes, Fuji S2/S3/S5 (and, may be, other Super-CCD cameras) use different aspect ratio, not 1:1

The rotate trick is to scale 1:1.41 images to square pixels using only integer math.

Reply to: Read Fuji RAF in CFA   8 years 8 months ago

Thank you for the tip about only using raw_width and raw_height.
But by doing like this I have:
http://hpics.li/d461ad2
width and height are not good at all ...
All other images seem to work correctly.

Reply to: Read Fuji RAF in CFA   8 years 8 months ago

Fuji is not different, raw access is the same.
The only difference is not 1:1 aspect ratio on some (very) old Fuji cameras.

BTW, please use raw_width/raw_height in your code, not width/heigh (and not iwidth/iheight)

Reply to: Canon 80D scattered image   8 years 8 months ago

imgdata.sizes.flip contains rotation information got from file
imgdata.params.user_flip - rotation, forced by user

Both are in same format: 0=none, 3=180, 5=90CCW, 6=90CW

libraw_processed_image_t (result from ..mem_image() calls) contains height/with of (rotated) image.

Reply to: Canon 80D scattered image   8 years 8 months ago

I wonder is there any way that I can get the rotation information using the API?

Pages