[libcamera-devel] [PATCH v1 0/5] Raspberry Pi: Generalise statistics

Naushir Patuck naush at raspberrypi.com
Tue Nov 22 12:22:19 CET 2022


Hi,

This patch series attempts to generalise our BCM2835 ISP statistics structure
with the aim of removing any hardware specific structures, defines and header
files from the algorithm source files.

Patch 1 defines the generalised statistics structures.
Patches 2 and 3 are some simple tidy-ups to prepare for the changes.
Patch 4 converts our algorithms to use the generalised structures.
Patch 5 is another tidy up to remove a platform specific define from the AGC.

Thanks,
Naush

Naushir Patuck (5):
  ipa: raspberrypi: Generalise statistics
  ipa: raspberrypi: histogram: Add a constructor for an empty histogram
  ipa: raspberrypi: awb: Delay release of the statistics buffer
  ipa: raspberrypi: Use the generic statistics structure in the
    algorithms
  ipa: raspberrypi: Normalise region sums to 16-bits

 src/ipa/raspberrypi/controller/controller.h   |   4 +-
 src/ipa/raspberrypi/controller/histogram.h    |   5 +
 src/ipa/raspberrypi/controller/region_stats.h | 109 ++++++++++++++++++
 src/ipa/raspberrypi/controller/rpi/agc.cpp    |  30 +++--
 src/ipa/raspberrypi/controller/rpi/agc.h      |   2 +-
 src/ipa/raspberrypi/controller/rpi/alsc.cpp   |  33 +++---
 src/ipa/raspberrypi/controller/rpi/alsc.h     |   3 +-
 src/ipa/raspberrypi/controller/rpi/awb.cpp    |  30 +++--
 src/ipa/raspberrypi/controller/rpi/awb.h      |   1 +
 .../raspberrypi/controller/rpi/contrast.cpp   |   8 +-
 src/ipa/raspberrypi/controller/rpi/focus.cpp  |   7 +-
 src/ipa/raspberrypi/controller/rpi/lux.cpp    |  13 +--
 src/ipa/raspberrypi/raspberrypi.cpp           |  46 +++++++-
 src/ipa/raspberrypi/statistics.h              |  72 ++++++++++++
 14 files changed, 292 insertions(+), 71 deletions(-)
 create mode 100644 src/ipa/raspberrypi/controller/region_stats.h
 create mode 100644 src/ipa/raspberrypi/statistics.h

-- 
2.25.1



More information about the libcamera-devel mailing list