[libcamera-devel] [PATCH 0/4] ipa: ipu3: af: Temporarily suspend AWB and AE during AF scanning

Kate Hsuan hpa at redhat.com
Tue Mar 22 03:41:51 CET 2022


The floating results of AWB and AE significantly impact the AF
performance and the AF scene variance estimation. If the exposure value
and color settings are changed by the algorithm, the AF scene variance will
be affected and the algorithm may find an incorrect local maximum value.
Consequently, a wrong lens position is determined and we could only get
a blurred image.

This patch proposed an AWB and AE suspension mechanism while AF is
searching for the focus. A lock flag is used to identify that AWB and
AE should be suspended or not. AGC and AE algorithm test the flag and
determine that they have to perform the algorithm or suspend itself.

Kate Hsuan (4):
  ipa: ipu3: af: Introduce AWB and AE lock when AF scanning
  ipa: ipu3: af: AE and AWE lock request flow when performing AF
  ipa: ipu3: awb: AWB lock for AF scan
  ipa: ipu3: agc: AE lock for AF scanning

 src/ipa/ipu3/algorithms/af.cpp  | 25 +++++++++++++++++++++++++
 src/ipa/ipu3/algorithms/af.h    |  2 ++
 src/ipa/ipu3/algorithms/agc.cpp | 14 ++++++++++++++
 src/ipa/ipu3/algorithms/agc.h   |  1 +
 src/ipa/ipu3/algorithms/awb.cpp | 13 +++++++++++++
 src/ipa/ipu3/algorithms/awb.h   |  1 +
 src/ipa/ipu3/ipa_context.h      |  1 +
 7 files changed, 57 insertions(+)

-- 
2.33.1



More information about the libcamera-devel mailing list