Jetson sensor driver cropping


We want to support cropping in a custom Jetson sensor driver (L4T 32.3.1) when the user sets dynamically top/left corner, width and height of a ROI rectangle (the sensor allows setting of crop area).

At the moment it seems that Jetson sensor drivers support fixed number of predefined modes in the sensor device tree, which set crop areas.

Any suggestions or recommendations?


Why not using nvvidcon(VIC) to crop?

You mean the nvvidconv GStreamer plugin?
When the sensor does cropping, we expect greater frame rate.

Additionally (it is off-topic):
We cannot use nvarguscamerasrc and libArgus to get frames from gray-scale sensors.

OK, yes you can programing the sensor crop mode as output to Xavier as input.