summaryrefslogtreecommitdiff
path: root/src/ipa/rkisp1/algorithms/cproc.h
diff options
context:
space:
mode:
authorStefan Klug <stefan.klug@ideasonboard.com>2024-06-05 08:34:11 +0200
committerStefan Klug <stefan.klug@ideasonboard.com>2024-06-11 15:42:18 +0200
commitd2a5508d0aa17304daf273991de08828e57c82fb (patch)
treec22b6f79fcea1ca1d0ca2d91a81ccb601a9eab7f /src/ipa/rkisp1/algorithms/cproc.h
parentf305cacc9c442358acd2c604817206cf7eeaabe0 (diff)
pipeline: rkisp1: cproc: Fix default value handling
Default control values were not applied to activeState. This had no negative side effects in the first place, as the hardware defaults were used. The issue became visible, when only one of the controls was set at runtime. In that case the params for the other values were overwritten with 0 (reset value of activeState) resulting in a black image. While at it, only add the controls to the controls map if the algorithm is contained in the tuning file. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/rkisp1/algorithms/cproc.h')
-rw-r--r--src/ipa/rkisp1/algorithms/cproc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ipa/rkisp1/algorithms/cproc.h b/src/ipa/rkisp1/algorithms/cproc.h
index bafba5cc..e50e7200 100644
--- a/src/ipa/rkisp1/algorithms/cproc.h
+++ b/src/ipa/rkisp1/algorithms/cproc.h
@@ -21,6 +21,9 @@ public:
ColorProcessing() = default;
~ColorProcessing() = default;
+ int init(IPAContext &context, const YamlObject &tuningData) override;
+ int configure(IPAContext &context,
+ const IPACameraSensorInfo &configInfo) override;
void queueRequest(IPAContext &context, const uint32_t frame,
IPAFrameContext &frameContext,
const ControlList &controls) override;