mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 09:36:49 +08:00
[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:
28
mpp/mpi.cpp
28
mpp/mpi.cpp
@@ -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;
|
||||
|
Reference in New Issue
Block a user