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