Generate SDK documents for commit 6dbcf27f82

This commit is contained in:
Widevine Buildbot 2016-10-13 21:53:51 +00:00
parent fc57af70e2
commit aaff277f59
947 changed files with 1719 additions and 1469 deletions

View File

@ -372,7 +372,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 11 2016 19:33:45 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:50 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 Tue Oct 11 2016 19:33:45 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:50 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 Tue Oct 11 2016 19:33:43 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:48 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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

@ -145,7 +145,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 Tue Oct 11 2016 19:33:39 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:44 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:47 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:47 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:47 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

@ -291,7 +291,7 @@ bool&#160;</td><td class="memItemRight" valign="bottom"><b>webm_subsample_encryp
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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

@ -285,7 +285,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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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

@ -318,7 +318,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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:43 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:48 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 Tue Oct 11 2016 19:33:39 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:44 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 Tue Oct 11 2016 19:33:39 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:44 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:44 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:39 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:44 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:47 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:47 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:47 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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

@ -197,7 +197,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 11 2016 19:33:43 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:48 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

@ -188,7 +188,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 11 2016 19:33:43 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:48 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:44 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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

@ -294,7 +294,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 Tue Oct 11 2016 19:33:39 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:44 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 @@ void&#160;</td><td class="memItemRight" valign="bottom"><b>set_progress_target</
<p>Implements <a class="el" href="../../d9/d26/classshaka_1_1media_1_1mp4_1_1Segmenter.html#a7ab68d898343b322dc32c08ad42e859c">shaka::media::mp4::Segmenter</a>.</p>
<p>Definition at line <a class="el" href="../../de/d1e/mp4_2single__segment__segmenter_8cc_source.html#l00063">63</a> of file <a class="el" href="../../de/d1e/mp4_2single__segment__segmenter_8cc_source.html">single_segment_segmenter.cc</a>.</p>
<p>Definition at line <a class="el" href="../../de/d1e/mp4_2single__segment__segmenter_8cc_source.html#l00043">43</a> of file <a class="el" href="../../de/d1e/mp4_2single__segment__segmenter_8cc_source.html">single_segment_segmenter.cc</a>.</p>
</div>
</div>
@ -248,7 +248,7 @@ void&#160;</td><td class="memItemRight" valign="bottom"><b>set_progress_target</
<p>Implements <a class="el" href="../../d9/d26/classshaka_1_1media_1_1mp4_1_1Segmenter.html#a3a1c6721aa53a124af8be50bb3f7599c">shaka::media::mp4::Segmenter</a>.</p>
<p>Definition at line <a class="el" href="../../de/d1e/mp4_2single__segment__segmenter_8cc_source.html#l00056">56</a> of file <a class="el" href="../../de/d1e/mp4_2single__segment__segmenter_8cc_source.html">single_segment_segmenter.cc</a>.</p>
<p>Definition at line <a class="el" href="../../de/d1e/mp4_2single__segment__segmenter_8cc_source.html#l00036">36</a> of file <a class="el" href="../../de/d1e/mp4_2single__segment__segmenter_8cc_source.html">single_segment_segmenter.cc</a>.</p>
</div>
</div>
@ -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 Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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

@ -480,7 +480,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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

@ -0,0 +1,112 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>DASH Media Packaging SDK: media/file/file_util.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">DASH Media Packaging SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
<li><a href="../../namespaces.html"><span>Namespaces</span></a></li>
<li><a href="../../annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="../../search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="../../files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../dir_39dc0668bd5a501998f94e8b4e546c71.html">media</a></li><li class="navelem"><a class="el" href="../../dir_279fd47bebb21302c25cfb685e84c359.html">file</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">file_util.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright 2016 Google Inc. All rights reserved.</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// Use of this source code is governed by a BSD-style</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// license that can be found in the LICENSE file or at</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">// https://developers.google.com/open-source/licenses/bsd</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="keyword">namespace </span>shaka {</div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="../../d8/daf/namespaceshaka.html#a66e7e156c1f83435fb6c130803e48f62">TempFilePath</a>(<span class="keyword">const</span> std::string&amp; temp_dir, std::string* temp_file_path);</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;} <span class="comment">// namespace shaka</span></div>
<div class="ttc" id="namespaceshaka_html_a66e7e156c1f83435fb6c130803e48f62"><div class="ttname"><a href="../../d8/daf/namespaceshaka.html#a66e7e156c1f83435fb6c130803e48f62">shaka::TempFilePath</a></div><div class="ttdeci">bool TempFilePath(const std::string &amp;temp_dir, std::string *temp_file_path)</div><div class="ttdef"><b>Definition:</b> <a href="../../d1/d2b/file__util_8cc_source.html#l00027">file_util.cc:27</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Oct 13 2016 21:53:45 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>
</body>
</html>

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 Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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 Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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 Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:50 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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

