[vlc-devel] [PATCH 08/17] dash: added segmentlist and base to representation
Christopher at mailsrv.uni-klu.ac.at
Christopher at mailsrv.uni-klu.ac.at
Mon Jan 30 14:48:26 CET 2012
From: Christopher Mueller <christopher.mueller at itec.aau.at>
---
modules/stream_filter/dash/mpd/Representation.cpp | 29 +++++++++++++++++---
modules/stream_filter/dash/mpd/Representation.h | 9 ++++++
2 files changed, 33 insertions(+), 5 deletions(-)
diff --git a/modules/stream_filter/dash/mpd/Representation.cpp b/modules/stream_filter/dash/mpd/Representation.cpp
index f7be5bf..e358e34 100644
--- a/modules/stream_filter/dash/mpd/Representation.cpp
+++ b/modules/stream_filter/dash/mpd/Representation.cpp
@@ -31,11 +31,14 @@
using namespace dash::mpd;
-Representation::Representation() :
- qualityRanking( -1 ),
- segmentInfo( NULL ),
- trickModeType( NULL ),
- parentGroup( NULL )
+Representation::Representation () :
+ qualityRanking ( -1 ),
+ segmentInfo ( NULL ),
+ trickModeType ( NULL ),
+ parentGroup ( NULL ),
+ segmentBase ( NULL ),
+ segmentList ( NULL )
+
{
}
@@ -120,3 +123,19 @@ void Representation::addDependency(const Representation *dep)
if ( dep != NULL )
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;
+}
diff --git a/modules/stream_filter/dash/mpd/Representation.h b/modules/stream_filter/dash/mpd/Representation.h
index 0d01c47..89845d2 100644
--- a/modules/stream_filter/dash/mpd/Representation.h
+++ b/modules/stream_filter/dash/mpd/Representation.h
@@ -30,6 +30,8 @@
#include "mpd/CommonAttributesElements.h"
#include "mpd/SegmentInfo.h"
#include "mpd/TrickModeType.h"
+#include "mpd/SegmentBase.h"
+#include "mpd/SegmentList.h"
namespace dash
{
@@ -70,6 +72,11 @@ namespace dash
const Group* getParentGroup() const;
void setParentGroup( const Group *group );
+ SegmentList* getSegmentList () const;
+ void setSegmentList (SegmentList *list);
+ SegmentBase* getSegmentBase () const;
+ void setSegmentBase (SegmentBase *base);
+
private:
int bandwidth;
std::string id;
@@ -78,6 +85,8 @@ namespace dash
SegmentInfo *segmentInfo;
TrickModeType *trickModeType;
const Group *parentGroup;
+ SegmentBase *segmentBase;
+ SegmentList *segmentList;
};
}
}
--
1.7.0.4
More information about the vlc-devel
mailing list