Hello,
I have used the OV5640 MIPI camera with i.MX6 platform and using prebuilt i.MX BSP binaries.
Getting less frame rates when using 2 buffers (VIDIOC_REQBUFS) and able to see the higher or actual frame rate if I use 3 or more buffers.
What could be reason for this behavior ?
Hi Titus
usually several circle buffers are used: one is filled with sensor data, others are
processed in chain by application. Two buffers are min. number: one is filling with sensor data,
other is processed by application, after that they are changed in places. Two buffers may require
more overheads and underrun may happens, when sensor data was not ready when other
buffer was already emptied by application. Three or more buffers allows more flexible
timings and do not require strict synchronization as in case two buffers.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks Igor.
I too suspected the same.
And generic v4l2 application uses buffer count as 4. (min)