3 *****************************************************************************
4 * Copyright (C) 2010 - 2012 Klagenfurt University
6 * Created on: Jan 27, 2012
7 * Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
8 * Christian Timmerer <christian.timmerer@itec.uni-klu.ac.at>
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU Lesser General Public License as published
12 * by the Free Software Foundation; either version 2.1 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #ifndef ISOFFMAINPARSER_H_
26 #define ISOFFMAINPARSER_H_
32 #include "../../adaptive/playlist/SegmentBaseType.hpp"
33 #include "Profile.hpp"
37 #include <vlc_common.h>
43 class SegmentInformation
;
44 class SegmentTemplate
;
60 using namespace adaptive::playlist
;
61 using namespace adaptive
;
66 IsoffMainParser (xml::Node
*root
, vlc_object_t
*p_object
,
67 stream_t
*p_stream
, const std::string
&);
68 virtual ~IsoffMainParser ();
72 mpd::Profile
getProfile () const;
73 void parseMPDBaseUrl (MPD
*, xml::Node
*);
74 void parseMPDAttributes (MPD
*, xml::Node
*);
75 void parseAdaptationSets (MPD
*, xml::Node
*periodNode
, Period
*period
);
76 void parseRepresentations(MPD
*, xml::Node
*adaptationSetNode
, AdaptationSet
*adaptationSet
);
77 void parseInitSegment (xml::Node
*, Initializable
<InitSegment
> *, SegmentInformation
*);
78 void parseTimeline (xml::Node
*, AbstractMultipleSegmentBaseType
*);
79 void parsePeriods (MPD
*, xml::Node
*);
80 size_t parseSegmentInformation(MPD
*, xml::Node
*, SegmentInformation
*, uint64_t *);
81 size_t parseSegmentBase (MPD
*, xml::Node
*, SegmentInformation
*);
82 size_t parseSegmentList (MPD
*, xml::Node
*, SegmentInformation
*);
83 size_t parseSegmentTemplate(MPD
*, xml::Node
*, SegmentInformation
*);
84 void parseProgramInformation(xml::Node
*, MPD
*);
85 void parseSegmentBaseType(MPD
*mpd
, xml::Node
*node
,
86 AbstractSegmentBaseType
*base
,
87 SegmentInformation
*parent
);
88 void parseMultipleSegmentBaseType(MPD
*mpd
, xml::Node
*node
,
89 AbstractMultipleSegmentBaseType
*base
,
90 SegmentInformation
*parent
);
93 vlc_object_t
*p_object
;
95 std::string playlisturl
;
100 #endif /* ISOFFMAINPARSER_H_ */