mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 03:40:42 +01:00
feat[kmpp]: Add kmpp_frame_test
1. Add kmpp frame / buffer / packet / meta define in rk_type.h 2. Move KmppObj, KmppObjDef and KmppShmPtr to rk_type.h 3. Add kmpp_frame_test 4. Add kmpp_objdef_get_offset function in kmpp_obj.c Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: Ib4aecfc26f60521288b6e33b8c4e0af5afd3213b
This commit is contained in:
parent
ea8b5af151
commit
6b51725df4
8 changed files with 303 additions and 193 deletions
|
|
@ -219,10 +219,8 @@ rk_s32 KMPP_OBJ_FUNC2(prefix, init)(void) __attribute__((constructor)); \
|
|||
rk_s32 KMPP_OBJ_FUNC2(prefix, init)(void) \
|
||||
{ \
|
||||
kmpp_objdef_get(&KMPP_OBJ_DEF(prefix), KMPP_OBJ_DEF_NAME(KMPP_OBJ_INTF_TYPE)); \
|
||||
if (!KMPP_OBJ_DEF(prefix)) { \
|
||||
mpp_loge_f(#prefix " init failed\n"); \
|
||||
if (!KMPP_OBJ_DEF(prefix)) \
|
||||
return rk_nok; \
|
||||
} \
|
||||
KMPP_OBJ_ADD_IOCTL(prefix); \
|
||||
KMPP_OBJ_ENTRY_TABLE(ENTRY_QUERY, prefix) \
|
||||
KMPP_OBJ_ENTRY_RO_TABLE(ENTRY_QUERY, prefix) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue