2021-04-10 04:00:37 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2015-10-19 17:27:30 +00:00
< 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-04-10 04:00:37 +00:00
< meta name = "generator" content = "Doxygen 1.9.1" / >
2018-02-10 23:37:42 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2017-09-20 02:35:05 +00:00
< title > Shaka Packager SDK: shaka::media::WebMClusterParser Class Reference< / title >
2015-10-19 17:27:30 +00:00
< 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 >
2015-10-19 17:27:30 +00:00
< 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;" >
2017-09-20 02:35:05 +00:00
< div id = "projectname" > Shaka Packager SDK
2015-10-19 17:27:30 +00:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2021-04-10 04:00:37 +00:00
<!-- Generated by Doxygen 1.9.1 -->
2015-10-19 17:27:30 +00:00
< script type = "text/javascript" >
2021-04-10 04:00:37 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
/* @license-end */
2015-10-19 17:27:30 +00:00
< / 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" >
2021-04-10 04:00:37 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& 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(); });
});
2021-04-10 04:00:37 +00:00
/* @license-end */< / script >
2018-02-10 23:37:42 +00:00
< div id = "main-nav" > < / div >
2015-10-19 17:27:30 +00:00
<!-- 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 >
2015-10-19 17:27:30 +00:00
<!-- 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 >
2016-05-24 23:43:16 +00:00
< 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 >
2015-10-19 17:27:30 +00:00
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#nested-classes" > Classes< / a > |
< a href = "#pub-types" > Public Types< / a > |
< a href = "#pub-methods" > Public Member Functions< / a > |
2016-05-24 23:43:16 +00:00
< a href = "../../d8/d08/classshaka_1_1media_1_1WebMClusterParser-members.html" > List of all members< / a > < / div >
2015-10-19 17:27:30 +00:00
< div class = "headertitle" >
2016-05-24 23:43:16 +00:00
< div class = "title" > shaka::media::WebMClusterParser Class Reference< / div > < / div >
2015-10-19 17:27:30 +00:00
< / div > <!-- header -->
< div class = "contents" >
< div class = "dynheader" >
2016-05-24 23:43:16 +00:00
Inheritance diagram for shaka::media::WebMClusterParser:< / div >
2015-10-19 17:27:30 +00:00
< div class = "dyncontent" >
< div class = "center" >
2016-05-24 23:43:16 +00:00
< 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" / >
2021-04-10 04:00:37 +00:00
< / map >
< / div > < / div >
2015-10-19 17:27:30 +00:00
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-types" > < / a >
Public Types< / h2 > < / td > < / tr >
2021-04-10 04:00:37 +00:00
< tr class = "memitem:a3b443a69d0303fbee31c06510090b179" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / 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
2015-10-19 17:27:30 +00:00
}< / td > < / tr >
2018-02-10 23:37:42 +00:00
< tr class = "separator:a3b443a69d0303fbee31c06510090b179" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-19 17:27:30 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2021-04-10 04:00:37 +00:00
< tr class = "memitem:a7a9c787af1bbd47c4a8a7c4e6ce9ff78" > < td class = "memItemLeft" align = "right" valign = "top" >   < / 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< < a class = "el" href = "../../da/d4e/classshaka_1_1media_1_1AudioStreamInfo.html" > AudioStreamInfo< / a > > audio_stream_info, std::shared_ptr< < a class = "el" href = "../../d6/db1/classshaka_1_1media_1_1VideoStreamInfo.html" > VideoStreamInfo< / a > > video_stream_info, const < a class = "el" href = "../../d1/da5/classshaka_1_1media_1_1VPCodecConfigurationRecord.html" > VPCodecConfigurationRecord< / a > & vp_config, int64_t audio_default_duration, int64_t video_default_duration, const WebMTracksParser::TextTracks & text_tracks, const std::set< int64_t > & ignored_tracks, const std::string & audio_encryption_key_id, const std::string & video_encryption_key_id, const < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#ad86528c837c0a773f7e853c38a4a3af2" > MediaParser::NewMediaSampleCB< / a > & new_sample_cb, const < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#aef5795d2b3df2526c6e8afe1e4d072bf" > MediaParser::InitCB< / a > & 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" >   < / td > < / tr >
2018-02-10 23:37:42 +00:00
< tr class = "memitem:abb306c3299a7279125b8f321ef5bbc94" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "abb306c3299a7279125b8f321ef5bbc94" > < / a >
2016-05-24 23:43:16 +00:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html#abb306c3299a7279125b8f321ef5bbc94" > Reset< / a > ()< / td > < / tr >
2018-02-10 23:37:42 +00:00
< tr class = "memdesc:abb306c3299a7279125b8f321ef5bbc94" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Resets the parser state so it can accept a new cluster. < br / > < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:abb306c3299a7279125b8f321ef5bbc94" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac3d4be1a12667ed722915be727747eee" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / 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" >   < / td > < / tr >
< tr class = "memitem:aba1bae97c2d96181027e43b0a1993e67" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / 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" >   < / td > < / tr >
2018-02-10 23:37:42 +00:00
< tr class = "memitem:a687bb8b20d38530a79b7f8bc5bd725e0" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a687bb8b20d38530a79b7f8bc5bd725e0" > < / a >
int64_t  < / td > < td class = "memItemRight" valign = "bottom" > < b > cluster_start_time< / b > () const< / td > < / tr >
< tr class = "separator:a687bb8b20d38530a79b7f8bc5bd725e0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a97f7c19e8dd7fb57e9f36bd70bcdb56a" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / 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" >   < / td > < / tr >
2016-05-24 23:43:16 +00:00
< 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 = "-" / >   Public Member Functions inherited from < a class = "el" href = "../../d5/dec/classshaka_1_1media_1_1WebMParserClient.html" > shaka::media::WebMParserClient< / a > < / td > < / tr >
2018-02-10 23:37:42 +00:00
< tr class = "memitem:afba91459762fe67d5640b4a8bfc41293 inherit pub_methods_classshaka_1_1media_1_1WebMParserClient" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "afba91459762fe67d5640b4a8bfc41293" > < / a >
2015-10-19 17:27:30 +00:00
virtual bool  < / td > < td class = "memItemRight" valign = "bottom" > < b > OnFloat< / b > (int id, double val)< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:afba91459762fe67d5640b4a8bfc41293 inherit pub_methods_classshaka_1_1media_1_1WebMParserClient" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-02-10 23:37:42 +00:00
< tr class = "memitem:a59e9fddc974f0898a3127007780470e7 inherit pub_methods_classshaka_1_1media_1_1WebMParserClient" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a59e9fddc974f0898a3127007780470e7" > < / a >
2015-10-19 17:27:30 +00:00
virtual bool  < / td > < td class = "memItemRight" valign = "bottom" > < b > OnString< / b > (int id, const std::string & str)< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a59e9fddc974f0898a3127007780470e7 inherit pub_methods_classshaka_1_1media_1_1WebMParserClient" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-19 17:27:30 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "inherited" > < / a >
Additional Inherited Members< / h2 > < / td > < / tr >
2016-05-24 23:43:16 +00:00
< 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 = "-" / >   Protected Member Functions inherited from < a class = "el" href = "../../d5/dec/classshaka_1_1media_1_1WebMParserClient.html" > shaka::media::WebMParserClient< / a > < / td > < / tr >
2018-02-10 23:37:42 +00:00
< tr class = "memitem:ae8d4510591d9c8eb11a3f41180e11efc inherit pro_methods_classshaka_1_1media_1_1WebMParserClient" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "ae8d4510591d9c8eb11a3f41180e11efc" > < / a >
2016-05-24 23:43:16 +00:00
  < / 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" >   < / td > < / tr >
