[00/10] Some rkisp1 awb improvements
mbox series

Message ID 20250217100203.297894-1-stefan.klug@ideasonboard.com
Headers show
Series
  • Some rkisp1 awb improvements
Related show

Message

Stefan Klug Feb. 17, 2025, 10:01 a.m. UTC
Hi all,

This series contains a few fixes that greatly improve and stabilize the
AWB handling on rkisp1.

Patches 1-3 add utility functions to Vector and Matrix.

The rest fixes some bugs and generally improves the AWB on rkisp1.
Please see the individual patches for details.

Best regards,
Stefan

Stefan Klug (10):
  libcamera: matrix: Add cast function
  libcamera: vector: Add cast function
  libcamera: matrix: Add inverse() function
  ipa: rkisp1: Refactor automatic/manual structure in IPAActiveState
  ipa: rkisp: ccm/lsc: Fix CCM/LSC based on manual color temperature
  ipa: rkisp1: awb: Use gains from color temperature curve
  ipa: rkisp1: Damp color temperature regulation
  ipa: rkisp: awb: Set rgb mean limits to 180
  ipa: rkisp1: awb: Take the CCM into account for the AWB gains
    calculation
  ipa: rkisp1: awb: Avoid division by zero

 include/libcamera/internal/matrix.h | 35 ++++++++++++++++
 include/libcamera/internal/vector.h |  9 +++++
 src/ipa/rkisp1/algorithms/awb.cpp   | 62 ++++++++++++++++++-----------
 src/ipa/rkisp1/algorithms/ccm.cpp   |  2 +-
 src/ipa/rkisp1/algorithms/lsc.cpp   |  6 +--
 src/ipa/rkisp1/ipa_context.h        | 12 ++++--
 src/libcamera/matrix.cpp            | 20 ++++++++++
 src/libcamera/vector.cpp            | 10 +++++
 8 files changed, 124 insertions(+), 32 deletions(-)