Hello,
We are currently attempting to transform our camera streams to OpenGL textures on the TDA4 with the 8.02 PSDK.
We are using a YUV sensor, so we have applied the patches described in the following link to enable support in the app_multi_cam demo for our YUV sensor. This allowed us to stream multiple cameras successfully.
e2e.ti.com/.../faq-how-to-run-multi-cam-usecase-for-yuv-sensors
In order take the next step of transforming our camera streams to OpenGL textures, we have modified the app_multi_cam demo
by removing the ImgMosaicNode and replacing it with the tivxOpenglMosaicNode, as described in the app_linux_arm_opengl_mosaic demo. After these changes, we see the program seg fault when attempting to dequeue the fourth frame with the following line:
status =
vxGraphParameterDequeueDoneRef(obj->graph,
captureObj->graph_parameter_index,
(vx_reference*)&capture_input_arr, 1, &num_refs);
First of all, is our current method the best/most efficient route to convert our camera streams to OpenGL textures? If so, what can be done to resolve the seg fault and achieve a continuous stream of OpenGL textures?
Thank you in advance for your time and attention.
This is the end of the demo log:
------------------------------------------
92.845018 s: ISS: Starting sensor [GW_AR0233_UYVY] ... !!! appStartImageSensor returned with status: 0 app_run_graph_for_one_pipeline: frame 0 beginning app_run_graph_for_one_pipeline: frame 1 beginning app_run_graph_for_one_pipeline: frame 2 beginning ========================= Demo : Camera Demo ========================= s: Save CSIx, VISS and LDC outputs p: Print performance statistics x: Exit Enter Choice: Execute 1st frame ========================= Demo : Camera Demo ========================= s: Save CSIx, VISS and LDC outputs p: Print performance statistics x: Exit Enter Choice: Dequeue input: frame 2 [MCU2_0] 92.845477 s: VX_ZONE_WARNING:[tivxCaptureSetTimeout:774] CAPTURE: WARNING: Error frame not provided using tivxCaptureRegisterErrorFrame, defaulting to waiting forever !!! Enqueue input - start execution: frame 2 app_run_graph_for_one_pipeline: frame 3 beginning Dequeue input: frame 3 ./run_app_multi_cam.sh: line 1: 1262 Segmentation fault (core dumped) /opt/vision_apps/vx_app_multi_cam.out --cfg /opt/vision_apps/app_multi_cam.cfg