Barrel distortion

Hi,
Is there any image processing function in LibRaw for correcting Barrel distortion?

Forums: 

No. Use lensfun.

No.

Use lensfun.

-- Alex Tutubalin

lensfun?

Sorry to say that I am new in this field.
what is this lensfun?

thanks

thanks

using distortion info stored in the Panasonic raw file

Unfortunately, lensfun (used bu darktable) doesn't correct the barrel distortion completely,
I have a wide angle shot with my Lumix DMC-FZ1000 where there are still distortions and dark areas near the corners which are not present if the raw file is processed by Silkypix (software distributed with the camera).

Lensfun does not use the embedded lens distortion parameters which are stored in each .rw2 raw file -
see https://syscall.eu/#pana

Which infrastructure of libraw could be used to implement distortion correction based on these data?

Many thanks for a hint,
Helmut

The only thing LibRaw can do

The only thing LibRaw can do for you is simplify EXIF parsing: you may install your own callback to receive all EXIF tags to catch tag 0x119 (as raw tag dump)

There is no barrel correction code in LibRaw postprocessing.

-- Alex Tutubalin