AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
avtranscoder::ProfileLoader Class Reference

#include <ProfileLoader.hpp>

Public Types

typedef std::map< std::string,
std::string > 
Profile
 
typedef std::vector< ProfileProfiles
 

Public Member Functions

 ProfileLoader (const bool autoload=true)
 
void loadProfiles (const std::string &avProfilesPath="")
 Load profiles from files in avProfilesPath directory. More...
 
void loadProfile (const std::string &avProfileFileName)
 Load the profile defines in the given file. More...
 
void loadProfile (const Profile &profile)
 Load the given profile

Exceptions
throwstd::runtime_error if the profile is invalid.
More...
 
bool hasProfile (const Profile &profile) const
 
const ProfilesgetProfiles () const
 
Profiles getFormatProfiles () const
 
Profiles getVideoProfiles () const
 
Profiles getAudioProfiles () const
 
const ProfilegetProfile (const std::string &avProfileIdentificator) const
 

Static Public Member Functions

static bool checkFormatProfile (const Profile &profileToCheck)
 
static bool checkVideoProfile (const Profile &profileToCheck)
 
static bool checkAudioProfile (const Profile &profileToCheck)
 

Private Attributes

Profiles _profiles
 

Detailed Description

Definition at line 35 of file ProfileLoader.hpp.

Member Typedef Documentation

typedef std::map<std::string, std::string> avtranscoder::ProfileLoader::Profile

Definition at line 38 of file ProfileLoader.hpp.

Definition at line 39 of file ProfileLoader.hpp.

Constructor & Destructor Documentation

avtranscoder::ProfileLoader::ProfileLoader ( const bool  autoload = true)
Parameters
autoloadload profiles defined as text files at AVPROFILES

Definition at line 12 of file ProfileLoader.cpp.

References loadProfiles().

Member Function Documentation

ProfileLoader::Profiles avtranscoder::ProfileLoader::getAudioProfiles ( ) const
ProfileLoader::Profiles avtranscoder::ProfileLoader::getFormatProfiles ( ) const
const ProfileLoader::Profile & avtranscoder::ProfileLoader::getProfile ( const std::string &  avProfileIdentificator) const
const ProfileLoader::Profiles & avtranscoder::ProfileLoader::getProfiles ( ) const

Definition at line 123 of file ProfileLoader.cpp.

References _profiles.

ProfileLoader::Profiles avtranscoder::ProfileLoader::getVideoProfiles ( ) const
bool avtranscoder::ProfileLoader::hasProfile ( const Profile profile) const
void avtranscoder::ProfileLoader::loadProfile ( const std::string &  avProfileFileName)

Load the profile defines in the given file.

Definition at line 18 of file ProfileLoader.cpp.

References avtranscoder::split().

Referenced by avtranscoder::Transcoder::addDummyStream(), avtranscoder::Transcoder::addTranscodeStream(), and loadProfiles().

void avtranscoder::ProfileLoader::loadProfiles ( const std::string &  avProfilesPath = "")

Load profiles from files in avProfilesPath directory.

Parameters
avProfilesPathif empty, the path is replaced by value of AVPROFILES environment variable

Definition at line 36 of file ProfileLoader.cpp.

References avtranscoder::getFilesInDir(), loadProfile(), LOG_WARN, and avtranscoder::split().

Referenced by ProfileLoader().

Field Documentation

Profiles avtranscoder::ProfileLoader::_profiles
private

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