mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-04 08:46:24 +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:
27
inc/rk_mpi.h
27
inc/rk_mpi.h
@@ -240,33 +240,6 @@ MPP_RET mpp_create(MppCtx *ctx, MppApi **mpi);
|
||||
* error code. For details, please refer mpp_err.h.
|
||||
*/
|
||||
MPP_RET mpp_init(MppCtx ctx, MppCtxType type, MppCodingType coding);
|
||||
/**
|
||||
* @ingroup rk_mpi
|
||||
* @brief Call after mpp_init to start mpp working.
|
||||
* Control SET_CFG can be called both before and after mpp_start.
|
||||
* Before mpp_start is called both global param and dynamic param can be set.
|
||||
* After mpp_start is called only dynamic param can be set.
|
||||
* This funciton purpose is to stop recieving global param and do
|
||||
* preparation for processing data flow.
|
||||
* This function will call internal context start function.
|
||||
* @param[in] ctx The context of mpp, created by mpp_create().
|
||||
* @return 0 for success, others for failure. The return value is an
|
||||
* error code. For details, please refer mpp_err.h.
|
||||
*/
|
||||
MPP_RET mpp_start(MppCtx ctx);
|
||||
/**
|
||||
* @ingroup rk_mpi
|
||||
* @brief Call before mpp_destroy to stop mpp working.
|
||||
* Control SET_CFG can be called after starting.
|
||||
* Before mpp_stop is called only dynamic param can be set.
|
||||
* After mpp_stop is called both global param and dynamic param can be set.
|
||||
* This funciton purpose is to stop processing data and do preparation
|
||||
* to receive global param.
|
||||
* @param[in] ctx The context of mpp, created by mpp_create().
|
||||
* @return 0 for success, others for failure. The return value is an
|
||||
* error code. For details, please refer mpp_err.h.
|
||||
*/
|
||||
MPP_RET mpp_stop(MppCtx ctx);
|
||||
/**
|
||||
* @ingroup rk_mpi
|
||||
* @brief Destroy mpp context and free both context and mpi structure,
|
||||
|
Reference in New Issue
Block a user