shaka-packager/docs/df/d9e/classshaka_1_1xml_1_1Repres...

309 lines
24 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
2018-02-10 23:37:42 +00:00
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Shaka Packager SDK: shaka::xml::RepresentationXmlNode Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
2018-02-10 23:37:42 +00:00
<script type="text/javascript" src="../../search/searchdata.js"></script>
<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;">
<div id="projectname">Shaka Packager SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2018-02-10 23:37:42 +00:00
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</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">
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- 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>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../d8/daf/namespaceshaka.html">shaka</a></li><li class="navelem"><b>xml</b></li><li class="navelem"><a class="el" href="../../df/d9e/classshaka_1_1xml_1_1RepresentationXmlNode.html">RepresentationXmlNode</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../dc/dc1/classshaka_1_1xml_1_1RepresentationXmlNode-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">shaka::xml::RepresentationXmlNode Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>RepresentationType in MPD.
<a href="../../df/d9e/classshaka_1_1xml_1_1RepresentationXmlNode.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="../../dd/de7/xml__node_8h_source.html">xml_node.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for shaka::xml::RepresentationXmlNode:</div>
<div class="dyncontent">
<div class="center">
<img src="../../df/d9e/classshaka_1_1xml_1_1RepresentationXmlNode.png" usemap="#shaka::xml::RepresentationXmlNode_map" alt=""/>
<map id="shaka::xml::RepresentationXmlNode_map" name="shaka::xml::RepresentationXmlNode_map">
<area href="../../dd/db9/classshaka_1_1xml_1_1RepresentationBaseXmlNode.html" alt="shaka::xml::RepresentationBaseXmlNode" shape="rect" coords="0,56,238,80"/>
<area href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html" alt="shaka::xml::XmlNode" shape="rect" coords="0,0,238,24"/>
</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>
<tr class="memitem:aeb5b425a0d9fe472e13e508ee431307a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d9e/classshaka_1_1xml_1_1RepresentationXmlNode.html#aeb5b425a0d9fe472e13e508ee431307a">AddVideoInfo</a> (const MediaInfo::VideoInfo &amp;video_info, bool set_width, bool set_height, bool set_frame_rate)</td></tr>
<tr class="separator:aeb5b425a0d9fe472e13e508ee431307a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49050cf0e7883bfa6e8e2fb0174b2a7a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d9e/classshaka_1_1xml_1_1RepresentationXmlNode.html#a49050cf0e7883bfa6e8e2fb0174b2a7a">AddAudioInfo</a> (const MediaInfo::AudioInfo &amp;audio_info)</td></tr>
<tr class="separator:a49050cf0e7883bfa6e8e2fb0174b2a7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68a51ea870f2a24379a9b81cb97b6ac0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d9e/classshaka_1_1xml_1_1RepresentationXmlNode.html#a68a51ea870f2a24379a9b81cb97b6ac0">AddVODOnlyInfo</a> (const MediaInfo &amp;media_info)</td></tr>
<tr class="separator:a68a51ea870f2a24379a9b81cb97b6ac0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9ff190e1a653a348b00b5edd9d6cc60"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d9e/classshaka_1_1xml_1_1RepresentationXmlNode.html#ae9ff190e1a653a348b00b5edd9d6cc60">AddLiveOnlyInfo</a> (const MediaInfo &amp;media_info, const std::list&lt; <a class="el" href="../../dc/de1/structshaka_1_1SegmentInfo.html">SegmentInfo</a> &gt; &amp;segment_infos, uint32_t start_number)</td></tr>
<tr class="separator:ae9ff190e1a653a348b00b5edd9d6cc60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../dd/db9/classshaka_1_1xml_1_1RepresentationBaseXmlNode.html">shaka::xml::RepresentationBaseXmlNode</a></td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memitem:ae5315d28398d004403b5da1ddd984a7f inherit pub_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode"><td class="memItemLeft" align="right" valign="top"><a id="ae5315d28398d004403b5da1ddd984a7f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>AddContentProtectionElements</b> (const std::list&lt; <a class="el" href="../../da/d43/structshaka_1_1ContentProtectionElement.html">ContentProtectionElement</a> &gt; &amp;content_protection_elements)</td></tr>
<tr class="separator:ae5315d28398d004403b5da1ddd984a7f inherit pub_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58965505799f01c99768823caeb66a6b inherit pub_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/db9/classshaka_1_1xml_1_1RepresentationBaseXmlNode.html#a58965505799f01c99768823caeb66a6b">AddSupplementalProperty</a> (const std::string &amp;scheme_id_uri, const std::string &amp;value)</td></tr>
<tr class="separator:a58965505799f01c99768823caeb66a6b inherit pub_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebcc18275733668d46622a7ac9ceb2e8 inherit pub_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/db9/classshaka_1_1xml_1_1RepresentationBaseXmlNode.html#aebcc18275733668d46622a7ac9ceb2e8">AddEssentialProperty</a> (const std::string &amp;scheme_id_uri, const std::string &amp;value)</td></tr>
<tr class="separator:aebcc18275733668d46622a7ac9ceb2e8 inherit pub_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshaka_1_1xml_1_1XmlNode"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshaka_1_1xml_1_1XmlNode')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html">shaka::xml::XmlNode</a></td></tr>
<tr class="memitem:a52ffb838d25293eafbea9f05fb1c2d17 inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a52ffb838d25293eafbea9f05fb1c2d17">XmlNode</a> (const char *name)</td></tr>
<tr class="separator:a52ffb838d25293eafbea9f05fb1c2d17 inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f8deed2a9bb707c40db24374b3b7fbd inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a5f8deed2a9bb707c40db24374b3b7fbd">AddChild</a> (scoped_xml_ptr&lt; xmlNode &gt; child)</td></tr>
<tr class="separator:a5f8deed2a9bb707c40db24374b3b7fbd inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memitem:a31d77d822a66991f48b67bfad3fa86d0 inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memItemLeft" align="right" valign="top"><a id="a31d77d822a66991f48b67bfad3fa86d0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a31d77d822a66991f48b67bfad3fa86d0">AddElements</a> (const std::vector&lt; <a class="el" href="../../de/da9/structshaka_1_1Element.html">Element</a> &gt; &amp;elements)</td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memdesc:a31d77d822a66991f48b67bfad3fa86d0 inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds Elements to this node using the <a class="el" href="../../de/da9/structshaka_1_1Element.html">Element</a> struct. <br /></td></tr>
<tr class="separator:a31d77d822a66991f48b67bfad3fa86d0 inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc83f9dbaedc8ba0fc9cc1153ac23329 inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#afc83f9dbaedc8ba0fc9cc1153ac23329">SetStringAttribute</a> (const char *attribute_name, const std::string &amp;attribute)</td></tr>
<tr class="separator:afc83f9dbaedc8ba0fc9cc1153ac23329 inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab15dbcc1a051218dc16f44584276ad20 inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#ab15dbcc1a051218dc16f44584276ad20">SetIntegerAttribute</a> (const char *attribute_name, uint64_t number)</td></tr>
<tr class="separator:ab15dbcc1a051218dc16f44584276ad20 inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4b6c261b14ffe83e9820b76b16af1ba inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#ac4b6c261b14ffe83e9820b76b16af1ba">SetFloatingPointAttribute</a> (const char *attribute_name, double number)</td></tr>
<tr class="separator:ac4b6c261b14ffe83e9820b76b16af1ba inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7479055041708fb681957a838e7ecc1f inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a7479055041708fb681957a838e7ecc1f">SetId</a> (uint32_t id)</td></tr>
<tr class="separator:a7479055041708fb681957a838e7ecc1f inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73d758186470e7dbcb4f4339eb53458c inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a73d758186470e7dbcb4f4339eb53458c">SetContent</a> (const std::string &amp;content)</td></tr>
<tr class="separator:a73d758186470e7dbcb4f4339eb53458c inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c41631d1fec1fe96550b5320fb3546f inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memItemLeft" align="right" valign="top">std::set&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a8c41631d1fec1fe96550b5320fb3546f">ExtractReferencedNamespaces</a> ()</td></tr>
<tr class="separator:a8c41631d1fec1fe96550b5320fb3546f inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0be0a3e9b041978e118d994c1f13e8fb inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memItemLeft" align="right" valign="top">scoped_xml_ptr&lt; xmlNode &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a0be0a3e9b041978e118d994c1f13e8fb">PassScopedPtr</a> ()</td></tr>
<tr class="separator:a0be0a3e9b041978e118d994c1f13e8fb inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5cb2c3000ccbd53c0a1867db0b8a2d0 inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memItemLeft" align="right" valign="top">xmlNodePtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#ae5cb2c3000ccbd53c0a1867db0b8a2d0">Release</a> ()</td></tr>
<tr class="separator:ae5cb2c3000ccbd53c0a1867db0b8a2d0 inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac9765712087dcc47a0afef4bf7849ff inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memItemLeft" align="right" valign="top">xmlNodePtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#aac9765712087dcc47a0afef4bf7849ff">GetRawPtr</a> ()</td></tr>
<tr class="separator:aac9765712087dcc47a0afef4bf7849ff inherit pub_methods_classshaka_1_1xml_1_1XmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode')"><img src="../../closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="../../dd/db9/classshaka_1_1xml_1_1RepresentationBaseXmlNode.html">shaka::xml::RepresentationBaseXmlNode</a></td></tr>
2018-02-10 23:37:42 +00:00
<tr class="memitem:a1ebaeca213211f88206a946a5a201a5a inherit pro_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode"><td class="memItemLeft" align="right" valign="top"><a id="a1ebaeca213211f88206a946a5a201a5a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>RepresentationBaseXmlNode</b> (const char *name)</td></tr>
<tr class="separator:a1ebaeca213211f88206a946a5a201a5a inherit pro_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f671140007a25cfba494f553cc67ef6 inherit pro_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/db9/classshaka_1_1xml_1_1RepresentationBaseXmlNode.html#a1f671140007a25cfba494f553cc67ef6">AddDescriptor</a> (const std::string &amp;descriptor_name, const std::string &amp;scheme_id_uri, const std::string &amp;value)</td></tr>
<tr class="separator:a1f671140007a25cfba494f553cc67ef6 inherit pro_methods_classshaka_1_1xml_1_1RepresentationBaseXmlNode"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>RepresentationType in MPD. </p>
<p class="definition">Definition at line <a class="el" href="../../dd/de7/xml__node_8h_source.html#l00156">156</a> of file <a class="el" href="../../dd/de7/xml__node_8h_source.html">xml_node.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
2018-02-10 23:37:42 +00:00
<a id="a49050cf0e7883bfa6e8e2fb0174b2a7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49050cf0e7883bfa6e8e2fb0174b2a7a">&#9670;&nbsp;</a></span>AddAudioInfo()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool shaka::xml::RepresentationXmlNode::AddAudioInfo </td>
<td>(</td>
<td class="paramtype">const MediaInfo::AudioInfo &amp;&#160;</td>
<td class="paramname"><em>audio_info</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
2018-02-10 23:37:42 +00:00
<p>Adds audio metadata to the MPD. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">audio_info</td><td>constains the AudioInfos for a <a class="el" href="../../de/d52/classshaka_1_1Representation.html">Representation</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if successfully set attributes and children elements (if applicable), false otherwise. </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00346">346</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
2018-02-10 23:37:42 +00:00
<a id="ae9ff190e1a653a348b00b5edd9d6cc60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9ff190e1a653a348b00b5edd9d6cc60">&#9670;&nbsp;</a></span>AddLiveOnlyInfo()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool shaka::xml::RepresentationXmlNode::AddLiveOnlyInfo </td>
<td>(</td>
<td class="paramtype">const MediaInfo &amp;&#160;</td>
<td class="paramname"><em>media_info</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::list&lt; <a class="el" href="../../dc/de1/structshaka_1_1SegmentInfo.html">SegmentInfo</a> &gt; &amp;&#160;</td>
<td class="paramname"><em>segment_infos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>start_number</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">segment_infos</td><td>is a set of SegmentInfos. This method assumes that SegmentInfos are sorted by its start time. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00400">400</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
2018-02-10 23:37:42 +00:00
<a id="aeb5b425a0d9fe472e13e508ee431307a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb5b425a0d9fe472e13e508ee431307a">&#9670;&nbsp;</a></span>AddVideoInfo()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool shaka::xml::RepresentationXmlNode::AddVideoInfo </td>
<td>(</td>
<td class="paramtype">const MediaInfo::VideoInfo &amp;&#160;</td>
<td class="paramname"><em>video_info</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>set_width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>set_height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>set_frame_rate</em>&#160;</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>Adds video metadata to the MPD. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">video_info</td><td>constains the VideoInfo for a <a class="el" href="../../de/d52/classshaka_1_1Representation.html">Representation</a>. </td></tr>
<tr><td class="paramname">set_width</td><td>is a flag for setting the width attribute. </td></tr>
<tr><td class="paramname">set_height</td><td>is a flag for setting the height attribute. </td></tr>
<tr><td class="paramname">set_frame_rate</td><td>is a flag for setting the frameRate attribute. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if successfully set attributes and children elements (if applicable), false otherwise. </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00309">309</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
2018-02-10 23:37:42 +00:00
<a id="a68a51ea870f2a24379a9b81cb97b6ac0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68a51ea870f2a24379a9b81cb97b6ac0">&#9670;&nbsp;</a></span>AddVODOnlyInfo()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool shaka::xml::RepresentationXmlNode::AddVODOnlyInfo </td>
<td>(</td>
<td class="paramtype">const MediaInfo &amp;&#160;</td>
<td class="paramname"><em>media_info</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
2018-02-10 23:37:42 +00:00
<p>Adds fields that are specific to VOD. This ignores <em>media_info</em> fields for Live. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">media_info</td><td>is a MediaInfo with VOD information. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success, false otherwise. </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00354">354</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>packager/mpd/base/xml/<a class="el" href="../../dd/de7/xml__node_8h_source.html">xml_node.h</a></li>
<li>packager/mpd/base/xml/<a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jan 21 2020 16:58:54 for Shaka Packager SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
2018-02-10 23:37:42 +00:00
</a> 1.8.13
</small></address>
</body>
</html>