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:
parent
47c53f8084
commit
1bcb7539df
9 changed files with 26 additions and 40 deletions
|
@ -222,21 +222,16 @@ void Awb::initialise()
|
|||
asyncResults_ = syncResults_;
|
||||
}
|
||||
|
||||
bool Awb::isPaused() const
|
||||
void Awb::disableAuto()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void Awb::pause()
|
||||
{
|
||||
/* "Pause" by fixing everything to the most recent values. */
|
||||
/* Freeze the most recent values, and treat them as manual gains */
|
||||
manualR_ = syncResults_.gainR = prevSyncResults_.gainR;
|
||||
manualB_ = syncResults_.gainB = prevSyncResults_.gainB;
|
||||
syncResults_.gainG = prevSyncResults_.gainG;
|
||||
syncResults_.temperatureK = prevSyncResults_.temperatureK;
|
||||
}
|
||||
|
||||
void Awb::resume()
|
||||
void Awb::enableAuto()
|
||||
{
|
||||
manualR_ = 0.0;
|
||||
manualB_ = 0.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue