ipa: Add start() and stop() operations
Add two new operations to the IPA interface to start and stop it. The intention is that these functions shall be used by the IPA to perform actions when the camera is started and stopped. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -109,6 +109,28 @@ protected:
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
/* Test start of IPA module. */
|
||||
ipa_->start();
|
||||
timer.start(1000);
|
||||
while (timer.isRunning() && trace_ != IPAOperationStart)
|
||||
dispatcher->processEvents();
|
||||
|
||||
if (trace_ != IPAOperationStart) {
|
||||
cerr << "Failed to test IPA start sequence" << endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
/* Test stop of IPA module. */
|
||||
ipa_->stop();
|
||||
timer.start(1000);
|
||||
while (timer.isRunning() && trace_ != IPAOperationStop)
|
||||
dispatcher->processEvents();
|
||||
|
||||
if (trace_ != IPAOperationStop) {
|
||||
cerr << "Failed to test IPA stop sequence" << endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
return TestPass;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user