Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
466e3f44
Commit
466e3f44
authored
Jan 25, 2012
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: Allow bps methods to be called from a IAdaptationLogic*
This is the interface we use in the module file.
parent
4e185356
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.cpp
...m_filter/dash/adaptationlogic/AbstractAdaptationLogic.cpp
+2
-2
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
...eam_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
+2
-2
modules/stream_filter/dash/adaptationlogic/IAdaptationLogic.h
...les/stream_filter/dash/adaptationlogic/IAdaptationLogic.h
+5
-1
No files found.
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.cpp
View file @
466e3f44
...
...
@@ -47,11 +47,11 @@ void AbstractAdaptationLogic::downloadRateChanged (long bpsAvg, long bpsLastC
this
->
bpsAvg
=
bpsAvg
;
this
->
bpsLastChunk
=
bpsLastChunk
;
}
long
AbstractAdaptationLogic
::
getBpsAvg
()
long
AbstractAdaptationLogic
::
getBpsAvg
()
const
{
return
this
->
bpsAvg
;
}
long
AbstractAdaptationLogic
::
getBpsLastChunk
()
long
AbstractAdaptationLogic
::
getBpsLastChunk
()
const
{
return
this
->
bpsLastChunk
;
}
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
View file @
466e3f44
...
...
@@ -47,8 +47,8 @@ namespace dash
virtual
void
downloadRateChanged
(
long
bpsAvg
,
long
bpsLastChunk
);
long
getBpsAvg
();
long
getBpsLastChunk
();
long
getBpsAvg
()
const
;
long
getBpsLastChunk
()
const
;
private:
int
bpsAvg
;
...
...
modules/stream_filter/dash/adaptationlogic/IAdaptationLogic.h
View file @
466e3f44
...
...
@@ -46,7 +46,11 @@ namespace dash
};
virtual
dash
::
http
::
Chunk
*
getNextChunk
()
throw
(
dash
::
exception
::
EOFException
)
=
0
;
/**
* \return The average bitrate in Bytes per second.
*/
virtual
long
getBpsAvg
()
const
=
0
;
virtual
long
getBpsLastChunk
()
const
=
0
;
};
}
}
...
...
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