summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3/algorithms/awb.h
diff options
context:
space:
mode:
authorJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-08-20 14:07:53 +0200
committerJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-08-23 11:04:08 +0200
commit359ade5027d1856066e74f597db930012e92fb6c (patch)
treef6ac42d8a596fd0eeede9c6157228dc2d158815b /src/ipa/ipu3/algorithms/awb.h
parentb3befe2ef03794f5d8c2241e5809cb7dca8735e7 (diff)
ipa: ipu3: awb: remove local storage of the grid
The IPASessionConfiguration now has the grid configuration stored. Use it it at prepare() and process() calls in AWB 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/awb.h')
-rw-r--r--src/ipa/ipu3/algorithms/awb.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ipa/ipu3/algorithms/awb.h b/src/ipa/ipu3/algorithms/awb.h
index fac54e45..a16dd68d 100644
--- a/src/ipa/ipu3/algorithms/awb.h
+++ b/src/ipa/ipu3/algorithms/awb.h
@@ -71,15 +71,15 @@ public:
};
private:
- void calculateWBGains(const ipu3_uapi_stats_3a *stats);
+ void calculateWBGains(const ipu3_uapi_stats_3a *stats,
+ const ipu3_uapi_grid_config &grid);
void generateZones(std::vector<RGB> &zones);
- void generateAwbStats(const ipu3_uapi_stats_3a *stats);
+ void generateAwbStats(const ipu3_uapi_stats_3a *stats,
+ const ipu3_uapi_grid_config &grid);
void clearAwbStats();
void awbGreyWorld();
uint32_t estimateCCT(double red, double green, double blue);
- struct ipu3_uapi_grid_config awbGrid_;
-
std::vector<RGB> zones_;
IspStatsRegion awbStats_[kAwbStatsSizeX * kAwbStatsSizeY];
AwbStatus asyncResults_;