summaryrefslogtreecommitdiff
path: root/src/ipa/rpi/controller/awb_algorithm.h
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2023-12-06 10:38:39 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2024-01-09 15:39:02 +0000
commitcfb4bee74b6dce3e9c44d3b8dedcd3ffcc11b32b (patch)
treeaf939135c7ae08d63bdd00b6e32aa24b38c28fdb /src/ipa/rpi/controller/awb_algorithm.h
parent8892d937c55ce2d62a5b0ee24c2b23b64366e73c (diff)
ipa: rpi: awb: Add an initialValues method
This allows the IPA to get reasonable default colour gains before AWB has run. This is particularly important on the PiSP platform where these numbers are helpful in programming the Front End statistics block in advance. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/rpi/controller/awb_algorithm.h')
-rw-r--r--src/ipa/rpi/controller/awb_algorithm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ipa/rpi/controller/awb_algorithm.h b/src/ipa/rpi/controller/awb_algorithm.h
index 8462c4db..6009bdac 100644
--- a/src/ipa/rpi/controller/awb_algorithm.h
+++ b/src/ipa/rpi/controller/awb_algorithm.h
@@ -16,6 +16,7 @@ public:
AwbAlgorithm(Controller *controller) : Algorithm(controller) {}
/* An AWB algorithm must provide the following: */
virtual unsigned int getConvergenceFrames() const = 0;
+ virtual void initialValues(double &gainR, double &gainB) = 0;
virtual void setMode(std::string const &modeName) = 0;
virtual void setManualGains(double manualR, double manualB) = 0;
virtual void enableAuto() = 0;