Generate SDK documents for commit 336ea5cb34

This commit is contained in:
Widevine Buildbot 2016-08-18 20:58:33 +00:00
parent 202f5ed95a
commit d495ebbc1b
945 changed files with 6797 additions and 6680 deletions

View File

@ -371,7 +371,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:31 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -179,7 +179,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:31 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -113,7 +113,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:29 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -102,7 +102,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -140,7 +140,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -104,7 +104,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -138,7 +138,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -149,7 +149,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -113,7 +113,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:24 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -121,7 +121,7 @@ uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>height</b></td></
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:23 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -103,7 +103,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:23 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -113,7 +113,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:31 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -155,7 +155,7 @@ void&#160;</td><td class="memItemRight" valign="bottom"><b>Reset</b> () override
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:24 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -288,7 +288,7 @@ std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" hre
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -148,7 +148,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -118,7 +118,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -160,7 +160,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -229,60 +229,63 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keyword">const</span> std::vector&lt;uint8_t&gt; kEmptyDecodingBufferSize(3, 0);</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keyword">const</span> uint8_t kNoEsFlags = 0;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keyword">const</span> uint8_t decoder_specific_info_size = decoder_specific_info_.size();</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="comment">// 6 bit stream type. The last bit is reserved with 1.</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keyword">const</span> uint8_t stream_type = (kAudioStreamType &lt;&lt; 2) | 1;</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keyword">const</span> uint8_t decoder_config_size = decoder_specific_info_size + kHeaderSize +</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keyword">sizeof</span>(uint8_t) + <span class="comment">// object_type_.</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keyword">sizeof</span>(stream_type) +</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; kEmptyDecodingBufferSize.size() +</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keyword">sizeof</span>(kUnknownBitrate) * 2;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keyword">const</span> uint8_t sl_config_size = <span class="keyword">sizeof</span>(uint8_t); <span class="comment">// predefined.</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keyword">const</span> uint8_t es_size = decoder_config_size + kHeaderSize + sl_config_size +</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; kHeaderSize + <span class="keyword">sizeof</span>(esid_) + <span class="keyword">sizeof</span>(kNoEsFlags);</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; writer-&gt;AppendInt(static_cast&lt;uint8_t&gt;(kESDescrTag));</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; writer-&gt;AppendInt(es_size);</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; writer-&gt;AppendInt(esid_);</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; writer-&gt;AppendInt(kNoEsFlags);</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; writer-&gt;AppendInt(static_cast&lt;uint8_t&gt;(kDecoderConfigDescrTag));</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; writer-&gt;AppendInt(decoder_config_size);</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; writer-&gt;AppendInt(static_cast&lt;uint8_t&gt;(object_type_));</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; writer-&gt;AppendInt(stream_type);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; writer-&gt;AppendVector(kEmptyDecodingBufferSize);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; writer-&gt;AppendInt(max_bitrate_);</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; writer-&gt;AppendInt(avg_bitrate_);</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; writer-&gt;AppendInt(static_cast&lt;uint8_t&gt;(kDecoderSpecificInfoTag));</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; writer-&gt;AppendInt(decoder_specific_info_size);</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; writer-&gt;AppendVector(decoder_specific_info_);</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; writer-&gt;AppendInt(static_cast&lt;uint8_t&gt;(kSLConfigTag));</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; writer-&gt;AppendInt(sl_config_size);</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; writer-&gt;AppendInt(static_cast&lt;uint8_t&gt;(kSLPredefinedMP4));</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;}</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;<span class="keywordtype">size_t</span> ESDescriptor::ComputeSize()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="comment">// A bit magical. Refer to ESDescriptor::Write for details.</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <span class="keyword">const</span> uint8_t decoder_specific_info_size = decoder_specific_info_.size();</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keyword">const</span> uint8_t decoder_config_size = decoder_specific_info_size + kHeaderSize +</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keyword">sizeof</span>(uint8_t) * 5 +</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keyword">sizeof</span>(uint32_t) * 2;</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="keyword">const</span> uint8_t sl_config_size = <span class="keyword">sizeof</span>(uint8_t);</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keyword">const</span> uint8_t es_size = decoder_config_size + kHeaderSize + sl_config_size +</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; kHeaderSize + <span class="keyword">sizeof</span>(esid_) + <span class="keyword">sizeof</span>(uint8_t);</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <span class="keywordflow">return</span> es_size + kHeaderSize;</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;}</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;} <span class="comment">// namespace media</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;} <span class="comment">// namespace shaka</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keyword">const</span> uint8_t decoder_specific_info_size =</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keyword">static_cast&lt;</span>uint8_t<span class="keyword">&gt;</span>(decoder_specific_info_.size());</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="comment">// 6 bit stream type. The last bit is reserved with 1.</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keyword">const</span> uint8_t stream_type = (kAudioStreamType &lt;&lt; 2) | 1;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keyword">const</span> uint8_t decoder_config_size =</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keyword">static_cast&lt;</span>uint8_t<span class="keyword">&gt;</span>(decoder_specific_info_size + kHeaderSize +</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keyword">sizeof</span>(uint8_t) + <span class="comment">// object_type_.</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keyword">sizeof</span>(stream_type) +</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; kEmptyDecodingBufferSize.size() +</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keyword">sizeof</span>(kUnknownBitrate) * 2);</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keyword">const</span> uint8_t sl_config_size = <span class="keyword">sizeof</span>(uint8_t); <span class="comment">// predefined.</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keyword">const</span> uint8_t es_size = decoder_config_size + kHeaderSize + sl_config_size +</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; kHeaderSize + <span class="keyword">sizeof</span>(esid_) + <span class="keyword">sizeof</span>(kNoEsFlags);</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; writer-&gt;AppendInt(static_cast&lt;uint8_t&gt;(kESDescrTag));</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; writer-&gt;AppendInt(es_size);</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; writer-&gt;AppendInt(esid_);</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; writer-&gt;AppendInt(kNoEsFlags);</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; writer-&gt;AppendInt(static_cast&lt;uint8_t&gt;(kDecoderConfigDescrTag));</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; writer-&gt;AppendInt(decoder_config_size);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; writer-&gt;AppendInt(static_cast&lt;uint8_t&gt;(object_type_));</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; writer-&gt;AppendInt(stream_type);</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; writer-&gt;AppendVector(kEmptyDecodingBufferSize);</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; writer-&gt;AppendInt(max_bitrate_);</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; writer-&gt;AppendInt(avg_bitrate_);</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; writer-&gt;AppendInt(static_cast&lt;uint8_t&gt;(kDecoderSpecificInfoTag));</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; writer-&gt;AppendInt(decoder_specific_info_size);</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; writer-&gt;AppendVector(decoder_specific_info_);</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; writer-&gt;AppendInt(static_cast&lt;uint8_t&gt;(kSLConfigTag));</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; writer-&gt;AppendInt(sl_config_size);</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; writer-&gt;AppendInt(static_cast&lt;uint8_t&gt;(kSLPredefinedMP4));</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;}</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;<span class="keywordtype">size_t</span> ESDescriptor::ComputeSize()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="comment">// A bit magical. Refer to ESDescriptor::Write for details.</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keyword">const</span> uint8_t decoder_specific_info_size =</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keyword">static_cast&lt;</span>uint8_t<span class="keyword">&gt;</span>(decoder_specific_info_.size());</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="keyword">const</span> uint8_t decoder_config_size = decoder_specific_info_size + kHeaderSize +</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keyword">sizeof</span>(uint8_t) * 5 +</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <span class="keyword">sizeof</span>(uint32_t) * 2;</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <span class="keyword">const</span> uint8_t sl_config_size = <span class="keyword">sizeof</span>(uint8_t);</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="keyword">const</span> uint8_t es_size = decoder_config_size + kHeaderSize + sl_config_size +</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; kHeaderSize + <span class="keyword">sizeof</span>(esid_) + <span class="keyword">sizeof</span>(uint8_t);</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="keywordflow">return</span> es_size + kHeaderSize;</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;}</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;} <span class="comment">// namespace media</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;} <span class="comment">// namespace shaka</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -220,7 +220,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -313,7 +313,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -182,7 +182,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:24 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:29 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -215,7 +215,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -258,7 +258,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -248,7 +248,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -237,7 +237,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -113,7 +113,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:30 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -131,7 +131,7 @@ int64_t&#160;</td><td class="memItemRight" valign="bottom"><b>GetFramesToTarget<
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -143,7 +143,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -117,7 +117,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:24 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -111,7 +111,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:23 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -438,7 +438,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:23 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -97,7 +97,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -186,7 +186,7 @@ Additional Inherited Members</h2></td></tr>
<p>Implements <a class="el" href="../../d1/d2d/structshaka_1_1media_1_1mp4_1_1Box.html#ac7c07671ab4c56d19e085570862015ca">shaka::media::mp4::Box</a>.</p>
<p>Definition at line <a class="el" href="../../dd/dee/box__definitions_8cc_source.html#l01486">1486</a> of file <a class="el" href="../../dd/dee/box__definitions_8cc_source.html">box_definitions.cc</a>.</p>
<p>Definition at line <a class="el" href="../../dd/dee/box__definitions_8cc_source.html#l01487">1487</a> of file <a class="el" href="../../dd/dee/box__definitions_8cc_source.html">box_definitions.cc</a>.</p>
</div>
</div>
@ -197,7 +197,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:29 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -177,7 +177,7 @@ Additional Inherited Members</h2></td></tr>
<p>Implements <a class="el" href="../../d1/d2d/structshaka_1_1media_1_1mp4_1_1Box.html#ac7c07671ab4c56d19e085570862015ca">shaka::media::mp4::Box</a>.</p>
<p>Definition at line <a class="el" href="../../dd/dee/box__definitions_8cc_source.html#l01078">1078</a> of file <a class="el" href="../../dd/dee/box__definitions_8cc_source.html">box_definitions.cc</a>.</p>
<p>Definition at line <a class="el" href="../../dd/dee/box__definitions_8cc_source.html#l01079">1079</a> of file <a class="el" href="../../dd/dee/box__definitions_8cc_source.html">box_definitions.cc</a>.</p>
</div>
</div>
@ -188,7 +188,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:30 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -133,7 +133,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -118,7 +118,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -112,7 +112,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -302,7 +302,7 @@ static const <a class="el" href="../../d0/d93/classshaka_1_1media_1_1Status.html
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -175,7 +175,7 @@ Additional Inherited Members</h2></td></tr>
<p>Implements <a class="el" href="../../d1/d2d/structshaka_1_1media_1_1mp4_1_1Box.html#ac7c07671ab4c56d19e085570862015ca">shaka::media::mp4::Box</a>.</p>
<p>Definition at line <a class="el" href="../../dd/dee/box__definitions_8cc_source.html#l02207">2207</a> of file <a class="el" href="../../dd/dee/box__definitions_8cc_source.html">box_definitions.cc</a>.</p>
<p>Definition at line <a class="el" href="../../dd/dee/box__definitions_8cc_source.html#l02208">2208</a> of file <a class="el" href="../../dd/dee/box__definitions_8cc_source.html">box_definitions.cc</a>.</p>
</div>
</div>
@ -186,7 +186,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:30 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -329,7 +329,7 @@ static const size_t&#160;</td><td class="memItemRight" valign="bottom"><a class=
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -100,7 +100,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -102,7 +102,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:31 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -295,7 +295,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -259,7 +259,7 @@ void&#160;</td><td class="memItemRight" valign="bottom"><b>set_progress_target</
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:31 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -479,7 +479,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -123,7 +123,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:31 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -108,7 +108,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:31 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -114,7 +114,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:31 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -224,7 +224,7 @@ Static Public Member Functions</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -162,7 +162,7 @@ Additional Inherited Members</h2></td></tr>
<p>Implements <a class="el" href="../../d1/d2d/structshaka_1_1media_1_1mp4_1_1Box.html#ac7c07671ab4c56d19e085570862015ca">shaka::media::mp4::Box</a>.</p>
<p>Definition at line <a class="el" href="../../dd/dee/box__definitions_8cc_source.html#l02653">2653</a> of file <a class="el" href="../../dd/dee/box__definitions_8cc_source.html">box_definitions.cc</a>.</p>
<p>Definition at line <a class="el" href="../../dd/dee/box__definitions_8cc_source.html#l02654">2654</a> of file <a class="el" href="../../dd/dee/box__definitions_8cc_source.html">box_definitions.cc</a>.</p>
</div>
</div>
@ -173,7 +173,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:30 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -222,7 +222,7 @@ Static Public Member Functions</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -156,7 +156,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -165,7 +165,7 @@ AES_KEY *&#160;</td><td class="memItemRight" valign="bottom"><b>mutable_aes_key<
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -215,7 +215,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -330,11 +330,11 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
<div class="ttc" id="classshaka_1_1media_1_1RsaRequestSigner_html_af6af635a7c0a01bb638befb71b88386c"><div class="ttname"><a href="../../d7/ddd/classshaka_1_1media_1_1RsaRequestSigner.html#af6af635a7c0a01bb638befb71b88386c">shaka::media::RsaRequestSigner::CreateSigner</a></div><div class="ttdeci">static RsaRequestSigner * CreateSigner(const std::string &amp;signer_name, const std::string &amp;pkcs1_rsa_key)</div><div class="ttdef"><b>Definition:</b> <a href="../../d4/df5/request__signer_8cc_source.html#l00063">request_signer.cc:63</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1FixedKeySource_html_a091b4ea22419b73f8532db862f985f99"><div class="ttname"><a href="../../d0/dac/classshaka_1_1media_1_1FixedKeySource.html#a091b4ea22419b73f8532db862f985f99">shaka::media::FixedKeySource::CreateFromHexStrings</a></div><div class="ttdeci">static scoped_ptr&lt; FixedKeySource &gt; CreateFromHexStrings(const std::string &amp;key_id_hex, const std::string &amp;key_hex, const std::string &amp;pssh_boxes_hex, const std::string &amp;iv_hex)</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d6b/fixed__key__source_8cc_source.html#l00086">fixed_key_source.cc:86</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1AesRequestSigner_html_a43f4cc9fad9901fa905805be81f7d58c"><div class="ttname"><a href="../../d9/d8c/classshaka_1_1media_1_1AesRequestSigner.html#a43f4cc9fad9901fa905805be81f7d58c">shaka::media::AesRequestSigner::CreateSigner</a></div><div class="ttdeci">static AesRequestSigner * CreateSigner(const std::string &amp;signer_name, const std::string &amp;aes_key_hex, const std::string &amp;iv_hex)</div><div class="ttdef"><b>Definition:</b> <a href="../../d4/df5/request__signer_8cc_source.html#l00029">request_signer.cc:29</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1File_html_a622dbc8abacebb40b816aa0174ba7c60"><div class="ttname"><a href="../../d3/d61/classshaka_1_1media_1_1File.html#a622dbc8abacebb40b816aa0174ba7c60">shaka::media::File::ReadFileToString</a></div><div class="ttdeci">static bool ReadFileToString(const char *file_name, std::string *contents)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/dfc/file_8cc_source.html#l00184">file.cc:184</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1File_html_a622dbc8abacebb40b816aa0174ba7c60"><div class="ttname"><a href="../../d3/d61/classshaka_1_1media_1_1File.html#a622dbc8abacebb40b816aa0174ba7c60">shaka::media::File::ReadFileToString</a></div><div class="ttdeci">static bool ReadFileToString(const char *file_name, std::string *contents)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/dfc/file_8cc_source.html#l00189">file.cc:189</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -120,7 +120,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:29 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -127,8 +127,8 @@ Public Member Functions</h2></td></tr>
<tr class="separator:a6603ba573e802e660921f329192738f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab331684a758a93bf0c77fa224fe429ea"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d0a/classshaka_1_1media_1_1MkvWriter.html#ab331684a758a93bf0c77fa224fe429ea">WriteFromFile</a> (<a class="el" href="../../d3/d61/classshaka_1_1media_1_1File.html">File</a> *source)</td></tr>
<tr class="separator:ab331684a758a93bf0c77fa224fe429ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d2b28502f9d1fe721c59d67e7d5a436"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d0a/classshaka_1_1media_1_1MkvWriter.html#a3d2b28502f9d1fe721c59d67e7d5a436">WriteFromFile</a> (<a class="el" href="../../d3/d61/classshaka_1_1media_1_1File.html">File</a> *source, uint64_t max_copy)</td></tr>
<tr class="separator:a3d2b28502f9d1fe721c59d67e7d5a436"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2dfac99ec5531ca2e102e5b145bb29ed"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d0a/classshaka_1_1media_1_1MkvWriter.html#a2dfac99ec5531ca2e102e5b145bb29ed">WriteFromFile</a> (<a class="el" href="../../d3/d61/classshaka_1_1media_1_1File.html">File</a> *source, int64_t max_copy)</td></tr>
<tr class="separator:a2dfac99ec5531ca2e102e5b145bb29ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18993fa04b1c02069e4a060de141538b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a18993fa04b1c02069e4a060de141538b"></a>
<a class="el" href="../../d3/d61/classshaka_1_1media_1_1File.html">File</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>file</b> ()</td></tr>
<tr class="separator:a18993fa04b1c02069e4a060de141538b"><td class="memSeparator" colspan="2">&#160;</td></tr>
@ -339,7 +339,7 @@ Public Member Functions</h2></td></tr>
</div>
</div>
<a class="anchor" id="a3d2b28502f9d1fe721c59d67e7d5a436"></a>
<a class="anchor" id="a2dfac99ec5531ca2e102e5b145bb29ed"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -352,7 +352,7 @@ Public Member Functions</h2></td></tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint64_t&#160;</td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>max_copy</em>&#160;</td>
</tr>
<tr>
@ -376,7 +376,7 @@ Public Member Functions</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:23 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -242,7 +242,7 @@ int&#160;</td><td class="memItemRight" valign="bottom"><b>chroma_array_type</b><
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:23 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -257,7 +257,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -109,7 +109,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:24 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -239,7 +239,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -128,154 +128,155 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; }</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; std::string file_prefix =</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; base::StringPrintf(<span class="stringliteral">&quot;packager-tempfile-%x-%&quot;</span> PRIx64 <span class="stringliteral">&quot;.tmp&quot;</span>, tid, rand);</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordflow">return</span> base::FilePath(options.temp_dir).Append(file_prefix).value();</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;}</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="comment">// Skips a given number of bytes in a file by reading. This allows</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="comment">// forward-seeking in non-seekable files.</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="keywordtype">bool</span> ReadSkip(File* file, int64_t byte_count) {</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keyword">const</span> int64_t kBufferSize = 0x40000; <span class="comment">// 256KB.</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; scoped_ptr&lt;char[]&gt; buffer(<span class="keyword">new</span> <span class="keywordtype">char</span>[kBufferSize]);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; int64_t bytes_read = 0;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordflow">while</span> (bytes_read &lt; byte_count) {</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; int64_t size = std::min(kBufferSize, byte_count - bytes_read);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; int64_t result = file-&gt;Read(buffer.get(), size);</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="comment">// Only give success if there are no errors, not at EOF, and read exactly</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="comment">// byte_count bytes.</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordflow">if</span> (result &lt;= 0)</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; bytes_read += result;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; }</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; DCHECK_EQ(bytes_read, byte_count);</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;}</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;} <span class="comment">// namespace</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;TwoPassSingleSegmentSegmenter::TwoPassSingleSegmentSegmenter(</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keyword">const</span> MuxerOptions&amp; options)</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; : SingleSegmentSegmenter(options) {}</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;TwoPassSingleSegmentSegmenter::~TwoPassSingleSegmentSegmenter() {}</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;Status</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;TwoPassSingleSegmentSegmenter::DoInitialize(scoped_ptr&lt;MkvWriter&gt; writer) {</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="comment">// Assume the amount of time to copy the temp file as the same amount</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="comment">// of time as to make it.</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; set_progress_target(info()-&gt;duration() * 2);</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; real_writer_ = writer.Pass();</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; temp_file_name_ = TempFileName(options());</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; scoped_ptr&lt;MkvWriter&gt; temp(<span class="keyword">new</span> MkvWriter);</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; Status status = temp-&gt;Open(temp_file_name_);</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordflow">if</span> (!status.ok())</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordflow">return</span> status;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">return</span> SingleSegmentSegmenter::DoInitialize(temp.Pass());</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;}</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;Status TwoPassSingleSegmentSegmenter::DoFinalize() {</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">if</span> (!cluster()-&gt;Finalize())</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keywordflow">return</span> Status(error::FILE_FAILURE, <span class="stringliteral">&quot;Error finalizing cluster.&quot;</span>);</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="comment">// Write the Cues to the end of the temp file.</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; uint64_t cues_pos = writer()-&gt;Position();</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; set_index_start(cues_pos);</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; seek_head()-&gt;set_cues_pos(cues_pos - segment_payload_pos());</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keywordflow">if</span> (!cues()-&gt;Write(writer()))</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordflow">return</span> Status(error::FILE_FAILURE, <span class="stringliteral">&quot;Error writing Cues data.&quot;</span>);</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="comment">// Write the header to the real output file.</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; Status temp = WriteSegmentHeader(writer()-&gt;Position(), real_writer_.get());</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keywordflow">if</span> (!temp.ok())</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordflow">return</span> temp;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="comment">// Close the temp file and open it for reading.</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; set_writer(scoped_ptr&lt;MkvWriter&gt;());</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; scoped_ptr&lt;File, FileCloser&gt; temp_reader(</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <a class="code" href="../../d3/d61/classshaka_1_1media_1_1File.html#aad6b77e734bb22d077ece029c9e735a4">File::Open</a>(temp_file_name_.c_str(), <span class="stringliteral">&quot;r&quot;</span>));</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordflow">if</span> (!temp_reader)</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordflow">return</span> Status(error::FILE_FAILURE, <span class="stringliteral">&quot;Error opening temp file.&quot;</span>);</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="comment">// Skip the header that has already been written.</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; uint64_t header_size = real_writer_-&gt;Position();</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordflow">if</span> (!ReadSkip(temp_reader.get(), header_size))</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keywordflow">return</span> Status(error::FILE_FAILURE, <span class="stringliteral">&quot;Error reading temp file.&quot;</span>);</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="comment">// Copy the rest of the data over.</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keywordflow">if</span> (!CopyFileWithClusterRewrite(temp_reader.get(), real_writer_.get(),</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; cluster()-&gt;Size()))</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordflow">return</span> Status(error::FILE_FAILURE, <span class="stringliteral">&quot;Error copying temp file.&quot;</span>);</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="comment">// Close and delete the temp file.</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; temp_reader.reset();</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="../../d3/d61/classshaka_1_1media_1_1File.html#a92cdfd68e6384dfcc14c78b20c98368e">File::Delete</a>(temp_file_name_.c_str())) {</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; LOG(WARNING) &lt;&lt; <span class="stringliteral">&quot;Unable to delete temporary file &quot;</span> &lt;&lt; temp_file_name_;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; }</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="comment">// The WebM index is at the end of the file.</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; set_index_end(real_writer_-&gt;file()-&gt;Size() - 1);</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keywordflow">return</span> real_writer_-&gt;Close();</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;}</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="keywordtype">bool</span> TwoPassSingleSegmentSegmenter::CopyFileWithClusterRewrite(</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; File* source,</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; MkvWriter* dest,</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; uint64_t last_size) {</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keyword">const</span> <span class="keywordtype">int</span> cluster_id_size = mkvmuxer::GetUIntSize(mkvmuxer::kMkvCluster);</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keyword">const</span> <span class="keywordtype">int</span> cluster_size_size = 8; <span class="comment">// The size of the Cluster size integer.</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keyword">const</span> <span class="keywordtype">int</span> cluster_header_size = cluster_id_size + cluster_size_size;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="comment">// We are at the start of a cluster, so copy the ID.</span></div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keywordflow">if</span> (dest-&gt;WriteFromFile(source, cluster_id_size) != cluster_id_size)</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; cues()-&gt;cue_entries_size() - 1; ++i) {</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="comment">// Write the size of the cluster.</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keyword">const</span> mkvmuxer::CuePoint* cue = cues()-&gt;GetCueByIndex(i);</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keyword">const</span> mkvmuxer::CuePoint* next_cue = cues()-&gt;GetCueByIndex(i + 1);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keyword">const</span> int64_t cluster_payload_size =</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; next_cue-&gt;cluster_pos() - cue-&gt;cluster_pos() - cluster_header_size;</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keywordflow">if</span> (mkvmuxer::WriteUIntSize(dest, cluster_payload_size, cluster_size_size))</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keywordflow">if</span> (!ReadSkip(source, cluster_size_size))</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="comment">// Copy the cluster and the next cluster&#39;s ID.</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; int64_t to_copy = cluster_payload_size + cluster_id_size;</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keywordflow">if</span> (dest-&gt;WriteFromFile(source, to_copy) != to_copy)</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="comment">// Update the progress; need to convert from WebM timecode to ISO BMFF.</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keyword">const</span> uint64_t webm_delta_time = next_cue-&gt;time() - cue-&gt;time();</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keyword">const</span> uint64_t delta_time = FromWebMTimecode(webm_delta_time);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; UpdateProgress(delta_time);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; }</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="comment">// The last cluster takes up until the cues.</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keyword">const</span> uint64_t last_cluster_payload_size = last_size - cluster_header_size;</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keywordflow">if</span> (mkvmuxer::WriteUIntSize(dest, last_cluster_payload_size,</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; cluster_size_size))</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keywordflow">if</span> (!ReadSkip(source, cluster_size_size))</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="comment">// Copy the remaining data (i.e. Cues data).</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keywordflow">return</span> dest-&gt;WriteFromFile(source) ==</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keyword">static_cast&lt;</span>int64_t<span class="keyword">&gt;</span>(last_cluster_payload_size + cues()-&gt;Size());</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;}</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;} <span class="comment">// namespace webm</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;} <span class="comment">// namespace media</span></div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160;} <span class="comment">// namespace shaka</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordflow">return</span> base::FilePath::FromUTF8Unsafe(options.temp_dir).Append(</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; base::FilePath::FromUTF8Unsafe(file_prefix)).AsUTF8Unsafe();</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;}</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="comment">// Skips a given number of bytes in a file by reading. This allows</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="comment">// forward-seeking in non-seekable files.</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="keywordtype">bool</span> ReadSkip(File* file, int64_t byte_count) {</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keyword">const</span> int64_t kBufferSize = 0x40000; <span class="comment">// 256KB.</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; scoped_ptr&lt;char[]&gt; buffer(<span class="keyword">new</span> <span class="keywordtype">char</span>[kBufferSize]);</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; int64_t bytes_read = 0;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordflow">while</span> (bytes_read &lt; byte_count) {</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; int64_t size = std::min(kBufferSize, byte_count - bytes_read);</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; int64_t result = file-&gt;Read(buffer.get(), size);</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="comment">// Only give success if there are no errors, not at EOF, and read exactly</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="comment">// byte_count bytes.</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordflow">if</span> (result &lt;= 0)</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; bytes_read += result;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; }</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; DCHECK_EQ(bytes_read, byte_count);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;}</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;} <span class="comment">// namespace</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;TwoPassSingleSegmentSegmenter::TwoPassSingleSegmentSegmenter(</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keyword">const</span> MuxerOptions&amp; options)</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; : SingleSegmentSegmenter(options) {}</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;TwoPassSingleSegmentSegmenter::~TwoPassSingleSegmentSegmenter() {}</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;Status</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;TwoPassSingleSegmentSegmenter::DoInitialize(scoped_ptr&lt;MkvWriter&gt; writer) {</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="comment">// Assume the amount of time to copy the temp file as the same amount</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="comment">// of time as to make it.</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; set_progress_target(info()-&gt;duration() * 2);</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; real_writer_ = writer.Pass();</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; temp_file_name_ = TempFileName(options());</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; scoped_ptr&lt;MkvWriter&gt; temp(<span class="keyword">new</span> MkvWriter);</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; Status status = temp-&gt;Open(temp_file_name_);</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordflow">if</span> (!status.ok())</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keywordflow">return</span> status;</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordflow">return</span> SingleSegmentSegmenter::DoInitialize(temp.Pass());</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;}</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;Status TwoPassSingleSegmentSegmenter::DoFinalize() {</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keywordflow">if</span> (!cluster()-&gt;Finalize())</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordflow">return</span> Status(error::FILE_FAILURE, <span class="stringliteral">&quot;Error finalizing cluster.&quot;</span>);</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="comment">// Write the Cues to the end of the temp file.</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; uint64_t cues_pos = writer()-&gt;Position();</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; set_index_start(cues_pos);</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; seek_head()-&gt;set_cues_pos(cues_pos - segment_payload_pos());</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordflow">if</span> (!cues()-&gt;Write(writer()))</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordflow">return</span> Status(error::FILE_FAILURE, <span class="stringliteral">&quot;Error writing Cues data.&quot;</span>);</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="comment">// Write the header to the real output file.</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; Status temp = WriteSegmentHeader(writer()-&gt;Position(), real_writer_.get());</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordflow">if</span> (!temp.ok())</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordflow">return</span> temp;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="comment">// Close the temp file and open it for reading.</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; set_writer(scoped_ptr&lt;MkvWriter&gt;());</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; scoped_ptr&lt;File, FileCloser&gt; temp_reader(</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <a class="code" href="../../d3/d61/classshaka_1_1media_1_1File.html#aad6b77e734bb22d077ece029c9e735a4">File::Open</a>(temp_file_name_.c_str(), <span class="stringliteral">&quot;r&quot;</span>));</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordflow">if</span> (!temp_reader)</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordflow">return</span> Status(error::FILE_FAILURE, <span class="stringliteral">&quot;Error opening temp file.&quot;</span>);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="comment">// Skip the header that has already been written.</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; uint64_t header_size = real_writer_-&gt;Position();</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keywordflow">if</span> (!ReadSkip(temp_reader.get(), header_size))</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordflow">return</span> Status(error::FILE_FAILURE, <span class="stringliteral">&quot;Error reading temp file.&quot;</span>);</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="comment">// Copy the rest of the data over.</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">if</span> (!CopyFileWithClusterRewrite(temp_reader.get(), real_writer_.get(),</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; cluster()-&gt;Size()))</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keywordflow">return</span> Status(error::FILE_FAILURE, <span class="stringliteral">&quot;Error copying temp file.&quot;</span>);</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="comment">// Close and delete the temp file.</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; temp_reader.reset();</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="../../d3/d61/classshaka_1_1media_1_1File.html#a92cdfd68e6384dfcc14c78b20c98368e">File::Delete</a>(temp_file_name_.c_str())) {</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; LOG(WARNING) &lt;&lt; <span class="stringliteral">&quot;Unable to delete temporary file &quot;</span> &lt;&lt; temp_file_name_;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; }</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="comment">// The WebM index is at the end of the file.</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; set_index_end(real_writer_-&gt;file()-&gt;Size() - 1);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keywordflow">return</span> real_writer_-&gt;Close();</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;}</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="keywordtype">bool</span> TwoPassSingleSegmentSegmenter::CopyFileWithClusterRewrite(</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; File* source,</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; MkvWriter* dest,</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; uint64_t last_size) {</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keyword">const</span> <span class="keywordtype">int</span> cluster_id_size = mkvmuxer::GetUIntSize(mkvmuxer::kMkvCluster);</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keyword">const</span> <span class="keywordtype">int</span> cluster_size_size = 8; <span class="comment">// The size of the Cluster size integer.</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keyword">const</span> <span class="keywordtype">int</span> cluster_header_size = cluster_id_size + cluster_size_size;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="comment">// We are at the start of a cluster, so copy the ID.</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordflow">if</span> (dest-&gt;WriteFromFile(source, cluster_id_size) != cluster_id_size)</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; cues()-&gt;cue_entries_size() - 1; ++i) {</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="comment">// Write the size of the cluster.</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keyword">const</span> mkvmuxer::CuePoint* cue = cues()-&gt;GetCueByIndex(i);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keyword">const</span> mkvmuxer::CuePoint* next_cue = cues()-&gt;GetCueByIndex(i + 1);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keyword">const</span> int64_t cluster_payload_size =</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; next_cue-&gt;cluster_pos() - cue-&gt;cluster_pos() - cluster_header_size;</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keywordflow">if</span> (mkvmuxer::WriteUIntSize(dest, cluster_payload_size, cluster_size_size))</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keywordflow">if</span> (!ReadSkip(source, cluster_size_size))</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="comment">// Copy the cluster and the next cluster&#39;s ID.</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; int64_t to_copy = cluster_payload_size + cluster_id_size;</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordflow">if</span> (dest-&gt;WriteFromFile(source, to_copy) != to_copy)</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="comment">// Update the progress; need to convert from WebM timecode to ISO BMFF.</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keyword">const</span> uint64_t webm_delta_time = next_cue-&gt;time() - cue-&gt;time();</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keyword">const</span> uint64_t delta_time = FromWebMTimecode(webm_delta_time);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; UpdateProgress(delta_time);</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; }</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="comment">// The last cluster takes up until the cues.</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keyword">const</span> uint64_t last_cluster_payload_size = last_size - cluster_header_size;</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="keywordflow">if</span> (mkvmuxer::WriteUIntSize(dest, last_cluster_payload_size,</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; cluster_size_size))</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keywordflow">if</span> (!ReadSkip(source, cluster_size_size))</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="comment">// Copy the remaining data (i.e. Cues data).</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordflow">return</span> dest-&gt;WriteFromFile(source) ==</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="keyword">static_cast&lt;</span>int64_t<span class="keyword">&gt;</span>(last_cluster_payload_size + cues()-&gt;Size());</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;}</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;} <span class="comment">// namespace webm</span></div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160;} <span class="comment">// namespace media</span></div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;} <span class="comment">// namespace shaka</span></div>
<div class="ttc" id="classshaka_1_1media_1_1File_html_aad6b77e734bb22d077ece029c9e735a4"><div class="ttname"><a href="../../d3/d61/classshaka_1_1media_1_1File.html#aad6b77e734bb22d077ece029c9e735a4">shaka::media::File::Open</a></div><div class="ttdeci">virtual bool Open()=0</div><div class="ttdoc">Internal open. Should not be used directly. </div></div>
<div class="ttc" id="classshaka_1_1media_1_1File_html_a92cdfd68e6384dfcc14c78b20c98368e"><div class="ttname"><a href="../../d3/d61/classshaka_1_1media_1_1File.html#a92cdfd68e6384dfcc14c78b20c98368e">shaka::media::File::Delete</a></div><div class="ttdeci">static bool Delete(const char *file_name)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/dfc/file_8cc_source.html#l00162">file.cc:162</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1File_html_a92cdfd68e6384dfcc14c78b20c98368e"><div class="ttname"><a href="../../d3/d61/classshaka_1_1media_1_1File.html#a92cdfd68e6384dfcc14c78b20c98368e">shaka::media::File::Delete</a></div><div class="ttdeci">static bool Delete(const char *file_name)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/dfc/file_8cc_source.html#l00167">file.cc:167</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -143,7 +143,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -407,7 +407,7 @@ static std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -235,7 +235,7 @@ Public Member Functions</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:31 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -126,7 +126,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -105,7 +105,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:24 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -209,7 +209,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -113,7 +113,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:30 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -385,7 +385,7 @@ class&#160;</td><td class="memItemRight" valign="bottom"><b>BoxBuffer</b></td></
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:24 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:29 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -491,7 +491,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -142,7 +142,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:24 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -419,7 +419,7 @@ bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../.
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:31 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -122,7 +122,7 @@ uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>cipher_bytes</b><
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -153,7 +153,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -108,7 +108,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -165,7 +165,7 @@ Additional Inherited Members</h2></td></tr>
<p>Implements <a class="el" href="../../d1/d2d/structshaka_1_1media_1_1mp4_1_1Box.html#ac7c07671ab4c56d19e085570862015ca">shaka::media::mp4::Box</a>.</p>
<p>Definition at line <a class="el" href="../../dd/dee/box__definitions_8cc_source.html#l02179">2179</a> of file <a class="el" href="../../dd/dee/box__definitions_8cc_source.html">box_definitions.cc</a>.</p>
<p>Definition at line <a class="el" href="../../dd/dee/box__definitions_8cc_source.html#l02180">2180</a> of file <a class="el" href="../../dd/dee/box__definitions_8cc_source.html">box_definitions.cc</a>.</p>
</div>
</div>
@ -176,7 +176,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:30 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -102,7 +102,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -168,7 +168,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -139,7 +139,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:20 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -106,7 +106,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -102,7 +102,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -211,7 +211,7 @@ Additional Inherited Members</h2></td></tr>
<p>Implements <a class="el" href="../../d1/d2d/structshaka_1_1media_1_1mp4_1_1Box.html#ac7c07671ab4c56d19e085570862015ca">shaka::media::mp4::Box</a>.</p>
<p>Definition at line <a class="el" href="../../dd/dee/box__definitions_8cc_source.html#l02276">2276</a> of file <a class="el" href="../../dd/dee/box__definitions_8cc_source.html">box_definitions.cc</a>.</p>
<p>Definition at line <a class="el" href="../../dd/dee/box__definitions_8cc_source.html#l02277">2277</a> of file <a class="el" href="../../dd/dee/box__definitions_8cc_source.html">box_definitions.cc</a>.</p>
</div>
</div>
@ -222,7 +222,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:30 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -286,14 +286,14 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
<div class="ttc" id="structshaka_1_1media_1_1VPxFrameInfo_html"><div class="ttname"><a href="../../d0/d11/structshaka_1_1media_1_1VPxFrameInfo.html">shaka::media::VPxFrameInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d8a/vpx__parser_8h_source.html#l00019">vpx_parser.h:19</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1VP8Parser_html_a8baec0e4c74b0b220b777426d0c463e1"><div class="ttname"><a href="../../d8/d14/classshaka_1_1media_1_1VP8Parser.html#a8baec0e4c74b0b220b777426d0c463e1">shaka::media::VP8Parser::Parse</a></div><div class="ttdeci">bool Parse(const uint8_t *data, size_t data_size, std::vector&lt; VPxFrameInfo &gt; *vpx_frames) override</div><div class="ttdef"><b>Definition:</b> <a href="../../d1/d70/vp8__parser_8cc_source.html#l00100">vp8_parser.cc:100</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1BitReader_html_afe1b515788b0079fae42dbb43189121a"><div class="ttname"><a href="../../d6/da9/classshaka_1_1media_1_1BitReader.html#afe1b515788b0079fae42dbb43189121a">shaka::media::BitReader::SkipBytes</a></div><div class="ttdeci">bool SkipBytes(int num_bytes)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/de0/bit__reader_8cc_source.html#l00056">bit_reader.cc:56</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1BitReader_html_a159b687704c85f0938918197b7d3b23d"><div class="ttname"><a href="../../d6/da9/classshaka_1_1media_1_1BitReader.html#a159b687704c85f0938918197b7d3b23d">shaka::media::BitReader::bits_available</a></div><div class="ttdeci">int bits_available() const </div><div class="ttdef"><b>Definition:</b> <a href="../../d4/dd3/bit__reader_8h_source.html#l00076">bit_reader.h:76</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1BitReader_html_a159b687704c85f0938918197b7d3b23d"><div class="ttname"><a href="../../d6/da9/classshaka_1_1media_1_1BitReader.html#a159b687704c85f0938918197b7d3b23d">shaka::media::BitReader::bits_available</a></div><div class="ttdeci">int bits_available() const </div><div class="ttdef"><b>Definition:</b> <a href="../../d4/dd3/bit__reader_8h_source.html#l00085">bit_reader.h:85</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1BitReader_html_a5c7e9d8cedb921042076770c8f6033d7"><div class="ttname"><a href="../../d6/da9/classshaka_1_1media_1_1BitReader.html#a5c7e9d8cedb921042076770c8f6033d7">shaka::media::BitReader::SkipBits</a></div><div class="ttdeci">bool SkipBits(int num_bits)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/de0/bit__reader_8cc_source.html#l00024">bit_reader.cc:24</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1VP8Parser_html_afae2dcb0c2652d53f2e23c9d3c07db37"><div class="ttname"><a href="../../d8/d14/classshaka_1_1media_1_1VP8Parser.html#afae2dcb0c2652d53f2e23c9d3c07db37">shaka::media::VP8Parser::IsKeyframe</a></div><div class="ttdeci">static bool IsKeyframe(const uint8_t *data, size_t data_size)</div><div class="ttdef"><b>Definition:</b> <a href="../../d1/d70/vp8__parser_8cc_source.html#l00183">vp8_parser.cc:183</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1BitReader_html_a580e91c610d3d58bee0f4f4ed8ef12ef"><div class="ttname"><a href="../../d6/da9/classshaka_1_1media_1_1BitReader.html#a580e91c610d3d58bee0f4f4ed8ef12ef">shaka::media::BitReader::bit_position</a></div><div class="ttdeci">int bit_position() const </div><div class="ttdef"><b>Definition:</b> <a href="../../d4/dd3/bit__reader_8h_source.html#l00081">bit_reader.h:81</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1BitReader_html_a580e91c610d3d58bee0f4f4ed8ef12ef"><div class="ttname"><a href="../../d6/da9/classshaka_1_1media_1_1BitReader.html#a580e91c610d3d58bee0f4f4ed8ef12ef">shaka::media::BitReader::bit_position</a></div><div class="ttdeci">int bit_position() const </div><div class="ttdef"><b>Definition:</b> <a href="../../d4/dd3/bit__reader_8h_source.html#l00090">bit_reader.h:90</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -226,7 +226,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -539,7 +539,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -152,7 +152,7 @@ int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href=".
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:23 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -270,7 +270,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -103,7 +103,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:23 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -117,7 +117,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -105,7 +105,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:23 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -124,7 +124,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:31 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -214,7 +214,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -107,7 +107,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:23 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -102,7 +102,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:22 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -210,7 +210,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:21 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:26 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -110,7 +110,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:25 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:29 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -589,7 +589,7 @@ bool&#160;</td><td class="memItemRight" valign="bottom"><b>ReadWriteInt64</b> (i
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:24 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:29 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -116,7 +116,7 @@ scoped_refptr&lt; <a class="el" href="../../d7/d6d/classshaka_1_1media_1_1MediaS
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:27 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:31 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

View File

@ -101,7 +101,7 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 11 2016 22:33:23 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Aug 18 2016 20:58:28 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>

Some files were not shown because too many files have changed in this diff Show More