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

240 lines
18 KiB
HTML
Raw Normal View History

<!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>Shaka Packager 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">Shaka Packager 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><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</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:add29bacd83f0c2410c73c46d2fafff13"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="add29bacd83f0c2410c73c46d2fafff13"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>IsVideoCodec</b> (Codec codec) const </td></tr>
<tr class="separator:add29bacd83f0c2410c73c46d2fafff13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63d9b2d771bb15c7a8739c413e81a7b7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a63d9b2d771bb15c7a8739c413e81a7b7"></a>
std::unique_ptr&lt; <a class="el" href="../../d5/db1/classshaka_1_1media_1_1StreamInfo.html">StreamInfo</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>GetVideoStreamInfo</b> (uint32_t time_scale) const </td></tr>
<tr class="separator:a63d9b2d771bb15c7a8739c413e81a7b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9226d867acaa4285faf3b9c9d53401c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab9226d867acaa4285faf3b9c9d53401c"></a>
std::unique_ptr&lt; <a class="el" href="../../d5/db1/classshaka_1_1media_1_1StreamInfo.html">StreamInfo</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>GetVideoStreamInfo</b> (uint32_t time_scale, uint32_t width, uint64_t height) const </td></tr>
<tr class="separator:ab9226d867acaa4285faf3b9c9d53401c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36bd768d7bb46f69bea192ce34df76fa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a36bd768d7bb46f69bea192ce34df76fa"></a>
std::unique_ptr&lt; <a class="el" href="../../d5/db1/classshaka_1_1media_1_1StreamInfo.html">StreamInfo</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>GetVideoStreamInfo</b> (uint32_t time_scale, Codec codec) const </td></tr>
<tr class="separator:a36bd768d7bb46f69bea192ce34df76fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d40b75e8833c1be5f755e9d657f282c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4d40b75e8833c1be5f755e9d657f282c"></a>
std::unique_ptr&lt; <a class="el" href="../../d5/db1/classshaka_1_1media_1_1StreamInfo.html">StreamInfo</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>GetVideoStreamInfo</b> (uint32_t time_scale, Codec codec, uint32_t width, uint64_t height) const </td></tr>
<tr class="separator:a4d40b75e8833c1be5f755e9d657f282c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6765818671f117c00a6dc95d97a0ce5d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6765818671f117c00a6dc95d97a0ce5d"></a>
std::unique_ptr&lt; <a class="el" href="../../d5/db1/classshaka_1_1media_1_1StreamInfo.html">StreamInfo</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>GetAudioStreamInfo</b> (uint32_t time_scale) const </td></tr>
<tr class="separator:a6765818671f117c00a6dc95d97a0ce5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93c9a32a53ef3d921ba52205f5fe3701"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a93c9a32a53ef3d921ba52205f5fe3701"></a>
std::unique_ptr&lt; <a class="el" href="../../d5/db1/classshaka_1_1media_1_1StreamInfo.html">StreamInfo</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>GetAudioStreamInfo</b> (uint32_t time_scale, Codec codec) const </td></tr>
<tr class="separator:a93c9a32a53ef3d921ba52205f5fe3701"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d1791197962cbcbd89d4422a05d9c49"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7d1791197962cbcbd89d4422a05d9c49"></a>
std::unique_ptr&lt; <a class="el" href="../../d7/d6d/classshaka_1_1media_1_1MediaSample.html">MediaSample</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>GetMediaSample</b> (int64_t timestamp, int64_t duration, bool is_keyframe) const </td></tr>
<tr class="separator:a7d1791197962cbcbd89d4422a05d9c49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8727a44e20c875e419ced2e964e57f3a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8727a44e20c875e419ced2e964e57f3a"></a>
std::unique_ptr&lt; <a class="el" href="../../d7/d6d/classshaka_1_1media_1_1MediaSample.html">MediaSample</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>GetMediaSample</b> (int64_t timestamp, int64_t duration, bool is_keyframe, const uint8_t *data, size_t data_length) const </td></tr>
<tr class="separator:a8727a44e20c875e419ced2e964e57f3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a285b1c2e8a5ef3f41fc570bd1f222e48"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a285b1c2e8a5ef3f41fc570bd1f222e48"></a>
std::unique_ptr&lt; <a class="el" href="../../d0/dc0/structshaka_1_1media_1_1SegmentInfo.html">SegmentInfo</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>GetSegmentInfo</b> (int64_t start_timestamp, int64_t duration, bool is_subsegment) const </td></tr>
<tr class="separator:a285b1c2e8a5ef3f41fc570bd1f222e48"><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>
<tr class="memitem:a00edfa6e4ab0371cdb823b72cb884306"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="../../d1/d36/classshaka_1_1media_1_1FakeMediaHandler.html">FakeMediaHandler</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d9b/classshaka_1_1media_1_1MediaHandlerTestBase.html#a00edfa6e4ab0371cdb823b72cb884306">next_handler</a> ()</td></tr>
<tr class="separator:a00edfa6e4ab0371cdb823b72cb884306"><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#l00094">94</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="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#l00179">179</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="a00edfa6e4ab0371cdb823b72cb884306"></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="../../d1/d36/classshaka_1_1media_1_1FakeMediaHandler.html">FakeMediaHandler</a>&gt; shaka::media::MediaHandlerTestBase::next_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 a downstream handler that can be used for connecting. </dd></dl>
<p>Definition at line <a class="el" href="../../db/d59/media__handler__test__base_8h_source.html#l00155">155</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#l00152">152</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>packager/media/base/<a class="el" href="../../db/d59/media__handler__test__base_8h_source.html">media_handler_test_base.h</a></li>
<li>packager/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 Tue Sep 19 2017 20:22:10 for Shaka Packager 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>