[vlc-commits] dash: added segmentbase
Christopher Mueller
git at videolan.org
Thu Feb 2 12:33:23 CET 2012
vlc | branch: master | Christopher Mueller <christopher.mueller at itec.aau.at> | Mon Jan 30 14:48:20 2012 +0100| [23bfe182c53a9fb6b0b925e6aaa992847d5a93a7] | committer: Hugo Beauzée-Luyssen
dash: added segmentbase
Signed-off-by: Hugo Beauzée-Luyssen <beauze.h at gmail.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23bfe182c53a9fb6b0b925e6aaa992847d5a93a7
---
modules/stream_filter/dash/Modules.am | 2 +
modules/stream_filter/dash/mpd/SegmentBase.cpp | 44 +++++++++++++++++++++
modules/stream_filter/dash/mpd/SegmentBase.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 46787bd..caf5e0d 100644
--- a/modules/stream_filter/dash/Modules.am
+++ b/modules/stream_filter/dash/Modules.am
@@ -42,6 +42,8 @@ SOURCES_stream_filter_dash = \
mpd/Representation.h \
mpd/Segment.cpp \
mpd/Segment.h \
+ mpd/SegmentBase.cpp \
+ mpd/SegmentBase.h \
mpd/SegmentInfo.cpp \
mpd/SegmentInfo.h \
mpd/SegmentInfoCommon.cpp \
diff --git a/modules/stream_filter/dash/mpd/SegmentBase.cpp b/modules/stream_filter/dash/mpd/SegmentBase.cpp
new file mode 100644
index 0000000..f819305
--- /dev/null
+++ b/modules/stream_filter/dash/mpd/SegmentBase.cpp
@@ -0,0 +1,44 @@
+/*
+ * SegmentBase.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 "SegmentBase.h"
+
+using namespace dash::mpd;
+
+SegmentBase::SegmentBase () :
+ initSeg (NULL)
+{
+}
+SegmentBase::~SegmentBase ()
+{
+}
+
+void SegmentBase::addInitSegment (Segment *seg)
+{
+ this->initSeg = seg;
+}
+Segment* SegmentBase::getInitSegment ()
+{
+ return this->initSeg;
+}
diff --git a/modules/stream_filter/dash/mpd/SegmentBase.h b/modules/stream_filter/dash/mpd/SegmentBase.h
new file mode 100644
index 0000000..630a4d3
--- /dev/null
+++ b/modules/stream_filter/dash/mpd/SegmentBase.h
@@ -0,0 +1,49 @@
+/*
+ * SegmentBase.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 SEGMENTBASE_H_
+#define SEGMENTBASE_H_
+
+#include "mpd/Segment.h"
+
+namespace dash
+{
+ namespace mpd
+ {
+ class SegmentBase
+ {
+ public:
+ SegmentBase ();
+ virtual ~SegmentBase ();
+
+ void addInitSegment (Segment *seg);
+ Segment* getInitSegment ();
+
+ private:
+ Segment *initSeg;
+ };
+ }
+}
+
+#endif /* SEGMENTBASE_H_ */
More information about the vlc-commits
mailing list