MOGetNumberOfBufferedFrames

C Specification

#include <mo/Mobiclip.h>

MOResult MOGetNumberOfBufferedFrames(const MOInstance* pInstance, u32 *pBufferedFrames)

Arguments

pInstance Instance of the concerned movie.
pBufferedFrames Will contain the number of frames buffered in the video queue.

Return Values

MO_RESULT_OK Success.
MO_RESULT_NULL MOInstance pointer is NULL.
MO_RESULT_NOT_OPENED A successfull call to MOOpen function have not been done before, or open process not complete yet.

Description

Video frames are buffered (up to MO_MAX_BUFFERED_FRAME, see MODecode).
The MOGetNumberOfBufferedFrames function will return the number of already decoded frames present in the video queue.
If the return value is for example 4, it means that you can call up to 4 times MOGetRGBImage or MOGetYUVImage before calling MODecode.

See Also

MODecode

MOGetRGBImage

MOGetYUVImage

Revision History

03/26/2009 Parameter renaming done.

06/22/2008 Initial version.