This class records the different types of MovieAudio and MovieVideo that are available for loading. More...
#include "movieTypeRegistry.h"
Public Types | |
| typedef PT() MovieAudio(* | MakeAudioFunc) (const Filename &) |
| typedef PT() MovieVideo(* | MakeVideoFunc) (const Filename &) |
Public Member Functions | |
| void | load_audio_types () |
| Loads the list with audio types, if we haven't already. More... | |
| void | load_movie_library (const std::string &name) |
| Loads the module. More... | |
| void | load_video_types () |
| Loads the list with video types, if we haven't already. More... | |
| PT (MovieAudio) make_audio(const Filename &name) | |
| PT (MovieVideo) make_video(const Filename &name) | |
| void | register_audio_type (MakeAudioFunc func, const std::string &extensions) |
| Registers a MovieAudio type, so that files with any of the given extensions will be loaded as this type. More... | |
| void | register_video_type (MakeVideoFunc func, const std::string &extensions) |
| Registers a MovieVideo type, so that files with any of the given extensions will be loaded as this type. More... | |
Static Public Member Functions | |
| static MovieTypeRegistry * | get_global_ptr () |
| Returns a pointer to the global MovieTypeRegistry instance. More... | |
This class records the different types of MovieAudio and MovieVideo that are available for loading.
Definition at line 28 of file movieTypeRegistry.h.
|
inlinestatic |
Returns a pointer to the global MovieTypeRegistry instance.
Definition at line 18 of file movieTypeRegistry.I.
Referenced by init_libffmpeg(), init_libmovies(), and PT().
| void MovieTypeRegistry::load_audio_types | ( | ) |
Loads the list with audio types, if we haven't already.
Definition at line 99 of file movieTypeRegistry.cxx.
Referenced by PT().
| void MovieTypeRegistry::load_movie_library | ( | const std::string & | name | ) |
| void MovieTypeRegistry::load_video_types | ( | ) |
Loads the list with video types, if we haven't already.
Definition at line 222 of file movieTypeRegistry.cxx.
Referenced by PT().
| void MovieTypeRegistry::register_audio_type | ( | MakeAudioFunc | func, |
| const std::string & | extensions | ||
| ) |
Registers a MovieAudio type, so that files with any of the given extensions will be loaded as this type.
You may use * as a catch-all extension.
Definition at line 77 of file movieTypeRegistry.cxx.
References downcase(), and extract_words().
Referenced by init_libffmpeg(), and init_libmovies().
| void MovieTypeRegistry::register_video_type | ( | MakeVideoFunc | func, |
| const std::string & | extensions | ||
| ) |
Registers a MovieVideo type, so that files with any of the given extensions will be loaded as this type.
You may use * as a catch-all extension.
Definition at line 200 of file movieTypeRegistry.cxx.
References downcase(), and extract_words().
Referenced by init_libffmpeg().
1.8.15