[libcamera-devel] [PATCH v1 00/10] Raspberry Pi: Generalised algorithms

Naushir Patuck naush at raspberrypi.com
Wed Mar 22 14:06:02 CET 2023


Hi,

The aim of this patch series is to generalise our algorithm code as much as
possible and remove any hardcoded assumptions about the hardware statistics
structures.  This is built onto of the generalised statistics struture work that
has been recently merged.

Along the way there are some tidy ups to the algorithm code, particularly ALSC
where we use pre-allocated temporary arrays for the run-time calculations.

Regards,
Naush

David Plowman (2):
  ipa: raspberrypi: alsc: Replace std::vectors by Array2D class
  ipa: raspberrypi: alsc: Use a better type name for sparse arrays

Naushir Patuck (7):
  ipa: raspberrypi Store the target string in the controller
  ipa: raspberrypi: Add hardware configuration to the controller
  ipa: raspberrypi: Generalise the ALSC algorithm
  ipa: raspberrypi: Generalise the contrast algorithm
  ipa: raspberrypi: Make RegionStats::get() always return a Region
    struct
  ipa: raspberrypi: Generalise the focus algorithm
  ipa: raspberrypi: Generalise the agc algorithm

Nick Hollinghurst (1):
  ipa: raspberrypi: Generalise the autofocus algorithm

 src/ipa/raspberrypi/cam_helper_imx708.cpp     |  23 +-
 src/ipa/raspberrypi/controller/algorithm.h    |   8 +
 src/ipa/raspberrypi/controller/alsc_status.h  |  13 +-
 .../raspberrypi/controller/contrast_status.h  |  11 +-
 src/ipa/raspberrypi/controller/controller.cpp |  45 +++
 src/ipa/raspberrypi/controller/controller.h   |  15 +
 src/ipa/raspberrypi/controller/focus_status.h |  20 --
 src/ipa/raspberrypi/controller/pdaf_data.h    |  21 +-
 src/ipa/raspberrypi/controller/region_stats.h |   4 +-
 src/ipa/raspberrypi/controller/rpi/af.cpp     | 161 +++++-----
 src/ipa/raspberrypi/controller/rpi/af.h       |  28 +-
 src/ipa/raspberrypi/controller/rpi/agc.cpp    |  19 +-
 src/ipa/raspberrypi/controller/rpi/agc.h      |   9 +-
 src/ipa/raspberrypi/controller/rpi/alsc.cpp   | 291 ++++++++++--------
 src/ipa/raspberrypi/controller/rpi/alsc.h     |  83 ++++-
 .../raspberrypi/controller/rpi/contrast.cpp   |  30 +-
 src/ipa/raspberrypi/controller/rpi/contrast.h |   1 -
 src/ipa/raspberrypi/controller/rpi/focus.cpp  |  12 +-
 src/ipa/raspberrypi/raspberrypi.cpp           |  64 ++--
 19 files changed, 498 insertions(+), 360 deletions(-)
 delete mode 100644 src/ipa/raspberrypi/controller/focus_status.h

-- 
2.34.1



More information about the libcamera-devel mailing list