Panda3D
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. 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 MovieTypeRegistryget_global_ptr ()
 Returns a pointer to the global MovieTypeRegistry instance. More...
 

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 Function Documentation

◆ get_global_ptr()

MovieTypeRegistry * MovieTypeRegistry::get_global_ptr ( )
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().

◆ load_audio_types()

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().

◆ load_movie_library()

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

Loads the module.

Definition at line 277 of file movieTypeRegistry.cxx.

Referenced by PT().

◆ load_video_types()

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().

◆ 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 77 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 200 of file movieTypeRegistry.cxx.

References downcase(), and extract_words().

Referenced by init_libffmpeg().


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