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>
This commit is contained in:
parent
d8685a579c
commit
e145decf36
1 changed files with 2 additions and 2 deletions
|
@ -86,12 +86,12 @@ public:
|
||||||
return get_(index);
|
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);
|
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())
|
if (index >= numFloatingRegions())
|
||||||
return default_;
|
return default_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue