mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-30 12:06:43 +08:00
refactor:[kmpp]: Move kmpp to seperate directory
Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: I85eb166a3ebb1ae64a44c7127808fc469c6415a8
This commit is contained in:
31
kmpp/base/inc/kmpp_obj_func.h
Normal file
31
kmpp/base/inc/kmpp_obj_func.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
|
||||
/*
|
||||
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
|
||||
*/
|
||||
|
||||
#ifndef KMPP_OBJ_FUNC_PREFIX
|
||||
#error "KMPP_OBJ_FUNC_PREFIX must be defined on using kmpp_idef_begin.h"
|
||||
#endif
|
||||
|
||||
#ifndef KMPP_OBJ_INTF_TYPE
|
||||
#error "KMPP_OBJ_INTF_TYPE must be defined on using kmpp_idef_begin.h"
|
||||
#endif
|
||||
|
||||
#ifndef KMPP_OBJ_ENTRY_TABLE
|
||||
#error "KMPP_OBJ_ENTRY_TABLE must be defined on using kmpp_idef_begin.h"
|
||||
#endif
|
||||
|
||||
#define KMPP_OBJ_FUNC(x, y, z) x##y##z
|
||||
|
||||
#define ENTRY_TO_DECLARE(ftype, type, f1) \
|
||||
rk_s32 KMPP_OBJ_FUNC(KMPP_OBJ_FUNC_PREFIX, _set_, f1)(KMPP_OBJ_INTF_TYPE p, type val); \
|
||||
rk_s32 KMPP_OBJ_FUNC(KMPP_OBJ_FUNC_PREFIX, _get_, f1)(KMPP_OBJ_INTF_TYPE p, type* val);
|
||||
|
||||
KMPP_OBJ_ENTRY_TABLE(ENTRY_TO_DECLARE)
|
||||
|
||||
#undef KMPP_OBJ_FUNC_PREFIX
|
||||
#undef KMPP_OBJ_INTF_TYPE
|
||||
#undef KMPP_OBJ_ENTRY_TABLE
|
||||
|
||||
#undef ENTRY_TO_DECLARE
|
||||
#undef KMPP_OBJ_FUNC
|
||||
Reference in New Issue
Block a user