I’m using an AGX Xavier with Jetpack 4.6 (MMAPI 32.6.1). I have GMSL cameras which use the V4L2 drivers. I have studied and used the MMAPI sample 12_camera_v4l2_cuda to capture frames from the cameras and process in CUDA.
I need to do this for multiple cameras simultaneously. Using pthreads, I have been able to capture from each camera and process them in separate threads. However, I am not able to figure out how to access a frame from each thread to perform CUDA operations in the main thread.
I tried studying the 13_multi_camera sample, however since it is for libargus cameras, I am not able to use it for my v4l2 cameras.
I would appreciate any pointers in figuring this out.