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
4603cb4a
Commit
4603cb4a
authored
May 19, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: inherit playlist
parent
d3ba198c
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
20 deletions
+26
-20
modules/demux/adaptative/playlist/BasePeriod.cpp
modules/demux/adaptative/playlist/BasePeriod.cpp
+8
-2
modules/demux/adaptative/playlist/BasePeriod.h
modules/demux/adaptative/playlist/BasePeriod.h
+2
-0
modules/demux/adaptative/playlist/BaseRepresentation.cpp
modules/demux/adaptative/playlist/BaseRepresentation.cpp
+1
-7
modules/demux/adaptative/playlist/BaseRepresentation.h
modules/demux/adaptative/playlist/BaseRepresentation.h
+1
-4
modules/demux/adaptative/playlist/SegmentInformation.cpp
modules/demux/adaptative/playlist/SegmentInformation.cpp
+8
-0
modules/demux/adaptative/playlist/SegmentInformation.hpp
modules/demux/adaptative/playlist/SegmentInformation.hpp
+2
-1
modules/demux/dash/mpd/IsoffMainParser.cpp
modules/demux/dash/mpd/IsoffMainParser.cpp
+1
-1
modules/demux/dash/mpd/Representation.cpp
modules/demux/dash/mpd/Representation.cpp
+2
-3
modules/demux/dash/mpd/Representation.h
modules/demux/dash/mpd/Representation.h
+1
-2
No files found.
modules/demux/adaptative/playlist/BasePeriod.cpp
View file @
4603cb4a
...
@@ -35,12 +35,13 @@
...
@@ -35,12 +35,13 @@
using
namespace
adaptative
::
playlist
;
using
namespace
adaptative
::
playlist
;
BasePeriod
::
BasePeriod
(
AbstractPlaylist
*
playlist
)
:
BasePeriod
::
BasePeriod
(
AbstractPlaylist
*
playlist
_
)
:
SegmentInformation
(
playlist
)
SegmentInformation
(
playlist
_
)
{
{
duration
.
Set
(
0
);
duration
.
Set
(
0
);
startTime
.
Set
(
0
);
startTime
.
Set
(
0
);
baseUrl
.
Set
(
NULL
);
baseUrl
.
Set
(
NULL
);
playlist
=
playlist_
;
}
}
BasePeriod
::~
BasePeriod
()
BasePeriod
::~
BasePeriod
()
...
@@ -50,6 +51,11 @@ BasePeriod::~BasePeriod ()
...
@@ -50,6 +51,11 @@ BasePeriod::~BasePeriod ()
childs
.
clear
();
childs
.
clear
();
}
}
AbstractPlaylist
*
BasePeriod
::
getPlaylist
()
const
{
return
playlist
;
}
const
std
::
vector
<
BaseAdaptationSet
*>&
BasePeriod
::
getAdaptationSets
()
const
const
std
::
vector
<
BaseAdaptationSet
*>&
BasePeriod
::
getAdaptationSets
()
const
{
{
return
adaptationSets
;
return
adaptationSets
;
...
...
modules/demux/adaptative/playlist/BasePeriod.h
View file @
4603cb4a
...
@@ -48,12 +48,14 @@ namespace adaptative
...
@@ -48,12 +48,14 @@ namespace adaptative
void
debug
(
vlc_object_t
*
,
int
=
0
)
const
;
void
debug
(
vlc_object_t
*
,
int
=
0
)
const
;
virtual
mtime_t
getPeriodStart
()
const
;
/* reimpl */
virtual
mtime_t
getPeriodStart
()
const
;
/* reimpl */
virtual
AbstractPlaylist
*
getPlaylist
()
const
;
/* reimpl */
Property
<
mtime_t
>
duration
;
Property
<
mtime_t
>
duration
;
Property
<
mtime_t
>
startTime
;
Property
<
mtime_t
>
startTime
;
private:
private:
std
::
vector
<
BaseAdaptationSet
*>
adaptationSets
;
std
::
vector
<
BaseAdaptationSet
*>
adaptationSets
;
AbstractPlaylist
*
playlist
;
};
};
}
}
}
}
...
...
modules/demux/adaptative/playlist/BaseRepresentation.cpp
View file @
4603cb4a
...
@@ -33,9 +33,8 @@
...
@@ -33,9 +33,8 @@
using
namespace
adaptative
::
playlist
;
using
namespace
adaptative
::
playlist
;
BaseRepresentation
::
BaseRepresentation
(
BaseAdaptationSet
*
set
,
AbstractPlaylist
*
playlist_
)
:
BaseRepresentation
::
BaseRepresentation
(
BaseAdaptationSet
*
set
)
:
SegmentInformation
(
set
),
SegmentInformation
(
set
),
playlist
(
playlist_
),
adaptationSet
(
set
),
adaptationSet
(
set
),
bandwidth
(
0
)
bandwidth
(
0
)
{
{
...
@@ -66,11 +65,6 @@ void BaseRepresentation::debug(vlc_object_t *obj, int indent) const
...
@@ -66,11 +65,6 @@ void BaseRepresentation::debug(vlc_object_t *obj, int indent) const
(
*
l
)
->
debug
(
obj
,
indent
+
1
);
(
*
l
)
->
debug
(
obj
,
indent
+
1
);
}
}
AbstractPlaylist
*
BaseRepresentation
::
getPlaylist
()
const
{
return
playlist
;
}
std
::
string
BaseRepresentation
::
contextualize
(
size_t
,
const
std
::
string
&
component
,
std
::
string
BaseRepresentation
::
contextualize
(
size_t
,
const
std
::
string
&
component
,
const
BaseSegmentTemplate
*
)
const
const
BaseSegmentTemplate
*
)
const
{
{
...
...
modules/demux/adaptative/playlist/BaseRepresentation.h
View file @
4603cb4a
...
@@ -42,7 +42,7 @@ namespace adaptative
...
@@ -42,7 +42,7 @@ namespace adaptative
public
SegmentInformation
public
SegmentInformation
{
{
public:
public:
BaseRepresentation
(
BaseAdaptationSet
*
,
AbstractPlaylist
*
playlist
);
BaseRepresentation
(
BaseAdaptationSet
*
);
virtual
~
BaseRepresentation
();
virtual
~
BaseRepresentation
();
/*
/*
...
@@ -54,8 +54,6 @@ namespace adaptative
...
@@ -54,8 +54,6 @@ namespace adaptative
uint64_t
getBandwidth
()
const
;
uint64_t
getBandwidth
()
const
;
void
setBandwidth
(
uint64_t
bandwidth
);
void
setBandwidth
(
uint64_t
bandwidth
);
AbstractPlaylist
*
getPlaylist
()
const
;
void
debug
(
vlc_object_t
*
,
int
=
0
)
const
;
void
debug
(
vlc_object_t
*
,
int
=
0
)
const
;
/* for segment templates */
/* for segment templates */
...
@@ -63,7 +61,6 @@ namespace adaptative
...
@@ -63,7 +61,6 @@ namespace adaptative
const
BaseSegmentTemplate
*
)
const
;
const
BaseSegmentTemplate
*
)
const
;
protected:
protected:
AbstractPlaylist
*
playlist
;
BaseAdaptationSet
*
adaptationSet
;
BaseAdaptationSet
*
adaptationSet
;
uint64_t
bandwidth
;
uint64_t
bandwidth
;
};
};
...
...
modules/demux/adaptative/playlist/SegmentInformation.cpp
View file @
4603cb4a
...
@@ -61,6 +61,14 @@ SegmentInformation::~SegmentInformation()
...
@@ -61,6 +61,14 @@ SegmentInformation::~SegmentInformation()
delete
mediaSegmentTemplate
;
delete
mediaSegmentTemplate
;
}
}
AbstractPlaylist
*
SegmentInformation
::
getPlaylist
()
const
{
if
(
parent
)
return
parent
->
getPlaylist
();
else
return
NULL
;
}
vector
<
ISegment
*>
SegmentInformation
::
getSegments
(
SegmentInfoType
type
)
const
vector
<
ISegment
*>
SegmentInformation
::
getSegments
(
SegmentInfoType
type
)
const
{
{
vector
<
ISegment
*>
retSegments
;
vector
<
ISegment
*>
retSegments
;
...
...
modules/demux/adaptative/playlist/SegmentInformation.hpp
View file @
4603cb4a
...
@@ -56,6 +56,7 @@ namespace adaptative
...
@@ -56,6 +56,7 @@ namespace adaptative
virtual
~
SegmentInformation
();
virtual
~
SegmentInformation
();
bool
canBitswitch
()
const
;
bool
canBitswitch
()
const
;
virtual
mtime_t
getPeriodStart
()
const
;
virtual
mtime_t
getPeriodStart
()
const
;
virtual
AbstractPlaylist
*
getPlaylist
()
const
;
class
SplitPoint
class
SplitPoint
{
{
...
@@ -82,6 +83,7 @@ namespace adaptative
...
@@ -82,6 +83,7 @@ namespace adaptative
std
::
vector
<
ISegment
*>
getSegments
()
const
;
std
::
vector
<
ISegment
*>
getSegments
()
const
;
std
::
vector
<
ISegment
*>
getSegments
(
SegmentInfoType
)
const
;
std
::
vector
<
ISegment
*>
getSegments
(
SegmentInfoType
)
const
;
std
::
vector
<
SegmentInformation
*>
childs
;
std
::
vector
<
SegmentInformation
*>
childs
;
SegmentInformation
*
parent
;
public:
public:
void
setSegmentList
(
SegmentList
*
);
void
setSegmentList
(
SegmentList
*
);
...
@@ -97,7 +99,6 @@ namespace adaptative
...
@@ -97,7 +99,6 @@ namespace adaptative
SegmentList
*
inheritSegmentList
()
const
;
SegmentList
*
inheritSegmentList
()
const
;
MediaSegmentTemplate
*
inheritSegmentTemplate
()
const
;
MediaSegmentTemplate
*
inheritSegmentTemplate
()
const
;
SegmentInformation
*
parent
;
SegmentBase
*
segmentBase
;
SegmentBase
*
segmentBase
;
SegmentList
*
segmentList
;
SegmentList
*
segmentList
;
MediaSegmentTemplate
*
mediaSegmentTemplate
;
MediaSegmentTemplate
*
mediaSegmentTemplate
;
...
...
modules/demux/dash/mpd/IsoffMainParser.cpp
View file @
4603cb4a
...
@@ -228,7 +228,7 @@ void IsoffMainParser::setRepresentations (Node *adaptationSetNode, Adaptation
...
@@ -228,7 +228,7 @@ void IsoffMainParser::setRepresentations (Node *adaptationSetNode, Adaptation
for
(
size_t
i
=
0
;
i
<
representations
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
representations
.
size
();
i
++
)
{
{
Representation
*
currentRepresentation
=
new
Representation
(
adaptationSet
,
getMPD
()
);
Representation
*
currentRepresentation
=
new
Representation
(
adaptationSet
);
Node
*
repNode
=
representations
.
at
(
i
);
Node
*
repNode
=
representations
.
at
(
i
);
std
::
vector
<
Node
*>
baseUrls
=
DOMHelper
::
getChildElementByTagName
(
repNode
,
"BaseURL"
);
std
::
vector
<
Node
*>
baseUrls
=
DOMHelper
::
getChildElementByTagName
(
repNode
,
"BaseURL"
);
...
...
modules/demux/dash/mpd/Representation.cpp
View file @
4603cb4a
...
@@ -36,9 +36,8 @@
...
@@ -36,9 +36,8 @@
using
namespace
dash
::
mpd
;
using
namespace
dash
::
mpd
;
Representation
::
Representation
(
AdaptationSet
*
set
,
MPD
*
mpd_
)
:
Representation
::
Representation
(
AdaptationSet
*
set
)
:
BaseRepresentation
(
set
,
mpd_
),
BaseRepresentation
(
set
),
mpd
(
mpd_
),
qualityRanking
(
-
1
),
qualityRanking
(
-
1
),
trickModeType
(
NULL
)
trickModeType
(
NULL
)
{
{
...
...
modules/demux/dash/mpd/Representation.h
View file @
4603cb4a
...
@@ -44,7 +44,7 @@ namespace dash
...
@@ -44,7 +44,7 @@ namespace dash
public
UniqueNess
<
Representation
>
public
UniqueNess
<
Representation
>
{
{
public:
public:
Representation
(
AdaptationSet
*
,
MPD
*
mpd
);
Representation
(
AdaptationSet
*
);
virtual
~
Representation
();
virtual
~
Representation
();
int
getQualityRanking
()
const
;
int
getQualityRanking
()
const
;
...
@@ -65,7 +65,6 @@ namespace dash
...
@@ -65,7 +65,6 @@ namespace dash
const
BaseSegmentTemplate
*
)
const
;
// reimpl
const
BaseSegmentTemplate
*
)
const
;
// reimpl
private:
private:
MPD
*
mpd
;
int
qualityRanking
;
int
qualityRanking
;
std
::
list
<
const
Representation
*>
dependencies
;
std
::
list
<
const
Representation
*>
dependencies
;
TrickModeType
*
trickModeType
;
TrickModeType
*
trickModeType
;
...
...
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