Sirikata
|
Glue layer for FFmpeg. More...
#include <FFmpegGlue.hpp>
Public Member Functions | |
void | ref () |
void | unref () |
String | addProtocol (FFmpegURLProtocol *protocol) |
void | removeProtocol (FFmpegURLProtocol *protocol) |
void | getProtocol (const String &key, FFmpegURLProtocol **protocol) |
Protected Types | |
typedef boost::mutex | Mutex |
typedef boost::lock_guard< Mutex > | Lock |
typedef std::map< String, FFmpegURLProtocol * > | ProtocolMap |
Protected Member Functions | |
FFmpegGlue () | |
~FFmpegGlue () | |
friend | std::auto_ptr () |
String | getProtocolKey (FFmpegURLProtocol *protocol) |
Protected Attributes | |
int32 | mRefCount |
Mutex | mMutex |
ProtocolMap | mProtocols |
Friends | |
class | AutoSingleton< FFmpegGlue > |
void | std::auto_ptr (FFmpegGlue *) |
Glue layer for FFmpeg.
Deals with initialization, cleanup, and providing an easy way to load from in-memory data.
typedef boost::lock_guard<Mutex> Sirikata::SDL::FFmpegGlue::Lock [protected] |
typedef boost::mutex Sirikata::SDL::FFmpegGlue::Mutex [protected] |
typedef std::map<String, FFmpegURLProtocol*> Sirikata::SDL::FFmpegGlue::ProtocolMap [protected] |
Sirikata::SDL::FFmpegGlue::FFmpegGlue | ( | ) | [protected] |
Sirikata::SDL::FFmpegGlue::~FFmpegGlue | ( | ) | [protected] |
String Sirikata::SDL::FFmpegGlue::addProtocol | ( | FFmpegURLProtocol * | protocol | ) |
References getProtocolKey(), mMutex, and mProtocols.
Referenced by Sirikata::SDL::FFmpegStream::initDecode().
void Sirikata::SDL::FFmpegGlue::getProtocol | ( | const String & | key, |
FFmpegURLProtocol ** | protocol | ||
) |
References mMutex, and mProtocols.
String Sirikata::SDL::FFmpegGlue::getProtocolKey | ( | FFmpegURLProtocol * | protocol | ) | [protected] |
Referenced by addProtocol().
void Sirikata::SDL::FFmpegGlue::ref | ( | ) |
References mRefCount.
Referenced by Sirikata::SDL::AudioSimulation::iStart().
void Sirikata::SDL::FFmpegGlue::removeProtocol | ( | FFmpegURLProtocol * | protocol | ) |
References mMutex, and mProtocols.
Referenced by Sirikata::SDL::FFmpegStream::cleanupDecode().
Sirikata::SDL::FFmpegGlue::std::auto_ptr | ( | ) | [protected] |
void Sirikata::SDL::FFmpegGlue::unref | ( | ) |
References Sirikata::AutoSingleton< FFmpegGlue >::destroy(), and mRefCount.
Referenced by Sirikata::SDL::AudioSimulation::iStop().
friend class AutoSingleton< FFmpegGlue > [friend] |
void std::auto_ptr | ( | FFmpegGlue * | ) | [friend] |
Mutex Sirikata::SDL::FFmpegGlue::mMutex [protected] |
Referenced by addProtocol(), getProtocol(), and removeProtocol().
ProtocolMap Sirikata::SDL::FFmpegGlue::mProtocols [protected] |
Referenced by addProtocol(), getProtocol(), and removeProtocol().
int32 Sirikata::SDL::FFmpegGlue::mRefCount [protected] |