[vlc-commits] dash: added segmentlist and base to representation

Christopher Mueller git at videolan.org
Thu Feb 2 12:33:24 CET 2012


vlc | branch: master | Christopher Mueller <christopher.mueller at itec.aau.at> | Mon Jan 30 14:48:26 2012 +0100| [4bb0bc0081caace961f513f26399be49e4553cf9] | committer: Hugo Beauzée-Luyssen

dash: added segmentlist and base to representation

Signed-off-by: Hugo Beauzée-Luyssen <beauze.h at gmail.com>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4bb0bc0081caace961f513f26399be49e4553cf9
---

 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;
         };
     }
 }



More information about the vlc-commits mailing list