I am just settling on a way to do my video processing and it seems like I might be using the MMAPI. There is this example for grabbing video from a camera and doing CUDA stuff with it:
Hi,
If your camera source is a v4l2 source, 12_camera_v4l2_cuda is the bast way. If the source is Bayer sensors, you can refer to 09_camera_jpeg_capture and 10_camera_recording.
If your CSI camera is a Bayer sensor and requires hardware ISP engine, you must use libargus.
If the camera is with onboard ISP and outputs frames in YUV422(usch as UYVY or YUYV) format, you can capture through v4l2 interface just like 12_camera_v4l2_cuda demonstrates.