diff options
author | Milan Zamazal <mzamazal@redhat.com> | 2024-11-28 13:52:25 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2024-12-06 12:34:48 +0000 |
commit | 3930b9402110472ef2e8d4a997f4ebc4925e864b (patch) | |
tree | 0831ba12b58680f33c986319c816a470b17955e2 /src/ipa/simple/algorithms/lut.cpp | |
parent | 9135aacff1fa8aa6af1a44493c6ec8abfbde31a3 (diff) |
libcamera: software_isp: Add contrast control
This patch introduces support for applying runtime controls to software
ISP. It enables the contrast control as the first control that can be
used.
Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/simple/algorithms/lut.cpp')
-rw-r--r-- | src/ipa/simple/algorithms/lut.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ipa/simple/algorithms/lut.cpp b/src/ipa/simple/algorithms/lut.cpp index dd76e117..0ba2391f 100644 --- a/src/ipa/simple/algorithms/lut.cpp +++ b/src/ipa/simple/algorithms/lut.cpp @@ -24,6 +24,13 @@ LOG_DEFINE_CATEGORY(IPASoftLut) namespace ipa::soft::algorithms { +int Lut::init(IPAContext &context, + [[maybe_unused]] const YamlObject &tuningData) +{ + context.ctrlMap[&controls::Contrast] = ControlInfo(0.0f, 2.0f, 1.0f); + return 0; +} + int Lut::configure(IPAContext &context, [[maybe_unused]] const IPAConfigInfo &configInfo) { |