[mpi]: Add start / stop / pause / resume ctrl cmd

1. Move mpp_start / mpp_stop function to control command.
2. Add pause / resume control command.

Change-Id: I525668a2831eb8f23e12fbd7c1cb29c11fdcc868
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2021-09-16 14:49:14 +08:00
parent db487e5d7f
commit c5cd650fdd
5 changed files with 37 additions and 55 deletions

View File

@@ -519,34 +519,6 @@ MPP_RET mpp_destroy(MppCtx ctx)
return ret;
}
MPP_RET mpp_start(MppCtx ctx)
{
mpi_dbg_func("enter ctx %p\n", ctx);
MpiImpl *p = (MpiImpl*)ctx;
MPP_RET ret = check_mpp_ctx(p);
if (MPP_OK == ret)
ret = p->ctx->start();
mpi_dbg_func("leave ctx %p ret %d\n", ctx, ret);
return ret;
}
MPP_RET mpp_stop(MppCtx ctx)
{
mpi_dbg_func("enter ctx %p\n", ctx);
MpiImpl *p = (MpiImpl*)ctx;
MPP_RET ret = check_mpp_ctx(p);
if (MPP_OK == ret)
ret = p->ctx->stop();
mpi_dbg_func("leave ctx %p ret %d\n", ctx, ret);
return ret;
}
MPP_RET mpp_check_support_format(MppCtxType type, MppCodingType coding)
{
MPP_RET ret = MPP_NOK;