summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/algorithm.hpp
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2020-06-18 12:12:35 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-06-22 07:03:25 +0300
commitff291b3c15ba250fb05236a774771fdf54554ff7 (patch)
treedaf75a78d16df950e5f3ab238fcaded047144dae /src/ipa/raspberrypi/controller/algorithm.hpp
parent1023107b6405266d480ce9c08cd82a30449a505b (diff)
libcamera: ipa: raspberrypi: Allow SwitchMode method to return camera settings
This commit adds a Metadata parameter to the SwitchMode method enabling it to return camera and other settings to the caller (usually the configure method, just after the camera mode has been selected). In future this will allow the Raspberry Pi IPAs to take those settings (such as exposure and analogue gain) and program them directly into the camera or ISP before the camera is even started. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/controller/algorithm.hpp')
-rw-r--r--src/ipa/raspberrypi/controller/algorithm.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipa/raspberrypi/controller/algorithm.hpp b/src/ipa/raspberrypi/controller/algorithm.hpp
index b82c1841..187c50c6 100644
--- a/src/ipa/raspberrypi/controller/algorithm.hpp
+++ b/src/ipa/raspberrypi/controller/algorithm.hpp
@@ -37,7 +37,7 @@ public:
virtual void Resume() { paused_ = false; }
virtual void Read(boost::property_tree::ptree const &params);
virtual void Initialise();
- virtual void SwitchMode(CameraMode const &camera_mode);
+ virtual void SwitchMode(CameraMode const &camera_mode, Metadata *metadata);
virtual void Prepare(Metadata *image_metadata);
virtual void Process(StatisticsPtr &stats, Metadata *image_metadata);
Metadata &GetGlobalMetadata() const