2015-10-19 17:27:30 +00:00
< / 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 = "../../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 >
2015-10-19 19:22:31 +00:00
< / div > < h2 class = "groupheader" > Member Enumeration Documentation< / h2 >
2018-02-10 23:37:42 +00:00
< a id = "a3b443a69d0303fbee31c06510090b179" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a3b443a69d0303fbee31c06510090b179" > ◆ < / a > < / span > anonymous enum< / h2 >
2015-10-19 19:22:31 +00:00
< 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" >
2018-02-10 23:37:42 +00:00
< tr > < th colspan = "2" > Enumerator< / th > < / tr > < tr > < td class = "fieldname" > < a id = "a3b443a69d0303fbee31c06510090b179a696e4587c758dc7908ad6bbb376ae06d" > < / a > kDefaultAudioBufferDurationInMs  < / td > < td class = "fielddoc" > < p > Common 1k samples @44.1kHz. < / p >
2015-10-19 19:22:31 +00:00
< / td > < / tr >
2018-02-10 23:37:42 +00:00
< tr > < td class = "fieldname" > < a id = "a3b443a69d0303fbee31c06510090b179ae4ed667d0b90505a42a7983b0aa4d57f" > < / a > kDefaultVideoBufferDurationInMs  < / 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 >
2015-10-19 19:22:31 +00:00
< / td > < / tr >
< / table >
2018-02-10 23:37:42 +00:00
< 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 >
2016-01-22 17:33:52 +00:00
< / div >
< / div >
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2021-04-10 04:00:37 +00:00
< a id = "a7a9c787af1bbd47c4a8a7c4e6ce9ff78" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a7a9c787af1bbd47c4a8a7c4e6ce9ff78" > ◆ < / a > < / span > WebMClusterParser()< / h2 >
2018-02-10 23:37:42 +00:00
2016-01-22 17:33:52 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > shaka::media::WebMClusterParser::WebMClusterParser < / td >
2016-01-22 17:33:52 +00:00
< td > (< / td >
< td class = "paramtype" > int64_t  < / td >
< td class = "paramname" > < em > timecode_scale< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2017-01-26 03:38:47 +00:00
< td class = "paramtype" > std::shared_ptr< < a class = "el" href = "../../da/d4e/classshaka_1_1media_1_1AudioStreamInfo.html" > AudioStreamInfo< / a > >   < / td >
2016-01-22 17:33:52 +00:00
< td class = "paramname" > < em > audio_stream_info< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2017-01-26 03:38:47 +00:00
< td class = "paramtype" > std::shared_ptr< < a class = "el" href = "../../d6/db1/classshaka_1_1media_1_1VideoStreamInfo.html" > VideoStreamInfo< / a > >   < / td >
2016-01-22 17:33:52 +00:00
< td class = "paramname" > < em > video_stream_info< / em > , < / td >
< / tr >
2017-05-02 21:09:19 +00:00
< 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 > &   < / td >
< td class = "paramname" > < em > vp_config< / em > , < / td >
< / tr >
2016-01-22 17:33:52 +00:00
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int64_t  < / td >
< td class = "paramname" > < em > audio_default_duration< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int64_t  < / td >
< td class = "paramname" > < em > video_default_duration< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const WebMTracksParser::TextTracks &   < / td >
< td class = "paramname" > < em > text_tracks< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const std::set< int64_t > &   < / td >
< td class = "paramname" > < em > ignored_tracks< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const std::string &   < / 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 &   < / td >
< td class = "paramname" > < em > video_encryption_key_id< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2021-04-10 04:00:37 +00:00
< td class = "paramtype" > const < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#ad86528c837c0a773f7e853c38a4a3af2" > MediaParser::NewMediaSampleCB< / a > &   < / td >
2016-01-22 17:33:52 +00:00
< td class = "paramname" > < em > new_sample_cb< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2017-01-26 03:38:47 +00:00
< td class = "paramtype" > const < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#aef5795d2b3df2526c6e8afe1e4d072bf" > MediaParser::InitCB< / a > &   < / td >
2016-01-22 17:33:52 +00:00
< td class = "paramname" > < em > init_cb< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2016-05-24 23:43:16 +00:00
< td class = "paramtype" > < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html" > KeySource< / a > *  < / td >
2016-01-22 17:33:52 +00:00
< td class = "paramname" > < em > decryption_key_source< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-02-10 23:37:42 +00:00
< 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 >
2016-01-22 17:33:52 +00:00
< 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 >
2017-05-02 21:09:19 +00:00
< tr > < td class = "paramname" > vp_config< / td > < td > references vp configuration record. Only useful for video. < / td > < / tr >
2016-01-22 17:33:52 +00:00
< 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 >
2018-02-10 23:37:42 +00:00
< 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 >
2015-10-19 19:22:31 +00:00
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2018-02-10 23:37:42 +00:00
< a id = "a97f7c19e8dd7fb57e9f36bd70bcdb56a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a97f7c19e8dd7fb57e9f36bd70bcdb56a" > ◆ < / a > < / span > cluster_ended()< / h2 >
2015-10-19 19:22:31 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > bool shaka::media::WebMClusterParser::cluster_ended < / td >
2015-10-19 19:22:31 +00:00
< 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" >
2016-05-24 23:43:16 +00:00
< 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 >
2015-10-19 19:22:31 +00:00
2018-02-10 23:37:42 +00:00
< 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 >
2015-12-16 00:06:14 +00:00
< / div >
< / div >
2018-02-10 23:37:42 +00:00
< a id = "ac3d4be1a12667ed722915be727747eee" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ac3d4be1a12667ed722915be727747eee" > ◆ < / a > < / span > Flush()< / h2 >
2015-12-16 00:06:14 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > bool shaka::media::WebMClusterParser::Flush < / td >
2015-12-16 00:06:14 +00:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-02-10 23:37:42 +00:00
< 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 >
2015-12-16 00:06:14 +00:00
2018-02-10 23:37:42 +00:00
< 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 >
2015-10-19 19:22:31 +00:00
< / div >
< / div >
2018-02-10 23:37:42 +00:00
< a id = "aba1bae97c2d96181027e43b0a1993e67" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aba1bae97c2d96181027e43b0a1993e67" > ◆ < / a > < / span > Parse()< / h2 >
2015-10-19 19:22:31 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > int shaka::media::WebMClusterParser::Parse < / td >
2015-10-19 19:22:31 +00:00
< td > (< / td >
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > buf< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > size< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-02-10 23:37:42 +00:00
< p > Parses a WebM cluster element in |buf|. < / p > < dl class = "section return" > < dt > Returns< / dt > < dd > -1 if the parse fails. < / dd >
2015-10-19 19:22:31 +00:00
< dd >
0 if more data is needed. < / dd >
< dd >
The number of bytes parsed on success. < / dd > < / dl >
2018-02-10 23:37:42 +00:00
< 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 >
2015-10-19 17:27:30 +00:00
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
2017-09-20 02:35:05 +00:00
< 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 >
2015-10-19 17:27:30 +00:00
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2021-06-11 04:44:53 +00:00
Generated on Thu Jun 10 2021 21:44:28 for Shaka Packager SDK by  < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "../../doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.9.1
2015-10-19 17:27:30 +00:00
< / small > < / address >
< / body >
< / html >