@ -173,7 +173,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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

@ -205,7 +205,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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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

@ -216,7 +216,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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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

@ -337,7 +337,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 Tue Oct 11 2016 19:33:39 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:44 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 Tue Oct 11 2016 19:33:43 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:48 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

@ -376,7 +376,7 @@ Public Member Functions</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:47 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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

@ -256,7 +256,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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:47 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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

@ -95,216 +95,196 @@ var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &quot;packager/media/formats/webm/two_pass_single_segment_segmenter.h&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &lt;inttypes.h&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &lt;openssl/err.h&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &lt;openssl/rand.h&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &quot;packager/base/files/file_path.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &quot;packager/base/strings/stringprintf.h&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &quot;packager/base/threading/platform_thread.h&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &quot;packager/base/time/time.h&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &quot;packager/media/base/media_sample.h&quot;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;packager/media/base/media_stream.h&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;packager/media/base/muxer_options.h&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &quot;packager/media/base/stream_info.h&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &quot;packager/third_party/libwebm/src/mkvmuxer.hpp&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &quot;packager/third_party/libwebm/src/mkvmuxerutil.hpp&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &quot;packager/third_party/libwebm/src/webmids.hpp&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">namespace </span>shaka {</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="keyword">namespace </span>media {</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="keyword">namespace </span>webm {</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">namespace </span>{</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment">// Cues will be inserted before clusters. All clusters will be shifted down by</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment">// the size of cues. However, cluster positions affect the size of cues. This</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment">// function adjusts cues size iteratively until it is stable.</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="comment">// Returns the size of updated Cues.</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;uint64_t UpdateCues(mkvmuxer::Cues* cues) {</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; uint64_t cues_size = cues-&gt;Size();</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; uint64_t adjustment = cues_size;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keywordflow">while</span> (adjustment != 0) {</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; cues-&gt;cue_entries_size(); ++i) {</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; mkvmuxer::CuePoint* cue = cues-&gt;GetCueByIndex(i);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; cue-&gt;set_cluster_pos(cue-&gt;cluster_pos() + adjustment);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; }</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; uint64_t new_cues_size = cues-&gt;Size();</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; DCHECK_LE(cues_size, new_cues_size);</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; adjustment = new_cues_size - cues_size;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; cues_size = new_cues_size;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; }</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordflow">return</span> cues_size;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;}</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;std::string TempFileName(<span class="keyword">const</span> MuxerOptions&amp; options) {</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="comment">// TODO: Move to a common util function and remove other uses.</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; int32_t tid = <span class="keyword">static_cast&lt;</span>int32_t<span class="keyword">&gt;</span>(base::PlatformThread::CurrentId());</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; int64_t rand = 0;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordflow">if</span> (RAND_bytes(reinterpret_cast&lt;uint8_t*&gt;(&amp;rand), <span class="keyword">sizeof</span>(rand)) != 1) {</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; LOG(WARNING) &lt;&lt; <span class="stringliteral">&quot;RAND_bytes failed with error: &quot;</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; &lt;&lt; ERR_error_string(ERR_get_error(), NULL);</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; rand = base::Time::Now().ToInternalValue();</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; std::string file_prefix =</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</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="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordflow">return</span> base::FilePath::FromUTF8Unsafe(options.temp_dir).Append(</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; base::FilePath::FromUTF8Unsafe(file_prefix)).AsUTF8Unsafe();</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;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</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="l00068"></a><span class="lineno"> 68</span>&#160;<span class="comment">// forward-seeking in non-seekable files.</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="keywordtype">bool</span> ReadSkip(File* file, int64_t byte_count) {</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keyword">const</span> int64_t kBufferSize = 0x40000; <span class="comment">// 256KB.</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; std::unique_ptr&lt;char[]&gt; buffer(<span class="keyword">new</span> <span class="keywordtype">char</span>[kBufferSize]);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; int64_t bytes_read = 0;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keywordflow">while</span> (bytes_read &lt; byte_count) {</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; int64_t size = std::min(kBufferSize, byte_count - bytes_read);</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; int64_t result = file-&gt;Read(buffer.get(), size);</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</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="l00077"></a><span class="lineno"> 77</span>&#160; <span class="comment">// byte_count bytes.</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="keywordflow">if</span> (result &lt;= 0)</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</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; bytes_read += result;</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;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; DCHECK_EQ(bytes_read, byte_count);</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;}</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;} <span class="comment">// namespace</span></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;TwoPassSingleSegmentSegmenter::TwoPassSingleSegmentSegmenter(</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keyword">const</span> MuxerOptions&amp; options)</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; : SingleSegmentSegmenter(options) {}</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;TwoPassSingleSegmentSegmenter::~TwoPassSingleSegmentSegmenter() {}</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;Status TwoPassSingleSegmentSegmenter::DoInitialize(</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; std::unique_ptr&lt;MkvWriter&gt; writer) {</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</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="l00098"></a><span class="lineno"> 98</span>&#160; <span class="comment">// of time as to make it.</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; set_progress_target(info()-&gt;duration() * 2);</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; real_writer_ = std::move(writer);</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; temp_file_name_ = TempFileName(options());</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; std::unique_ptr&lt;MkvWriter&gt; temp(<span class="keyword">new</span> MkvWriter);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; Status status = temp-&gt;Open(temp_file_name_);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordflow">if</span> (!status.ok())</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordflow">return</span> status;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keywordflow">return</span> SingleSegmentSegmenter::DoInitialize(std::move(temp));</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;}</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;Status TwoPassSingleSegmentSegmenter::DoFinalize() {</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordflow">if</span> (!cluster()-&gt;Finalize())</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</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="l00115"></a><span class="lineno"> 115</span>&#160;</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keyword">const</span> uint64_t header_size = init_end() + 1;</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keyword">const</span> uint64_t cues_pos = header_size - segment_payload_pos();</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keyword">const</span> uint64_t cues_size = UpdateCues(cues());</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; seek_head()-&gt;set_cues_pos(cues_pos);</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; seek_head()-&gt;set_cluster_pos(cues_pos + cues_size);</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &quot;packager/media/base/media_sample.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &quot;packager/media/base/media_stream.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &quot;packager/media/base/muxer_options.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &quot;packager/media/base/stream_info.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &quot;packager/media/file/file_util.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &quot;packager/third_party/libwebm/src/mkvmuxer.hpp&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &quot;packager/third_party/libwebm/src/mkvmuxerutil.hpp&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &quot;packager/third_party/libwebm/src/webmids.hpp&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">namespace </span>shaka {</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="keyword">namespace </span>media {</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="keyword">namespace </span>webm {</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="keyword">namespace </span>{</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment">// Cues will be inserted before clusters. All clusters will be shifted down by</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment">// the size of cues. However, cluster positions affect the size of cues. This</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment">// function adjusts cues size iteratively until it is stable.</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment">// Returns the size of updated Cues.</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;uint64_t UpdateCues(mkvmuxer::Cues* cues) {</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; uint64_t cues_size = cues-&gt;Size();</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; uint64_t adjustment = cues_size;</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keywordflow">while</span> (adjustment != 0) {</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; cues-&gt;cue_entries_size(); ++i) {</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; mkvmuxer::CuePoint* cue = cues-&gt;GetCueByIndex(i);</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; cue-&gt;set_cluster_pos(cue-&gt;cluster_pos() + adjustment);</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; }</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; uint64_t new_cues_size = cues-&gt;Size();</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; DCHECK_LE(cues_size, new_cues_size);</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; adjustment = new_cues_size - cues_size;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; cues_size = new_cues_size;</div>
<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; <span class="keywordflow">return</span> cues_size;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;}</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</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="l00045"></a><span class="lineno"> 45</span>&#160;<span class="comment">// forward-seeking in non-seekable files.</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="keywordtype">bool</span> ReadSkip(File* file, int64_t byte_count) {</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keyword">const</span> int64_t kBufferSize = 0x40000; <span class="comment">// 256KB.</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; std::unique_ptr&lt;char[]&gt; buffer(<span class="keyword">new</span> <span class="keywordtype">char</span>[kBufferSize]);</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; int64_t bytes_read = 0;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordflow">while</span> (bytes_read &lt; byte_count) {</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; int64_t size = std::min(kBufferSize, byte_count - bytes_read);</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; int64_t result = file-&gt;Read(buffer.get(), size);</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</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="l00054"></a><span class="lineno"> 54</span>&#160; <span class="comment">// byte_count bytes.</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keywordflow">if</span> (result &lt;= 0)</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; bytes_read += result;</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;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; DCHECK_EQ(bytes_read, byte_count);</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</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;} <span class="comment">// namespace</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;TwoPassSingleSegmentSegmenter::TwoPassSingleSegmentSegmenter(</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keyword">const</span> MuxerOptions&amp; options)</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; : SingleSegmentSegmenter(options) {}</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;TwoPassSingleSegmentSegmenter::~TwoPassSingleSegmentSegmenter() {}</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;Status TwoPassSingleSegmentSegmenter::DoInitialize(</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; std::unique_ptr&lt;MkvWriter&gt; writer) {</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</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="l00075"></a><span class="lineno"> 75</span>&#160; <span class="comment">// of time as to make it.</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; set_progress_target(info()-&gt;duration() * 2);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; real_writer_ = std::move(writer);</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; <span class="keywordflow">if</span> (!<a class="code" href="../../d8/daf/namespaceshaka.html#a66e7e156c1f83435fb6c130803e48f62">TempFilePath</a>(options().temp_dir, &amp;temp_file_name_))</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keywordflow">return</span> Status(error::FILE_FAILURE, <span class="stringliteral">&quot;Unable to create temporary file.&quot;</span>);</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; std::unique_ptr&lt;MkvWriter&gt; temp(<span class="keyword">new</span> MkvWriter);</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; Status status = temp-&gt;Open(temp_file_name_);</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordflow">if</span> (!status.ok())</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordflow">return</span> status;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keywordflow">return</span> SingleSegmentSegmenter::DoInitialize(std::move(temp));</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;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;Status TwoPassSingleSegmentSegmenter::DoFinalize() {</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keywordflow">if</span> (!cluster()-&gt;Finalize())</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</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="l00093"></a><span class="lineno"> 93</span>&#160;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keyword">const</span> uint64_t header_size = init_end() + 1;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keyword">const</span> uint64_t cues_pos = header_size - segment_payload_pos();</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keyword">const</span> uint64_t cues_size = UpdateCues(cues());</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; seek_head()-&gt;set_cues_pos(cues_pos);</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; seek_head()-&gt;set_cluster_pos(cues_pos + cues_size);</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="comment">// Write the header to the real output file.</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keyword">const</span> uint64_t file_size = writer()-&gt;<a class="code" href="../../d1/d0a/classshaka_1_1media_1_1MkvWriter.html#a468dcd83a7c087cc83e755703488e92b">Position</a>() + cues_size;</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; Status temp = WriteSegmentHeader(file_size, real_writer_.get());</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keywordflow">if</span> (!temp.ok())</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keywordflow">return</span> temp;</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; DCHECK_EQ(real_writer_-&gt;Position(), <span class="keyword">static_cast&lt;</span>int64_t<span class="keyword">&gt;</span>(header_size));</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">// Write the cues to the real output file.</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; set_index_start(real_writer_-&gt;Position());</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keywordflow">if</span> (!cues()-&gt;Write(real_writer_.get()))</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</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="l00111"></a><span class="lineno"> 111</span>&#160; set_index_end(real_writer_-&gt;Position() - 1);</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; DCHECK_EQ(real_writer_-&gt;Position(),</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keyword">static_cast&lt;</span>int64_t<span class="keyword">&gt;</span>(segment_payload_pos() + cues_pos + cues_size));</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">// Close the temp file and open it for reading.</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; set_writer(std::unique_ptr&lt;MkvWriter&gt;());</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; std::unique_ptr&lt;File, FileCloser&gt; temp_reader(</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</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="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keywordflow">if</span> (!temp_reader)</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</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="l00121"></a><span class="lineno"> 121</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="comment">// Write the header to the real output file.</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keyword">const</span> uint64_t file_size = writer()-&gt;<a class="code" href="../../d1/d0a/classshaka_1_1media_1_1MkvWriter.html#a468dcd83a7c087cc83e755703488e92b">Position</a>() + cues_size;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; Status temp = WriteSegmentHeader(file_size, real_writer_.get());</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keywordflow">if</span> (!temp.ok())</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordflow">return</span> temp;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; DCHECK_EQ(real_writer_-&gt;Position(), <span class="keyword">static_cast&lt;</span>int64_t<span class="keyword">&gt;</span>(header_size));</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; <span class="comment">// Write the cues to the real output file.</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; set_index_start(real_writer_-&gt;Position());</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordflow">if</span> (!cues()-&gt;Write(real_writer_.get()))</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</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="l00133"></a><span class="lineno"> 133</span>&#160; set_index_end(real_writer_-&gt;Position() - 1);</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; DCHECK_EQ(real_writer_-&gt;Position(),</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keyword">static_cast&lt;</span>int64_t<span class="keyword">&gt;</span>(segment_payload_pos() + cues_pos + cues_size));</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="comment">// Close the temp file and open it for reading.</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; set_writer(std::unique_ptr&lt;MkvWriter&gt;());</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; std::unique_ptr&lt;File, FileCloser&gt; temp_reader(</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</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="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keywordflow">if</span> (!temp_reader)</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</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="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">// Skip the header that has already been written.</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordflow">if</span> (!ReadSkip(temp_reader.get(), header_size))</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</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="l00147"></a><span class="lineno"> 147</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="comment">// Copy the rest of the data over.</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keywordflow">if</span> (!CopyFileWithClusterRewrite(temp_reader.get(), real_writer_.get(),</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; cluster()-&gt;Size())) {</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</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="l00152"></a><span class="lineno"> 152</span>&#160; }</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="comment">// Close and delete the temp file.</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; temp_reader.reset();</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</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="l00157"></a><span class="lineno"> 157</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="l00158"></a><span class="lineno"> 158</span>&#160; }</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keywordflow">return</span> real_writer_-&gt;Close();</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;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="keywordtype">bool</span> TwoPassSingleSegmentSegmenter::CopyFileWithClusterRewrite(</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; File* source,</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; MkvWriter* dest,</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; uint64_t last_size) {</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</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="l00168"></a><span class="lineno"> 168</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="l00169"></a><span class="lineno"> 169</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="l00170"></a><span class="lineno"> 170</span>&#160;</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="comment">// We are at the start of a cluster, so copy the ID.</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="keywordflow">if</span> (dest-&gt;WriteFromFile(source, cluster_id_size) != cluster_id_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="l00122"></a><span class="lineno"> 122</span>&#160; <span class="comment">// Skip the header that has already been written.</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keywordflow">if</span> (!ReadSkip(temp_reader.get(), header_size))</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</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="l00125"></a><span class="lineno"> 125</span>&#160;</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="comment">// Copy the rest of the data over.</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keywordflow">if</span> (!CopyFileWithClusterRewrite(temp_reader.get(), real_writer_.get(),</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; cluster()-&gt;Size())) {</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</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="l00130"></a><span class="lineno"> 130</span>&#160; }</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="comment">// Close and delete the temp file.</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; temp_reader.reset();</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</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="l00135"></a><span class="lineno"> 135</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="l00136"></a><span class="lineno"> 136</span>&#160; }</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keywordflow">return</span> real_writer_-&gt;Close();</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;}</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="keywordtype">bool</span> TwoPassSingleSegmentSegmenter::CopyFileWithClusterRewrite(</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; File* source,</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; MkvWriter* dest,</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; uint64_t last_size) {</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</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="l00146"></a><span class="lineno"> 146</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="l00147"></a><span class="lineno"> 147</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="l00148"></a><span class="lineno"> 148</span>&#160;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="comment">// We are at the start of a cluster, so copy the ID.</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keywordflow">if</span> (dest-&gt;WriteFromFile(source, cluster_id_size) != cluster_id_size)</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</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="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="l00154"></a><span class="lineno"> 154</span>&#160; <span class="comment">// Write the size of the cluster.</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keyword">const</span> mkvmuxer::CuePoint* cue = cues()-&gt;GetCueByIndex(i);</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keyword">const</span> mkvmuxer::CuePoint* next_cue = cues()-&gt;GetCueByIndex(i + 1);</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="keyword">const</span> int64_t cluster_payload_size =</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; next_cue-&gt;cluster_pos() - cue-&gt;cluster_pos() - cluster_header_size;</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="keywordflow">if</span> (mkvmuxer::WriteUIntSize(dest, cluster_payload_size, cluster_size_size))</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordflow">if</span> (!ReadSkip(source, cluster_size_size))</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">// Copy the cluster and the next cluster&#39;s ID.</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; int64_t to_copy = cluster_payload_size + cluster_id_size;</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keywordflow">if</span> (dest-&gt;WriteFromFile(source, to_copy) != to_copy)</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</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">// Update the progress; need to convert from WebM timecode to ISO BMFF.</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</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="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keyword">const</span> uint64_t delta_time = FromWebMTimecode(webm_delta_time);</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; UpdateProgress(delta_time);</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;</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</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="l00176"></a><span class="lineno"> 176</span>&#160; <span class="comment">// Write the size of the cluster.</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="keyword">const</span> mkvmuxer::CuePoint* cue = cues()-&gt;GetCueByIndex(i);</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keyword">const</span> mkvmuxer::CuePoint* next_cue = cues()-&gt;GetCueByIndex(i + 1);</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keyword">const</span> int64_t cluster_payload_size =</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; next_cue-&gt;cluster_pos() - cue-&gt;cluster_pos() - cluster_header_size;</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <span class="keywordflow">if</span> (mkvmuxer::WriteUIntSize(dest, cluster_payload_size, cluster_size_size))</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keywordflow">if</span> (!ReadSkip(source, cluster_size_size))</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="comment">// Copy the cluster and the next cluster&#39;s ID.</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; int64_t to_copy = cluster_payload_size + cluster_id_size;</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <span class="keywordflow">if</span> (dest-&gt;WriteFromFile(source, to_copy) != to_copy)</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</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">// Update the progress; need to convert from WebM timecode to ISO BMFF.</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</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="l00193"></a><span class="lineno"> 193</span>&#160; <span class="keyword">const</span> uint64_t delta_time = FromWebMTimecode(webm_delta_time);</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; UpdateProgress(delta_time);</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; }</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="comment">// The last cluster takes up until the cues.</span></div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <span class="keyword">const</span> uint64_t last_cluster_payload_size = last_size - cluster_header_size;</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; <span class="keywordflow">if</span> (mkvmuxer::WriteUIntSize(dest, last_cluster_payload_size,</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; cluster_size_size))</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <span class="keywordflow">if</span> (!ReadSkip(source, cluster_size_size))</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <span class="comment">// Copy the last cluster.</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <span class="keywordflow">return</span> dest-&gt;WriteFromFile(source) ==</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; <span class="keyword">static_cast&lt;</span>int64_t<span class="keyword">&gt;</span>(last_cluster_payload_size);</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160;}</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160;</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;} <span class="comment">// namespace webm</span></div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;} <span class="comment">// namespace media</span></div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;} <span class="comment">// namespace shaka</span></div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="comment">// The last cluster takes up until the cues.</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keyword">const</span> uint64_t last_cluster_payload_size = last_size - cluster_header_size;</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="keywordflow">if</span> (mkvmuxer::WriteUIntSize(dest, last_cluster_payload_size,</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; cluster_size_size))</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="keywordflow">if</span> (!ReadSkip(source, cluster_size_size))</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</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">// Copy the last cluster.</span></div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keywordflow">return</span> dest-&gt;WriteFromFile(source) ==</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="keyword">static_cast&lt;</span>int64_t<span class="keyword">&gt;</span>(last_cluster_payload_size);</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160;}</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;} <span class="comment">// namespace webm</span></div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;} <span class="comment">// namespace media</span></div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</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="namespaceshaka_html_a66e7e156c1f83435fb6c130803e48f62"><div class="ttname"><a href="../../d8/daf/namespaceshaka.html#a66e7e156c1f83435fb6c130803e48f62">shaka::TempFilePath</a></div><div class="ttdeci">bool TempFilePath(const std::string &amp;temp_dir, std::string *temp_file_path)</div><div class="ttdef"><b>Definition:</b> <a href="../../d1/d2b/file__util_8cc_source.html#l00027">file_util.cc:27</a></div></div>
<div class="ttc" id="classshaka_1_1media_1_1MkvWriter_html_a468dcd83a7c087cc83e755703488e92b"><div class="ttname"><a href="../../d1/d0a/classshaka_1_1media_1_1MkvWriter.html#a468dcd83a7c087cc83e755703488e92b">shaka::media::MkvWriter::Position</a></div><div class="ttdeci">mkvmuxer::int64 Position() const override</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dc8/mkv__writer_8cc_source.html#l00071">mkv_writer.cc:71</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#l00163">file.cc:163</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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

