Hi,
Is there a way to set a timeout on DMAI's Capture_get call? I've tried to change the open to video0 to O_NONBLOCK but this is not exactly what I need.
I like its blocking nature but a timeout would be very useful.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Is there a way to set a timeout on DMAI's Capture_get call? I've tried to change the open to video0 to O_NONBLOCK but this is not exactly what I need.
I like its blocking nature but a timeout would be very useful.
I reply to myself:
poll and select can be used on the v4l driver and both they support timeouts. Read event means that a new image is ready.
DMAI source code must be modified to obtaind the file descriptor or poll/select must me inserted in Capture_get, though.