[libcamera-devel] softISP for libcamera

Andrey Konovalov andrey.konovalov at linaro.org
Wed Dec 6 15:45:23 CET 2023


Hi Pavel!

On 06.12.2023 16:44, Pavel Machek wrote:
> Hi!
> 
>> I forgot to add the README.soft-isp.txt, in particular the command to setup the build:
>>
>> $ meson setup -Dprefix=$INSTALL_DIR -Dpipelines=simple/linaro -Dipas=simple/linaro $BUILD_DIR
>> $ ninja -C $BUILD_DIR
>> $ ninja -C $BUILD_DIR install
>>
>> With "-Dpipelines=simple/linaro -Dipas=simple/linaro" the libcamera/ipa/soft_ipa_interface.h
>> will be generated OK.
> 
> Thanks a lot, I got this all to work on pinephone.

Great news!

> I'd really like to see statistics gathering separated from
> debayer.

This is the plan.

> Another thing is that soft IPA is a bit too simplistic
> (soft_linaro.cpp):
> 
>          /*
>           * Try to use the minimal possible analogue gain.
>           * The exposure can be any value from exposure_min_ to exposure_max_,
>           * and normally this should keep the frame rate intact.
>           */
> 
> That will result in shooting at 1/15, ISO50 -- resulting in blurry
> photos (motion) -- even with sensors that could shoot at ISO500
> without getting grainy. RPI pipeline has support for this, with config
> file saying "stay at ISO50 to 1/60, then move iso up to ISO200 @ 1/60,
> then start adjusting exposure again". It would be nice to reuse it.
> 
> (Anyway, existing code is good enough for testing, and probably for
> webcam use).

In the current patch set the image processing is pretty basic.
This will be improved after the SoftISP software architecture is
settled up. Or maybe in parallel even.

Thanks,
Andrey

> Best regards,
> 								Pavel


More information about the libcamera-devel mailing list