Less frame rate when used 2 buffers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Less frame rate when used 2 buffers

617 Views
titusstalin
Contributor V

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 ?

Labels (3)
0 Kudos
2 Replies

453 Views
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

453 Views
titusstalin
Contributor V

Thanks Igor.

I too suspected the same.

And generic v4l2 application uses buffer count as 4. (min)

0 Kudos