[libcamera-devel,v2,07/10] ipa: raspberrypi: Make RegionStats::get() always return a Region struct
diff mbox series

Message ID 20230327122030.11756-8-naush@raspberrypi.com
State Superseded
Headers show
Series
  • Raspberry Pi: Generalised algorithms
Related show

Commit Message

Naushir Patuck March 27, 2023, 12:20 p.m. UTC
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>
---
 src/ipa/raspberrypi/controller/region_stats.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/src/ipa/raspberrypi/controller/region_stats.h b/src/ipa/raspberrypi/controller/region_stats.h
index 9aaf3a58a6f7..a8860dc8dba2 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_;