does RB_GetLatestFrame ever return the same frame twice

Post Reply
cheshirekow
Posts: 6
Joined: Wed Mar 26, 2008 8:19 pm

does RB_GetLatestFrame ever return the same frame twice

Post by cheshirekow »

So I can see that RB_GetLatestFrame can return two values: NoFrameAvailable and NPRESULT_SUCCESS. If I call RB_GetLatestFrame twice within say 5ms, where the camera's only aquire a new frame every 10ms, will RB_GetLatestFrame return NPRESULT_SUCCESS or will it return NoFrameAvailable?

Thanks
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: does RB_GetLatestFrame ever return the same frame twice

Post by beckdo »

Yes you can call it as often as you like. You'll get the NoFrameAvailable if there are no completed frames ready to be consumed by the application level (your app). If you haven't called it since a new frame has come in, you'll get NPRESULT_SUCCESS.

There's no harm in calling it more often then frames come in.
cheshirekow
Posts: 6
Joined: Wed Mar 26, 2008 8:19 pm

Re: does RB_GetLatestFrame ever return the same frame twice

Post by cheshirekow »

Excellent! Thank you much.
Post Reply