Recent comments

Reply to: Sony ILCE-7RM2   8 years 7 months ago

I'm running into the same issue with this camera. I understand that 0.17 won't be updated but would it be possible to point me to a patch that fixes this? Thanks.

Reply to: FujiExpoMidPointShift   8 years 7 months ago

Alex, thanks for your reply. Is there any info about how to interpret FujiExpoMidPointShift and apply it to an image?

At least with BaselineExposure, Adobe published information on how to convert that into a tone curve.

Reply to: FujiExpoMidPointShift   8 years 7 months ago

Yes, this is Fuji tag 0x9650

There is no public info how Adobe uses it.

Reply to: LibRaw 18.0 with LCMS2 and Libjpeg-turbo.   8 years 7 months ago

libjpeg-turbo is a 'plugin replacement' for libjpeg.

Just build it in JPEG8-compatible mode and use with libraw. It works.

Reply to: LibRaw 18.0 with LCMS2 and Libjpeg-turbo.   8 years 7 months ago

Is there an optional dependency on turbojpeg?

Reply to: LibRaw 18.0 with LCMS2 and Libjpeg-turbo.   8 years 7 months ago

Thanks.

That was the case, but now I am baffled. If building jasper on linux there are options like
--disable-static and
--enable-shared

On windows however I can only open the .dsw file which generates the solution, and the needed preprocessor definitions for dynamic build are nowhere in the documentation.

Reply to: C++ API   8 years 7 months ago

Depending of what you do in your code, you may prefer

- do not call raw2image()
- and use imgdata.rawdata.raw_image[] array

This way will not allocate extra (4-component per pixel) image array. It is preferred if you, for example, do own processing in floating point: image[] array is not needed in this case.

For non-bayer images:
- imgdata.rawdata.raw_image array will be NULL after unpack()
- and one of color3_image or color4_image will be not NULL.

Reply to: C++ API   8 years 7 months ago

I noticed that raw2image() does this and it felt redundant. So I was confused as what is the utility of it, having no historical knowledge about the library. I just started using libraw ( expect more of me around here :) ), so I think there's no point to use old workflows, which will most likely become obsolete soon.
I only wanted to make sure I understand what I am doing. Thank you for your explanation, now it is clear.
As a suggestion: if there would have been a repository for the documentation, I would have done the change myself.

Reply to: C++ API   8 years 7 months ago

Yes, this part of documentation is outdated. To be fixed ASAP.

If you want to process imgdata.image[] the same way you do it in LibRaw <=0.13, use
raw2image() call after unpack(): http://www.libraw.org/docs/API-CXX-eng.html#raw2image

Reply to: C++ API   8 years 7 months ago

Has anything changed since this page was written?
From my observations unpack doesn't fill image, as the documentation suggests, but it does fill raw_image. Is there an issue with the documentation, or am I doing something wrong?
I want to access unscaled, uneverything, as raw as possible, bayer data. For this, I assume I should only set the use_camera_matrix = 0; use_camera_wb=0; and unpack().

Reply to: LibRaw 18.0 with LCMS2 and Libjpeg-turbo.   8 years 7 months ago

Please try to decode R3D image. If it works, it may means you've linked jasper statically

Reply to: LibRaw 18.0 with LCMS2 and Libjpeg-turbo.   8 years 7 months ago

Sorry to bother you again, I managed to resolve the unistd.h issue, by defining JAS_WIN_MSVC_BUILD, and even though preprocessor understands USE_JASPER and looks for all dependencies I still get

jasper.dll ignored; no imports found from jasper.dll

What might be the issue, should I specify jasper in other project than libraw in the solution?

Reply to: Ok...I've downloaded LibRaw...and now what?   8 years 8 months ago

Sorry, no ideas on C/C++ library integration with VisualBasic.

Reply to: Ok...I've downloaded LibRaw...and now what?   8 years 8 months ago

I also have absolutely no clue.
I wrote a Microsoft Visual Basic program to select the pictures that I like and the ones that I don't like, and them send all the 'good' ones to my usb key so I take it out to print.
My friend saw my program and asked if I could include the capability to read .raw files in addition to the .jpgs, so I got here. Absolutely no clue.
I understand that this is a library, and my program should include it in the project and then call it. But that's it. Anyone can help?

(I remember the first time I opened the BASIC shell, and I had no idea... a friend sat by my side to teach me and in ten minutes I was programming like crazy... so yeah, it should be easy when someone shows you... but without it...)

Reply to: LibRaw 18.0 with LCMS2 and Libjpeg-turbo.   8 years 8 months ago

Yes, USE_JASPER

But libjusper is needed only for (old) Red JPEG2000-encoded files, no other format uses it.

Reply to: LibRaw 18.0 with LCMS2 and Libjpeg-turbo.   8 years 8 months ago

Thanks.

And as for JasPer I need to specify USE_JASPER? It's weird when I try to do that, because suddenly it wants unistd.h

Reply to: LibRaw 18.0 with LCMS2 and Libjpeg-turbo.   8 years 8 months ago

To use JPEG library you need to add defines USE_JPEG and USE_JPEG8 when you build LibRaw

To use LCMS add USE_LCMS define.

Reply to: Fuji X-E2 Firmware 4.0   8 years 8 months ago

That patch fixed it for the Fuji raw files that I have. Thanks, Alex!

Reply to: Extracting small resolution jpeg and GPS data from RAW files.   8 years 8 months ago

LibRaw::unpack_thumb() unpacks thumbnail in memory. See simple_dcraw sample (code within if(output_thumbs) ) for details.

other.gpsinfo is unparsed GPS block. New feature is other.parsed_gps with values parsed.
open_file() should be enough to read this data.

Reply to: Fuji X-E2 Firmware 4.0   8 years 8 months ago

Patch is simple:
Change these lines in internal/dcraw_common.cpp/parse_fuji()

      if ((tag = get4()) > 10000) tag = get4();
      width = tag;

to these

      if ((tag = get4()) > 10000) tag = get4();
      if (tag > 10000) tag = get4();
      width = tag;

(In FW 4.0 extra 4 bytes to binary data has added)

Reply to: Fuji X-E2 Firmware 4.0   8 years 8 months ago

0.17 to be updated only for critical security bugs, sorry.

Reply to: Fuji X-E2 Firmware 4.0   8 years 8 months ago

Thanks!

Any chance that this patch would be released as part of 0.17?

We have a number of users who are reporting this problem right now. Would it be possible to send us a patch sooner or point me in the right direction on how to fix it myself?

Thanks.

Reply to: Fuji X-E2 Firmware 4.0   8 years 8 months ago

X-E2 firmware 4.0 to be supported in next development snapshot.

We plan to release it in April.

Reply to: Exif extraction   8 years 8 months ago

There is no EXIF data block in LibRaw data (some EXIF values are parsed into imgdata.other fields).

Starting from LibRaw 0.17 you can install own EXIF/Metadata parser callback which will receive all tags at parse time.

Reply to: LibRaw 0.18-201511   8 years 8 months ago

Visual Studio is able to upgrade projects from older version to new one. Provided vcproj files are compatible with VS up to 2013 (have not tested 2015 version).

Is there any problem with project upgrade with VS2015?

Pages