mw::mo::helper::VideoPresentationBuffer::Initialize Function

Syntax


bool Initialize (nn::fnd::IAllocator* pAllocator, const mw::mo::moflex::VideoStreamInfo* pTopScreenVideoStreamInfo,
                 const mw::mo::moflex::VideoStreamInfo* pBottomScreenVideoStreamInfo = NULL);

Arguments

Name Description
in pAllocator The pointer to an allocator class that will be used for all momory allocation/deallocation tasks.
in pTopScreenVideoStreamInfo The pointer to a Moflex video stream info structure that holds all informations on the Moflex video stream that is associated to the top screen
If this parameter has the NULL value then the bottom screen will not be used as video presentation target.
in pBottomScreenVideoStreamInfo The pointer to a Moflex video stream info structure that holds all informations on the Moflex video stream that is associated to the bottom screen.
If this parameter is not defined by the caller its value is NULL, meaning that the bottom screen will not be used as video presentation target.

Returns

true if success.
false if an error happened during the process.
In the case of this base class false is returned if pAllocator pointer has the value NULL.
In derived classes an error can also be triggered for other reasons.

Description

Creates(allocates) and itializes all internal datas of the VideoPresentationBuffer class.
This base class only stores the parameters value in its class members.
Derived classes can also perform other actions like target screen buffer allocations and initializations.
Derived classes should override this method and the overrided method should call the base class Initialize method before doing any of its initialization work.

Revision History

2011/10/03
Initial version.