[PATCH RFC 0/3] Pass sensor delays from rkisp1 IPA to the pipeline handler

Milan Zamazal mzamazal at redhat.com
Thu Oct 31 11:07:51 CET 2024


Hi Mikhail,

thank you for the patches.

Mikhail Rudenko <mike.rudenko at gmail.com> writes:

> Hi,
>
> At present, rkisp1 uses hardcoded sensor control delays. In the case
> when they do not match real sensor delays, the AGC algorithm operates
> in a suboptimal mode, leading to gain/exposure oscillations on capture
> start and slower convergence.
>
> This series does 3 things to fix this situation. 

Nice, later, it could be fixed for other pipelines too.

> First, it adds an IPC structure for sensor control delays. Second, it
> adds sensorDelays() method to the CameraSensorHelper and overrides it
> where sensor-specific delays are known. And finally, it replaces
> hardcoded delays in rkisp1 pipeline handler with those obtained from
> the CameraSensorHelper via IPA.
>
> I'm not completely sure this is the best solution from the
> architecture viewpoint, thus "RFC". Any feedback is welcome!

The approach looks good to me, I'm just not sure about the way
IPASensorDelays is passed around in the 3rd patch.  In any case, let's
see what the maintainers or others think.

> Mikhail Rudenko (3):
>   ipa: core: add IPASensorDelays structure
>   libcamera: libipa: camera_sensor: Add sensorDelays method
>   ipa: rkisp1: Pass sensor delays from IPA to pipeline handler
>
>  include/libcamera/ipa/core.mojom         | 35 ++++++++++++++
>  include/libcamera/ipa/rkisp1.mojom       |  3 +-
>  src/ipa/libipa/camera_sensor_helper.cpp  | 59 ++++++++++++++++++++++++
>  src/ipa/libipa/camera_sensor_helper.h    |  5 ++
>  src/ipa/rkisp1/rkisp1.cpp                |  8 +++-
>  src/libcamera/pipeline/rkisp1/rkisp1.cpp | 27 +++++------
>  6 files changed, 118 insertions(+), 19 deletions(-)
>
> --
> 2.46.0



More information about the libcamera-devel mailing list