MODecode

C Specification

#include <mo/Mobiclip.h>

MOStatus MODecode(MOInstance* pInstance, u32* pFrameNumber);

Arguments

pInstance Instance of the concerned movie.
pFrameNumber Will receive the decoded video frame number unless NULL value is given by the user.

Return Values

MO_STATUS_READY Success.
MO_STATUS_NEED_DATA Need to read more data to decode a frame.
MO_STATUS_ERROR MOInstance pointer is NULL, or fatal error.
MO_STATUS_END No more frames to decode, end of movie is reached.

Description

That function is used to read and decode one video and one audio frame.
The audio and video frame are stored internally in the library queues and not converted to a given format.
See MOGetYUVImage, MOGetRGBImage or MOGetAudioPacket to actually get a frame.

See Also

MOGetYUVImage

MOGetRGBImage

MOSkipImage

MOGetAudioPacket

MOSkipAudioPacket

Revision History

09/18/2009 Added MO_STATUS_END return value description.

03/26/2009 Parameter renaming done.

06/22/2008 Initial version.