[vlc-commits] dash: added adaptationset

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:21 2012 +0100| [998f1619cb00c6ed3b6131994d3eceb266350a8b] | committer: Hugo Beauzée-Luyssen

dash: added adaptationset

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

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

 modules/stream_filter/dash/Modules.am            |    2 +
 modules/stream_filter/dash/mpd/AdaptationSet.cpp |   44 +++++++++++++++++++
 modules/stream_filter/dash/mpd/AdaptationSet.h   |   49 ++++++++++++++++++++++
 3 files changed, 95 insertions(+), 0 deletions(-)

diff --git a/modules/stream_filter/dash/Modules.am b/modules/stream_filter/dash/Modules.am
index caf5e0d..aef3011 100644
--- a/modules/stream_filter/dash/Modules.am
+++ b/modules/stream_filter/dash/Modules.am
@@ -17,6 +17,8 @@ SOURCES_stream_filter_dash = \
     http/HTTPConnectionManager.cpp \
     http/HTTPConnectionManager.h \
     http/IHTTPConnection.h \
+    mpd/AdaptationSet.cpp \
+    mpd/AdaptationSet.h \
     mpd/BaseUrl.h \
     mpd/BasicCMManager.cpp \
     mpd/BasicCMManager.h \
diff --git a/modules/stream_filter/dash/mpd/AdaptationSet.cpp b/modules/stream_filter/dash/mpd/AdaptationSet.cpp
new file mode 100644
index 0000000..a4ca0d9
--- /dev/null
+++ b/modules/stream_filter/dash/mpd/AdaptationSet.cpp
@@ -0,0 +1,44 @@
+/*
+ * AdaptationSet.cpp
+ *****************************************************************************
+ * Copyright (C) 2010 - 2012 Klagenfurt University
+ *
+ * Created on: Jan 27, 2012
+ * Authors: Christopher Mueller <christopher.mueller at itec.uni-klu.ac.at>
+ *          Christian Timmerer  <christian.timmerer at itec.uni-klu.ac.at>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
+#include "AdaptationSet.h"
+
+using namespace dash::mpd;
+
+AdaptationSet::AdaptationSet        () :
+               isBitstreamSwitching (false)
+{
+}
+AdaptationSet::~AdaptationSet   ()
+{
+}
+
+void AdaptationSet::setBitstreamSwitching  (bool value)
+{
+    this->isBitstreamSwitching = value;
+}
+bool AdaptationSet::getBitstreamSwitching  () const
+{
+    return this->isBitstreamSwitching;
+}
diff --git a/modules/stream_filter/dash/mpd/AdaptationSet.h b/modules/stream_filter/dash/mpd/AdaptationSet.h
new file mode 100644
index 0000000..521181e
--- /dev/null
+++ b/modules/stream_filter/dash/mpd/AdaptationSet.h
@@ -0,0 +1,49 @@
+/*
+ * AdaptationSet.h
+ *****************************************************************************
+ * Copyright (C) 2010 - 2012 Klagenfurt University
+ *
+ * Created on: Jan 27, 2012
+ * Authors: Christopher Mueller <christopher.mueller at itec.uni-klu.ac.at>
+ *          Christian Timmerer  <christian.timmerer at itec.uni-klu.ac.at>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
+#ifndef ADAPTATIONSET_H_
+#define ADAPTATIONSET_H_
+
+#include "mpd/Group.h"
+
+namespace dash
+{
+    namespace mpd
+    {
+        class AdaptationSet : public Group
+        {
+            public:
+                AdaptationSet           ();
+                virtual ~AdaptationSet  ();
+
+                void setBitstreamSwitching  (bool value);
+                bool getBitstreamSwitching  () const;
+
+            private:
+                bool isBitstreamSwitching;
+        };
+    }
+}
+
+#endif /* ADAPTATIONSET_H_ */



More information about the vlc-commits mailing list