summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2023-03-27 13:20:27 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2023-03-31 13:29:18 +0100
commite145decf36fe3d07a76ff702f5132fd87e9b574d (patch)
tree166ebd97acbf6270ab505b895cc9d0a2216bed85 /src/ipa/raspberrypi/controller
parentd8685a579ccf3246b11eef404786cdd9f19f087e (diff)
ipa: raspberrypi: Make RegionStats::get() always return a Region struct
Update the overloaded RegionStats::get() and RegionStats::getFloating() member functions to return a Region struct for consistency. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/controller')
-rw-r--r--src/ipa/raspberrypi/controller/region_stats.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipa/raspberrypi/controller/region_stats.h b/src/ipa/raspberrypi/controller/region_stats.h
index 9aaf3a58..a8860dc8 100644
--- a/src/ipa/raspberrypi/controller/region_stats.h
+++ b/src/ipa/raspberrypi/controller/region_stats.h
@@ -86,12 +86,12 @@ public:
return get_(index);
}
- const T &get(const libcamera::Point &pos) const
+ const Region &get(const libcamera::Point &pos) const
{
return get(pos.y * size_.width + pos.x);
}
- const T &getFloating(unsigned int index) const
+ const Region &getFloating(unsigned int index) const
{
if (index >= numFloatingRegions())
return default_;