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

374 lines
24 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>DASH Media Packaging 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/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="../../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:abe19fd2154084026a514541e152600e0"><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#abe19fd2154084026a514541e152600e0a696e4587c758dc7908ad6bbb376ae06d">kDefaultAudioBufferDurationInMs</a> = 23,
<a class="el" href="../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html#abe19fd2154084026a514541e152600e0ae4ed667d0b90505a42a7983b0aa4d57f">kDefaultVideoBufferDurationInMs</a> = 63
}</td></tr>
<tr class="separator:abe19fd2154084026a514541e152600e0"><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:a8a7c7e7ac6a5da1cd45ab50f914f6826"><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#a8a7c7e7ac6a5da1cd45ab50f914f6826">WebMClusterParser</a> (int64_t timecode_scale, scoped_refptr&lt; <a class="el" href="../../da/d4e/classshaka_1_1media_1_1AudioStreamInfo.html">AudioStreamInfo</a> &gt; audio_stream_info, scoped_refptr&lt; <a class="el" href="../../d6/db1/classshaka_1_1media_1_1VideoStreamInfo.html">VideoStreamInfo</a> &gt; video_stream_info, 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#a0ac13291317f7d3d9175c4e91e57b891">MediaParser::NewSampleCB</a> &amp;new_sample_cb, const <a class="el" href="../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#a95d25a50ad371304f1abce9971ce3704">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:a8a7c7e7ac6a5da1cd45ab50f914f6826"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb306c3299a7279125b8f321ef5bbc94"><td class="memItemLeft" align="right" valign="top"><a class="anchor" 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:a165bf659b71245f79a4d9bad799d98d9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a165bf659b71245f79a4d9bad799d98d9"></a>
int64_t&#160;</td><td class="memItemRight" valign="bottom"><b>cluster_start_time</b> () const </td></tr>
<tr class="separator:a165bf659b71245f79a4d9bad799d98d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66f87fef54ed47bd36d740254d52b9c7"><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#a66f87fef54ed47bd36d740254d52b9c7">cluster_ended</a> () const </td></tr>
<tr class="separator:a66f87fef54ed47bd36d740254d52b9c7"><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 class="anchor" 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 class="anchor" 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 class="anchor" 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>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 class="anchor" id="abe19fd2154084026a514541e152600e0"></a>
<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"><em><a class="anchor" id="abe19fd2154084026a514541e152600e0a696e4587c758dc7908ad6bbb376ae06d"></a>kDefaultAudioBufferDurationInMs</em>&#160;</td><td class="fielddoc">
<p>Common 1k samples @44.1kHz. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="abe19fd2154084026a514541e152600e0ae4ed667d0b90505a42a7983b0aa4d57f"></a>kDefaultVideoBufferDurationInMs</em>&#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>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 class="anchor" id="a8a7c7e7ac6a5da1cd45ab50f914f6826"></a>
<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">scoped_refptr&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">scoped_refptr&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">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#a0ac13291317f7d3d9175c4e91e57b891">MediaParser::NewSampleCB</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#a95d25a50ad371304f1abce9971ce3704">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">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>Definition at line <a class="el" href="../../d5/d8f/webm__cluster__parser_8cc_source.html#l00052">52</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 class="anchor" id="a66f87fef54ed47bd36d740254d52b9c7"></a>
<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>Definition at line <a class="el" href="../../dc/d3c/webm__cluster__parser_8h_source.html#l00151">151</a> of file <a class="el" href="../../dc/d3c/webm__cluster__parser_8h_source.html">webm_cluster_parser.h</a>.</p>
</div>
</div>
<a class="anchor" id="ac3d4be1a12667ed722915be727747eee"></a>
<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>Definition at line <a class="el" href="../../d5/d8f/webm__cluster__parser_8cc_source.html#l00106">106</a> of file <a class="el" href="../../d5/d8f/webm__cluster__parser_8cc_source.html">webm_cluster_parser.cc</a>.</p>
</div>
</div>
<a class="anchor" id="aba1bae97c2d96181027e43b0a1993e67"></a>
<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>Definition at line <a class="el" href="../../d5/d8f/webm__cluster__parser_8cc_source.html#l00114">114</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>media/formats/webm/<a class="el" href="../../dc/d3c/webm__cluster__parser_8h_source.html">webm_cluster_parser.h</a></li>
<li>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 Fri Jun 24 2016 01:03:14 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>