[libcamera-devel,0/3] ipa: rkisp1: lsc: Enable/disable LSC
mbox series

Message ID 20230308164028.235638-1-jacopo.mondi@ideasonboard.com
Headers show
Series
  • ipa: rkisp1: lsc: Enable/disable LSC
Related show

Message

Jacopo Mondi March 8, 2023, 4:40 p.m. UTC
A small series that adds one control to enable/disable the LSC
algorithm at runtime. The newly introduced control is also used
to report the algorithm's state as part of a Request metadata.

Patch 1 introduces the control
Patch 2 instrument the LSC algorithm to handle run-time enable and disable
Patch 3 populates the metadata by moving the algorithm's state to the context
        activeState.

I initially moved the algorithm's state to the frameContext, but as metadata
are populated in process() which is called before prepare() (which updates the
frame's context state) it was not possible to store the information there.

Jacopo Mondi (3):
  libcamera: control_ids: Introduce LensShadingEnable
  ipa: rkisp1: lsc: Enable/disable LSC algorithm
  ipa: rkisp1: lsc: Move 'enable' to activeState

 src/android/camera_capabilities.cpp |  4 +-
 src/ipa/rkisp1/algorithms/dpf.cpp   |  6 +--
 src/ipa/rkisp1/algorithms/lsc.cpp   | 59 ++++++++++++++++++++++++++++-
 src/ipa/rkisp1/algorithms/lsc.h     |  8 ++++
 src/ipa/rkisp1/ipa_context.h        |  9 +++--
 src/ipa/rkisp1/rkisp1.cpp           |  1 +
 src/libcamera/control_ids.yaml      | 20 +++-------
 7 files changed, 83 insertions(+), 24 deletions(-)

--
2.39.0