shaka-packager/docs/d4/d9b/classshaka_1_1media_1_1Medi...

383 lines
21 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.8.6"/>
<title>DASH Media Packaging SDK: shaka::media::MediaHandlerTestBase 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/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</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 style="padding-left: 0.5em;">
<div id="projectname">DASH Media Packaging SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
<li><a href="../../namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
<li><a href="../../files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="../../search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="../../annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="../../classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="../../hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="../../functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></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"><b>media</b></li><li class="navelem"><a class="el" href="../../d4/d9b/classshaka_1_1media_1_1MediaHandlerTestBase.html">MediaHandlerTestBase</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../d1/d25/classshaka_1_1media_1_1MediaHandlerTestBase-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">shaka::media::MediaHandlerTestBase Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for shaka::media::MediaHandlerTestBase:</div>
<div class="dyncontent">
<div class="center">
<img src="../../d4/d9b/classshaka_1_1media_1_1MediaHandlerTestBase.png" usemap="#shaka::media::MediaHandlerTestBase_map" alt=""/>
<map id="shaka::media::MediaHandlerTestBase_map" name="shaka::media::MediaHandlerTestBase_map">
</map>
</div></div>
<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:ac697d026d8da483cbbfbf866b0540830"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; <a class="el" href="../../d0/d4c/structshaka_1_1media_1_1StreamData.html">StreamData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d9b/classshaka_1_1media_1_1MediaHandlerTestBase.html#ac697d026d8da483cbbfbf866b0540830">GetStreamInfoStreamData</a> (int stream_index, Codec codec, uint32_t time_scale)</td></tr>
<tr class="separator:ac697d026d8da483cbbfbf866b0540830"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5638d5f1141920ebe7a189c6b6a18b48"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; <a class="el" href="../../d0/d4c/structshaka_1_1media_1_1StreamData.html">StreamData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d9b/classshaka_1_1media_1_1MediaHandlerTestBase.html#a5638d5f1141920ebe7a189c6b6a18b48">GetVideoStreamInfoStreamData</a> (int stream_index, uint32_t time_scale)</td></tr>
<tr class="separator:a5638d5f1141920ebe7a189c6b6a18b48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bde32a7cdcd4fa8853576f782e7605e"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; <a class="el" href="../../d0/d4c/structshaka_1_1media_1_1StreamData.html">StreamData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d9b/classshaka_1_1media_1_1MediaHandlerTestBase.html#a3bde32a7cdcd4fa8853576f782e7605e">GetAudioStreamInfoStreamData</a> (int stream_index, uint32_t time_scale)</td></tr>
<tr class="separator:a3bde32a7cdcd4fa8853576f782e7605e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3e2820a25ce35ad3697a586bba45957"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; <a class="el" href="../../d0/d4c/structshaka_1_1media_1_1StreamData.html">StreamData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d9b/classshaka_1_1media_1_1MediaHandlerTestBase.html#ab3e2820a25ce35ad3697a586bba45957">GetMediaSampleStreamData</a> (int stream_index, int64_t timestamp, int64_t duration, bool is_keyframe)</td></tr>
<tr class="separator:ab3e2820a25ce35ad3697a586bba45957"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c8aedd9b32d4cc067d816d429e44922"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; <a class="el" href="../../d0/d4c/structshaka_1_1media_1_1StreamData.html">StreamData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d9b/classshaka_1_1media_1_1MediaHandlerTestBase.html#a4c8aedd9b32d4cc067d816d429e44922">GetSegmentInfoStreamData</a> (int stream_index, int64_t start_timestamp, int64_t duration, bool is_subsegment)</td></tr>
<tr class="separator:a4c8aedd9b32d4cc067d816d429e44922"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ab44361bc98f2a9e32a9510388dbd70"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7ab44361bc98f2a9e32a9510388dbd70"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d9b/classshaka_1_1media_1_1MediaHandlerTestBase.html#a7ab44361bc98f2a9e32a9510388dbd70">SetUpGraph</a> (size_t num_inputs, size_t num_outputs, std::shared_ptr&lt; <a class="el" href="../../da/dfd/classshaka_1_1media_1_1MediaHandler.html">MediaHandler</a> &gt; handler)</td></tr>
<tr class="memdesc:a7ab44361bc98f2a9e32a9510388dbd70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setup a graph using |handler| with |num_inputs| and |num_outputs|. <br/></td></tr>
<tr class="separator:a7ab44361bc98f2a9e32a9510388dbd70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a019ed85bb6a06dde91fe0620f634bba0"><td class="memItemLeft" align="right" valign="top">const std::vector<br class="typebreak"/>
&lt; std::unique_ptr&lt; <a class="el" href="../../d0/d4c/structshaka_1_1media_1_1StreamData.html">StreamData</a> &gt; &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d9b/classshaka_1_1media_1_1MediaHandlerTestBase.html#a019ed85bb6a06dde91fe0620f634bba0">GetOutputStreamDataVector</a> () const </td></tr>
<tr class="separator:a019ed85bb6a06dde91fe0620f634bba0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a600a18a6dec0d32b75c292dc634474"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7a600a18a6dec0d32b75c292dc634474"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d9b/classshaka_1_1media_1_1MediaHandlerTestBase.html#a7a600a18a6dec0d32b75c292dc634474">ClearOutputStreamDataVector</a> ()</td></tr>
<tr class="memdesc:a7a600a18a6dec0d32b75c292dc634474"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear the output stream data vector. <br/></td></tr>
<tr class="separator:a7a600a18a6dec0d32b75c292dc634474"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba1f3fe6f82c2a205aefdeae3be60d1d"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="../../da/dfd/classshaka_1_1media_1_1MediaHandler.html">MediaHandler</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d9b/classshaka_1_1media_1_1MediaHandlerTestBase.html#aba1f3fe6f82c2a205aefdeae3be60d1d">some_handler</a> ()</td></tr>
<tr class="separator:aba1f3fe6f82c2a205aefdeae3be60d1d"><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>Definition at line <a class="el" href="../../db/d59/media__handler__test__base_8h_source.html#l00079">79</a> of file <a class="el" href="../../db/d59/media__handler__test__base_8h_source.html">media_handler_test_base.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a3bde32a7cdcd4fa8853576f782e7605e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::unique_ptr&lt;<a class="el" href="../../d0/d4c/structshaka_1_1media_1_1StreamData.html">StreamData</a>&gt; shaka::media::MediaHandlerTestBase::GetAudioStreamInfoStreamData </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>stream_index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>time_scale</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>a stream data with mock audio stream info. </dd></dl>
<p>Definition at line <a class="el" href="../../db/d59/media__handler__test__base_8h_source.html#l00096">96</a> of file <a class="el" href="../../db/d59/media__handler__test__base_8h_source.html">media_handler_test_base.h</a>.</p>
</div>
</div>
<a class="anchor" id="ab3e2820a25ce35ad3697a586bba45957"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::unique_ptr&lt; <a class="el" href="../../d0/d4c/structshaka_1_1media_1_1StreamData.html">StreamData</a> &gt; shaka::media::MediaHandlerTestBase::GetMediaSampleStreamData </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>stream_index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>timestamp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>duration</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>is_keyframe</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>a stream data with mock media sample. </dd></dl>
<p>Definition at line <a class="el" href="../../d2/dc7/media__handler__test__base_8cc_source.html#l00099">99</a> of file <a class="el" href="../../d2/dc7/media__handler__test__base_8cc_source.html">media_handler_test_base.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a019ed85bb6a06dde91fe0620f634bba0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const std::vector&lt; std::unique_ptr&lt; <a class="el" href="../../d0/d4c/structshaka_1_1media_1_1StreamData.html">StreamData</a> &gt; &gt; &amp; shaka::media::MediaHandlerTestBase::GetOutputStreamDataVector </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 output stream data vector from handler. </dd></dl>
<p>Definition at line <a class="el" href="../../d2/dc7/media__handler__test__base_8cc_source.html#l00143">143</a> of file <a class="el" href="../../d2/dc7/media__handler__test__base_8cc_source.html">media_handler_test_base.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a4c8aedd9b32d4cc067d816d429e44922"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::unique_ptr&lt; <a class="el" href="../../d0/d4c/structshaka_1_1media_1_1StreamData.html">StreamData</a> &gt; shaka::media::MediaHandlerTestBase::GetSegmentInfoStreamData </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>stream_index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>start_timestamp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>duration</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>is_subsegment</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>a stream data with mock segment info. </dd></dl>
<p>Definition at line <a class="el" href="../../d2/dc7/media__handler__test__base_8cc_source.html#l00114">114</a> of file <a class="el" href="../../d2/dc7/media__handler__test__base_8cc_source.html">media_handler_test_base.cc</a>.</p>
</div>
</div>
<a class="anchor" id="ac697d026d8da483cbbfbf866b0540830"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::unique_ptr&lt; <a class="el" href="../../d0/d4c/structshaka_1_1media_1_1StreamData.html">StreamData</a> &gt; shaka::media::MediaHandlerTestBase::GetStreamInfoStreamData </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>stream_index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Codec&#160;</td>
<td class="paramname"><em>codec</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>time_scale</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>a stream data with mock stream info. </dd></dl>
<p>Definition at line <a class="el" href="../../d2/dc7/media__handler__test__base_8cc_source.html#l00088">88</a> of file <a class="el" href="../../d2/dc7/media__handler__test__base_8cc_source.html">media_handler_test_base.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a5638d5f1141920ebe7a189c6b6a18b48"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::unique_ptr&lt;<a class="el" href="../../d0/d4c/structshaka_1_1media_1_1StreamData.html">StreamData</a>&gt; shaka::media::MediaHandlerTestBase::GetVideoStreamInfoStreamData </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>stream_index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>time_scale</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>a stream data with mock video stream info. </dd></dl>
<p>Definition at line <a class="el" href="../../db/d59/media__handler__test__base_8h_source.html#l00089">89</a> of file <a class="el" href="../../db/d59/media__handler__test__base_8h_source.html">media_handler_test_base.h</a>.</p>
</div>
</div>
<a class="anchor" id="aba1f3fe6f82c2a205aefdeae3be60d1d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::shared_ptr&lt;<a class="el" href="../../da/dfd/classshaka_1_1media_1_1MediaHandler.html">MediaHandler</a>&gt; shaka::media::MediaHandlerTestBase::some_handler </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>some random handler that can be used for testing. </dd></dl>
<p>Definition at line <a class="el" href="../../db/d59/media__handler__test__base_8h_source.html#l00127">127</a> of file <a class="el" href="../../db/d59/media__handler__test__base_8h_source.html">media_handler_test_base.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>media/base/<a class="el" href="../../db/d59/media__handler__test__base_8h_source.html">media_handler_test_base.h</a></li>
<li>media/base/<a class="el" href="../../d2/dc7/media__handler__test__base_8cc_source.html">media_handler_test_base.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Mar 30 2017 21:39:10 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>