diff --git a/mpp/mpp.h b/mpp/mpp.h index 5d919d3b..10bf75e7 100644 --- a/mpp/mpp.h +++ b/mpp/mpp.h @@ -23,17 +23,11 @@ #include "mpp_hal.h" #include "mpp_buf_slot.h" -extern RK_U32 mpp_debug; - #define MPP_DBG_FUNCTION (0x00000001) #define MPP_DBG_PACKET (0x00000002) #define MPP_DBG_FRAME (0x00000004) #define MPP_DBG_BUFFER (0x00000008) - -#define mpp_dbg(flag, fmt, ...) _mpp_dbg(mpp_debug, flag, fmt, ## __VA_ARGS__) - - class Mpp { public: @@ -83,6 +77,9 @@ public: RK_U32 mStatus; + void *mCodec; + MppHal *mHal; + // decoder context MppBufSlots mBufSlots; diff --git a/osal/inc/mpp_log.h b/osal/inc/mpp_log.h index 06bf1bd3..6185a020 100644 --- a/osal/inc/mpp_log.h +++ b/osal/inc/mpp_log.h @@ -33,6 +33,9 @@ #define _mpp_dbg(debug, flag, fmt, ...) \ __mpp_dbg(debug, flag, MODULE_TAG, fmt, NULL, ## __VA_ARGS__) +extern RK_U32 mpp_debug; +#define mpp_dbg(flag, fmt, ...) _mpp_dbg(mpp_debug, flag, fmt, ## __VA_ARGS__) + /* * _f function will add function name to the log */