MetaObject Class Reference
<class description="" goes="" here=""> <short description=""> More...
#include <MetaObject.hpp>
Public Member Functions | |
MetaObject (ContainerInfo *stream) | |
creates a new meta-object for the given stream. | |
MetaObject (const char *configFile) | |
creates a new empty meta-object and tries to init from a config file | |
~MetaObject () | |
frees memory for all ContainerInfo objects | |
ContainerInfo * | findMp4Stream (u32 lowerDimX, u32 upperDimX, u32 lowerDimY, u32 upperDimY, u32 lowerBitRate, u32 upperBitRate, bool greyScale, float frameRate, bool *isExactMatch) |
search for a stream with specified properties | |
bool | addMP4Stream (ContainerInfo *stream) |
bool | deleteMP4Stream (ContainerInfo *stream) |
returns true iff the stream is found | |
const Url * | getUrl () const |
bool | saveToConfigFile (const char *cfg) |
int | getNumberOfVariations () const |
std::list< ContainerInfo * > * | getVariations () |
returns a pointer to the internal variations. | |
void | releaseVariationsLock () |
Protected Member Functions | |
bool | loadFromConfigFile (const char *cfg) |
if this method is called, it will destroy all previously stored ContainerInfo objects and delete the url. | |
double | calcSimpleQuality (u32 min, u32 max, u32 val) |
calculates quality inside the range min, max for value val | |
Protected Attributes | |
list< ContainerInfo * > | variations |
Url * | url |
VMutex | lockAccess |
u32 | pendingOutsideUnlock |
Detailed Description
<class description="" goes="" here=""> <short description="">
- Author:
- Michael Kropfberger and Peter Schojer
- Version:
- Id
- MetaObject.hpp,v 1.10 2006/01/20 15:37:17 mkropfbe Exp
Definition at line 65 of file MetaObject.hpp.
Constructor & Destructor Documentation
|
creates a new meta-object for the given stream.
References ContainerInfo::getUrl(), VMutex::initialize(), ContainerInfo::setMetaObject(), and Url::toString().
|
Member Function Documentation
|
References ContainerInfo::destroy(), ContainerInfo::getFirstVisualES(), ContainerInfo::getUrl(), Url::isEqual(), VMutex::lock(), VMutex::release(), and ContainerInfo::setMetaObject(). Referenced by CacheManagerLRU::putVideo().
|
|
calculates quality inside the range min, max for value val
Referenced by findMp4Stream().
|
|
search for a stream with specified properties
References calcSimpleQuality(), ContainerInfo::getESList(), ContainerInfo::getFirstVisualES(), VMutex::lock(), and VMutex::release(). Referenced by ServerSession::setUrl(), and ProxySession::setUrl().
|
|
returns a pointer to the internal variations. locks and KEEPS the lock. You must call releaseVariationsLock(), when you are done with the listDefinition at line 396 of file MetaObject.cpp. References VMutex::lock().
|
|
if this method is called, it will destroy all previously stored ContainerInfo objects and delete the url. Then it will load the cfg file. Recommended use is to call it only from a constructorDefinition at line 354 of file MetaObject.cpp. References ContainerInfo::loadFromCfgFile(), VMutex::lock(), and VMutex::release(). Referenced by MetaObject().
|
The documentation for this class was generated from the following files: