It seems not necessary to VIDIOC_QBUF in start_capturing() #556
sanbrother
started this conversation in
General
Replies: 1 comment 1 reply
-
By queueing all buffers immediately; the behaviour of the buffers when queueing/dequeuing is that the least-recently queued buffer is always dequeued, and the most recently queued buffer is at the 'head' of the output stream. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote a sample app based on producer.c
I don't understand why VIDIOC_QBUF in start_capturing(), is it necessary? I removed those lines, and it still works.
The VIDIOC_QBUF breaks poll / select, because it will enqueue N empty buffers.
So, if you capture one image using v4l2-ctl, it will be an empty black one.
Beta Was this translation helpful? Give feedback.
All reactions