2015-10-16 00:33:37 +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::AdaptationSet Class Reference< / title >
2015-10-16 00:33:37 +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-16 00:33:37 +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" > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > < / li > < / ul >
2015-10-16 00:33:37 +00:00
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-types" > Public Types< / a > |
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "#pro-methods" > Protected Member Functions< / a > |
< a href = "#friends" > Friends< / a > |
2016-05-24 23:43:16 +00:00
< a href = "../../df/d33/classshaka_1_1AdaptationSet-members.html" > List of all members< / a > < / div >
2015-10-16 00:33:37 +00:00
< div class = "headertitle" >
2016-05-24 23:43:16 +00:00
< div class = "title" > shaka::AdaptationSet Class Reference< / div > < / div >
2015-10-16 00:33:37 +00:00
< / div > <!-- header -->
< div class = "contents" >
< p > < code > #include < < a class = "el" href = "../../d6/da3/mpd__builder_8h_source.html" > mpd_builder.h< / a > > < / code > < / p >
< div class = "dynheader" >
2016-05-24 23:43:16 +00:00
Inheritance diagram for shaka::AdaptationSet:< / div >
2015-10-16 00:33:37 +00:00
< div class = "dyncontent" >
< div class = "center" >
2016-05-24 23:43:16 +00:00
< img src = "../../d8/d8e/classshaka_1_1AdaptationSet.png" usemap = "#shaka::AdaptationSet_map" alt = "" / >
< map id = "shaka::AdaptationSet_map" name = "shaka::AdaptationSet_map" >
< area href = "../../db/d4b/classshaka_1_1MockAdaptationSet.html" alt = "shaka::MockAdaptationSet" shape = "rect" coords = "0,56,160,80" / >
2015-10-16 00:33:37 +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:a89f6573af412970297f4cf888d31edbd" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / td > < td class = "memItemRight" valign = "bottom" > < b > Role< / b > { < br / >
2015-10-16 00:33:37 +00:00
    < b > kRoleCaption< / b > ,
< b > kRoleSubtitle< / b > ,
< b > kRoleMain< / b > ,
< b > kRoleAlternate< / b > ,
< br / >
    < b > kRoleSupplementary< / b > ,
