deVideoManager Class Reference

Video Resource Manager. More...

#include <deVideoManager.h>

Inheritance diagram for deVideoManager:
deFileResourceManager deResourceManager

List of all members.

Public Member Functions

Constructors and Destructors
 deVideoManager (deEngine *engine)
 Creates a new video resource manager linked to the given engine.
virtual ~deVideoManager ()
 Cleans up the video resource manager and reports leaking resources.
Management
int GetVideoCount () const
 retrieves the count of videos.
deVideoGetVideoAt (int index) const
 Retrieves the video at the given index.
deVideoGetVideoWith (const char *filename) const
 Retrieves the video with the given filename or NULL if not loaded yet.
deVideoLoadVideo (const char *filename, const char *basePath, bool streaming, bool asynchron)
 Loads a video from the given file relative to the given base path.
void SaveVideo (deVideo *video, const char *filename)
 Saves video to the given file.
deBaseVideoDecoderCreateDecoderFor (deVideo *video)
 Creates a decoder for the given video.
System Peer Management
virtual void SystemGraphicLoad ()
 Graphic System Peers of all stored resources have to be created.
virtual void SystemGraphicUnload ()
 Graphic System Peers of all stored resources have to be freed.
Resource only Functions

Those functions are only for resource objects and should never be called directly from an application.

virtual void RemoveResource (deResource *resource)
 Removes the given resource from the manager without freeing it.

Detailed Description

Video Resource Manager.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

deVideoManager::deVideoManager ( deEngine engine )

Creates a new video resource manager linked to the given engine.

virtual deVideoManager::~deVideoManager (  ) [virtual]

Cleans up the video resource manager and reports leaking resources.


Member Function Documentation

deBaseVideoDecoder* deVideoManager::CreateDecoderFor ( deVideo video )

Creates a decoder for the given video.

deVideo* deVideoManager::GetVideoAt ( int  index ) const

Retrieves the video at the given index.

int deVideoManager::GetVideoCount (  ) const

retrieves the count of videos.

deVideo* deVideoManager::GetVideoWith ( const char *  filename ) const

Retrieves the video with the given filename or NULL if not loaded yet.

deVideo* deVideoManager::LoadVideo ( const char *  filename,
const char *  basePath,
bool  streaming,
bool  asynchron 
)

Loads a video from the given file relative to the given base path.

virtual void deVideoManager::RemoveResource ( deResource resource ) [virtual]

Removes the given resource from the manager without freeing it.

Implements deResourceManager.

void deVideoManager::SaveVideo ( deVideo video,
const char *  filename 
)

Saves video to the given file.

virtual void deVideoManager::SystemGraphicLoad (  ) [virtual]

Graphic System Peers of all stored resources have to be created.

Reimplemented from deResourceManager.

virtual void deVideoManager::SystemGraphicUnload (  ) [virtual]

Graphic System Peers of all stored resources have to be freed.

Reimplemented from deResourceManager.


The documentation for this class was generated from the following file: