2015-10-19 17:27:30 +00:00
<!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" / >
2016-05-24 23:43:16 +00:00
< title > DASH Media Packaging 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" / >
< 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  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  List< / span > < / a > < / li >
< li > < a href = "../../classes.html" > < span > Class  Index< / span > < / a > < / li >
< li > < a href = "../../hierarchy.html" > < span > Class  Hierarchy< / span > < / a > < / li >
< li > < a href = "../../functions.html" > < span > Class  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)">
2016-05-11 18:03:07 +00:00
< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(0)" > < span class = "SelectionMark" >   < / span > All< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(1)" > < span class = "SelectionMark" >   < / span > Classes< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(2)" > < span class = "SelectionMark" >   < / span > Namespaces< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(3)" > < span class = "SelectionMark" >   < / span > Functions< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(4)" > < span class = "SelectionMark" >   < / span > Variables< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(5)" > < span class = "SelectionMark" >   < / span > Typedefs< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(6)" > < span class = "SelectionMark" >   < / span > Enumerations< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(7)" > < span class = "SelectionMark" >   < / span > Enumerator< / a > < / 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" / >
2015-10-19 17:27:30 +00:00
< / 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 >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:abe19fd2154084026a514541e152600e0" > < 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#abe19fd2154084026a514541e152600e0a696e4587c758dc7908ad6bbb376ae06d" > kDefaultAudioBufferDurationInMs< / a > = 23,
< a class = "el" href = "../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html#abe19fd2154084026a514541e152600e0ae4ed667d0b90505a42a7983b0aa4d57f" > kDefaultVideoBufferDurationInMs< / a > = 63
2015-10-19 17:27:30 +00:00
}< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:abe19fd2154084026a514541e152600e0" > < 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 >
2017-01-26 03:38:47 +00:00
< tr class = "memitem:a59da447ae099935eaa26f69cfecefc02" > < 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#a59da447ae099935eaa26f69cfecefc02" > 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, 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#a3a1f87fb3ed95a9cbd2b6873326a1a4c" > MediaParser::NewSampleCB< / 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:a59da447ae099935eaa26f69cfecefc02" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:abb306c3299a7279125b8f321ef5bbc94" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "abb306c3299a7279125b8f321ef5bbc94" > < / a >
void  < / 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" >   < / 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" >   < / 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 >
< tr class = "memitem:a165bf659b71245f79a4d9bad799d98d9" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a165bf659b71245f79a4d9bad799d98d9" > < / a >
2015-10-19 17:27:30 +00:00
int64_t  < / td > < td class = "memItemRight" valign = "bottom" > < b > cluster_start_time< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a165bf659b71245f79a4d9bad799d98d9" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a66f87fef54ed47bd36d740254d52b9c7" > < 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#a66f87fef54ed47bd36d740254d52b9c7" > cluster_ended< / a > () const < / td > < / tr >
< tr class = "separator:a66f87fef54ed47bd36d740254d52b9c7" > < td class = "memSeparator" colspan = "2" >   < / 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 = "-" / >   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 >
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 >
< 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 >
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 >
< 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 >
  < / 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" >
2016-01-23 02:38:43 +00:00
< 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 >
2015-10-19 19:22:31 +00:00
< / div > < h2 class = "groupheader" > Member Enumeration Documentation< / h2 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "abe19fd2154084026a514541e152600e0" > < / a >
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" >
2016-05-24 23:43:16 +00:00
< tr > < th colspan = "2" > Enumerator< / th > < / tr > < tr > < td class = "fieldname" > < em > < a class = "anchor" id = "abe19fd2154084026a514541e152600e0a696e4587c758dc7908ad6bbb376ae06d" > < / a > kDefaultAudioBufferDurationInMs< / em >   < / td > < td class = "fielddoc" >
2015-10-19 19:22:31 +00:00
< p > Common 1k samples @44.1kHz. < / p >
< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr > < td class = "fieldname" > < em > < a class = "anchor" id = "abe19fd2154084026a514541e152600e0ae4ed667d0b90505a42a7983b0aa4d57f" > < / a > kDefaultVideoBufferDurationInMs< / em >   < / td > < td class = "fielddoc" >
2015-10-19 19:22:31 +00:00
< p > Chosen to represent 16fps duration, which will prevent MSE stalls in videos with frame-rates as low as 8fps. < / p >
< / td > < / tr >
< / table >
2016-01-23 02:38:43 +00:00
< 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 >
2016-01-22 17:33:52 +00:00
< / div >
< / div >
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2017-01-26 03:38:47 +00:00
< a class = "anchor" id = "a59da447ae099935eaa26f69cfecefc02" > < / a >
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 >
< 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 >
2017-01-26 03:38:47 +00:00
< td class = "paramtype" > const < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#a3a1f87fb3ed95a9cbd2b6873326a1a4c" > MediaParser::NewSampleCB< / 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" >
2016-05-24 23:43:16 +00:00
< p > Create a < a class = "el" href = "../../da/de4/classshaka_1_1media_1_1WebMClusterParser.html" > WebMClusterParser< / a > from given parameters. < / p >
2016-01-22 17:33:52 +00:00
< 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 >
2016-08-23 20:33:23 +00:00
< p > 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 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a66f87fef54ed47bd36d740254d52b9c7" > < / a >
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
2016-01-23 02:38:43 +00:00
< 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 >
2015-12-16 00:06:14 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "ac3d4be1a12667ed722915be727747eee" > < / a >
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" >
< p > Flush data currently in the parser and reset the parser so it can accept a new cluster. < / p >
2016-01-23 02:38:43 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > true on success, false otherwise. < / dd > < / dl >
2015-12-16 00:06:14 +00:00
2016-08-23 20:33:23 +00:00
< p > Definition at line < a class = "el" href = "../../d5/d8f/webm__cluster__parser_8cc_source.html#l00083" > 83< / 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 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "aba1bae97c2d96181027e43b0a1993e67" > < / a >
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" >
< 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 >
2016-08-23 20:33:23 +00:00
< p > 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 17:27:30 +00:00
< / 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 >
2017-02-11 01:23:57 +00:00
Generated on Sat Feb 11 2017 01:23:53 for DASH Media Packaging SDK by   < a href = "http://www.doxygen.org/index.html" >
2015-10-19 17:27:30 +00:00
< img class = "footer" src = "../../doxygen.png" alt = "doxygen" / >
< / a > 1.8.6
< / small > < / address >
< / body >
< / html >