< b > kRoleCommentary< / b > ,
< b > kRoleDub< / b >
< br / >
}< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a89f6573af412970297f4cf888d31edbd" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +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 >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:a124e3c1ba5e3209f3214a556ecae28c3" > < td class = "memItemLeft" align = "right" valign = "top" > virtual < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#a124e3c1ba5e3209f3214a556ecae28c3" > AddRepresentation< / a > (const MediaInfo & media_info)< / td > < / tr >
< tr class = "separator:a124e3c1ba5e3209f3214a556ecae28c3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a28c52febc71a581ebec2c1308f6ea15c" > < td class = "memItemLeft" align = "right" valign = "top" > virtual void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#a28c52febc71a581ebec2c1308f6ea15c" > AddContentProtectionElement< / a > (const < a class = "el" href = "../../da/d43/structshaka_1_1ContentProtectionElement.html" > ContentProtectionElement< / a > & element)< / td > < / tr >
< tr class = "separator:a28c52febc71a581ebec2c1308f6ea15c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae8a28838bf1bbc1ad8f5b80961fe33c2" > < td class = "memItemLeft" align = "right" valign = "top" > virtual void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#ae8a28838bf1bbc1ad8f5b80961fe33c2" > UpdateContentProtectionPssh< / a > (const std::string & drm_uuid, const std::string & pssh)< / td > < / tr >
< tr class = "separator:ae8a28838bf1bbc1ad8f5b80961fe33c2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae96ad89ec7cc7d5ef1db467a9cf13730" > < td class = "memItemLeft" align = "right" valign = "top" > virtual void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#ae96ad89ec7cc7d5ef1db467a9cf13730" > AddRole< / a > (Role role)< / td > < / tr >
< tr class = "separator:ae96ad89ec7cc7d5ef1db467a9cf13730" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:af988e3a6d8b0d3ede66e3f3aea992d5e" > < td class = "memItemLeft" align = "right" valign = "top" > xml::scoped_xml_ptr< xmlNode >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#af988e3a6d8b0d3ede66e3f3aea992d5e" > GetXml< / a > ()< / td > < / tr >
< tr class = "separator:af988e3a6d8b0d3ede66e3f3aea992d5e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a40532ecbed5f71de85bde0cb7eb1ef9d" > < td class = "memItemLeft" align = "right" valign = "top" > virtual void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#a40532ecbed5f71de85bde0cb7eb1ef9d" > ForceSetSegmentAlignment< / a > (bool segment_alignment)< / td > < / tr >
< tr class = "separator:a40532ecbed5f71de85bde0cb7eb1ef9d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae1f56e719f289e61c27ec51457d697af" > < td class = "memItemLeft" align = "right" valign = "top" > virtual void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#ae1f56e719f289e61c27ec51457d697af" > SetGroup< / a > (int group_number)< / td > < / tr >
< tr class = "separator:ae1f56e719f289e61c27ec51457d697af" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a1f4285fb3adce2028aa61030e333bc31" > < td class = "memItemLeft" align = "right" valign = "top" > virtual int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#a1f4285fb3adce2028aa61030e333bc31" > Group< / a > () const < / td > < / tr >
< tr class = "separator:a1f4285fb3adce2028aa61030e333bc31" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a130abd1efada957bdf0c249c699642a1" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a130abd1efada957bdf0c249c699642a1" > < / a >
2015-10-16 00:33:37 +00:00
uint32_t  < / td > < td class = "memItemRight" valign = "bottom" > < b > id< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a130abd1efada957bdf0c249c699642a1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:afcfb8f59204f6ec2f5dcd9cbd81dddf9" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#afcfb8f59204f6ec2f5dcd9cbd81dddf9" > OnNewSegmentForRepresentation< / a > (uint32_t representation_id, uint64_t start_time, uint64_t duration)< / td > < / tr >
< tr class = "separator:afcfb8f59204f6ec2f5dcd9cbd81dddf9" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a37904780833b552b7f95f124ffd10456" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#a37904780833b552b7f95f124ffd10456" > OnSetFrameRateForRepresentation< / a > (uint32_t representation_id, uint32_t frame_duration, uint32_t timescale)< / td > < / tr >
< tr class = "separator:a37904780833b552b7f95f124ffd10456" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pro-methods" > < / a >
Protected Member Functions< / h2 > < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:acd24d0537c3625d709b58cf9565d8fcf" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#acd24d0537c3625d709b58cf9565d8fcf" > AdaptationSet< / a > (uint32_t adaptation_set_id, const std::string & lang, const < a class = "el" href = "../../d1/df3/structshaka_1_1MpdOptions.html" > MpdOptions< / a > & mpd_options, MpdBuilder::MpdType mpd_type, base::AtomicSequenceNumber *representation_counter)< / td > < / tr >
< tr class = "separator:acd24d0537c3625d709b58cf9565d8fcf" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "friends" > < / a >
Friends< / h2 > < / td > < / tr >
< tr class = "memitem:aa8a6d1affa97b417155f40cc2ae03a99" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "aa8a6d1affa97b417155f40cc2ae03a99" > < / a >
class  < / td > < td class = "memItemRight" valign = "bottom" > < b > MpdBuilder< / b > < / td > < / tr >
< tr class = "separator:aa8a6d1affa97b417155f40cc2ae03a99" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-11-03 19:42:54 +00:00
< tr class = "memitem:aaf5a82dfc14ef4a006fa98befdbb4ce3" > < td class = "memTemplParams" colspan = "2" > < a class = "anchor" id = "aaf5a82dfc14ef4a006fa98befdbb4ce3" > < / a >
template< MpdBuilder::MpdType type> < / td > < / tr >
< tr class = "memitem:aaf5a82dfc14ef4a006fa98befdbb4ce3" > < td class = "memTemplItemLeft" align = "right" valign = "top" > class  < / td > < td class = "memTemplItemRight" valign = "bottom" > < b > MpdBuilderTest< / b > < / td > < / tr >
< tr class = "separator:aaf5a82dfc14ef4a006fa98befdbb4ce3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
2016-05-24 23:43:16 +00:00
< div class = "textblock" > < p > < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > class provides methods to add Representations and < ContentProtection> elements to the < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > element. < / p >
2015-10-16 00:33:37 +00:00
2016-09-01 17:53:10 +00:00
< p > Definition at line < a class = "el" href = "../../d6/da3/mpd__builder_8h_source.html#l00165" > 165< / a > of file < a class = "el" href = "../../d6/da3/mpd__builder_8h_source.html" > mpd_builder.h< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div > < h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "acd24d0537c3625d709b58cf9565d8fcf" > < / a >
2015-10-16 00:33:37 +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" > shaka::AdaptationSet::AdaptationSet < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > adaptation_set_id< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > lang< / 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 = "../../d1/df3/structshaka_1_1MpdOptions.html" > MpdOptions< / a > &   < / td >
2015-10-16 00:33:37 +00:00
< td class = "paramname" > < em > mpd_options< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > MpdBuilder::MpdType  < / td >
< td class = "paramname" > < em > mpd_type< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > base::AtomicSequenceNumber *  < / td >
< td class = "paramname" > < em > representation_counter< / 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" > protected< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2016-05-24 23:43:16 +00:00
< tr > < td class = "paramname" > adaptation_set_id< / td > < td > is an ID number for this < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > . < / td > < / tr >
< tr > < td class = "paramname" > lang< / td > < td > is the language of this < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > . Mainly relevant for audio. < / td > < / tr >
2015-10-16 00:33:37 +00:00
< tr > < td class = "paramname" > mpd_options< / td > < td > is the options for this MPD. < / td > < / tr >
< tr > < td class = "paramname" > mpd_type< / td > < td > is the type of this MPD. < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr > < td class = "paramname" > representation_counter< / td > < td > is a Counter for assigning ID numbers to < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > . It can not be NULL. < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table >
< / dd >
< / dl >
2016-09-29 23:03:27 +00:00
< p > Definition at line < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html#l00675" > 675< / a > of file < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html" > mpd_builder.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a28c52febc71a581ebec2c1308f6ea15c" > < / a >
2015-10-16 00:33:37 +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::AdaptationSet::AddContentProtectionElement < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2016-05-24 23:43:16 +00:00
< td class = "paramtype" > const < a class = "el" href = "../../da/d43/structshaka_1_1ContentProtectionElement.html" > ContentProtectionElement< / a > &   < / td >
2015-10-16 00:33:37 +00:00
< td class = "paramname" > < em > element< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > Add a ContenProtection element to the adaptation set. < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > does not add < ContentProtection> elements automatically to itself even if < em > media_info.protected_content< / em > is populated. This is because some MPDs should have the elements at < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > level and some at < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > level. < / p >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > element< / td > < td > contains the ContentProtection element contents. If < em > element< / em > has {value, schemeIdUri} set and has {“value”, “schemeIdUri”} as key for < em > additional_attributes< / em > , then the former is used. < / td > < / tr >
< / table >
< / dd >
< / dl >
2016-09-29 23:03:27 +00:00
< p > Definition at line < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html#l00737" > 737< / a > of file < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html" > mpd_builder.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a124e3c1ba5e3209f3214a556ecae28c3" > < / a >
2015-10-16 00:33:37 +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" > < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > * shaka::AdaptationSet::AddRepresentation < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > const MediaInfo &   < / td >
< td class = "paramname" > < em > media_info< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > Create a < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > instance using < em > media_info< / em > . < / p >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2016-05-24 23:43:16 +00:00
< tr > < td class = "paramname" > media_info< / td > < td > is a MediaInfo object used to initialize the returned < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > instance. It may contain only one of VideoInfo, AudioInfo, or TextInfo, i.e. VideoInfo XOR AudioInfo XOR TextInfo. < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table >
< / dd >
< / dl >
2016-05-24 23:43:16 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > On success, returns a pointer to < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > . Otherwise returns NULL. The returned pointer is owned by the < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > instance. < / dd > < / dl >
2015-10-16 00:33:37 +00:00
2016-09-29 23:03:27 +00:00
< p > Definition at line < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html#l00693" > 693< / a > of file < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html" > mpd_builder.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "ae96ad89ec7cc7d5ef1db467a9cf13730" > < / a >
2015-10-16 00:33:37 +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::AdaptationSet::AddRole < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > Role  < / td >
< td class = "paramname" > < em > role< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > Set the Role element for this < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > . The Role element's is schemeIdUri='urn:mpeg:dash:role:2011'. See ISO/IEC 23009-1:2012 section 5.8.5.5. < / p >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2016-05-24 23:43:16 +00:00
< tr > < td class = "paramname" > role< / td > < td > of this < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > . < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table >
< / dd >
< / dl >
2016-09-29 23:03:27 +00:00
< p > Definition at line < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html#l00749" > 749< / a > of file < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html" > mpd_builder.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a40532ecbed5f71de85bde0cb7eb1ef9d" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
2015-11-04 20:02:41 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2015-10-16 00:33:37 +00:00
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > void shaka::AdaptationSet::ForceSetSegmentAlignment < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > bool  < / td >
< td class = "paramname" > < em > segment_alignment< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
2015-11-04 20:02:41 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
2015-10-16 00:33:37 +00:00
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > Forces the (sub)segmentAlignment field to be set to < em > segment_alignment< / em > . Use this if you are certain that the (sub)segments are alinged/unaligned for the < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > . < / p >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > segment_alignment< / td > < td > is the value used for (sub)segmentAlignment attribute. < / td > < / tr >
< / table >
< / dd >
< / dl >
2016-09-29 23:03:27 +00:00
< p > Definition at line < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html#l00837" > 837< / a > of file < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html" > mpd_builder.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "af988e3a6d8b0d3ede66e3f3aea992d5e" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > xml::scoped_xml_ptr< xmlNode > shaka::AdaptationSet::GetXml < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > Makes a copy of < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > xml element with its child < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > and ContentProtection elements. < / p >
2015-11-17 22:30:55 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > On success returns a non-NULL scoped_xml_ptr. Otherwise returns a NULL scoped_xml_ptr. < / dd > < / dl >
2015-10-16 00:33:37 +00:00
2016-09-29 23:03:27 +00:00
< p > Definition at line < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html#l00759" > 759< / a > of file < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html" > mpd_builder.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a1f4285fb3adce2028aa61030e333bc31" > < / a >
2015-10-16 00:33:37 +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" > int shaka::AdaptationSet::Group < / td >
2015-10-16 00:33:37 +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" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< dl class = "section return" > < dt > Returns< / dt > < dd > Returns the value for group. If not set, returns a negative value. < / dd > < / dl >
2016-09-29 23:03:27 +00:00
< p > Definition at line < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html#l00847" > 847< / a > of file < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html" > mpd_builder.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "afcfb8f59204f6ec2f5dcd9cbd81dddf9" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > void shaka::AdaptationSet::OnNewSegmentForRepresentation < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > representation_id< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint64_t  < / td >
< td class = "paramname" > < em > start_time< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint64_t  < / td >
< td class = "paramname" > < em > duration< / 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 > Notifies the < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > instance that a new (sub)segment was added to the < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > with < em > representation_id< / em > . This must be called every time a (sub)segment is added to a < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > in this < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > . If a < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > is constructed using < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#a124e3c1ba5e3209f3214a556ecae28c3" > AddRepresentation()< / a > this is called automatically whenever < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html#a6ca8bbfd34ef8ca782d2ef18aeaad932" > Representation::AddNewSegment()< / a > is is called. < / p >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2016-05-24 23:43:16 +00:00
< tr > < td class = "paramname" > representation_id< / td > < td > is the id of the < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > with a new segment. < / td > < / tr >
2015-10-16 00:33:37 +00:00
< tr > < td class = "paramname" > start_time< / td > < td > is the start time of the new segment. < / td > < / tr >
< tr > < td class = "paramname" > duration< / td > < td > is the duration of the new segment. < / td > < / tr >
< / table >
< / dd >
< / dl >
2016-09-29 23:03:27 +00:00
< p > Definition at line < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html#l00858" > 858< / a > of file < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html" > mpd_builder.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a37904780833b552b7f95f124ffd10456" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > void shaka::AdaptationSet::OnSetFrameRateForRepresentation < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > representation_id< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > frame_duration< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > timescale< / 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 > Notifies the < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > instance that the sample duration for the < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > was set. The frame duration for a video < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > might not be specified when a < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > is created (by calling < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#a124e3c1ba5e3209f3214a556ecae28c3" > AddRepresentation()< / a > ). This should be used to notify this instance that the frame rate for a Represenatation has been set. This method is called automatically when Represenatation::SetSampleDuration() is called if the Represenatation instance was created using < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html#a124e3c1ba5e3209f3214a556ecae28c3" > AddRepresentation()< / a > . < / p >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2016-05-24 23:43:16 +00:00
< tr > < td class = "paramname" > representation_id< / td > < td > is the id of the < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > . is the duration of a frame in the < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > . < / td > < / tr >
< tr > < td class = "paramname" > timescale< / td > < td > is the timescale of the < a class = "el" href = "../../de/d52/classshaka_1_1Representation.html" > Representation< / a > . < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table >
< / dd >
< / dl >
2016-09-29 23:03:27 +00:00
< p > Definition at line < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html#l00869" > 869< / a > of file < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html" > mpd_builder.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "ae1f56e719f289e61c27ec51457d697af" > < / a >
2015-10-16 00:33:37 +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::AdaptationSet::SetGroup < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > group_number< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > Sets the < a class = "el" href = "../../d8/d8e/classshaka_1_1AdaptationSet.html" > AdaptationSet< / a > attribute. Passing a negative value to this method will unset the attribute. Note that group=0 is a special group, as mentioned in the DASH MPD specification. < / p >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > group_number< / td > < td > is the value of AdaptatoinSet. < / td > < / tr >
< / table >
< / dd >
< / dl >
2016-09-29 23:03:27 +00:00
< p > Definition at line < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html#l00843" > 843< / a > of file < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html" > mpd_builder.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "ae8a28838bf1bbc1ad8f5b80961fe33c2" > < / a >
2015-10-16 00:33:37 +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::AdaptationSet::UpdateContentProtectionPssh < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > drm_uuid< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > pssh< / 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" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Update the 'cenc:pssh' element for < em > drm_uuid< / em > ContentProtection element. If the element does not exist, this will add one. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > drm_uuid< / td > < td > is the UUID of the DRM for encryption. < / td > < / tr >
< tr > < td class = "paramname" > pssh< / td > < td > is the content of < cenc:pssh> element. Note that DASH IF IOP mentions that this should be base64 encoded string of the whole pssh box. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section attention" > < dt > Attention< / dt > < dd > This might get removed once DASH IF IOP specification makes a a clear guideline on how to handle key rotation. Also to get this working with shaka-player, this method < em > DOES NOT< / em > update the PSSH element. Instead, it removes the element regardless of the content of < em > pssh< / em > . < / dd > < / dl >
2016-09-29 23:03:27 +00:00
< p > Definition at line < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html#l00743" > 743< / a > of file < a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html" > mpd_builder.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
< li > mpd/base/< a class = "el" href = "../../d6/da3/mpd__builder_8h_source.html" > mpd_builder.h< / a > < / li >
< li > mpd/base/< a class = "el" href = "../../dd/d11/mpd__builder_8cc_source.html" > mpd_builder.cc< / a > < / li >
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2016-10-03 18:13:41 +00:00
Generated on Mon Oct 3 2016 18:13:34 for DASH Media Packaging SDK by   < a href = "http://www.doxygen.org/index.html" >
2015-10-16 00:33:37 +00:00
< img class = "footer" src = "../../doxygen.png" alt = "doxygen" / >
< / a > 1.8.6
< / small > < / address >
< / body >
< / html >