shaka-packager/docs/da/de4/classshaka_1_1media_1_1WebM...

363 lines
23 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::media::WebMClusterParser 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"><b>media</b></li><li class="navelem"><a class="el" href="../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html">WebMClusterParser</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="#pub-methods">Public Member Functions</a> &#124;
<a href="../../d8/d08/classshaka_1_1media_1_1WebMClusterParser-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">shaka::media::WebMClusterParser Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for shaka::media::WebMClusterParser:</div>
<div class="dyncontent">
<div class="center">
<img src="../../da/de4/classshaka_1_1media_1_1WebMClusterParser.png" usemap="#shaka::media::WebMClusterParser_map" alt=""/>
<map id="shaka::media::WebMClusterParser_map" name="shaka::media::WebMClusterParser_map">
<area href="../../d5/dec/classshaka_1_1media_1_1WebMParserClient.html" alt="shaka::media::WebMParserClient" shape="rect" coords="0,0,204,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a3b443a69d0303fbee31c06510090b179"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom">{ <a class="el" href="../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html#a3b443a69d0303fbee31c06510090b179a696e4587c758dc7908ad6bbb376ae06d">kDefaultAudioBufferDurationInMs</a> = 23
, <a class="el" href="../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html#a3b443a69d0303fbee31c06510090b179ae4ed667d0b90505a42a7983b0aa4d57f">kDefaultVideoBufferDurationInMs</a> = 63
}</td></tr>
<tr class="separator:a3b443a69d0303fbee31c06510090b179"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><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:a7a9c787af1bbd47c4a8a7c4e6ce9ff78"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html#a7a9c787af1bbd47c4a8a7c4e6ce9ff78">WebMClusterParser</a> (int64_t timecode_scale, std::shared_ptr&lt; <a class="el" href="../../da/d4e/classshaka_1_1media_1_1AudioStreamInfo.html">AudioStreamInfo</a> &gt; audio_stream_info, std::shared_ptr&lt; <a class="el" href="../../d6/db1/classshaka_1_1media_1_1VideoStreamInfo.html">VideoStreamInfo</a> &gt; video_stream_info, const <a class="el" href="../../d1/da5/classshaka_1_1media_1_1VPCodecConfigurationRecord.html">VPCodecConfigurationRecord</a> &amp;vp_config, int64_t audio_default_duration, int64_t video_default_duration, const WebMTracksParser::TextTracks &amp;text_tracks, const std::set&lt; int64_t &gt; &amp;ignored_tracks, const std::string &amp;audio_encryption_key_id, const std::string &amp;video_encryption_key_id, const <a class="el" href="../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#ad86528c837c0a773f7e853c38a4a3af2">MediaParser::NewMediaSampleCB</a> &amp;new_sample_cb, const <a class="el" href="../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#aef5795d2b3df2526c6e8afe1e4d072bf">MediaParser::InitCB</a> &amp;init_cb, <a class="el" href="../../d1/d1f/classshaka_1_1media_1_1KeySource.html">KeySource</a> *decryption_key_source)</td></tr>
<tr class="separator:a7a9c787af1bbd47c4a8a7c4e6ce9ff78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb306c3299a7279125b8f321ef5bbc94"><td class="memItemLeft" align="right" valign="top"><a id="abb306c3299a7279125b8f321ef5bbc94"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html#abb306c3299a7279125b8f321ef5bbc94">Reset</a> ()</td></tr>
<tr class="memdesc:abb306c3299a7279125b8f321ef5bbc94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the parser state so it can accept a new cluster. <br /></td></tr>
<tr class="separator:abb306c3299a7279125b8f321ef5bbc94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3d4be1a12667ed722915be727747eee"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html#ac3d4be1a12667ed722915be727747eee">Flush</a> () WARN_UNUSED_RESULT</td></tr>
<tr class="separator:ac3d4be1a12667ed722915be727747eee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba1bae97c2d96181027e43b0a1993e67"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html#aba1bae97c2d96181027e43b0a1993e67">Parse</a> (const uint8_t *buf, int size)</td></tr>
<tr class="separator:aba1bae97c2d96181027e43b0a1993e67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a687bb8b20d38530a79b7f8bc5bd725e0"><td class="memItemLeft" align="right" valign="top"><a id="a687bb8b20d38530a79b7f8bc5bd725e0"></a>
int64_t&#160;</td><td class="memItemRight" valign="bottom"><b>cluster_start_time</b> () const</td></tr>
<tr class="separator:a687bb8b20d38530a79b7f8bc5bd725e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97f7c19e8dd7fb57e9f36bd70bcdb56a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html#a97f7c19e8dd7fb57e9f36bd70bcdb56a">cluster_ended</a> () const</td></tr>
<tr class="separator:a97f7c19e8dd7fb57e9f36bd70bcdb56a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshaka_1_1media_1_1WebMParserClient"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshaka_1_1media_1_1WebMParserClient')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../d5/dec/classshaka_1_1media_1_1WebMParserClient.html">shaka::media::WebMParserClient</a></td></tr>
<tr class="memitem:afba91459762fe67d5640b4a8bfc41293 inherit pub_methods_classshaka_1_1media_1_1WebMParserClient"><td class="memItemLeft" align="right" valign="top"><a id="afba91459762fe67d5640b4a8bfc41293"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>OnFloat</b> (int id, double val)</td></tr>
<tr class="separator:afba91459762fe67d5640b4a8bfc41293 inherit pub_methods_classshaka_1_1media_1_1WebMParserClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59e9fddc974f0898a3127007780470e7 inherit pub_methods_classshaka_1_1media_1_1WebMParserClient"><td class="memItemLeft" align="right" valign="top"><a id="a59e9fddc974f0898a3127007780470e7"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>OnString</b> (int id, const std::string &amp;str)</td></tr>
<tr class="separator:a59e9fddc974f0898a3127007780470e7 inherit pub_methods_classshaka_1_1media_1_1WebMParserClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classshaka_1_1media_1_1WebMParserClient"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classshaka_1_1media_1_1WebMParserClient')"><img src="../../closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="../../d5/dec/classshaka_1_1media_1_1WebMParserClient.html">shaka::media::WebMParserClient</a></td></tr>
<tr class="memitem:ae8d4510591d9c8eb11a3f41180e11efc inherit pro_methods_classshaka_1_1media_1_1WebMParserClient"><td class="memItemLeft" align="right" valign="top"><a id="ae8d4510591d9c8eb11a3f41180e11efc"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>DISALLOW_COPY_AND_ASSIGN</b> (<a class="el" href="../../d5/dec/classshaka_1_1media_1_1WebMParserClient.html">WebMParserClient</a>)</td></tr>
<tr class="separator:ae8d4510591d9c8eb11a3f41180e11efc inherit pro_methods_classshaka_1_1media_1_1WebMParserClient"><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="../../dc/d3c/webm__cluster__parser_8h_source.html#l00024">24</a> of file <a class="el" href="../../dc/d3c/webm__cluster__parser_8h_source.html">webm_cluster_parser.h</a>.</p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a3b443a69d0303fbee31c06510090b179"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b443a69d0303fbee31c06510090b179">&#9670;&nbsp;</a></span>anonymous enum</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">anonymous enum</td>
</tr>
</table>
</div><div class="memdoc">
<p>Numbers chosen to estimate the duration of a buffer if none is set and there is not enough information to get a better estimate. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a3b443a69d0303fbee31c06510090b179a696e4587c758dc7908ad6bbb376ae06d"></a>kDefaultAudioBufferDurationInMs&#160;</td><td class="fielddoc"><p>Common 1k samples @44.1kHz. </p>
</td></tr>
<tr><td class="fieldname"><a id="a3b443a69d0303fbee31c06510090b179ae4ed667d0b90505a42a7983b0aa4d57f"></a>kDefaultVideoBufferDurationInMs&#160;</td><td class="fielddoc"><p>Chosen to represent 16fps duration, which will prevent MSE stalls in videos with frame-rates as low as 8fps. </p>
</td></tr>
</table>
<p class="definition">Definition at line <a class="el" href="../../dc/d3c/webm__cluster__parser_8h_source.html#l00028">28</a> of file <a class="el" href="../../dc/d3c/webm__cluster__parser_8h_source.html">webm_cluster_parser.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a7a9c787af1bbd47c4a8a7c4e6ce9ff78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a9c787af1bbd47c4a8a7c4e6ce9ff78">&#9670;&nbsp;</a></span>WebMClusterParser()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">shaka::media::WebMClusterParser::WebMClusterParser </td>
<td>(</td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>timecode_scale</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::shared_ptr&lt; <a class="el" href="../../da/d4e/classshaka_1_1media_1_1AudioStreamInfo.html">AudioStreamInfo</a> &gt;&#160;</td>
<td class="paramname"><em>audio_stream_info</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::shared_ptr&lt; <a class="el" href="../../d6/db1/classshaka_1_1media_1_1VideoStreamInfo.html">VideoStreamInfo</a> &gt;&#160;</td>
<td class="paramname"><em>video_stream_info</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="../../d1/da5/classshaka_1_1media_1_1VPCodecConfigurationRecord.html">VPCodecConfigurationRecord</a> &amp;&#160;</td>
<td class="paramname"><em>vp_config</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>audio_default_duration</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>video_default_duration</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const WebMTracksParser::TextTracks &amp;&#160;</td>
<td class="paramname"><em>text_tracks</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::set&lt; int64_t &gt; &amp;&#160;</td>
<td class="paramname"><em>ignored_tracks</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>audio_encryption_key_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>video_encryption_key_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#ad86528c837c0a773f7e853c38a4a3af2">MediaParser::NewMediaSampleCB</a> &amp;&#160;</td>
<td class="paramname"><em>new_sample_cb</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#aef5795d2b3df2526c6e8afe1e4d072bf">MediaParser::InitCB</a> &amp;&#160;</td>
<td class="paramname"><em>init_cb</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="../../d1/d1f/classshaka_1_1media_1_1KeySource.html">KeySource</a> *&#160;</td>
<td class="paramname"><em>decryption_key_source</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a <a class="el" href="../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html">WebMClusterParser</a> from given parameters. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">timecode_scale</td><td>indicates timecode scale for the clusters. </td></tr>
<tr><td class="paramname">audio_stream_info</td><td>references audio stream information. It will be NULL if there are no audio tracks available. </td></tr>
<tr><td class="paramname">video_stream_info</td><td>references video stream information. It will be NULL if there are no video tracks available. </td></tr>
<tr><td class="paramname">vp_config</td><td>references vp configuration record. Only useful for video. </td></tr>
<tr><td class="paramname">audio_default_duration</td><td>indicates default duration for audio samples. </td></tr>
<tr><td class="paramname">video_default_duration</td><td>indicates default duration for video samples. </td></tr>
<tr><td class="paramname">text_tracks</td><td>contains text track information. </td></tr>
<tr><td class="paramname">ignored_tracks</td><td>contains a list of ignored track ids. </td></tr>
<tr><td class="paramname">audio_encryption_key_id</td><td>indicates the encryption key id for audio samples if there is an audio stream and the audio stream is encrypted. It is empty otherwise. </td></tr>
<tr><td class="paramname">video_encryption_key_id</td><td>indicates the encryption key id for video samples if there is a video stream and the video stream is encrypted. It is empty otherwise. </td></tr>
<tr><td class="paramname">new_sample_cb</td><td>is the callback to emit new samples. </td></tr>
<tr><td class="paramname">init_cb</td><td>is the callback to initialize streams. </td></tr>
<tr><td class="paramname">decryption_key_source</td><td>points to a decryption key source to fetch decryption keys. Should not be NULL if the tracks are encrypted. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../d5/d8f/webm__cluster__parser_8cc_source.html#l00029">29</a> of file <a class="el" href="../../d5/d8f/webm__cluster__parser_8cc_source.html">webm_cluster_parser.cc</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a97f7c19e8dd7fb57e9f36bd70bcdb56a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97f7c19e8dd7fb57e9f36bd70bcdb56a">&#9670;&nbsp;</a></span>cluster_ended()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool shaka::media::WebMClusterParser::cluster_ended </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</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>true if the last <a class="el" href="../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html#aba1bae97c2d96181027e43b0a1993e67">Parse()</a> call stopped at the end of a cluster. </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../dc/d3c/webm__cluster__parser_8h_source.html#l00154">154</a> of file <a class="el" href="../../dc/d3c/webm__cluster__parser_8h_source.html">webm_cluster_parser.h</a>.</p>
</div>
</div>
<a id="ac3d4be1a12667ed722915be727747eee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3d4be1a12667ed722915be727747eee">&#9670;&nbsp;</a></span>Flush()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool shaka::media::WebMClusterParser::Flush </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Flush data currently in the parser and reset the parser so it can accept a new cluster. </p><dl class="section return"><dt>Returns</dt><dd>true on success, false otherwise. </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../d5/d8f/webm__cluster__parser_8cc_source.html#l00091">91</a> of file <a class="el" href="../../d5/d8f/webm__cluster__parser_8cc_source.html">webm_cluster_parser.cc</a>.</p>
</div>
</div>
<a id="aba1bae97c2d96181027e43b0a1993e67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba1bae97c2d96181027e43b0a1993e67">&#9670;&nbsp;</a></span>Parse()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int shaka::media::WebMClusterParser::Parse </td>
<td>(</td>
<td class="paramtype">const uint8_t *&#160;</td>
<td class="paramname"><em>buf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>size</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Parses a WebM cluster element in |buf|. </p><dl class="section return"><dt>Returns</dt><dd>-1 if the parse fails. </dd>
<dd>
0 if more data is needed. </dd>
<dd>
The number of bytes parsed on success. </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../d5/d8f/webm__cluster__parser_8cc_source.html#l00099">99</a> of file <a class="el" href="../../d5/d8f/webm__cluster__parser_8cc_source.html">webm_cluster_parser.cc</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>packager/media/formats/webm/<a class="el" href="../../dc/d3c/webm__cluster__parser_8h_source.html">webm_cluster_parser.h</a></li>
<li>packager/media/formats/webm/<a class="el" href="../../d5/d8f/webm__cluster__parser_8cc_source.html">webm_cluster_parser.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jun 10 2021 21:44:28 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>