Skip to content

Commit

Permalink
modules: ldc: viss: added support for ISP live tuning
Browse files Browse the repository at this point in the history
CMakeLists: added build flag for ISP live tuning

added ISP live tuning initialization to LDC and VISS modules
and added build option for enabling/disabling live tuning.
  • Loading branch information
Brandon-Maciel-TI authored and shyam-j committed Dec 16, 2022
1 parent c4de7d6 commit 5aa2116
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ build_lib(${PROJECT_NAME} # Named argument: library name

add_subdirectory(test)

option(INSTALL_SRC "Install src under /opt" OFF)
option(INSTALL_SRC "Install src under /opt" OFF)
option(ENABLE_DCC_TOOL "Enable DCC Tuning Tool Support" OFF)

if (INSTALL_SRC)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
Expand All @@ -47,3 +48,7 @@ if (INSTALL_SRC)
PATTERN "*/data*" EXCLUDE
PATTERN "*/.git*" EXCLUDE)
endif()

if(ENABLE_DCC_TOOL)
add_definitions(-DENABLE_DCC_TOOL)
endif()
6 changes: 6 additions & 0 deletions include/tiovx_modules_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ extern "C" {

#define TIOVX_MODULE_ERROR(f_, ...) printf("[ERROR] %d: %s: "f_, __LINE__, __func__, ##__VA_ARGS__)

typedef enum {
VISS = 0,
AEWB,
LDC,
} EDGEAI_NODES;

typedef struct {
vx_object_array arr[TIOVX_MODULES_MAX_BUFQ_DEPTH];
tivx_raw_image image_handle[TIOVX_MODULES_MAX_BUFQ_DEPTH];
Expand Down
15 changes: 15 additions & 0 deletions src/tiovx_ldc_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,17 @@ vx_status tiovx_ldc_module_init(vx_context context, TIOVXLDCModuleObj *obj, Sens
status = tiovx_ldc_module_create_outputs(context, obj);
}

#if defined(ENABLE_DCC_TOOL)
if((vx_status)VX_SUCCESS == status)
{
status = itt_register_object(context,
&(obj->node),
NULL,
NULL,
LDC);
}
#endif

return (status);
}

Expand Down Expand Up @@ -678,6 +689,10 @@ vx_status tiovx_ldc_module_create(vx_graph graph, TIOVXLDCModuleObj *obj, vx_obj
status = tiovx_ldc_module_add_write_output_node(graph, obj);
}

#if defined(ENABLE_DCC_TOOL)
status = itt_server_edge_ai_init();
#endif

return status;
}

Expand Down
15 changes: 15 additions & 0 deletions src/tiovx_viss_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,17 @@ vx_status tiovx_viss_module_init(vx_context context, TIOVXVISSModuleObj *obj, Se
status = tiovx_viss_module_create_outputs(context, obj);
}

#if defined(ENABLE_DCC_TOOL)
if((vx_status)VX_SUCCESS == status)
{
status = itt_register_object(context,
&(obj->node),
&(obj->input.image_handle[0]),
&(obj->output2.image_handle[0]),
VISS);
}
#endif

return (status);
}

Expand Down Expand Up @@ -1003,6 +1014,10 @@ vx_status tiovx_viss_module_create(vx_graph graph, TIOVXVISSModuleObj *obj, vx_o
status = tiovx_viss_module_add_write_output_node(graph, obj);
}

#if defined(ENABLE_DCC_TOOL)
status = itt_server_edge_ai_init();
#endif

return status;
}

Expand Down

0 comments on commit 5aa2116

Please sign in to comment.