Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
1def2aa7
Commit
1def2aa7
authored
Jan 30, 2012
by
Christopher Mueller
Committed by
Hugo Beauzée-Luyssen
Feb 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: added mpdfactory
Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
13abea06
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
109 additions
and
0 deletions
+109
-0
modules/stream_filter/dash/Modules.am
modules/stream_filter/dash/Modules.am
+2
-0
modules/stream_filter/dash/mpd/MPDFactory.cpp
modules/stream_filter/dash/mpd/MPDFactory.cpp
+59
-0
modules/stream_filter/dash/mpd/MPDFactory.h
modules/stream_filter/dash/mpd/MPDFactory.h
+48
-0
No files found.
modules/stream_filter/dash/Modules.am
View file @
1def2aa7
...
...
@@ -38,6 +38,8 @@ SOURCES_stream_filter_dash = \
mpd/IsoffMainManager.h \
mpd/MPD.cpp \
mpd/MPD.h \
mpd/MPDFactory.cpp \
mpd/MPDFactory.h \
mpd/MPDManagerFactory.cpp \
mpd/MPDManagerFactory.h \
mpd/Period.cpp \
...
...
modules/stream_filter/dash/mpd/MPDFactory.cpp
0 → 100644
View file @
1def2aa7
/*
* MPDFactory.cpp
*****************************************************************************
* Copyright (C) 2010 - 2012 Klagenfurt University
*
* Created on: Jan 27, 2012
* Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
* Christian Timmerer <christian.timmerer@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 "MPDFactory.h"
using
namespace
dash
::
xml
;
using
namespace
dash
::
mpd
;
MPD
*
MPDFactory
::
create
(
dash
::
xml
::
Node
*
root
,
stream_t
*
p_stream
,
Profile
profile
)
{
switch
(
profile
)
{
case
dash
:
:
mpd
::
Full2011
:
case
dash
:
:
mpd
::
Basic
:
case
dash
:
:
mpd
::
BasicCM
:
return
MPDFactory
::
createBasicCMMPD
(
root
,
p_stream
);
case
dash
:
:
mpd
::
IsoffMain
:
return
MPDFactory
::
createIsoffMainMPD
(
root
,
p_stream
);
default:
return
NULL
;
}
}
MPD
*
MPDFactory
::
createBasicCMMPD
(
dash
::
xml
::
Node
*
root
,
stream_t
*
p_stream
)
{
dash
::
mpd
::
BasicCMParser
mpdParser
(
root
,
p_stream
);
if
(
mpdParser
.
parse
()
==
false
||
mpdParser
.
getMPD
()
==
NULL
)
return
NULL
;
return
mpdParser
.
getMPD
();
}
MPD
*
MPDFactory
::
createIsoffMainMPD
(
dash
::
xml
::
Node
*
root
,
stream_t
*
p_stream
)
{
dash
::
mpd
::
IsoffMainParser
mpdParser
(
root
,
p_stream
);
if
(
mpdParser
.
parse
()
==
false
||
mpdParser
.
getMPD
()
==
NULL
)
return
NULL
;
return
mpdParser
.
getMPD
();
}
modules/stream_filter/dash/mpd/MPDFactory.h
0 → 100644
View file @
1def2aa7
/*
* MPDFactory.h
*****************************************************************************
* Copyright (C) 2010 - 2012 Klagenfurt University
*
* Created on: Jan 27, 2012
* Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
* Christian Timmerer <christian.timmerer@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 MPDFACTORY_H_
#define MPDFACTORY_H_
#include "mpd/MPD.h"
#include "mpd/BasicCMParser.h"
#include "mpd/IsoffMainParser.h"
namespace
dash
{
namespace
mpd
{
class
MPDFactory
{
public:
static
MPD
*
create
(
dash
::
xml
::
Node
*
root
,
stream_t
*
p_stream
,
Profile
profile
);
private:
static
MPD
*
createBasicCMMPD
(
dash
::
xml
::
Node
*
root
,
stream_t
*
p_stream
);
static
MPD
*
createIsoffMainMPD
(
dash
::
xml
::
Node
*
root
,
stream_t
*
p_stream
);
};
}
}
#endif
/* MPDFACTORY_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment