Panda3D
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
MovieTypeRegistry Class Reference

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.
 
void load_movie_library (const std::string &name)
 Loads the module.
 
void load_video_types ()
 Loads the list with video types, if we haven't already.
 
 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.
 
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.
 

Static Public Member Functions

static MovieTypeRegistryget_global_ptr ()
 Returns a pointer to the global MovieTypeRegistry instance.
 

Detailed Description

This class records the different types of MovieAudio and MovieVideo that are available for loading.

Definition at line 28 of file movieTypeRegistry.h.

Member Typedef Documentation

◆ MakeAudioFunc

typedef PT MovieAudio(* MovieTypeRegistry::MakeAudioFunc) (const Filename &)

Definition at line 30 of file movieTypeRegistry.h.

◆ MakeVideoFunc

typedef PT MovieVideo(* MovieTypeRegistry::MakeVideoFunc) (const Filename &)

Definition at line 35 of file movieTypeRegistry.h.

Member Function Documentation

◆ get_global_ptr()

MovieTypeRegistry * MovieTypeRegistry::get_global_ptr ( )
inlinestatic

Returns a pointer to the global MovieTypeRegistry instance.

Definition at line 17 of file movieTypeRegistry.I.

Referenced by init_libffmpeg(), init_libmovies(), PT(), and PT().

◆ load_audio_types()

void MovieTypeRegistry::load_audio_types ( )

Loads the list with audio types, if we haven't already.

Definition at line 104 of file movieTypeRegistry.cxx.

References downcase(), extract_words(), ConfigVariableList::get_num_unique_values(), ConfigVariableList::get_unique_value(), and Filename::to_os_specific().

Referenced by PT().

◆ load_movie_library()

void MovieTypeRegistry::load_movie_library ( const std::string & name)

Loads the module.

Definition at line 290 of file movieTypeRegistry.cxx.

References Filename::to_os_specific().

Referenced by PT(), and PT().

◆ load_video_types()

void MovieTypeRegistry::load_video_types ( )

Loads the list with video types, if we haven't already.

Definition at line 234 of file movieTypeRegistry.cxx.

References downcase(), extract_words(), ConfigVariableList::get_num_unique_values(), ConfigVariableList::get_unique_value(), and Filename::to_os_specific().

Referenced by PT().

◆ register_audio_type()

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 82 of file movieTypeRegistry.cxx.

References downcase(), and extract_words().

Referenced by init_libffmpeg(), and init_libmovies().

◆ register_video_type()

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 212 of file movieTypeRegistry.cxx.

References downcase(), and extract_words().

Referenced by init_libffmpeg().


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