[libcamera-devel,v2,0/3] ipa: Fill metadata in individual algorithms
mbox series

Message ID 20221019205614.25751-1-laurent.pinchart@ideasonboard.com
Headers show
Series
  • ipa: Fill metadata in individual algorithms
Related show

Message

Laurent Pinchart Oct. 19, 2022, 8:56 p.m. UTC
Hello,

This small patch series improves metadata reporting in IPA modules by
making it possible for individual algorithms to report metadata, instead
of relying on the top-level IPA module code to do so.

Patch 1/3 extends the Algorithm::process() function to take a metadata
contro list argument that algorithms should fill with metadata for the
frame. Patch 2/3 updates the RkISP1 AGC and AWB algorithms to report
their metadata, and patch 3/3 does the same for the IPU3 IPA module.

Laurent Pinchart (3):
  ipa: Pass metadata to Algorithm::process() function
  ipa: rkisp1: Fill AGC and AWB metadata
  ipa: ipu3: Fill AGC and AWB metadata in algorithms

 src/ipa/ipu3/algorithms/af.cpp           |  4 +++-
 src/ipa/ipu3/algorithms/af.h             |  3 ++-
 src/ipa/ipu3/algorithms/agc.cpp          | 18 +++++++++++++++++-
 src/ipa/ipu3/algorithms/agc.h            |  3 ++-
 src/ipa/ipu3/algorithms/awb.cpp          | 13 ++++++++++++-
 src/ipa/ipu3/algorithms/awb.h            |  3 ++-
 src/ipa/ipu3/algorithms/tone_mapping.cpp |  4 +++-
 src/ipa/ipu3/algorithms/tone_mapping.h   |  3 ++-
 src/ipa/ipu3/ipa_context.cpp             |  3 +++
 src/ipa/ipu3/ipa_context.h               |  1 +
 src/ipa/ipu3/ipu3.cpp                    | 19 ++++---------------
 src/ipa/libipa/algorithm.cpp             |  5 +++--
 src/ipa/libipa/algorithm.h               |  3 ++-
 src/ipa/rkisp1/algorithms/agc.cpp        | 17 ++++++++++++++++-
 src/ipa/rkisp1/algorithms/agc.h          |  3 ++-
 src/ipa/rkisp1/algorithms/awb.cpp        | 10 +++++++++-
 src/ipa/rkisp1/algorithms/awb.h          |  5 +++--
 src/ipa/rkisp1/ipa_context.cpp           |  3 +++
 src/ipa/rkisp1/ipa_context.h             |  1 +
 src/ipa/rkisp1/rkisp1.cpp                | 19 +++++--------------
 20 files changed, 95 insertions(+), 45 deletions(-)


base-commit: 376adeb7b7e0b75f2fa90b890fe0203d1e268cdf