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

Message ID 20220906161217.1806662-1-fsylvestre@baylibre.com
Headers show
Series
  • Take into account color temperature during LSC algorithm for rkisp1
Related show

Message

Florian Sylvestre Sept. 6, 2022, 4:12 p.m. UTC
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(-)