86 lines
30 KiB
HTML
86 lines
30 KiB
HTML
<!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.13"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Shaka Packager SDK: packager/mpd/base/representation.h Source File</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.13 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
|
|
</script>
|
|
<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)">
|
|
</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="../../dir_3f8eec2fc361645de4b1ec14c19fffc7.html">packager</a></li><li class="navelem"><a class="el" href="../../dir_b885194e7131202a9b4650a8967e838c.html">mpd</a></li><li class="navelem"><a class="el" href="../../dir_6fe4b0529cd3ec97045d3314254a0cce.html">base</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">representation.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2017 Google Inc. All rights reserved.</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">//</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// Use of this source code is governed by a BSD-style</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// license that can be found in the LICENSE file or at</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// https://developers.google.com/open-source/licenses/bsd</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#ifndef PACKAGER_MPD_BASE_REPRESENTATION_H_</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#define PACKAGER_MPD_BASE_REPRESENTATION_H_</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "packager/mpd/base/bandwidth_estimator.h"</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "packager/mpd/base/media_info.pb.h"</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "packager/mpd/base/segment_info.h"</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "packager/mpd/base/xml/scoped_xml_ptr.h"</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <stdint.h></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <list></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <memory></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">namespace </span><a class="code" href="../../d8/daf/namespaceshaka.html">shaka</a> {</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">struct </span>ContentProtectionElement;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">struct </span>MpdOptions;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">namespace </span>xml {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">class </span>XmlNode;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">class </span>RepresentationXmlNode;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> } <span class="comment">// namespace xml</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="../../df/d94/classshaka_1_1RepresentationStateChangeListener.html"> 32</a></span> <span class="keyword">class </span><a class="code" href="../../df/d94/classshaka_1_1RepresentationStateChangeListener.html">RepresentationStateChangeListener</a> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="../../df/d94/classshaka_1_1RepresentationStateChangeListener.html">RepresentationStateChangeListener</a>() {}</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">virtual</span> ~<a class="code" href="../../df/d94/classshaka_1_1RepresentationStateChangeListener.html">RepresentationStateChangeListener</a>() {}</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> OnNewSegmentForRepresentation(uint64_t start_time,</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  uint64_t duration) = 0;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> OnSetFrameRateForRepresentation(uint32_t frame_duration,</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  uint32_t timescale) = 0;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> };</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="../../de/d52/classshaka_1_1Representation.html"> 54</a></span> <span class="keyword">class </span><a class="code" href="../../de/d52/classshaka_1_1Representation.html">Representation</a> {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">enum</span> SuppressFlag {</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  kSuppressWidth = 1,</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  kSuppressHeight = 2,</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  kSuppressFrameRate = 4,</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  };</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">virtual</span> ~<a class="code" href="../../de/d52/classshaka_1_1Representation.html">Representation</a>();</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">bool</span> Init();</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> AddContentProtectionElement(</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">const</span> <a class="code" href="../../da/d43/structshaka_1_1ContentProtectionElement.html">ContentProtectionElement</a>& element);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> UpdateContentProtectionPssh(<span class="keyword">const</span> std::string& drm_uuid,</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">const</span> std::string& pssh);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> AddNewSegment(uint64_t start_time,</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  uint64_t duration,</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  uint64_t size);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSampleDuration(uint32_t sample_duration);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">virtual</span> <span class="keyword">const</span> MediaInfo& GetMediaInfo() <span class="keyword">const</span>;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  xml::scoped_xml_ptr<xmlNode> GetXml();</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordtype">void</span> SuppressOnce(SuppressFlag flag);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordtype">void</span> SetPresentationTimeOffset(<span class="keywordtype">double</span> presentation_time_offset);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordtype">bool</span> GetStartAndEndTimestamps(<span class="keywordtype">double</span>* start_timestamp_seconds,</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordtype">double</span>* end_timestamp_seconds) <span class="keyword">const</span>;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="../../de/d52/classshaka_1_1Representation.html#a9cb9a38de5e57bff1feb81d2575ae1b2"> 146</a></span>  uint32_t <a class="code" href="../../de/d52/classshaka_1_1Representation.html#a9cb9a38de5e57bff1feb81d2575ae1b2">id</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id_; }</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordtype">void</span> set_media_info(<span class="keyword">const</span> MediaInfo& media_info) { media_info_ = media_info; }</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="../../de/d52/classshaka_1_1Representation.html">Representation</a>(</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keyword">const</span> MediaInfo& media_info,</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keyword">const</span> <a class="code" href="../../d1/df3/structshaka_1_1MpdOptions.html">MpdOptions</a>& mpd_options,</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  uint32_t representation_id,</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  std::unique_ptr<RepresentationStateChangeListener> state_change_listener);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="code" href="../../de/d52/classshaka_1_1Representation.html">Representation</a>(</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">const</span> <a class="code" href="../../de/d52/classshaka_1_1Representation.html">Representation</a>& representation,</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  std::unique_ptr<RepresentationStateChangeListener> state_change_listener);</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> </div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="../../de/d52/classshaka_1_1Representation.html">Representation</a>(<span class="keyword">const</span> <a class="code" href="../../de/d52/classshaka_1_1Representation.html">Representation</a>&) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="code" href="../../de/d52/classshaka_1_1Representation.html">Representation</a>& operator=(<span class="keyword">const</span> <a class="code" href="../../de/d52/classshaka_1_1Representation.html">Representation</a>&) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="../../d8/d8e/classshaka_1_1AdaptationSet.html">AdaptationSet</a>;</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">friend</span> <span class="keyword">class </span>RepresentationTest;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="comment">// Returns true if |media_info_| has required fields to generate a valid</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="comment">// Representation. Otherwise returns false.</span></div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keywordtype">bool</span> HasRequiredMediaInfoFields() <span class="keyword">const</span>;</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="comment">// Add a SegmentInfo. This function may insert an adjusted SegmentInfo if</span></div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="comment">// |allow_approximate_segment_timeline_| is set.</span></div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordtype">void</span> AddSegmentInfo(uint64_t start_time, uint64_t duration);</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="comment">// Check if two timestamps are approximately equal if</span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="comment">// |allow_approximate_segment_timeline_| is set; Otherwise check whether the</span></div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="comment">// two times match.</span></div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keywordtype">bool</span> ApproximiatelyEqual(uint64_t time1, uint64_t time2) <span class="keyword">const</span>;</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="comment">// Return adjusted duration if |allow_aproximate_segment_timeline_or_duration|</span></div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="comment">// is set; otherwise duration is returned without adjustment.</span></div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  uint64_t AdjustDuration(uint64_t duration) <span class="keyword">const</span>;</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> </div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="comment">// Remove elements from |segment_infos_| for dynamic live profile. Increments</span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="comment">// |start_number_| by the number of segments removed.</span></div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordtype">void</span> SlideWindow();</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="comment">// Remove |num_segments| starting from |start_time| with |duration|.</span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordtype">void</span> RemoveSegments(uint64_t start_time,</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  uint64_t duration,</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  uint64_t num_segments);</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="comment">// Note: Because 'mimeType' is a required field for a valid MPD, these return</span></div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="comment">// strings.</span></div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  std::string GetVideoMimeType() <span class="keyword">const</span>;</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  std::string GetAudioMimeType() <span class="keyword">const</span>;</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  std::string GetTextMimeType() <span class="keyword">const</span>;</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="comment">// Init() checks that only one of VideoInfo, AudioInfo, or TextInfo is set. So</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="comment">// any logic using this can assume only one set.</span></div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  MediaInfo media_info_;</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  std::list<ContentProtectionElement> content_protection_elements_;</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="comment">// TODO(kqyang): Address sliding window issue with multiple periods.</span></div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  std::list<SegmentInfo> segment_infos_;</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="comment">// A list to hold the file names of the segments to be removed temporarily.</span></div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="comment">// Once a file is actually removed, it is removed from the list.</span></div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  std::list<std::string> segments_to_be_removed_;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keyword">const</span> uint32_t id_;</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  std::string mime_type_;</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  std::string codecs_;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="../../da/d2c/classshaka_1_1BandwidthEstimator.html">BandwidthEstimator</a> bandwidth_estimator_;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keyword">const</span> <a class="code" href="../../d1/df3/structshaka_1_1MpdOptions.html">MpdOptions</a>& mpd_options_;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="comment">// startNumber attribute for SegmentTemplate.</span></div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="comment">// Starts from 1.</span></div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  uint32_t start_number_ = 1;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="comment">// If this is not null, then Representation is responsible for calling the</span></div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="comment">// right methods at right timings.</span></div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  std::unique_ptr<RepresentationStateChangeListener> state_change_listener_;</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> </div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="comment">// Bit vector for tracking witch attributes should not be output.</span></div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordtype">int</span> output_suppression_flags_ = 0;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="comment">// When set to true, allows segments to have slightly different durations (up</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="comment">// to one sample).</span></div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> allow_approximate_segment_timeline_ = <span class="keyword">false</span>;</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="comment">// Segments with duration difference less than one frame duration are</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="comment">// considered to have the same duration.</span></div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  uint32_t frame_duration_ = 0;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> };</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> </div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> } <span class="comment">// namespace shaka</span></div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span> </div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="preprocessor">#endif // PACKAGER_MPD_BASE_REPRESENTATION_H_</span></div><div class="ttc" id="classshaka_1_1AdaptationSet_html"><div class="ttname"><a href="../../d8/d8e/classshaka_1_1AdaptationSet.html">shaka::AdaptationSet</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d72/adaptation__set_8h_source.html#l00038">adaptation_set.h:38</a></div></div>
|
|
<div class="ttc" id="classshaka_1_1Representation_html_a9cb9a38de5e57bff1feb81d2575ae1b2"><div class="ttname"><a href="../../de/d52/classshaka_1_1Representation.html#a9cb9a38de5e57bff1feb81d2575ae1b2">shaka::Representation::id</a></div><div class="ttdeci">uint32_t id() const</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d2b/representation_8h_source.html#l00146">representation.h:146</a></div></div>
|
|
<div class="ttc" id="namespaceshaka_html"><div class="ttname"><a href="../../d8/daf/namespaceshaka.html">shaka</a></div><div class="ttdoc">All the methods that are virtual are virtual for mocking. </div><div class="ttdef"><b>Definition:</b> <a href="../../d4/d15/gflags__hex__bytes_8cc_source.html#l00011">gflags_hex_bytes.cc:11</a></div></div>
|
|
<div class="ttc" id="structshaka_1_1ContentProtectionElement_html"><div class="ttname"><a href="../../da/d43/structshaka_1_1ContentProtectionElement.html">shaka::ContentProtectionElement</a></div><div class="ttdef"><b>Definition:</b> <a href="../../de/dd6/content__protection__element_8h_source.html#l00036">content_protection_element.h:36</a></div></div>
|
|
<div class="ttc" id="classshaka_1_1BandwidthEstimator_html"><div class="ttname"><a href="../../da/d2c/classshaka_1_1BandwidthEstimator.html">shaka::BandwidthEstimator</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d19/bandwidth__estimator_8h_source.html#l00017">bandwidth_estimator.h:17</a></div></div>
|
|
<div class="ttc" id="classshaka_1_1RepresentationStateChangeListener_html"><div class="ttname"><a href="../../df/d94/classshaka_1_1RepresentationStateChangeListener.html">shaka::RepresentationStateChangeListener</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d2b/representation_8h_source.html#l00032">representation.h:32</a></div></div>
|
|
<div class="ttc" id="classshaka_1_1Representation_html"><div class="ttname"><a href="../../de/d52/classshaka_1_1Representation.html">shaka::Representation</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d2b/representation_8h_source.html#l00054">representation.h:54</a></div></div>
|
|
<div class="ttc" id="structshaka_1_1MpdOptions_html"><div class="ttname"><a href="../../d1/df3/structshaka_1_1MpdOptions.html">shaka::MpdOptions</a></div><div class="ttdoc">Defines Mpd Options. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d60/mpd__options_8h_source.html#l00025">mpd_options.h:25</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Thu Jun 7 2018 16:03:50 for Shaka Packager SDK by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.13
|
|
</small></address>
|
|
</body>
|
|
</html>
|