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::WebMMediaParser 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 = "../../d2/ddb/classshaka_1_1media_1_1WebMMediaParser.html" > WebMMediaParser< / a > < / li > < / ul >
2015-10-19 17:27:30 +00:00
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
2016-05-24 23:43:16 +00:00
< a href = "../../da/d8b/classshaka_1_1media_1_1WebMMediaParser-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::WebMMediaParser 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::WebMMediaParser:< / 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 = "../../d2/ddb/classshaka_1_1media_1_1WebMMediaParser.png" usemap = "#shaka::media::WebMMediaParser_map" alt = "" / >
< map id = "shaka::media::WebMMediaParser_map" name = "shaka::media::WebMMediaParser_map" >
< area href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html" alt = "shaka::media::MediaParser" shape = "rect" coords = "0,0,199,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-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2016-01-23 02:38:43 +00:00
< tr > < td colspan = "2" > < div class = "groupHeader" > MediaParser implementation overrides.< / div > < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:a5cd5c298938e2c58c45f962b21e43b2e" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d2/ddb/classshaka_1_1media_1_1WebMMediaParser.html#a5cd5c298938e2c58c45f962b21e43b2e" > Init< / a > (const < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#a95d25a50ad371304f1abce9971ce3704" > InitCB< / a > & init_cb, const < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#a0ac13291317f7d3d9175c4e91e57b891" > NewSampleCB< / a > & new_sample_cb, < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html" > KeySource< / a > *decryption_key_source) override< / td > < / tr >
< tr class = "separator:a5cd5c298938e2c58c45f962b21e43b2e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6c2d4b5b36304831e637f7ae1b9e54a2" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d2/ddb/classshaka_1_1media_1_1WebMMediaParser.html#a6c2d4b5b36304831e637f7ae1b9e54a2" > Flush< / a > () override WARN_UNUSED_RESULT< / td > < / tr >
< tr class = "separator:a6c2d4b5b36304831e637f7ae1b9e54a2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a40940ec01d965e3a78213861a93f7cfc" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d2/ddb/classshaka_1_1media_1_1WebMMediaParser.html#a40940ec01d965e3a78213861a93f7cfc" > Parse< / a > (const uint8_t *buf, int size) override WARN_UNUSED_RESULT< / td > < / tr >
< tr class = "separator:a40940ec01d965e3a78213861a93f7cfc" > < 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 pub_types_classshaka_1_1media_1_1MediaParser" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_types_classshaka_1_1media_1_1MediaParser')" > < img src = "../../closed.png" alt = "-" / >   Public Types inherited from < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html" > shaka::media::MediaParser< / a > < / td > < / tr >
< tr class = "memitem:a95d25a50ad371304f1abce9971ce3704 inherit pub_types_classshaka_1_1media_1_1MediaParser" > < td class = "memItemLeft" align = "right" valign = "top" > typedef base::Callback< void(const < br class = "typebreak" / >
2015-10-19 17:27:30 +00:00
std::vector< scoped_refptr< br class = "typebreak" / >
2016-05-24 23:43:16 +00:00
< < a class = "el" href = "../../d5/db1/classshaka_1_1media_1_1StreamInfo.html" > StreamInfo< / a > > > & stream_info)>   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#a95d25a50ad371304f1abce9971ce3704" > InitCB< / a > < / td > < / tr >
< tr class = "separator:a95d25a50ad371304f1abce9971ce3704 inherit pub_types_classshaka_1_1media_1_1MediaParser" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a0ac13291317f7d3d9175c4e91e57b891 inherit pub_types_classshaka_1_1media_1_1MediaParser" > < td class = "memItemLeft" align = "right" valign = "top" > typedef base::Callback< bool(uint32_t < br class = "typebreak" / >
2015-10-19 17:27:30 +00:00
track_id, const scoped_refptr< br class = "typebreak" / >
2016-05-24 23:43:16 +00:00
< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > > & media_sample)>   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#a0ac13291317f7d3d9175c4e91e57b891" > NewSampleCB< / a > < / td > < / tr >
< tr class = "separator:a0ac13291317f7d3d9175c4e91e57b891 inherit pub_types_classshaka_1_1media_1_1MediaParser" > < 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/d58/webm__media__parser_8h_source.html#l00019" > 19< / a > of file < a class = "el" href = "../../dc/d58/webm__media__parser_8h_source.html" > webm_media_parser.h< / a > .< / p >
2015-10-19 17:27:30 +00:00
< / div > < h2 class = "groupheader" > Member Function Documentation< / h2 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a6c2d4b5b36304831e637f7ae1b9e54a2" > < / a >
2015-10-19 17:27:30 +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::WebMMediaParser::Flush < / td >
2015-10-19 17:27:30 +00:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Flush data currently in the parser and put the parser in a state where it can receive data for a new seek point. < / p >
2016-01-23 02:38:43 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > true if successful, false otherwise. < / dd > < / dl >
2015-10-19 17:27:30 +00:00
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#a26752164d7e8ae6a9a894512291ad9cd" > shaka::media::MediaParser< / a > .< / p >
2015-10-19 17:27:30 +00:00
2016-03-08 21:50:50 +00:00
< p > Definition at line < a class = "el" href = "../../d4/dff/webm__media__parser_8cc_source.html#l00043" > 43< / a > of file < a class = "el" href = "../../d4/dff/webm__media__parser_8cc_source.html" > webm_media_parser.cc< / a > .< / p >
2015-10-19 17:27:30 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a5cd5c298938e2c58c45f962b21e43b2e" > < / a >
2016-01-23 02:38:43 +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" > void shaka::media::WebMMediaParser::Init < / td >
2016-01-23 02:38:43 +00:00
< td > (< / td >
2016-05-24 23:43:16 +00:00
< td class = "paramtype" > const < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#a95d25a50ad371304f1abce9971ce3704" > InitCB< / a > &   < / td >
2016-01-23 02:38:43 +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" > const < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#a0ac13291317f7d3d9175c4e91e57b891" > NewSampleCB< / a > &   < / td >
2016-01-23 02:38:43 +00:00
< td class = "paramname" > < em > new_sample_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-23 02:38:43 +00:00
< td class = "paramname" > < em > decryption_key_source< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > Initialize the parser with necessary callbacks. Must be called before any data is passed to < a class = "el" href = "../../d2/ddb/classshaka_1_1media_1_1WebMMediaParser.html#a40940ec01d965e3a78213861a93f7cfc" > Parse()< / a > . < / p >
2016-01-23 02:38:43 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > init_cb< / td > < td > will be called once enough data has been parsed to determine the initial stream configurations. < / td > < / tr >
< tr > < td class = "paramname" > new_sample_cb< / td > < td > will be called each time a new media sample is available from the parser. May be NULL, and caller retains ownership. < / td > < / tr >
< / table >
< / dd >
< / dl >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#adc7c91bebe75879abba91a56dae52153" > shaka::media::MediaParser< / a > .< / p >
2016-01-23 02:38:43 +00:00
2016-03-08 21:50:50 +00:00
< p > Definition at line < a class = "el" href = "../../d4/dff/webm__media__parser_8cc_source.html#l00028" > 28< / a > of file < a class = "el" href = "../../d4/dff/webm__media__parser_8cc_source.html" > webm_media_parser.cc< / a > .< / p >
2016-01-23 02:38:43 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a40940ec01d965e3a78213861a93f7cfc" > < / a >
2015-10-19 17:27:30 +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::WebMMediaParser::Parse < / td >
2015-10-19 17:27:30 +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 >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Should be called when there is new data to parse. < / p >
< dl class = "section return" > < dt > Returns< / dt > < dd > true if successful. < / dd > < / dl >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d3/d0a/classshaka_1_1media_1_1MediaParser.html#a0c85f3cb0591f67c036276be82a1ba9d" > shaka::media::MediaParser< / a > .< / p >
2015-10-19 17:27:30 +00:00
2016-03-08 21:50:50 +00:00
< p > Definition at line < a class = "el" href = "../../d4/dff/webm__media__parser_8cc_source.html#l00056" > 56< / a > of file < a class = "el" href = "../../d4/dff/webm__media__parser_8cc_source.html" > webm_media_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 >
2015-10-19 19:22:31 +00:00
< li > media/formats/webm/< a class = "el" href = "../../dc/d58/webm__media__parser_8h_source.html" > webm_media_parser.h< / a > < / li >
< li > media/formats/webm/< a class = "el" href = "../../d4/dff/webm__media__parser_8cc_source.html" > webm_media_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 >
2016-09-12 18:08:23 +00:00
Generated on Mon Sep 12 2016 18:08:19 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 >