[mpp]: move dump data from vpu_api_legacy to mpp

tips:
add MppDumpInfo for dump input and output.

Change-Id: Ia2416309e0e6b78671c073ae08409d907e3d0e85
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Ding Wei
2018-08-01 16:50:28 +08:00
committed by Herman Chen
parent 6d059f65bf
commit 76b8c229a2
12 changed files with 246 additions and 118 deletions

View File

@@ -26,6 +26,9 @@
#include "mpp.h"
#include "mpp_info.h"
#include "mpp_common.h"
#include "mpp_env.h"
RK_U32 mpi_debug = 0;
typedef struct {
MppCtxType type;
@@ -417,12 +420,13 @@ static MppApi mpp_api = {
MPP_RET mpp_create(MppCtx *ctx, MppApi **mpi)
{
mpp_env_get_u32("mpi_debug", &mpi_debug, 0);
if (NULL == ctx || NULL == mpi) {
mpp_err_f("invalid input ctx %p mpi %p\n", ctx, mpi);
return MPP_ERR_NULL_PTR;
}
*ctx = NULL;
*mpi = NULL;
@@ -481,7 +485,6 @@ MPP_RET mpp_init(MppCtx ctx, MppCtxType type, MppCodingType coding)
p->coding = coding;
} while (0);
get_mpi_debug();
mpi_dbg_func("leave ret %d\n", ret);
return ret;
}