HI, TI expert,
The processor I am currently using is TDA4VM, and the psdk version is PSDK-07.01.00.11.
Our project needs to connect 2 sets of cameras on 1 TDA4, 1 set of ar0233 cameras through csirx0, and 1 set of ar0147 cameras through csirx1. I use two app_multi_cam applications to process the data of two sets of cameras respectively.
The phenomena I tested are as follows:
1. Run app_multi_cam alone to connect to the ar0233 camera, it can run normally, and the frame rate is 30fps;
2. Run app_multi_cam alone to connect to the ar0147 camera, it can run normally, and the frame rate is 25fps;
3. Run two app_multi_cams to connect to the ar0233 camera and ar0147 camera respectively, and the frame rate of the two applications is 0;
4. Turn off enable_viss/enable_aewb/enable_display in the app_multi_cam application, there has only capture in graph, and run 2 app_multi_cams at the same time to connect to the ar0233 camera and ar0147 camera respectively, the frame rate is normal, the frame rate of ar0233 is 30fps, and the frame rate of ar0147 is 25fps;
5. Turn off enable_aewb/enable_display in the app_multi_cam application, only enable_viss is enabled, there has capture and viss node in graph, two app_multi_cams are running at the same time to connect to the ar0233 camera and ar0147 camera respectively, and the frame rate of both applications is 0;
According to the above test, I think it is the tiovxAddTargetKernelVpacViss() function in the tiovx/kernels_j7/hwa/vpac_viss/vx_vpac_viss_target.c file, only one VPAC_VISS1 is registered. So I added VPAC_VISS2 to tiovx and modified it as follows.
1. Add the definition of TIVX_TARGET_VPAC_VISS2 in the kernels/include/TI/j7.h file
2. Add target_id in the source/platform/psdk_j7/common/tivx_platform_psdk_j7.h file
3. Register TIVX_TARGET_VPAC_VISS2 in the source/platform/psdk_j7/bios/tivx_target_config_mcu2_0.c file
4. In the tivxAddTargetKernelVpacViss() function of the kernels_j7/hwa/vpac_viss/vx_vpac_viss_target.c file, make the following modifications.
5. In the app_multi_cam application, use TIVX_TARGET_VPAC_VISS1 and TIVX_TARGET_VPAC_VISS2 according to sensor_idx, and modify as follows:
But after the above modification, retest step 5 again. The frame rate is still 0.
Are there any restrictions on the use of VISS node? How can I solve this problem?
Best Regards
Kepei