shaka-packager/docs/da/d2c/classshaka_1_1BandwidthEsti...

178 lines
8.9 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Shaka Packager SDK: shaka::BandwidthEstimator Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Shaka Packager SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../d8/daf/namespaceshaka.html">shaka</a></li><li class="navelem"><a class="el" href="../../da/d2c/classshaka_1_1BandwidthEstimator.html">BandwidthEstimator</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../d4/d8c/classshaka_1_1BandwidthEstimator-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">shaka::BandwidthEstimator Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a53c67d33f000489d1ebb31a2bdd766a4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d2c/classshaka_1_1BandwidthEstimator.html#a53c67d33f000489d1ebb31a2bdd766a4">AddBlock</a> (uint64_t size_in_bytes, double duration)</td></tr>
<tr class="separator:a53c67d33f000489d1ebb31a2bdd766a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9414560e16c46e7e2da3683a4dfb86cc"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d2c/classshaka_1_1BandwidthEstimator.html#a9414560e16c46e7e2da3683a4dfb86cc">Estimate</a> () const</td></tr>
<tr class="separator:a9414560e16c46e7e2da3683a4dfb86cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0df6c40f43a89d3d481392ac0298e37c"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d2c/classshaka_1_1BandwidthEstimator.html#a0df6c40f43a89d3d481392ac0298e37c">Max</a> () const</td></tr>
<tr class="separator:a0df6c40f43a89d3d481392ac0298e37c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="../../d8/d19/bandwidth__estimator_8h_source.html#l00016">16</a> of file <a class="el" href="../../d8/d19/bandwidth__estimator_8h_source.html">bandwidth_estimator.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a53c67d33f000489d1ebb31a2bdd766a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53c67d33f000489d1ebb31a2bdd766a4">&#9670;&nbsp;</a></span>AddBlock()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void shaka::BandwidthEstimator::AddBlock </td>
<td>(</td>
<td class="paramtype">uint64_t&#160;</td>
<td class="paramname"><em>size_in_bytes</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>duration</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">size</td><td>is the size of the block in bytes. Should be positive. </td></tr>
<tr><td class="paramname">duration</td><td>is the length in seconds. Should be positive. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../d6/d86/bandwidth__estimator_8cc_source.html#l00021">21</a> of file <a class="el" href="../../d6/d86/bandwidth__estimator_8cc_source.html">bandwidth_estimator.cc</a>.</p>
</div>
</div>
<a id="a9414560e16c46e7e2da3683a4dfb86cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9414560e16c46e7e2da3683a4dfb86cc">&#9670;&nbsp;</a></span>Estimate()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint64_t shaka::BandwidthEstimator::Estimate </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>The estimate bandwidth, in bits per second, calculated from the sum of the sizes of every block, divided by the sum of durations of every block, of the number of blocks specified in the constructor. The value is rounded up to the nearest integer. </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../d6/d86/bandwidth__estimator_8cc_source.html#l00053">53</a> of file <a class="el" href="../../d6/d86/bandwidth__estimator_8cc_source.html">bandwidth_estimator.cc</a>.</p>
</div>
</div>
<a id="a0df6c40f43a89d3d481392ac0298e37c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0df6c40f43a89d3d481392ac0298e37c">&#9670;&nbsp;</a></span>Max()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint64_t shaka::BandwidthEstimator::Max </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>The max bandwidth, in bits per second, of the number of blocks specified in the constructor. The value is rounded up to the nearest integer. Note that small blocks w.r.t. |target_block_duration| are not counted. </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../d6/d86/bandwidth__estimator_8cc_source.html#l00059">59</a> of file <a class="el" href="../../d6/d86/bandwidth__estimator_8cc_source.html">bandwidth_estimator.cc</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>packager/mpd/base/<a class="el" href="../../d8/d19/bandwidth__estimator_8h_source.html">bandwidth_estimator.h</a></li>
<li>packager/mpd/base/<a class="el" href="../../d6/d86/bandwidth__estimator_8cc_source.html">bandwidth_estimator.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 9 2021 21:00:12 for Shaka Packager SDK by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>