ipa: raspberrypi: Remove generic "pause" mechanism from Algorithm
No existing Algorithm used the base pause(), resume() functions or the paused_ flag, nor is there a need for a generic pause API. Remove these. The AGC and AWB algorithms now have methods named disableAuto(), enableAuto() which better describe their functionality. Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
47c53f8084
commit
1bcb7539df
@@ -27,14 +27,11 @@ class Algorithm
|
||||
{
|
||||
public:
|
||||
Algorithm(Controller *controller)
|
||||
: controller_(controller), paused_(false)
|
||||
: controller_(controller)
|
||||
{
|
||||
}
|
||||
virtual ~Algorithm() = default;
|
||||
virtual char const *name() const = 0;
|
||||
virtual bool isPaused() const { return paused_; }
|
||||
virtual void pause() { paused_ = true; }
|
||||
virtual void resume() { paused_ = false; }
|
||||
virtual int read(const libcamera::YamlObject ¶ms);
|
||||
virtual void initialise();
|
||||
virtual void switchMode(CameraMode const &cameraMode, Metadata *metadata);
|
||||
@@ -47,7 +44,6 @@ public:
|
||||
|
||||
private:
|
||||
Controller *controller_;
|
||||
bool paused_;
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user