mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 01:20:40 +01:00
feat[kmpp]: Replace frame_infos with kmpp_frame
kernel patch: fix[mpp_vcodec]: Replace frame_infos with kmpp_frame Change-Id: Ie3b0358a7b79ad9755608f20b5b29175263b4dbb Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
This commit is contained in:
parent
136e6ae0c4
commit
a899106f89
6 changed files with 69 additions and 35 deletions
|
|
@ -214,7 +214,7 @@ MppFrameStatus *mpp_frame_get_status(MppFrame frame);
|
|||
void mpp_frame_set_stopwatch_enable(MppFrame frame, RK_S32 enable);
|
||||
MppStopwatch mpp_frame_get_stopwatch(const MppFrame frame);
|
||||
|
||||
MPP_RET check_is_mpp_frame(void *pointer);
|
||||
MPP_RET __check_is_mpp_frame(void *frame);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ MPP_SINGLETON(MPP_SGLN_FRAME, mpp_frame, mpp_frame_srv_init, mpp_frame_srv_deini
|
|||
|
||||
MPP_RET _check_is_mpp_frame(const char *func, void *frame)
|
||||
{
|
||||
if (frame && ((MppFrameImpl*)frame)->name == module_name)
|
||||
if (!__check_is_mpp_frame(frame))
|
||||
return MPP_OK;
|
||||
|
||||
mpp_err("pointer %p failed on %s check mpp_frame\n", frame, func);
|
||||
|
|
@ -60,6 +60,14 @@ MPP_RET _check_is_mpp_frame(const char *func, void *frame)
|
|||
return MPP_NOK;
|
||||
}
|
||||
|
||||
MPP_RET __check_is_mpp_frame(void *frame)
|
||||
{
|
||||
if (frame && ((MppFrameImpl*)frame)->name == module_name)
|
||||
return MPP_OK;
|
||||
|
||||
return MPP_NOK;
|
||||
}
|
||||
|
||||
MPP_RET mpp_frame_init(MppFrame *frame)
|
||||
{
|
||||
MppFrameImpl *p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue