shaka-packager/docs/d2/dba/classshaka_1_1media_1_1Segm...

169 lines
13 KiB
HTML
Raw Normal View History

<!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"/>
2021-06-22 00:16:40 +00:00
<meta name="generator" content="Doxygen 1.8.17"/>
2018-02-10 23:37:42 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Shaka Packager SDK: shaka::media::SegmentTestBase 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"/>
2018-02-10 23:37:42 +00:00
<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;">
2018-02-10 23:37:42 +00:00
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Shaka Packager SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2021-06-22 00:16:40 +00:00
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2021-06-22 00:16:40 +00:00
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
/* @license-end */
</script>
2018-02-10 23:37:42 +00:00
<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 */
2018-02-10 23:37:42 +00:00
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
2018-02-10 23:37:42 +00:00
<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)">
2018-02-10 23:37:42 +00:00
</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="../../d2/dba/classshaka_1_1media_1_1SegmentTestBase.html">SegmentTestBase</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="../../d8/df7/classshaka_1_1media_1_1SegmentTestBase-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">shaka::media::SegmentTestBase Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for shaka::media::SegmentTestBase:</div>
<div class="dyncontent">
<div class="center">
<img src="../../d2/dba/classshaka_1_1media_1_1SegmentTestBase.png" alt=""/>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/df8/classshaka_1_1media_1_1SegmentTestBase_1_1ClusterParser.html">ClusterParser</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
2021-06-22 00:16:40 +00:00
<tr class="memitem:a87bc84da1212f084217f88ced1ce78d0"><td class="memItemLeft" align="right" valign="top"><a id="a87bc84da1212f084217f88ced1ce78d0"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>KeyFrameFlag</b> { <b>kKeyFrame</b>,
<b>kNotKeyFrame</b>
}</td></tr>
<tr class="separator:a87bc84da1212f084217f88ced1ce78d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
2021-06-22 00:16:40 +00:00
<tr class="memitem:af476b8a36b31a4086a0132d74ae8db67"><td class="memItemLeft" align="right" valign="top"><a id="af476b8a36b31a4086a0132d74ae8db67"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>SideDataFlag</b> { <b>kGenerateSideData</b>,
<b>kNoSideData</b>
}</td></tr>
<tr class="separator:af476b8a36b31a4086a0132d74ae8db67"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memitem:ac53eaf8bce4b0b1fad1200f66623dbe4"><td class="memItemLeft" align="right" valign="top"><a id="ac53eaf8bce4b0b1fad1200f66623dbe4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetUp</b> () override</td></tr>
<tr class="separator:ac53eaf8bce4b0b1fad1200f66623dbe4"><td class="memSeparator" colspan="2">&#160;</td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memitem:a67700a923bc280a351bcc3c310a284ef"><td class="memItemLeft" align="right" valign="top"><a id="a67700a923bc280a351bcc3c310a284ef"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>TearDown</b> () override</td></tr>
<tr class="separator:a67700a923bc280a351bcc3c310a284ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memitem:a89f8406b8a174eb5bdc611bec92f9f4f"><td class="memTemplParams" colspan="2"><a id="a89f8406b8a174eb5bdc611bec92f9f4f"></a>
template&lt;typename S &gt; </td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memitem:a89f8406b8a174eb5bdc611bec92f9f4f"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d2/dba/classshaka_1_1media_1_1SegmentTestBase.html#a89f8406b8a174eb5bdc611bec92f9f4f">CreateAndInitializeSegmenter</a> (const <a class="el" href="../../d0/d27/structshaka_1_1media_1_1MuxerOptions.html">MuxerOptions</a> &amp;options, const <a class="el" href="../../d5/db1/classshaka_1_1media_1_1StreamInfo.html">StreamInfo</a> &amp;info, std::unique_ptr&lt; <a class="el" href="../../dd/dc5/classshaka_1_1media_1_1webm_1_1Segmenter.html">webm::Segmenter</a> &gt; *result) const</td></tr>
<tr class="memdesc:a89f8406b8a174eb5bdc611bec92f9f4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a Segmenter of the given type and initializes it. <br /></td></tr>
<tr class="separator:a89f8406b8a174eb5bdc611bec92f9f4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd8845d029698f556ca09436da0c62ef"><td class="memItemLeft" align="right" valign="top"><a id="afd8845d029698f556ca09436da0c62ef"></a>
std::shared_ptr&lt; <a class="el" href="../../d7/d6d/classshaka_1_1media_1_1MediaSample.html">MediaSample</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dba/classshaka_1_1media_1_1SegmentTestBase.html#afd8845d029698f556ca09436da0c62ef">CreateSample</a> (KeyFrameFlag key_frame_flag, uint64_t duration, SideDataFlag side_data_flag)</td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memdesc:afd8845d029698f556ca09436da0c62ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new media sample. <br /></td></tr>
<tr class="separator:afd8845d029698f556ca09436da0c62ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memitem:a87fefed1921b0dad84b1d082e30cce37"><td class="memItemLeft" align="right" valign="top"><a id="a87fefed1921b0dad84b1d082e30cce37"></a>
<a class="el" href="../../d0/d27/structshaka_1_1media_1_1MuxerOptions.html">MuxerOptions</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dba/classshaka_1_1media_1_1SegmentTestBase.html#a87fefed1921b0dad84b1d082e30cce37">CreateMuxerOptions</a> () const</td></tr>
<tr class="memdesc:a87fefed1921b0dad84b1d082e30cce37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="../../df/d46/classshaka_1_1media_1_1Muxer.html">Muxer</a> options object for testing. <br /></td></tr>
<tr class="separator:a87fefed1921b0dad84b1d082e30cce37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeba2d28eb9f605bae1536e13c1cac950"><td class="memItemLeft" align="right" valign="top"><a id="aeba2d28eb9f605bae1536e13c1cac950"></a>
<a class="el" href="../../d6/db1/classshaka_1_1media_1_1VideoStreamInfo.html">VideoStreamInfo</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dba/classshaka_1_1media_1_1SegmentTestBase.html#aeba2d28eb9f605bae1536e13c1cac950">CreateVideoStreamInfo</a> (uint32_t time_scale) const</td></tr>
<tr class="memdesc:aeba2d28eb9f605bae1536e13c1cac950"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a video stream info object for testing. <br /></td></tr>
<tr class="separator:aeba2d28eb9f605bae1536e13c1cac950"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d4178714145fa2d18821840db8fb2a6"><td class="memItemLeft" align="right" valign="top"><a id="a8d4178714145fa2d18821840db8fb2a6"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dba/classshaka_1_1media_1_1SegmentTestBase.html#a8d4178714145fa2d18821840db8fb2a6">OutputFileName</a> () const</td></tr>
<tr class="memdesc:a8d4178714145fa2d18821840db8fb2a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the file name of the current output file. <br /></td></tr>
<tr class="separator:a8d4178714145fa2d18821840db8fb2a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08c5db7b7f28da29ca40147cf8673a7a"><td class="memItemLeft" align="right" valign="top"><a id="a08c5db7b7f28da29ca40147cf8673a7a"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dba/classshaka_1_1media_1_1SegmentTestBase.html#a08c5db7b7f28da29ca40147cf8673a7a">TemplateFileName</a> (int number) const</td></tr>
<tr class="memdesc:a08c5db7b7f28da29ca40147cf8673a7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the file name of the given template file. <br /></td></tr>
<tr class="separator:a08c5db7b7f28da29ca40147cf8673a7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09bee5db28093d1d841e592c1f7df11d"><td class="memItemLeft" align="right" valign="top"><a id="a09bee5db28093d1d841e592c1f7df11d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>set_cur_timestamp</b> (uint64_t timestamp)</td></tr>
<tr class="separator:a09bee5db28093d1d841e592c1f7df11d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memitem:a3b0399bdccd9deafde4c89db5e717193"><td class="memItemLeft" align="right" valign="top"><a id="a3b0399bdccd9deafde4c89db5e717193"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>output_file_name_</b></td></tr>
<tr class="separator:a3b0399bdccd9deafde4c89db5e717193"><td class="memSeparator" colspan="2">&#160;</td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memitem:a4b0873e7c733b3c45b5aeadec4c76c7a"><td class="memItemLeft" align="right" valign="top"><a id="a4b0873e7c733b3c45b5aeadec4c76c7a"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>segment_template_</b></td></tr>
<tr class="separator:a4b0873e7c733b3c45b5aeadec4c76c7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memitem:a27591b463fcb7029e23c472839482400"><td class="memItemLeft" align="right" valign="top"><a id="a27591b463fcb7029e23c472839482400"></a>
uint64_t&#160;</td><td class="memItemRight" valign="bottom"><b>cur_timestamp_</b></td></tr>
<tr class="separator:a27591b463fcb7029e23c472839482400"><td class="memSeparator" colspan="2">&#160;</td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memitem:ae91bd23a2ffd05d10184b536cb35751a"><td class="memItemLeft" align="right" valign="top"><a id="ae91bd23a2ffd05d10184b536cb35751a"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>single_segment_</b></td></tr>
<tr class="separator:ae91bd23a2ffd05d10184b536cb35751a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
2018-02-10 23:37:42 +00:00
<p class="definition">Definition at line <a class="el" href="../../d0/dee/segmenter__test__base_8h_source.html#l00028">28</a> of file <a class="el" href="../../d0/dee/segmenter__test__base_8h_source.html">segmenter_test_base.h</a>.</p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>packager/media/formats/webm/<a class="el" href="../../d0/dee/segmenter__test__base_8h_source.html">segmenter_test_base.h</a></li>
<li>packager/media/formats/webm/<a class="el" href="../../d4/da7/segmenter__test__base_8cc_source.html">segmenter_test_base.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
2021-06-22 00:16:40 +00:00
Generated on Tue Jun 22 2021 00:16:05 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.17
</small></address>
</body>
</html>