summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3/algorithms/agc.h
diff options
context:
space:
mode:
authorJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-08-20 14:02:58 +0200
committerJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-08-23 11:04:08 +0200
commitb3befe2ef03794f5d8c2241e5809cb7dca8735e7 (patch)
treef84d9db6cb5878d69866e0ed4ffe5e70d7f00418 /src/ipa/ipu3/algorithms/agc.h
parente991bb2c362e5dc2e9fdea2410e74c39a39d8708 (diff)
ipa: ipu3: agc: remove local storage of the grid
The IPASessionConfiguration now has the grid configuration stored. Use it at process() call in AGC and pass it as a reference to the private functions when needed. Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/ipu3/algorithms/agc.h')
-rw-r--r--src/ipa/ipu3/algorithms/agc.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ipa/ipu3/algorithms/agc.h b/src/ipa/ipu3/algorithms/agc.h
index 1739d2fd..e36797d3 100644
--- a/src/ipa/ipu3/algorithms/agc.h
+++ b/src/ipa/ipu3/algorithms/agc.h
@@ -33,12 +33,11 @@ public:
void process(IPAContext &context, const ipu3_uapi_stats_3a *stats) override;
private:
- void processBrightness(const ipu3_uapi_stats_3a *stats);
+ void processBrightness(const ipu3_uapi_stats_3a *stats,
+ const ipu3_uapi_grid_config &grid);
void filterExposure();
void lockExposureGain(uint32_t &exposure, double &gain);
- struct ipu3_uapi_grid_config aeGrid_;
-
uint64_t frameCount_;
uint64_t lastFrame_;