@ -144,7 +144,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 Tue Oct 11 2016 19:33:39 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:44 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:44 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:47 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

@ -206,7 +206,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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:44 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

@ -0,0 +1,143 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>DASH Media Packaging SDK: media/file/file_util.cc Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">DASH Media Packaging SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
<li><a href="../../namespaces.html"><span>Namespaces</span></a></li>
<li><a href="../../annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="../../search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="../../files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../dir_39dc0668bd5a501998f94e8b4e546c71.html">media</a></li><li class="navelem"><a class="el" href="../../dir_279fd47bebb21302c25cfb685e84c359.html">file</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">file_util.cc</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright 2016 Google Inc. All rights reserved.</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// Use of this source code is governed by a BSD-style</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// license that can be found in the LICENSE file or at</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">// https://developers.google.com/open-source/licenses/bsd</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &quot;packager/media/file/file_util.h&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &lt;inttypes.h&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &quot;packager/base/files/file_path.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &quot;packager/base/files/file_util.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &quot;packager/base/strings/stringprintf.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &quot;packager/base/threading/platform_thread.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &quot;packager/base/time/time.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">namespace </span>shaka {</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">namespace </span>{</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">// Create a temp file name using process/thread id and current time.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;std::string TempFileName() {</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keyword">const</span> int32_t tid = <span class="keyword">static_cast&lt;</span>int32_t<span class="keyword">&gt;</span>(base::PlatformThread::CurrentId());</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <span class="keyword">const</span> int64_t current_time = base::Time::Now().ToInternalValue();</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; <span class="keywordflow">return</span> base::StringPrintf(<span class="stringliteral">&quot;packager-tempfile-%x-%&quot;</span> PRIx64, tid, current_time);</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;}</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;} <span class="comment">// namespace</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="../../d8/daf/namespaceshaka.html#a66e7e156c1f83435fb6c130803e48f62"> 27</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="../../d8/daf/namespaceshaka.html#a66e7e156c1f83435fb6c130803e48f62">TempFilePath</a>(<span class="keyword">const</span> std::string&amp; temp_dir, std::string* temp_file_path) {</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keywordflow">if</span> (temp_dir.empty()) {</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; base::FilePath file_path;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keywordflow">if</span> (!base::CreateTemporaryFile(&amp;file_path)) {</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; LOG(ERROR) &lt;&lt; <span class="stringliteral">&quot;Failed to create temporary file.&quot;</span>;</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; }</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; *temp_file_path = file_path.AsUTF8Unsafe();</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; *temp_file_path =</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; base::FilePath::FromUTF8Unsafe(temp_dir)</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; .Append(base::FilePath::FromUTF8Unsafe(TempFileName()))</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; .AsUTF8Unsafe();</div>
<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; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;}</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;} <span class="comment">// namespace shaka</span></div>
<div class="ttc" id="namespaceshaka_html_a66e7e156c1f83435fb6c130803e48f62"><div class="ttname"><a href="../../d8/daf/namespaceshaka.html#a66e7e156c1f83435fb6c130803e48f62">shaka::TempFilePath</a></div><div class="ttdeci">bool TempFilePath(const std::string &amp;temp_dir, std::string *temp_file_path)</div><div class="ttdef"><b>Definition:</b> <a href="../../d1/d2b/file__util_8cc_source.html#l00027">file_util.cc:27</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Oct 13 2016 21:53:45 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>
</body>
</html>

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 Tue Oct 11 2016 19:33:43 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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 Tue Oct 11 2016 19:33:43 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:48 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

@ -488,7 +488,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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:47 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 Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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

@ -150,7 +150,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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:39 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:44 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

@ -176,7 +176,7 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 @@ Additional Inherited Members</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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

@ -293,7 +293,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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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

@ -531,7 +531,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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:47 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

@ -269,7 +269,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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:47 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 Tue Oct 11 2016 19:33:44 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:49 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:42 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:41 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:46 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 Tue Oct 11 2016 19:33:40 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:45 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 Tue Oct 11 2016 19:33:43 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:48 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 Tue Oct 11 2016 19:33:43 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
Generated on Thu Oct 13 2016 21:53:48 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