[libcamera-devel] softISP for libcamera

Bryan O'Donoghue pure.logic at nexus-software.ie
Tue Dec 5 15:55:08 CET 2023


On 05/12/2023 14:46, Pavel Machek via libcamera-devel 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.
> 
> Thank you, that got me something working.
> 
> I believe modifying the code to support bayer8 was fairly easy (but I
> did not look at the results yet).
> 
> Unfortunately processing is quite slow:
> 
> 58747.865896 (0.57 fps) cam0-stream0 seq: 000016 bytesused: 2752812
> 58750.104232 (0.45 fps) cam0-stream0 seq: 000035 bytesused: 2752812
> 58752.342576 (0.45 fps) cam0-stream0 seq: 000054 bytesused: 2752812
> 58754.580913 (0.45 fps) cam0-stream0 seq: 000073 bytesused: 2752812
> 58756.819244 (0.45 fps) cam0-stream0 seq: 000092 bytesused: 2752812
> 58759.057586 (0.45 fps) cam0-stream0 seq: 000111 bytesused: 2752812
> 
> Am I right that you only use top 8 bits from the bayer10 data?
> 
> Best regards,
> 								Pavel

Seems very low, I wonder is it related to softisp conversion or 
something else ?

Get 30fps @ 120 cpu usage on this branch on qcom kyro 495.

What kind of data-rate do you get with just a raw capture ?

You might try out Hans' debayer optimisations which gets me aprox 50% 
conversions improvement

https://gitlab.freedesktop.org/camera/libcamera-softisp/-/tree/SoftwareISP-v01-hans1?ref_type=heads

---
bod


More information about the libcamera-devel mailing list