Video Resource Manager. More...
#include <deVideoManager.h>
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. | |
| deVideo * | GetVideoAt (int index) const |
| Retrieves the video at the given index. | |
| deVideo * | GetVideoWith (const char *filename) const |
| Retrieves the video with the given filename or NULL if not loaded yet. | |
| deVideo * | LoadVideo (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. | |
| deBaseVideoDecoder * | CreateDecoderFor (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. | |
Video Resource Manager.
| 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.
| 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.
1.7.2