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
ea06a8cd
Commit
ea06a8cd
authored
Jan 08, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: dash: add UniqueNess template
parent
df82d1c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
15 deletions
+17
-15
modules/demux/dash/mpd/Representation.cpp
modules/demux/dash/mpd/Representation.cpp
+0
-11
modules/demux/dash/mpd/Representation.h
modules/demux/dash/mpd/Representation.h
+2
-4
modules/demux/dash/mpd/SegmentInfoCommon.h
modules/demux/dash/mpd/SegmentInfoCommon.h
+15
-0
No files found.
modules/demux/dash/mpd/Representation.cpp
View file @
ea06a8cd
...
...
@@ -53,17 +53,6 @@ Representation::~Representation ()
delete
baseUrl
;
}
const
std
::
string
&
Representation
::
getId
()
const
{
return
this
->
id
;
}
void
Representation
::
setId
(
const
std
::
string
&
id
)
{
if
(
id
.
empty
()
==
false
)
this
->
id
=
id
;
}
uint64_t
Representation
::
getBandwidth
()
const
{
return
this
->
bandwidth
;
...
...
modules/demux/dash/mpd/Representation.h
View file @
ea06a8cd
...
...
@@ -42,14 +42,13 @@ namespace dash
class
MPD
;
class
Representation
:
public
CommonAttributesElements
,
public
SegmentInformation
public
SegmentInformation
,
public
UniqueNess
<
Representation
>
{
public:
Representation
(
AdaptationSet
*
,
MPD
*
mpd
);
virtual
~
Representation
();
const
std
::
string
&
getId
()
const
;
void
setId
(
const
std
::
string
&
id
);
/*
* @return The bitrate required for this representation
* in bits per seconds.
...
...
@@ -85,7 +84,6 @@ namespace dash
MPD
*
mpd
;
AdaptationSet
*
adaptationSet
;
uint64_t
bandwidth
;
std
::
string
id
;
int
qualityRanking
;
std
::
list
<
const
Representation
*>
dependencies
;
TrickModeType
*
trickModeType
;
...
...
modules/demux/dash/mpd/SegmentInfoCommon.h
View file @
ea06a8cd
...
...
@@ -60,6 +60,21 @@ namespace dash
Property
<
SegmentTimeline
*>
segmentTimeline
;
};
template
<
class
T
>
class
UniqueNess
{
public:
UniqueNess
(){}
~
UniqueNess
()
{}
void
setId
(
const
std
::
string
&
id_
)
{
id
=
id_
;}
const
std
::
string
&
getId
()
const
{
return
id
;}
bool
sameAs
(
const
T
&
other
)
const
{
return
(
!
id
.
empty
()
&&
id
==
other
.
id
);
}
private:
std
::
string
id
;
};
class
SegmentInfoCommon
:
public
ICanonicalUrl
,
public
Initializable
<
Segment
>
{
...
...
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