Hello,
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):
/usr/src/jetson_multimedia_api/samples/12_camera_v4l2_cuda
usr/src/jetson_multimedia_api/samples/v4l2cuda/
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.
Sincerely,
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.
https://docs.nvidia.com/jetson/l4t-multimedia/group__V4L2Conv.html
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.