mw::mo::moflex::Demuxer::ReadPacket Function

Syntax


DemuxerReturn ReadPacket(void);

Arguments

None.

Returns

mw::mo::moflex::DEMUXER_RETURN_OK if success.
mw::mo::moflex::DEMUXER_RETURN_NULL if Create method was not previously called.
mw::mo::moflex::DEMUXER_RETURN_BUSY if didn't finished to read a full Moflex packet yet.
mw::mo::moflex::DEMUXER_RETURN_FATAL if a fatal error in encountered.
mw::mo::moflex::DEMUXER_RETURN_PACKET_RESIZE_FAILED if couldn't change the current size of a Moflex packet, because mw::mo::moflex::Reader::m_SetPacketSize function pointer returned false.
mw::mo::moflex::DEMUXER_RETURN_PACKET_INVALID if detected an invalid or corrupted Moflex packet.
mw::mo::moflex::DEMUXER_RETURN_NOT_ENOUGH_MEMORY if not enough memory.
mw::mo::moflex::DEMUXER_RETURN_STREAM_INVALID if detected an invalid or corrupted Moflex stream description format.
mw::mo::moflex::DEMUXER_RETURN_STREAM_REDECLARED if detected that a stream was redeclared with different parameter values.
mw::mo::moflex::DEMUXER_RETURN_BAD_SYNCHRO_COUNTER if detected a bad synchro counter.
mw::mo::moflex::DEMUXER_RETURN_STREAM_NOT_USED if detected that a declared stream is not used in Moflex data.
mw::mo::moflex::DEMUXER_RETURN_SYNCHRONISING if still waiting to find a valid synchro packet.
mw::mo::moflex::DEMUXER_RETURN_END if reached the end of a Moflex data, because mw::mo::moflex::Reader::m_IsEndOfData function pointer returned true.
mw::mo::moflex::DEMUXER_RETURN_NOT_INITIALIZED if demuxer API has not be initialized with the mw::mo::moflex::Demuxer::Initialize method.
mw::mo::moflex::DEMUXER_RETURN_SEEK_NOT_DONE if couldn't perform a seek, because mw::mo::moflex::Reader::m_SetPosition function pointer returned false.

Description

Tries to read a new Moflex packet.

Revision History

2010/04/15
Initial version.