mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-19 07:24:34 +08:00
feat[kmpp_obj]: Add priv prop support for objdef
1. Add KMPP_OBJ_PRIV_SIZE for extra priv data to userspace KmppObjImpl. 2. When add private data realloc mempool for KmppObjImpl. Change-Id: Ifc6d210cc77497cc9cbd5d86ad1ddcf2ba0fc4af Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com> Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -288,6 +288,10 @@ void CONCAT_US(KMPP_OBJ_NAME, register)(void)
|
||||
HOOK_QUERY, HOOK_QUERY, ENTRY_NOTHING);
|
||||
}
|
||||
|
||||
#if defined(KMPP_OBJ_PRIV_SIZE)
|
||||
if (KMPP_OBJ_PRIV_SIZE)
|
||||
kmpp_objdef_set_prop(KMPP_OBJ_DEF(KMPP_OBJ_NAME), "priv_size", KMPP_OBJ_PRIV_SIZE);
|
||||
#endif
|
||||
#if defined(KMPP_OBJ_FUNC_INIT)
|
||||
kmpp_objdef_add_init(KMPP_OBJ_DEF(KMPP_OBJ_NAME), KMPP_OBJ_FUNC_INIT);
|
||||
#endif
|
||||
@@ -388,6 +392,7 @@ KMPP_OBJ_ENTRY_TABLE(KMPP_OBJ_NAME, KMPP_OBJ_EXPORT, KMPP_OBJ_EXPORT,
|
||||
#undef KMPP_OBJ_IMPL_TYPE
|
||||
#undef KMPP_OBJ_EXTRA_SIZE
|
||||
#undef KMPP_OBJ_ENTRY_TABLE
|
||||
#undef KMPP_OBJ_PRIV_SIZE
|
||||
#undef KMPP_OBJ_FUNC_INIT
|
||||
#undef KMPP_OBJ_FUNC_DEINIT
|
||||
#undef KMPP_OBJ_FUNC_IOCTL
|
||||
|
Reference in New Issue
Block a user