We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

3 posts • Page 1 of 1
matus.jurecka
Posts: 14
Joined: Tue Apr 14, 2020 6:54 am

camera component fillBufferDone callback

Mon May 11, 2020 8:14 am

I am using openmax IL (no mmal) to get YUV pixel data from camera video port 71. I am not using tunneling to other component. I just enabled port, allocated buffers for it and set FillBufferDone callback. It works ok but I found out that FillBufferDone callback function is triggered every 16 lines. That's 54 times per one 1536x864 frame. Is it possible to somehow decrease this callback triggering frequency?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 18476
Joined: Wed Dec 04, 2013 11:27 am

Re: camera component fillBufferDone callback

Mon May 11, 2020 8:26 am

Set nSliceHeight in the port format appropriately. If you leave it at the default of 16, then you will get 16 lines per slice. Set it to (nFrameHeight+15)&~15 and you should get the full frame.

(NB It must be a multiple of 16, hence the maths).
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

matus.jurecka
Posts: 14
Joined: Tue Apr 14, 2020 6:54 am

Re: camera component fillBufferDone callback

Mon May 11, 2020 1:53 pm

Thank you very much. That's exactly what I was looking for. Now fillBufferDone is called once per frame and it works perfect.

3 posts • Page 1 of 1

Return to "OpenMAX"

AltStyle によって変換されたページ (->オリジナル) /