[PATCH 0/3] Fix dark caputred image with close sourced IPU3 IPA

Han-Lin Chen hanlinchen at google.com
Mon Oct 4 11:48:20 CEST 2021


From: hanlinchen <hanlinchen at google.com>

Hi everyone,

We have a issue that the captured image is extremely dark with the close
sourced IPU3 IPA on soraka. The problem is due to that the codes from Chrome
OS not handling memories correctly. In result, the statistic as input to AIQ
is cleared early and the calculated exposure is wrong. A similiar issue
prevent it to apply lens shading correction too, which causes crash due to
invalid contents of SA results.

The patch series fixes the issue by:
1. Refactor the memory recycles and fix copying overflown.
2. Apply shading lens correction to further brighten the image.

hanlinchen (3):
  ipu3: Remove the usage of SharedItemPool
  ipu3: Change Macro migrated from Chrome OS to its std version
    accordingly
  ipu3: Apply shading adapter as part of AIQ::run2a()

 aiq/aiq.cpp                  |  20 ++++-
 aiq/aiq.h                    |   4 +-
 aiq/aiq_input_parameters.cpp |  50 +++++-------
 aiq/aiq_results.cpp          |  91 +++++++++-------------
 ipu3.cpp                     |   2 +-
 stats/ipa_ipu3_stats.cpp     | 145 ++++++-----------------------------
 stats/ipa_ipu3_stats.h       |  41 ++++++----
 stats/meson.build            |   1 -
 stats/shared_item_pool.cpp   | 129 -------------------------------
 stats/shared_item_pool.h     | 114 ---------------------------
 10 files changed, 127 insertions(+), 470 deletions(-)
 delete mode 100644 stats/shared_item_pool.cpp
 delete mode 100644 stats/shared_item_pool.h

-- 
2.33.0.800.g4c38ced690-goog



More information about the libcamera-devel mailing list