Capture/Crop in V4L2_MEMORY_DMABUF mode

I know that we can perform camera frame capture and crop in “V4L2_MEMORY_MMAP” mode. However, I need to capture camera frames and crop them to specific dimensions in “V4L2_MEMORY_DMABUF” mode on Jetson Tegra boards. Is it possible to do this using “ioctl()” function with “VIDIOC_CROPCAP” and “VIDIOC_S_CROP” parameter. Based on the sample projects below (provided by Nvidia):
I presume it should be possible to perform camera frame capture & crop in “V4L2_MEMORY_DMABUF” mode. I will be grateful for any help on this question. Sample code are highly appreciated.

Your camera must be YUV camera to reference to 12_camera_v4l2_cuda/v4l2cuda sample.
And you can use video convert to do the cropping.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.