mw::mo::helper::Player::Create Function

Syntax


bool Create (nn::fnd::IAllocator* pAllocator, mw::mo::moflex::Demuxer* pDemuxer, CodecInstantiation* pCodecInstantiation,                    
             VideoPresentation* pVideoPresentation, AudioPresentation* pAudioPresentation);

Arguments

Name Description
in pAllocator The pointer to an allocator class that will be used for all momory allocation/deallocation tasks.
in pDemuxer The pointer to a Moflex demuxer class that will be used for the retrieval of all needed movie data.
in pCodecInstantiation The pointer to a codec instantiation class that will be used to allocate/de-allocate audio and video decoders instances.
in pVideoPresentation The pointer to a video presentation class that will be used to retrieve informations on the target buffers where to make the YUV->RGB color conversion.
in pAudioPresentation The pointer to an audio presentation class that will be used to retrieve informations on where to copy decoded audio data.

Returns

true if success.
false if one of the parameters have the NULL value.

Description

Creates(allocates) and itializes all internal datas of the Player class.
The Run thread and various thread synchronization objects are created and initialized.
The Player status becomes PLAYER_OPENING after the call of this function.

Revision History

2011/10/03
Initial version.