[libcamera-devel,v1,0/3] Raspberry Pi: Sensor limits
mbox series

Message ID 20230322161317.18055-1-naush@raspberrypi.com
Headers show
Series
  • Raspberry Pi: Sensor limits
Related show

Message

Naushir Patuck March 22, 2023, 4:13 p.m. UTC
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(-)