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:
Herman Chen
2025-04-03 15:12:52 +08:00
parent ea8b5af151
commit 6b51725df4
8 changed files with 303 additions and 193 deletions

View File

@@ -182,4 +182,32 @@ typedef void* MppBufferGroup;
typedef void* MppTask;
typedef void* MppMeta;
/* KmppObjDef - mpp object name size and access table trie definition */
typedef void* KmppObjDef;
/* KmppObj - mpp object for string name access and function access */
typedef void* KmppObj;
/* kmpp transaction object */
typedef void* KmppMeta;
typedef void* KmppFrame;
typedef void* KmppPacket;
typedef void* KmppBuffer;
typedef void* KmppBufGrp;
/* MUST be the same to the KmppObjShm in rk-mpp-kobj.h */
typedef struct KmppShmPtr_t {
/* uaddr - the userspace base address for userspace access */
union {
rk_u64 uaddr;
void *uptr;
};
/* kaddr - the kernel base address for kernel access */
union {
rk_u64 kaddr;
void *kptr;
};
/* DO NOT access reserved data only used by kernel */
} KmppShmPtr;
#endif /*__RK_TYPE_H__*/