mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 15:29:45 +03:00
ipa: rpi: vc4: Make the StatisticsPtr construction clearer
StatisticsPtr is a shared pointer, so the use of std::make_unique to create it was a bit confusing. Use std::make_shared instead. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
250565b5e8
commit
58e501c71c
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ RPiController::StatisticsPtr IpaVc4::platformProcessStats(Span<uint8_t> mem)
|
||||||
using namespace RPiController;
|
using namespace RPiController;
|
||||||
|
|
||||||
const bcm2835_isp_stats *stats = reinterpret_cast<bcm2835_isp_stats *>(mem.data());
|
const bcm2835_isp_stats *stats = reinterpret_cast<bcm2835_isp_stats *>(mem.data());
|
||||||
StatisticsPtr statistics = std::make_unique<Statistics>(Statistics::AgcStatsPos::PreWb,
|
StatisticsPtr statistics = std::make_shared<Statistics>(Statistics::AgcStatsPos::PreWb,
|
||||||
Statistics::ColourStatsPos::PostLsc);
|
Statistics::ColourStatsPos::PostLsc);
|
||||||
const Controller::HardwareConfig &hw = controller_.getHardwareConfig();
|
const Controller::HardwareConfig &hw = controller_.getHardwareConfig();
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue