[libcamera-devel] [PATCH 0/1] Take into account color temperature during LSC algorithm for rkisp1

Florian Sylvestre fsylvestre at baylibre.com
Tue Sep 6 18:12:16 CEST 2022


First brick to have an adaptive LSC algorithm on Rkisp1: add LSC coefficients
sets in YAML tuning file depending of color temperature.
For this version the computation of coefficients regarding the current computed
color temperature is done inside prepare() method.
For reference: the computation time has been measured at an average 135us on an
Imx8Mp board.

The different coefficients are computed by doing a linear interpolation with the
two coefficients sets that have the closer color temperature values.
In case the current color temperature is 'out of bound' the closest set is used.
The LSC can work with a single set in case of monochrome sensor for example.

Note: the 'grad' and 'size' tables are now computed in configure() to gain some
time by doing only a memcpy() of them during prepare().

Florian Sylvestre (1):
  ipa: rkisp1: Take into account color temperature during LSC algorithm

 src/ipa/rkisp1/algorithms/lsc.cpp | 170 ++++++++++++++++------
 src/ipa/rkisp1/algorithms/lsc.h   |  21 ++-
 src/ipa/rkisp1/data/ov5640.yaml   | 231 ++++++++++++++++++++----------
 3 files changed, 300 insertions(+), 122 deletions(-)

-- 
2.34.1



More information about the libcamera-devel mailing list