Skip to content

Commit

Permalink
Include edgeai-tiovx-kernels as dependency for some C66 openVX kernels
Browse files Browse the repository at this point in the history
For now four of C66 openVX kernels will be part of edgeai-tiovx-kernels
    -> dl_color_blend
    -> dl_color_convert
    -> dl_draw_box
    -> dl_pre_proc

Signed-off-by: Shubham Jain <[email protected]>
  • Loading branch information
Shubham Jain committed Jan 5, 2023
1 parent 5aa2116 commit 859322d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions cmake/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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-kernels/include
)

set(SYSTEM_LINK_LIBS
Expand Down
1 change: 1 addition & 0 deletions include/tiovx_modules_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
#include <TI/tivx_task.h>
#include <TI/tivx_target_kernel.h>
#include <TI/tivx_img_proc.h>
#include <edgeai_tiovx_target_kernels.h>

#include <TI/j7_tidl.h>
#include <TI/tivx_fileio.h>
Expand Down
2 changes: 2 additions & 0 deletions test/app_tiovx_dl_color_convert_module_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 859322d

Please sign in to comment.