shaka-packager/docs/d4/da7/segmenter__test__base_8cc_s...

94 lines
41 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"/>
2018-02-10 23:37:42 +00:00
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Shaka Packager SDK: packager/media/formats/webm/segmenter_test_base.cc Source File</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 -->
2018-02-10 23:37:42 +00:00
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</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">
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</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)">
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="../../dir_3f8eec2fc361645de4b1ec14c19fffc7.html">packager</a></li><li class="navelem"><a class="el" href="../../dir_f99dae54fe7170f791f339b952d5067a.html">media</a></li><li class="navelem"><a class="el" href="../../dir_375ba2cfd8fd5b05c50b92d996b9d386.html">formats</a></li><li class="navelem"><a class="el" href="../../dir_b23f8e22c8c095d1c8c0cb8f88104a00.html">webm</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">segmenter_test_base.cc</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright 2015 Google Inc. All rights reserved.</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// Use of this source code is governed by a BSD-style</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// license that can be found in the LICENSE file or at</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">// https://developers.google.com/open-source/licenses/bsd</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &quot;packager/media/formats/webm/segmenter_test_base.h&quot;</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &quot;packager/file/memory_file.h&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &quot;packager/media/formats/webm/webm_constants.h&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &quot;packager/version/version.h&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="keyword">namespace </span><a class="code" href="../../d8/daf/namespaceshaka.html">shaka</a> {</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="keyword">namespace </span>media {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="keyword">namespace </span>{</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">// The contents of a frame does not mater.</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">const</span> uint8_t kTestMediaSampleData[] = {0xde, 0xad, 0xbe, 0xef, 0x00};</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="keyword">const</span> uint8_t kTestMediaSampleSideData[] = {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; <span class="comment">// First 8 bytes of side_data is the BlockAddID element in big endian.</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; 0x12, 0x34, 0x56, 0x78, 0x9a, 0x00, 0x00, 0x00,</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; 0x73, 0x69, 0x64, 0x65, 0x00};</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="keyword">const</span> <span class="keywordtype">int</span> kTrackId = 1;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="keyword">const</span> uint64_t kDurationInSeconds = 8;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="keyword">const</span> Codec kCodec = kCodecVP8;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">const</span> std::string kCodecString = <span class="stringliteral">&quot;vp8&quot;</span>;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="keyword">const</span> std::string kLang
2018-08-16 00:35:22 +00:00
<div class="ttc" id="classshaka_1_1MemoryFile_html_acd947572c2bbe3595b403a483c82e899"><div class="ttname"><a href="../../de/dad/classshaka_1_1MemoryFile.html#acd947572c2bbe3595b403a483c82e899">shaka::MemoryFile::DeleteAll</a></div><div class="ttdeci">static void DeleteAll()</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d87/memory__file_8cc_source.html#l00186">memory_file.cc:186</a></div></div>
<div class="ttc" id="structshaka_1_1media_1_1MuxerOptions_html_a5397ee8759a663aea68261600e528d82"><div class="ttname"><a href="../../d0/d27/structshaka_1_1media_1_1MuxerOptions.html#a5397ee8759a663aea68261600e528d82">shaka::media::MuxerOptions::output_file_name</a></div><div class="ttdeci">std::string output_file_name</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d0e/muxer__options_8h_source.html#l00034">muxer_options.h:34</a></div></div>
<div class="ttc" id="classshaka_1_1File_html_ac9a19cb5fc45664ca440996bf1201c30"><div class="ttname"><a href="../../d3/d73/classshaka_1_1File.html#ac9a19cb5fc45664ca440996bf1201c30">shaka::File::ReadFileToString</a></div><div class="ttdeci">static bool ReadFileToString(const char *file_name, std::string *contents)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/dfc/file_8cc_source.html#l00216">file.cc:216</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1SegmentTestBase_html_aeba2d28eb9f605bae1536e13c1cac950"><div class="ttname"><a href="../../d2/dba/classshaka_1_1media_1_1SegmentTestBase.html#aeba2d28eb9f605bae1536e13c1cac950">shaka::media::SegmentTestBase::CreateVideoStreamInfo</a></div><div class="ttdeci">VideoStreamInfo * CreateVideoStreamInfo(uint32_t time_scale) const</div><div class="ttdoc">Creates a video stream info object for testing. </div><div class="ttdef"><b>Definition:</b> <a href="../../d4/da7/segmenter__test__base_8cc_source.html#l00084">segmenter_test_base.cc:84</a></div></div>
2018-02-10 23:37:42 +00:00
<div class="ttc" id="namespaceshaka_html"><div class="ttname"><a href="../../d8/daf/namespaceshaka.html">shaka</a></div><div class="ttdoc">All the methods that are virtual are virtual for mocking. </div><div class="ttdef"><b>Definition:</b> <a href="../../d4/d15/gflags__hex__bytes_8cc_source.html#l00011">gflags_hex_bytes.cc:11</a></div></div>
<div class="ttc" id="structshaka_1_1media_1_1MuxerOptions_html"><div class="ttname"><a href="../../d0/d27/structshaka_1_1media_1_1MuxerOptions.html">shaka::media::MuxerOptions</a></div><div class="ttdoc">This structure contains the list of configuration options for Muxer. </div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d0e/muxer__options_8h_source.html#l00020">muxer_options.h:20</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1SegmentTestBase_html_a87fefed1921b0dad84b1d082e30cce37"><div class="ttname"><a href="../../d2/dba/classshaka_1_1media_1_1SegmentTestBase.html#a87fefed1921b0dad84b1d082e30cce37">shaka::media::SegmentTestBase::CreateMuxerOptions</a></div><div class="ttdeci">MuxerOptions CreateMuxerOptions() const</div><div class="ttdoc">Creates a Muxer options object for testing. </div><div class="ttdef"><b>Definition:</b> <a href="../../d4/da7/segmenter__test__base_8cc_source.html#l00075">segmenter_test_base.cc:75</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1SegmentTestBase_html_afd8845d029698f556ca09436da0c62ef"><div class="ttname"><a href="../../d2/dba/classshaka_1_1media_1_1SegmentTestBase.html#afd8845d029698f556ca09436da0c62ef">shaka::media::SegmentTestBase::CreateSample</a></div><div class="ttdeci">std::shared_ptr&lt; MediaSample &gt; CreateSample(KeyFrameFlag key_frame_flag, uint64_t duration, SideDataFlag side_data_flag)</div><div class="ttdoc">Creates a new media sample. </div><div class="ttdef"><b>Definition:</b> <a href="../../d4/da7/segmenter__test__base_8cc_source.html#l00052">segmenter_test_base.cc:52</a></div></div>
2018-02-10 23:37:42 +00:00
<div class="ttc" id="classshaka_1_1media_1_1WebMListParser_html_a4ebac4e1a4165017d206d4aa5c4c0350"><div class="ttname"><a href="../../dc/dca/classshaka_1_1media_1_1WebMListParser.html#a4ebac4e1a4165017d206d4aa5c4c0350">shaka::media::WebMListParser::Reset</a></div><div class="ttdeci">void Reset()</div><div class="ttdoc">Resets the state of the parser so it can start parsing a new list. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/db6/webm__parser_8cc_source.html#l00733">webm_parser.cc:733</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1WebMListParser_html_acd805b7eb25afcd9a3be2d8d88e3c6af"><div class="ttname"><a href="../../dc/dca/classshaka_1_1media_1_1WebMListParser.html#acd805b7eb25afcd9a3be2d8d88e3c6af">shaka::media::WebMListParser::Parse</a></div><div class="ttdeci">int Parse(const uint8_t *buf, int size)</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/db6/webm__parser_8cc_source.html#l00738">webm_parser.cc:738</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1SegmentTestBase_html_a8d4178714145fa2d18821840db8fb2a6"><div class="ttname"><a href="../../d2/dba/classshaka_1_1media_1_1SegmentTestBase.html#a8d4178714145fa2d18821840db8fb2a6">shaka::media::SegmentTestBase::OutputFileName</a></div><div class="ttdeci">std::string OutputFileName() const</div><div class="ttdoc">Gets the file name of the current output file. </div><div class="ttdef"><b>Definition:</b> <a href="../../d4/da7/segmenter__test__base_8cc_source.html#l00093">segmenter_test_base.cc:93</a></div></div>
2018-08-16 00:35:22 +00:00
<div class="ttc" id="structshaka_1_1media_1_1MuxerOptions_html_a872d1150a71d9f0fb5db0ab81334d614"><div class="ttname"><a href="../../d0/d27/structshaka_1_1media_1_1MuxerOptions.html#a872d1150a71d9f0fb5db0ab81334d614">shaka::media::MuxerOptions::temp_dir</a></div><div class="ttdeci">std::string temp_dir</div><div class="ttdoc">Specify temporary directory for intermediate files. </div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d0e/muxer__options_8h_source.html#l00043">muxer_options.h:43</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1MediaSample_html_ad8975dbb21747ff32c8604f5489bf5c9"><div class="ttname"><a href="../../d7/d6d/classshaka_1_1media_1_1MediaSample.html#ad8975dbb21747ff32c8604f5489bf5c9">shaka::media::MediaSample::CopyFrom</a></div><div class="ttdeci">static std::shared_ptr&lt; MediaSample &gt; CopyFrom(const uint8_t *data, size_t size, bool is_key_frame)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d0d/media__sample_8cc_source.html#l00042">media_sample.cc:42</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1VideoStreamInfo_html"><div class="ttname"><a href="../../d6/db1/classshaka_1_1media_1_1VideoStreamInfo.html">shaka::media::VideoStreamInfo</a></div><div class="ttdoc">Holds video stream information. </div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d87/video__stream__info_8h_source.html#l00023">video_stream_info.h:23</a></div></div>
2018-02-10 23:37:42 +00:00
<div class="ttc" id="classshaka_1_1media_1_1WebMParserClient_html"><div class="ttname"><a href="../../d5/dec/classshaka_1_1media_1_1WebMParserClient.html">shaka::media::WebMParserClient</a></div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d46/webm__parser_8h_source.html#l00030">webm_parser.h:30</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jan 21 2020 16:58:51 for Shaka Packager SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
2018-02-10 23:37:42 +00:00
</a> 1.8.13
</small></address>
</body>
</html>