Less frame rate when used 2 buffers

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Less frame rate when used 2 buffers

1,209件の閲覧回数
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 ?

ラベル(3)
0 件の賞賛
返信
2 返答(返信)

1,045件の閲覧回数
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 件の賞賛
返信

1,045件の閲覧回数
titusstalin
Contributor V

Thanks Igor.

I too suspected the same.

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

0 件の賞賛
返信