Commit 4bb0bc00 authored by Christopher Mueller's avatar Christopher Mueller Committed by Hugo Beauzée-Luyssen

dash: added segmentlist and base to representation

Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent 4a1c8e4d
...@@ -31,11 +31,14 @@ ...@@ -31,11 +31,14 @@
using namespace dash::mpd; using namespace dash::mpd;
Representation::Representation() : Representation::Representation () :
qualityRanking( -1 ), qualityRanking ( -1 ),
segmentInfo( NULL ), segmentInfo ( NULL ),
trickModeType( NULL ), trickModeType ( NULL ),
parentGroup( NULL ) parentGroup ( NULL ),
segmentBase ( NULL ),
segmentList ( NULL )
{ {
} }
...@@ -120,3 +123,19 @@ void Representation::addDependency(const Representation *dep) ...@@ -120,3 +123,19 @@ void Representation::addDependency(const Representation *dep)
if ( dep != NULL ) if ( dep != NULL )
this->dependencies.push_back( dep ); this->dependencies.push_back( dep );
} }
SegmentList* Representation::getSegmentList () const
{
return this->segmentList;
}
void Representation::setSegmentList (SegmentList *list)
{
this->segmentList = list;
}
SegmentBase* Representation::getSegmentBase () const
{
return this->segmentBase;
}
void Representation::setSegmentBase (SegmentBase *base)
{
this->segmentBase = base;
}
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
#include "mpd/CommonAttributesElements.h" #include "mpd/CommonAttributesElements.h"
#include "mpd/SegmentInfo.h" #include "mpd/SegmentInfo.h"
#include "mpd/TrickModeType.h" #include "mpd/TrickModeType.h"
#include "mpd/SegmentBase.h"
#include "mpd/SegmentList.h"
namespace dash namespace dash
{ {
...@@ -70,6 +72,11 @@ namespace dash ...@@ -70,6 +72,11 @@ namespace dash
const Group* getParentGroup() const; const Group* getParentGroup() const;
void setParentGroup( const Group *group ); void setParentGroup( const Group *group );
SegmentList* getSegmentList () const;
void setSegmentList (SegmentList *list);
SegmentBase* getSegmentBase () const;
void setSegmentBase (SegmentBase *base);
private: private:
int bandwidth; int bandwidth;
std::string id; std::string id;
...@@ -78,6 +85,8 @@ namespace dash ...@@ -78,6 +85,8 @@ namespace dash
SegmentInfo *segmentInfo; SegmentInfo *segmentInfo;
TrickModeType *trickModeType; TrickModeType *trickModeType;
const Group *parentGroup; const Group *parentGroup;
SegmentBase *segmentBase;
SegmentList *segmentList;
}; };
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment