Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ec5b75ba
Commit
ec5b75ba
authored
Jan 10, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: dash: add timelines gathering
parent
d84e3ad0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
0 deletions
+19
-0
modules/demux/dash/mpd/AdaptationSet.cpp
modules/demux/dash/mpd/AdaptationSet.cpp
+2
-0
modules/demux/dash/mpd/Period.cpp
modules/demux/dash/mpd/Period.cpp
+4
-0
modules/demux/dash/mpd/SegmentInformation.cpp
modules/demux/dash/mpd/SegmentInformation.cpp
+10
-0
modules/demux/dash/mpd/SegmentInformation.hpp
modules/demux/dash/mpd/SegmentInformation.hpp
+3
-0
No files found.
modules/demux/dash/mpd/AdaptationSet.cpp
View file @
ec5b75ba
...
...
@@ -46,6 +46,7 @@ AdaptationSet::AdaptationSet(Period *period) :
AdaptationSet
::~
AdaptationSet
()
{
vlc_delete_all
(
this
->
representations
);
childs
.
clear
();
}
const
std
::
string
&
AdaptationSet
::
getMimeType
()
const
...
...
@@ -88,6 +89,7 @@ const Representation *AdaptationSet::getRepresentationById(const std::string &id
void
AdaptationSet
::
addRepresentation
(
Representation
*
rep
)
{
this
->
representations
.
push_back
(
rep
);
childs
.
push_back
(
rep
);
}
...
...
modules/demux/dash/mpd/Period.cpp
View file @
ec5b75ba
...
...
@@ -44,6 +44,7 @@ Period::Period(MPD *mpd) :
Period
::~
Period
()
{
vlc_delete_all
(
this
->
adaptationSets
);
childs
.
clear
();
}
const
std
::
vector
<
AdaptationSet
*>&
Period
::
getAdaptationSets
()
const
...
...
@@ -66,7 +67,10 @@ const std::vector<AdaptationSet*> Period::getAdaptationSets(Streams::Type type
void
Period
::
addAdaptationSet
(
AdaptationSet
*
adaptationSet
)
{
if
(
adaptationSet
!=
NULL
)
{
this
->
adaptationSets
.
push_back
(
adaptationSet
);
childs
.
push_back
(
adaptationSet
);
}
}
AdaptationSet
*
Period
::
getAdaptationSet
(
Streams
::
Type
type
)
const
...
...
modules/demux/dash/mpd/SegmentInformation.cpp
View file @
ec5b75ba
...
...
@@ -219,6 +219,16 @@ mtime_t SegmentInformation::getPlaybackTimeBySegmentNumber(uint64_t number) cons
return
time
;
}
void
SegmentInformation
::
collectTimelines
(
std
::
vector
<
SegmentTimeline
*>
*
timelines
)
const
{
if
(
mediaSegmentTemplate
&&
mediaSegmentTemplate
->
segmentTimeline
.
Get
())
timelines
->
push_back
(
mediaSegmentTemplate
->
segmentTimeline
.
Get
());
std
::
vector
<
SegmentInformation
*>::
const_iterator
it
;
for
(
it
=
childs
.
begin
();
it
!=
childs
.
end
();
it
++
)
(
*
it
)
->
collectTimelines
(
timelines
);
}
bool
SegmentInformation
::
canBitswitch
()
const
{
if
(
bitswitch_policy
==
BITSWITCH_INHERIT
)
...
...
modules/demux/dash/mpd/SegmentInformation.hpp
View file @
ec5b75ba
...
...
@@ -39,6 +39,7 @@ namespace dash
class
SegmentBase
;
class
SegmentList
;
class
SegmentTemplate
;
class
SegmentTimeline
;
/* common segment elements for period/adaptset/rep 5.3.9.1,
* with properties inheritance */
...
...
@@ -73,10 +74,12 @@ namespace dash
ISegment
*
getSegment
(
SegmentInfoType
,
uint64_t
=
0
)
const
;
bool
getSegmentNumberByTime
(
mtime_t
,
uint64_t
*
)
const
;
mtime_t
getPlaybackTimeBySegmentNumber
(
uint64_t
)
const
;
void
collectTimelines
(
std
::
vector
<
SegmentTimeline
*>
*
)
const
;
protected:
std
::
vector
<
ISegment
*>
getSegments
()
const
;
std
::
vector
<
ISegment
*>
getSegments
(
SegmentInfoType
)
const
;
std
::
vector
<
SegmentInformation
*>
childs
;
private:
void
setSegmentList
(
SegmentList
*
);
...
...
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