AnsweredAssumed Answered

iMX6 v4l2 capture 2 buffers queue

Question asked by edison.fernandez on Feb 26, 2018
Latest reply on Feb 27, 2018 by igorpadykov



I have an application where I have my camera configured with a long exposure and I need to capture one frame and analize it to detect a certain event.


My problem is that, due to the minimum 2 buffers queue that v4l has, when I dqueue a buffer, I get the oldest in the queue and given the long exposure it is too old for the application as I need the frame to be as close as possible to the time I try to dqueue it so my question is.


Is there a way of avoiding this minimum 2 buffers queue? This is, queuing one buffer only.

If not, is there a way of dqueuing the newest buffer in the queue?


Any help will be appreciated.