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:
parent
72278369b3
commit
0e577cee9d
12 changed files with 156 additions and 3 deletions
|
@ -86,6 +86,20 @@ void IPAInterfaceWrapper::init(struct ipa_context *_ctx)
|
|||
ctx->ipa_->init();
|
||||
}
|
||||
|
||||
int IPAInterfaceWrapper::start(struct ipa_context *_ctx)
|
||||
{
|
||||
IPAInterfaceWrapper *ctx = static_cast<IPAInterfaceWrapper *>(_ctx);
|
||||
|
||||
return ctx->ipa_->start();
|
||||
}
|
||||
|
||||
void IPAInterfaceWrapper::stop(struct ipa_context *_ctx)
|
||||
{
|
||||
IPAInterfaceWrapper *ctx = static_cast<IPAInterfaceWrapper *>(_ctx);
|
||||
|
||||
ctx->ipa_->stop();
|
||||
}
|
||||
|
||||
void IPAInterfaceWrapper::register_callbacks(struct ipa_context *_ctx,
|
||||
const struct ipa_callback_ops *callbacks,
|
||||
void *cb_ctx)
|
||||
|
@ -234,6 +248,8 @@ const struct ipa_context_ops IPAInterfaceWrapper::operations_ = {
|
|||
.destroy = &IPAInterfaceWrapper::destroy,
|
||||
.get_interface = &IPAInterfaceWrapper::get_interface,
|
||||
.init = &IPAInterfaceWrapper::init,
|
||||
.start = &IPAInterfaceWrapper::start,
|
||||
.stop = &IPAInterfaceWrapper::stop,
|
||||
.register_callbacks = &IPAInterfaceWrapper::register_callbacks,
|
||||
.configure = &IPAInterfaceWrapper::configure,
|
||||
.map_buffers = &IPAInterfaceWrapper::map_buffers,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue