From 0f221621109a6c03c9cde6641ca4c0147e752b97 Mon Sep 17 00:00:00 2001 From: Shubham Jain Date: Mon, 28 Nov 2022 19:46:50 +0530 Subject: [PATCH] Include edgeai-tiovx-nodes as dependency for some C66 openVX nodes For now four of C66 openVX nodes will be part of edgeai-tiovx-nodes -> dl_color_blend -> dl_color_convert -> dl_draw_box -> dl_pre_proc Signed-off-by: Shubham Jain --- CMakeLists.txt | 6 +++--- cmake/common.cmake | 1 + include/tiovx_modules_common.h | 1 + test/app_tiovx_dl_color_convert_module_test.c | 2 ++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 62eca77..0d047b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,15 +13,15 @@ set(SRC_FILES src/tiovx_viss_module.c src/tiovx_ldc_module.c src/tiovx_pyramid_module.c + src/tiovx_dl_color_convert_module.c + src/tiovx_dl_pre_proc_module.c + src/tiovx_dl_color_blend_module.c src/tiovx_utils.c) if ("${TARGET_SOC}" STREQUAL "J721E" OR "${TARGET_SOC}" STREQUAL "J721S2" OR "${TARGET_SOC}" STREQUAL "J784S4") list(APPEND SRC_FILES src/tiovx_color_convert_module.c - src/tiovx_dl_color_convert_module.c - src/tiovx_dl_pre_proc_module.c - src/tiovx_dl_color_blend_module.c src/tiovx_dof_module.c src/tiovx_dof_viz_module.c src/tiovx_sde_module.c diff --git a/cmake/common.cmake b/cmake/common.cmake index 3cdb273..eb3bd36 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -93,6 +93,7 @@ include_directories(${PROJECT_SOURCE_DIR} ${TARGET_FS}/usr/include/processor_sdk/vision_apps/kernels/img_proc/include ${TARGET_FS}/usr/include/processor_sdk/vision_apps/kernels/fileio/include ${TARGET_FS}/usr/include/processor_sdk/vision_apps/kernels/stereo/include + ${TARGET_FS}/usr/include/processor_sdk/edgeai-tiovx-nodes/include ) set(SYSTEM_LINK_LIBS diff --git a/include/tiovx_modules_common.h b/include/tiovx_modules_common.h index ef7d49e..0b5c5a7 100644 --- a/include/tiovx_modules_common.h +++ b/include/tiovx_modules_common.h @@ -66,6 +66,7 @@ #include #include #include +#include #include #include diff --git a/test/app_tiovx_dl_color_convert_module_test.c b/test/app_tiovx_dl_color_convert_module_test.c index 5e2277b..51819bd 100644 --- a/test/app_tiovx_dl_color_convert_module_test.c +++ b/test/app_tiovx_dl_color_convert_module_test.c @@ -133,6 +133,7 @@ static vx_status app_init(AppObj *obj) if(status == VX_SUCCESS) { tivxImgProcLoadKernels(obj->context); + tivxEdgeaiImgProcLoadKernels(obj->context); } if(status == VX_SUCCESS) @@ -164,6 +165,7 @@ static void app_deinit(AppObj *obj) tiovx_dl_color_convert_module_deinit(&obj->colorConvertObj); tivxImgProcUnLoadKernels(obj->context); + tivxEdgeaiImgProcUnLoadKernels(obj->context); vxReleaseContext(&obj->context); }