shaka-packager/docs/d0/d33/classshaka_1_1MockRepresent...

164 lines
18 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Shaka Packager SDK: shaka::MockRepresentation 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"/>
<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;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Shaka Packager SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</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)">
</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"><a class="el" href="../../d0/d33/classshaka_1_1MockRepresentation.html">MockRepresentation</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../d5/d59/classshaka_1_1MockRepresentation-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">shaka::MockRepresentation Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for shaka::MockRepresentation:</div>
<div class="dyncontent">
<div class="center">
<img src="../../d0/d33/classshaka_1_1MockRepresentation.png" usemap="#shaka::MockRepresentation_map" alt=""/>
<map id="shaka::MockRepresentation_map" name="shaka::MockRepresentation_map">
<area href="../../de/d52/classshaka_1_1Representation.html" alt="shaka::Representation" shape="rect" coords="0,0,166,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:a0ead37aa0c7f5c311509dc9050925883"><td class="memItemLeft" align="right" valign="top"><a id="a0ead37aa0c7f5c311509dc9050925883"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>MockRepresentation</b> (uint32_t representation_id)</td></tr>
<tr class="separator:a0ead37aa0c7f5c311509dc9050925883"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9870e24dd998e6daf729dda751aa2f03"><td class="memItemLeft" align="right" valign="top"><a id="a9870e24dd998e6daf729dda751aa2f03"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>MOCK_METHOD1</b> (<a class="el" href="../../de/d52/classshaka_1_1Representation.html#a265d014093c9073b08505013886aaa8d">AddContentProtectionElement</a>, void(const <a class="el" href="../../da/d43/structshaka_1_1ContentProtectionElement.html">ContentProtectionElement</a> &amp;element))</td></tr>
<tr class="separator:a9870e24dd998e6daf729dda751aa2f03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc02f10f9f7ad90469b945aabd74bcb4"><td class="memItemLeft" align="right" valign="top"><a id="abc02f10f9f7ad90469b945aabd74bcb4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>MOCK_METHOD2</b> (<a class="el" href="../../de/d52/classshaka_1_1Representation.html#a3d17325903aa01f0c8ff7753d94ff330">UpdateContentProtectionPssh</a>, void(const std::string &amp;drm_uuid, const std::string &amp;pssh))</td></tr>
<tr class="separator:abc02f10f9f7ad90469b945aabd74bcb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b833d53821f81cf1bc4ca7251561be4"><td class="memItemLeft" align="right" valign="top"><a id="a9b833d53821f81cf1bc4ca7251561be4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>MOCK_METHOD3</b> (<a class="el" href="../../de/d52/classshaka_1_1Representation.html#ae9b6536925d1107e3f22ad3130cb9fe9">AddNewSegment</a>, void(int64_t start_time, int64_t duration, uint64_t size))</td></tr>
<tr class="separator:a9b833d53821f81cf1bc4ca7251561be4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ca22fbccca7e8e4088242c87736acfa"><td class="memItemLeft" align="right" valign="top"><a id="a6ca22fbccca7e8e4088242c87736acfa"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>MOCK_METHOD1</b> (<a class="el" href="../../de/d52/classshaka_1_1Representation.html#a11b32833166b9c4bea78cca2c6069d98">SetSampleDuration</a>, void(uint32_t sample_duration))</td></tr>
<tr class="separator:a6ca22fbccca7e8e4088242c87736acfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a802b0811dd4e2ecbd50d54b3f719fb6e"><td class="memItemLeft" align="right" valign="top"><a id="a802b0811dd4e2ecbd50d54b3f719fb6e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>MOCK_CONST_METHOD0</b> (<a class="el" href="../../de/d52/classshaka_1_1Representation.html#a524291f7a968cb040fdce0ac1db5fbd3">GetMediaInfo</a>, const MediaInfo &amp;())</td></tr>
<tr class="separator:a802b0811dd4e2ecbd50d54b3f719fb6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshaka_1_1Representation"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshaka_1_1Representation')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../de/d52/classshaka_1_1Representation.html">shaka::Representation</a></td></tr>
<tr class="memitem:ae998409ae94f3ba12909a96e8f3f4f7e inherit pub_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#ae998409ae94f3ba12909a96e8f3f4f7e">Init</a> ()</td></tr>
<tr class="separator:ae998409ae94f3ba12909a96e8f3f4f7e inherit pub_methods_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a265d014093c9073b08505013886aaa8d inherit pub_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#a265d014093c9073b08505013886aaa8d">AddContentProtectionElement</a> (const <a class="el" href="../../da/d43/structshaka_1_1ContentProtectionElement.html">ContentProtectionElement</a> &amp;element)</td></tr>
<tr class="separator:a265d014093c9073b08505013886aaa8d inherit pub_methods_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d17325903aa01f0c8ff7753d94ff330 inherit pub_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#a3d17325903aa01f0c8ff7753d94ff330">UpdateContentProtectionPssh</a> (const std::string &amp;drm_uuid, const std::string &amp;pssh)</td></tr>
<tr class="separator:a3d17325903aa01f0c8ff7753d94ff330 inherit pub_methods_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9b6536925d1107e3f22ad3130cb9fe9 inherit pub_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#ae9b6536925d1107e3f22ad3130cb9fe9">AddNewSegment</a> (int64_t start_time, int64_t duration, uint64_t size)</td></tr>
<tr class="separator:ae9b6536925d1107e3f22ad3130cb9fe9 inherit pub_methods_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11b32833166b9c4bea78cca2c6069d98 inherit pub_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#a11b32833166b9c4bea78cca2c6069d98">SetSampleDuration</a> (uint32_t sample_duration)</td></tr>
<tr class="separator:a11b32833166b9c4bea78cca2c6069d98 inherit pub_methods_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a524291f7a968cb040fdce0ac1db5fbd3 inherit pub_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top">virtual const MediaInfo &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#a524291f7a968cb040fdce0ac1db5fbd3">GetMediaInfo</a> () const</td></tr>
<tr class="separator:a524291f7a968cb040fdce0ac1db5fbd3 inherit pub_methods_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4008b130a91b83198e769d15b3dfac3 inherit pub_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top">base::Optional&lt; <a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html">xml::XmlNode</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#ab4008b130a91b83198e769d15b3dfac3">GetXml</a> ()</td></tr>
<tr class="separator:ab4008b130a91b83198e769d15b3dfac3 inherit pub_methods_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a473e45dbbf64e6ab6ed670ccedac84ed inherit pub_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#a473e45dbbf64e6ab6ed670ccedac84ed">SuppressOnce</a> (SuppressFlag flag)</td></tr>
<tr class="separator:a473e45dbbf64e6ab6ed670ccedac84ed inherit pub_methods_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa93fd6cd965d3091a280debc93656d57 inherit pub_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top"><a id="aa93fd6cd965d3091a280debc93656d57"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#aa93fd6cd965d3091a280debc93656d57">SetPresentationTimeOffset</a> (double presentation_time_offset)</td></tr>
<tr class="memdesc:aa93fd6cd965d3091a280debc93656d57 inherit pub_methods_classshaka_1_1Representation"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set @presentationTimeOffset in SegmentBase / SegmentTemplate. <br /></td></tr>
<tr class="separator:aa93fd6cd965d3091a280debc93656d57 inherit pub_methods_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94fcb546e555637d33286515c1a44545 inherit pub_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#a94fcb546e555637d33286515c1a44545">GetStartAndEndTimestamps</a> (double *start_timestamp_seconds, double *end_timestamp_seconds) const</td></tr>
<tr class="separator:a94fcb546e555637d33286515c1a44545 inherit pub_methods_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cb9a38de5e57bff1feb81d2575ae1b2 inherit pub_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#a9cb9a38de5e57bff1feb81d2575ae1b2">id</a> () const</td></tr>
<tr class="separator:a9cb9a38de5e57bff1feb81d2575ae1b2 inherit pub_methods_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a149769f6d702726b3fda5b99af622673 inherit pub_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top"><a id="a149769f6d702726b3fda5b99af622673"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>set_media_info</b> (const MediaInfo &amp;media_info)</td></tr>
<tr class="separator:a149769f6d702726b3fda5b99af622673 inherit pub_methods_classshaka_1_1Representation"><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 pub_types_classshaka_1_1Representation"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshaka_1_1Representation')"><img src="../../closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="../../de/d52/classshaka_1_1Representation.html">shaka::Representation</a></td></tr>
<tr class="memitem:ad0c3f0dfed3c9b1cf4993530ea652661 inherit pub_types_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top"><a id="ad0c3f0dfed3c9b1cf4993530ea652661"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>SuppressFlag</b> { <b>kSuppressWidth</b> = 1,
<b>kSuppressHeight</b> = 2,
<b>kSuppressFrameRate</b> = 4
}</td></tr>
<tr class="separator:ad0c3f0dfed3c9b1cf4993530ea652661 inherit pub_types_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classshaka_1_1Representation"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classshaka_1_1Representation')"><img src="../../closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="../../de/d52/classshaka_1_1Representation.html">shaka::Representation</a></td></tr>
<tr class="memitem:a997138fcaa5deef5151a64a2d7ce6aeb inherit pro_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#a997138fcaa5deef5151a64a2d7ce6aeb">Representation</a> (const MediaInfo &amp;media_info, const <a class="el" href="../../d1/df3/structshaka_1_1MpdOptions.html">MpdOptions</a> &amp;mpd_options, uint32_t representation_id, std::unique_ptr&lt; <a class="el" href="../../df/d94/classshaka_1_1RepresentationStateChangeListener.html">RepresentationStateChangeListener</a> &gt; state_change_listener)</td></tr>
<tr class="separator:a997138fcaa5deef5151a64a2d7ce6aeb inherit pro_methods_classshaka_1_1Representation"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1854062c6c5a3a1e622fca4d47eb4903 inherit pro_methods_classshaka_1_1Representation"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d52/classshaka_1_1Representation.html#a1854062c6c5a3a1e622fca4d47eb4903">Representation</a> (const <a class="el" href="../../de/d52/classshaka_1_1Representation.html">Representation</a> &amp;representation, std::unique_ptr&lt; <a class="el" href="../../df/d94/classshaka_1_1RepresentationStateChangeListener.html">RepresentationStateChangeListener</a> &gt; state_change_listener)</td></tr>
<tr class="separator:a1854062c6c5a3a1e622fca4d47eb4903 inherit pro_methods_classshaka_1_1Representation"><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 class="definition">Definition at line <a class="el" href="../../d9/d08/mock__mpd__builder_8h_source.html#l00068">68</a> of file <a class="el" href="../../d9/d08/mock__mpd__builder_8h_source.html">mock_mpd_builder.h</a>.</p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>packager/mpd/base/<a class="el" href="../../d9/d08/mock__mpd__builder_8h_source.html">mock_mpd_builder.h</a></li>
<li>packager/mpd/base/<a class="el" href="../../da/de2/mock__mpd__builder_8cc_source.html">mock_mpd_builder.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 22 2021 00:16:05 for Shaka Packager SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>