[PATCH 0/5] ipa: Add black level to camera sensor helpers

Stefan Klug stefan.klug at ideasonboard.com
Mon Jul 1 16:38:23 CEST 2024


For the tuning process, the sensor black level needs to be known. Many
sensors have either a fixed black level, or the current sensor kernel
driver sets a fixed value. It therefore makes sense to keep that
information inside libcamera. When the need arises to be more flexible
we can extend the sensor drivers to report black level information. This
series adds black level support to the camera sensor helpers and the
corresponding metadata to the rkisp1 ipa.

My tuning series will be rebased on top of this one.

Best regards,
Stefan

Stefan Klug (5):
  ipa: libipa: Add black levels to camera sensor helper
  ipa: rkisp1: Move camHelper into IPAContext
  ipa: rkisp1: blc: Query black levels from camera sensor helper
  ipa: rkisp1: blc: Report sensor black levels in metadata
  ipa: rkisp1: data: Update tuning files for imx219 and imx258

 src/ipa/libipa/camera_sensor_helper.cpp | 18 ++++++++++
 src/ipa/libipa/camera_sensor_helper.h   |  6 ++++
 src/ipa/rkisp1/algorithms/blc.cpp       | 47 ++++++++++++++++++++++---
 src/ipa/rkisp1/algorithms/blc.h         |  5 ++-
 src/ipa/rkisp1/data/imx219.yaml         |  4 ---
 src/ipa/rkisp1/data/imx258.yaml         |  1 +
 src/ipa/rkisp1/data/uncalibrated.yaml   |  1 +
 src/ipa/rkisp1/ipa_context.h            |  4 +++
 src/ipa/rkisp1/rkisp1.cpp               | 26 +++++++-------
 9 files changed, 89 insertions(+), 23 deletions(-)

-- 
2.43.0



More information about the libcamera-devel mailing list