[libcamera-devel] [PATCH v1 0/3] Raspberry Pi: Sensor limits

Naushir Patuck naush at raspberrypi.com
Wed Mar 22 17:13:14 CET 2023


Hi,

This small series makes a small change to how we handle sensor control limits,
particularly gain and exposure.

With this series, we introduce an explicit SensorLimits structure that stores
the limits.  The AGC algorithm has a new member function that accepts this
structure, replacing the existing setMaxShutter() function.  This allows the
AGC to corretly handle limits of gain values which it currently does not do - 
specifically for the imx708 that has a minimum gain of 1.12x.

Thanks,
Naush

Naushir Patuck (3):
  ipa: raspberrypi: Replace setMaxShutter with setSensorLimits in AGC
  ipa: raspberrypi: Populate SensorLimits
  ipa: raspberrypi: Ensure shutter speed and gain are clipped in the AGC

 .../raspberrypi/controller/agc_algorithm.h    | 11 +++-
 src/ipa/raspberrypi/controller/rpi/agc.cpp    | 53 +++++++++++----
 src/ipa/raspberrypi/controller/rpi/agc.h      |  7 +-
 src/ipa/raspberrypi/raspberrypi.cpp           | 66 +++++++++++--------
 4 files changed, 92 insertions(+), 45 deletions(-)

-- 
2.34.1



More information about the libcamera-devel mailing list