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
98b674d7
Commit
98b674d7
authored
Nov 28, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream_filter: dash: add classId to segments
parent
88537655
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
modules/stream_filter/dash/mpd/Segment.cpp
modules/stream_filter/dash/mpd/Segment.cpp
+10
-0
modules/stream_filter/dash/mpd/Segment.h
modules/stream_filter/dash/mpd/Segment.h
+8
-0
No files found.
modules/stream_filter/dash/mpd/Segment.cpp
View file @
98b674d7
...
...
@@ -41,6 +41,7 @@ ISegment::ISegment(const ICanonicalUrl *parent):
endByte
(
0
)
{
debugName
=
"Segment"
;
classId
=
CLASSID_ISEGMENT
;
}
dash
::
http
::
Chunk
*
ISegment
::
getChunk
()
...
...
@@ -89,6 +90,11 @@ std::string ISegment::toString() const
return
ss
.
str
();
}
int
ISegment
::
getClassId
()
const
{
return
classId
;
}
ISegment
::
SegmentChunk
::
SegmentChunk
(
ISegment
*
segment_
)
:
dash
::
http
::
Chunk
()
{
...
...
@@ -109,6 +115,7 @@ Segment::Segment(Representation *parent) :
this
->
size
=
parent
->
getBandwidth
()
*
parent
->
getSegmentInfo
()
->
getDuration
();
else
this
->
size
=
-
1
;
classId
=
CLASSID_SEGMENT
;
}
Segment
::~
Segment
()
...
...
@@ -184,12 +191,14 @@ InitSegment::InitSegment(Representation *parent) :
Segment
(
parent
)
{
debugName
=
"InitSegment"
;
classId
=
CLASSID_INITSEGMENT
;
}
IndexSegment
::
IndexSegment
(
Representation
*
parent
)
:
Segment
(
parent
)
{
debugName
=
"IndexSegment"
;
classId
=
CLASSID_INDEXSEGMENT
;
}
dash
::
http
::
Chunk
*
IndexSegment
::
getChunk
()
...
...
@@ -212,6 +221,7 @@ SubSegment::SubSegment(Segment *main, size_t start, size_t end) :
{
setByteRange
(
start
,
end
);
debugName
=
"SubSegment"
;
classId
=
CLASSID_SUBSEGMENT
;
}
std
::
string
SubSegment
::
getUrlSegment
()
const
...
...
modules/stream_filter/dash/mpd/Segment.h
View file @
98b674d7
...
...
@@ -56,11 +56,15 @@ namespace dash
virtual
std
::
vector
<
ISegment
*>
subSegments
()
=
0
;
virtual
std
::
string
toString
()
const
;
virtual
Representation
*
getRepresentation
()
const
=
0
;
int
getClassId
()
const
;
static
const
int
CLASSID_ISEGMENT
=
0
;
protected:
size_t
startByte
;
size_t
endByte
;
std
::
string
debugName
;
int
classId
;
class
SegmentChunk
:
public
dash
::
http
::
Chunk
{
...
...
@@ -85,6 +89,7 @@ namespace dash
virtual
dash
::
http
::
Chunk
*
toChunk
();
virtual
std
::
vector
<
ISegment
*>
subSegments
();
virtual
Representation
*
getRepresentation
()
const
;
static
const
int
CLASSID_SEGMENT
=
1
;
protected:
Representation
*
parentRepresentation
;
...
...
@@ -97,12 +102,14 @@ namespace dash
{
public:
InitSegment
(
Representation
*
parent
);
static
const
int
CLASSID_INITSEGMENT
=
2
;
};
class
IndexSegment
:
public
Segment
{
public:
IndexSegment
(
Representation
*
parent
);
static
const
int
CLASSID_INDEXSEGMENT
=
3
;
protected:
class
IndexSegmentChunk
:
public
SegmentChunk
...
...
@@ -122,6 +129,7 @@ namespace dash
virtual
std
::
string
getUrlSegment
()
const
;
/* impl */
virtual
std
::
vector
<
ISegment
*>
subSegments
();
virtual
Representation
*
getRepresentation
()
const
;
static
const
int
CLASSID_SUBSEGMENT
=
4
;
private:
Segment
*
parent
;
};
...
...
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