Recent comments

Reply to: Building shared library on all OS's   4 years 2 months ago

I have now tried the osx binary.zip file but I does not build at all (./configure was fine, but make had issues)
libraw-osx % make
cd . && /bin/sh automake --foreign
/usr/local/bin/automake: line 23: package: command not found
/usr/local/bin/automake: line 25: use: command not found
/usr/local/bin/automake: line 26: use: command not found
/usr/local/bin/automake: line 27: use: command not found
/usr/local/bin/automake: line 29: BEGIN: command not found
/usr/local/bin/automake: automake: line 31: syntax error near unexpected token `@INC,'
/usr/local/bin/automake: automake: line 31: ` unshift (@INC, '/usr/local/Cellar/automake/1.16.3/share/automake-1.16')'
make: *** [Makefile.in] Error 1

Then I tried a github checkout:
This time I could build with configure and make but the result is always under the lib folder "libraw.a" instat of the "libraw.dylib".

Then I tried the same on Ubuntu and ended up as well with "libraw.a".

How can I get the system to build a shared lib ?

Reply to: Building shared library on all OS's   4 years 2 months ago

Thank you for the hint. I will download in the evening and will try to use the configure install option and report back how it worked out.

Reply to: Building shared library on all OS's   4 years 2 months ago

Also you can use LibRaw 0.20 (see Download section on this site) with pre-generated configure stuff.

Reply to: Building shared library on all OS's   4 years 2 months ago

> But I have to copy Makefile.dist to Makefile.in.

This will not work.
Please use autoreconf --install in full scale.

Reply to: Building shared library on all OS's   4 years 2 months ago

Yes but got some warnings. But I have to copy Makefile.dist to Makefile.in.

After that change configure runs to the end. Before it ends with error message that Makefile.in cannot be found.

Reply to: Building shared library on all OS's   4 years 2 months ago

Have you tried autoreconf, than configure?

Reply to: Building shared library on all OS's   4 years 2 months ago

The build environment I am using is OSX 10.15 with xcode and autoreconf installed.

For Windows I could build the dll. But under osx/linux I am getting only the static lib.

Reply to: Building shared library on all OS's   4 years 2 months ago

shared lib/dll/dylib creation is OS specific, it is not easy to create it via single change of Makefile.dist.

If your build environment(s) has GNU autotools/automake installed you could create ./configure script via

autoreconf --install

Than use ./configure && make.

For Windows, dll is created by using Makefile.msvc

Reply to: Windows & LCMS   4 years 2 months ago

Thanks Alex

I have it compiled and working. Works really well :-)

Andy

Reply to: Windows & LCMS   4 years 2 months ago

(I've seen your another messages that lcms linking problem has solved).

LCMS is used only if
- custom camera profile is provided via imgdata.params
- output color profile is provided the same way (or output is sRGB)
- LCMS support is compiled in

LCMS support does nothing in normal processing pipeline (no custom color profile).

Reply to: Build shared object while using libraw   4 years 2 months ago

What is 'original CR2 image' brightness?

Do you compare rendered RAW image with built-in JPEG preview?

Reply to: Build shared object while using libraw   4 years 2 months ago

Hi. Thanks for putting this example. I tried the same with CR2 images. But the converted image (in OpenCV) is brighter than the original CR2 image. What should I do?

Reply to: Delphi Wrapper?   4 years 3 months ago

Delphi XE2?

Do not use a 10 years old IDE. Upgrade to latest Delphi or use latest Lazarus IDE.

Reply to: Delphi Wrapper?   4 years 3 months ago

Hi ,

i tried your simple example in delphi xe2
using the libraw -wrapper
but the return of strings - like error messages
does not work - i just get "??????" for the error code -100009

Source:

err := libraw_open_file(handler, pchar('C:\temp\nikon\test.NEF'));
if (err <> LibRaw_errors.LIBRAW_SUCCESS) then
begin
WriteLn('Open: ' + IntToStr(integer(err)) + ': ' +
libraw_strerror(err));

as err is being filled correctly ( even though the file exists ? )
the output of libraw_strerror(err) is just "???????"

if i convert the console-app to a vcl-app the return looks more like japanes characters ...

so something goes wrong be reading the strings from the function
does someone have an idea ?

thx

Reply to: Access compressed RAW data   4 years 3 months ago

Thank you for your feedback. I'm going to inquire about libtiff.

Regards

Reply to: Access compressed RAW data   4 years 3 months ago

DNG format is really TIFF 6.0 + (lot of) extra tags for metadata.

Compressed DNG files are usually stored in tiles (each tile compressed separately)

If you want to read 'original' (i.e. compressed) data, libtiff is much better fit for this task.

Reply to: LibRaw 202101 snapshot   4 years 3 months ago

Ah, got it. Thanks.

Reply to: LibRaw 202101 snapshot   4 years 3 months ago

And also: https://github.com/LibRaw/LibRaw/blob/master/doc/API-datastruct.html#L48...

(sorry do not see the way to highlight it in html-formatted mode)

Reply to: LibRaw 202101 snapshot   4 years 3 months ago

rawProcessor->imgdata.params.use_rawspeed = 1

Produces compile error. params.use_rawspeed is not found.

Reply to: LibRaw 202101 snapshot   4 years 3 months ago

RawSpeed support is here and not changed.

Reply to: LibRaw 202101 snapshot   4 years 3 months ago

It seems that RawSpeed support is removed from this release?

Reply to: Again CR3 images from EOS-R5   4 years 3 months ago

What I see in this file (downloaded yesterday from the link posted above):
- starting from offset 1788B23 (hex) it contains zero bytes only
- first 40% of the file looks OK.

Probably, previews are in first 40%

Reply to: Again CR3 images from EOS-R5   4 years 3 months ago

Hello
The Track1:JpgFromRaw, Quicktime:PreviewImage and Canon:ThumnailImage fields embed a correct JPEG.
Jean

Reply to: Again CR3 images from EOS-R5   4 years 3 months ago

Hello,

thanks for your investigations.

Sorry, I cannot answer your question, whether the file is damaged or not.
I downloaded the image accidentally for some tests with Exiftool and I also tried to open it with libraw.

Thanks again and
Best regards
herb

Pages