1<!DOCTYPE HTML> 2<!-- NewPage --> 3<html lang="en"> 4<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png"><link rel="manifest" href="/assets/site.webmanifest"><link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#fc4d50"><link rel="shortcut icon" href="/assets/favicon.ico"><meta name="msapplication-TileColor" content="#ffc40d"><meta name="msapplication-config" content="/assets/browserconfig.xml"><meta name="theme-color" content="#ffffff"><!-- end favicons snippet --> 5<title>Codec.DecoderFactory (ExoPlayer library)</title> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> 8<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style"> 9<script type="text/javascript" src="../../../../../script.js"></script> 10<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script> 11<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> 12<!--[if IE]> 13<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> 14<![endif]--> 15<script type="text/javascript" src="../../../../../jquery/jquery-3.5.1.js"></script> 16<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script> 17</head> 18<body> 19<script type="text/javascript"><!-- 20 try { 21 if (location.href.indexOf('is-external=true') == -1) { 22 parent.document.title="Codec.DecoderFactory (ExoPlayer library)"; 23 } 24 } 25 catch(err) { 26 } 27//--> 28var data = {"i0":6,"i1":6}; 29var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; 30var altColor = "altColor"; 31var rowColor = "rowColor"; 32var tableTab = "tableTab"; 33var activeTableTab = "activeTableTab"; 34var pathtoroot = "../../../../../"; 35var useModuleDirectories = false; 36loadScripts(document, 'script');</script> 37<noscript> 38<div>JavaScript is disabled on your browser.</div> 39</noscript> 40<header role="banner"> 41<nav role="navigation"> 42<div class="fixedNav"> 43<!-- ========= START OF TOP NAVBAR ======= --> 44<div class="topNav"><a id="navbar.top"> 45<!-- --> 46</a> 47<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> 48<a id="navbar.top.firstrow"> 49<!-- --> 50</a> 51<ul class="navList" title="Navigation"> 52<li><a href="../../../../../index.html">Overview</a></li> 53<li><a href="package-summary.html">Package</a></li> 54<li class="navBarCell1Rev">Class</li> 55<li><a href="package-tree.html">Tree</a></li> 56<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 57<li><a href="../../../../../index-all.html">Index</a></li> 58<li><a href="../../../../../help-doc.html">Help</a></li> 59</ul> 60</div> 61<div class="subNav"> 62<ul class="navList" id="allclasses_navbar_top"> 63<li><a href="../../../../../allclasses.html">All Classes</a></li> 64</ul> 65<ul class="navListSearch"> 66<li><label for="search">SEARCH:</label> 67<input type="text" id="search" value="search" disabled="disabled"> 68<input type="reset" id="reset" value="reset" disabled="disabled"> 69</li> 70</ul> 71<div> 72<script type="text/javascript"><!-- 73 allClassesLink = document.getElementById("allclasses_navbar_top"); 74 if(window==top) { 75 allClassesLink.style.display = "block"; 76 } 77 else { 78 allClassesLink.style.display = "none"; 79 } 80 //--> 81</script> 82<noscript> 83<div>JavaScript is disabled on your browser.</div> 84</noscript> 85</div> 86<div> 87<ul class="subNavList"> 88<li>Summary: </li> 89<li>Nested | </li> 90<li><a href="#field.summary">Field</a> | </li> 91<li>Constr | </li> 92<li><a href="#method.summary">Method</a></li> 93</ul> 94<ul class="subNavList"> 95<li>Detail: </li> 96<li><a href="#field.detail">Field</a> | </li> 97<li>Constr | </li> 98<li><a href="#method.detail">Method</a></li> 99</ul> 100</div> 101<a id="skip.navbar.top"> 102<!-- --> 103</a></div> 104<!-- ========= END OF TOP NAVBAR ========= --> 105</div> 106<div class="navPadding"> </div> 107<script type="text/javascript"><!-- 108$('.navPadding').css('padding-top', $('.fixedNav').css("height")); 109//--> 110</script> 111</nav> 112</header> 113<!-- ======== START OF CLASS DATA ======== --> 114<main role="main"> 115<div class="header"> 116<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">com.google.android.exoplayer2.transformer</a></div> 117<h2 title="Interface Codec.DecoderFactory" class="title">Interface Codec.DecoderFactory</h2> 118</div> 119<div class="contentContainer"> 120<div class="description"> 121<ul class="blockList"> 122<li class="blockList"> 123<dl> 124<dt>Enclosing class:</dt> 125<dd><a href="Codec.html" title="class in com.google.android.exoplayer2.transformer">Codec</a></dd> 126</dl> 127<hr> 128<pre>public static interface <span class="typeNameLabel">Codec.DecoderFactory</span></pre> 129<div class="block">A factory for <a href="Codec.html" title="class in com.google.android.exoplayer2.transformer"><code>decoder</code></a> instances.</div> 130</li> 131</ul> 132</div> 133<div class="summary"> 134<ul class="blockList"> 135<li class="blockList"> 136<!-- =========== FIELD SUMMARY =========== --> 137<section role="region"> 138<ul class="blockList"> 139<li class="blockList"><a id="field.summary"> 140<!-- --> 141</a> 142<h3>Field Summary</h3> 143<table class="memberSummary"> 144<caption><span>Fields</span><span class="tabEnd"> </span></caption> 145<tr> 146<th class="colFirst" scope="col">Modifier and Type</th> 147<th class="colSecond" scope="col">Field</th> 148<th class="colLast" scope="col">Description</th> 149</tr> 150<tr class="altColor"> 151<td class="colFirst"><code>static <a href="Codec.DecoderFactory.html" title="interface in com.google.android.exoplayer2.transformer">Codec.DecoderFactory</a></code></td> 152<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#DEFAULT">DEFAULT</a></span></code></th> 153<td class="colLast"> 154<div class="block">A default <code>DecoderFactory</code> implementation.</div> 155</td> 156</tr> 157</table> 158</li> 159</ul> 160</section> 161<!-- ========== METHOD SUMMARY =========== --> 162<section role="region"> 163<ul class="blockList"> 164<li class="blockList"><a id="method.summary"> 165<!-- --> 166</a> 167<h3>Method Summary</h3> 168<table class="memberSummary"> 169<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption> 170<tr> 171<th class="colFirst" scope="col">Modifier and Type</th> 172<th class="colSecond" scope="col">Method</th> 173<th class="colLast" scope="col">Description</th> 174</tr> 175<tr id="i0" class="altColor"> 176<td class="colFirst"><code><a href="Codec.html" title="class in com.google.android.exoplayer2.transformer">Codec</a></code></td> 177<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createForAudioDecoding(com.google.android.exoplayer2.Format)">createForAudioDecoding</a></span>​(<a href="../Format.html" title="class in com.google.android.exoplayer2">Format</a> format)</code></th> 178<td class="colLast"> 179<div class="block">Returns a <a href="Codec.html" title="class in com.google.android.exoplayer2.transformer"><code>Codec</code></a> for audio decoding.</div> 180</td> 181</tr> 182<tr id="i1" class="rowColor"> 183<td class="colFirst"><code><a href="Codec.html" title="class in com.google.android.exoplayer2.transformer">Codec</a></code></td> 184<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createForVideoDecoding(com.google.android.exoplayer2.Format,android.view.Surface)">createForVideoDecoding</a></span>​(<a href="../Format.html" title="class in com.google.android.exoplayer2">Format</a> format, 185 <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top">Surface</a> outputSurface)</code></th> 186<td class="colLast"> 187<div class="block">Returns a <a href="Codec.html" title="class in com.google.android.exoplayer2.transformer"><code>Codec</code></a> for video decoding.</div> 188</td> 189</tr> 190</table> 191</li> 192</ul> 193</section> 194</li> 195</ul> 196</div> 197<div class="details"> 198<ul class="blockList"> 199<li class="blockList"> 200<!-- ============ FIELD DETAIL =========== --> 201<section role="region"> 202<ul class="blockList"> 203<li class="blockList"><a id="field.detail"> 204<!-- --> 205</a> 206<h3>Field Detail</h3> 207<a id="DEFAULT"> 208<!-- --> 209</a> 210<ul class="blockListLast"> 211<li class="blockList"> 212<h4>DEFAULT</h4> 213<pre>static final <a href="Codec.DecoderFactory.html" title="interface in com.google.android.exoplayer2.transformer">Codec.DecoderFactory</a> DEFAULT</pre> 214<div class="block">A default <code>DecoderFactory</code> implementation.</div> 215</li> 216</ul> 217</li> 218</ul> 219</section> 220<!-- ============ METHOD DETAIL ========== --> 221<section role="region"> 222<ul class="blockList"> 223<li class="blockList"><a id="method.detail"> 224<!-- --> 225</a> 226<h3>Method Detail</h3> 227<a id="createForAudioDecoding(com.google.android.exoplayer2.Format)"> 228<!-- --> 229</a> 230<ul class="blockList"> 231<li class="blockList"> 232<h4>createForAudioDecoding</h4> 233<pre class="methodSignature"><a href="Codec.html" title="class in com.google.android.exoplayer2.transformer">Codec</a> createForAudioDecoding​(<a href="../Format.html" title="class in com.google.android.exoplayer2">Format</a> format) 234 throws <a href="TransformationException.html" title="class in com.google.android.exoplayer2.transformer">TransformationException</a></pre> 235<div class="block">Returns a <a href="Codec.html" title="class in com.google.android.exoplayer2.transformer"><code>Codec</code></a> for audio decoding.</div> 236<dl> 237<dt><span class="paramLabel">Parameters:</span></dt> 238<dd><code>format</code> - The <a href="../Format.html" title="class in com.google.android.exoplayer2"><code>Format</code></a> (of the input data) used to determine the underlying <a href="https://developer.android.com/reference/android/media/MediaCodec.html" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec</code></a> and its configuration values.</dd> 239<dt><span class="returnLabel">Returns:</span></dt> 240<dd>A configured and started decoder wrapper.</dd> 241<dt><span class="throwsLabel">Throws:</span></dt> 242<dd><code><a href="TransformationException.html" title="class in com.google.android.exoplayer2.transformer">TransformationException</a></code> - If no suitable codec can be created.</dd> 243</dl> 244</li> 245</ul> 246<a id="createForVideoDecoding(com.google.android.exoplayer2.Format,android.view.Surface)"> 247<!-- --> 248</a> 249<ul class="blockListLast"> 250<li class="blockList"> 251<h4>createForVideoDecoding</h4> 252<pre class="methodSignature"><a href="Codec.html" title="class in com.google.android.exoplayer2.transformer">Codec</a> createForVideoDecoding​(<a href="../Format.html" title="class in com.google.android.exoplayer2">Format</a> format, 253 <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top">Surface</a> outputSurface) 254 throws <a href="TransformationException.html" title="class in com.google.android.exoplayer2.transformer">TransformationException</a></pre> 255<div class="block">Returns a <a href="Codec.html" title="class in com.google.android.exoplayer2.transformer"><code>Codec</code></a> for video decoding.</div> 256<dl> 257<dt><span class="paramLabel">Parameters:</span></dt> 258<dd><code>format</code> - The <a href="../Format.html" title="class in com.google.android.exoplayer2"><code>Format</code></a> (of the input data) used to determine the underlying <a href="https://developer.android.com/reference/android/media/MediaCodec.html" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec</code></a> and its configuration values.</dd> 259<dd><code>outputSurface</code> - The <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a> to which the decoder output is rendered.</dd> 260<dt><span class="returnLabel">Returns:</span></dt> 261<dd>A configured and started decoder wrapper.</dd> 262<dt><span class="throwsLabel">Throws:</span></dt> 263<dd><code><a href="TransformationException.html" title="class in com.google.android.exoplayer2.transformer">TransformationException</a></code> - If no suitable codec can be created.</dd> 264</dl> 265</li> 266</ul> 267</li> 268</ul> 269</section> 270</li> 271</ul> 272</div> 273</div> 274</main> 275<!-- ========= END OF CLASS DATA ========= --> 276<footer role="contentinfo"> 277<nav role="navigation"> 278<!-- ======= START OF BOTTOM NAVBAR ====== --> 279<div class="bottomNav"><a id="navbar.bottom"> 280<!-- --> 281</a> 282<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 283<a id="navbar.bottom.firstrow"> 284<!-- --> 285</a> 286<ul class="navList" title="Navigation"> 287<li><a href="../../../../../index.html">Overview</a></li> 288<li><a href="package-summary.html">Package</a></li> 289<li class="navBarCell1Rev">Class</li> 290<li><a href="package-tree.html">Tree</a></li> 291<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 292<li><a href="../../../../../index-all.html">Index</a></li> 293<li><a href="../../../../../help-doc.html">Help</a></li> 294</ul> 295</div> 296<div class="subNav"> 297<ul class="navList" id="allclasses_navbar_bottom"> 298<li><a href="../../../../../allclasses.html">All Classes</a></li> 299</ul> 300<div> 301<script type="text/javascript"><!-- 302 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 303 if(window==top) { 304 allClassesLink.style.display = "block"; 305 } 306 else { 307 allClassesLink.style.display = "none"; 308 } 309 //--> 310</script> 311<noscript> 312<div>JavaScript is disabled on your browser.</div> 313</noscript> 314</div> 315<div> 316<ul class="subNavList"> 317<li>Summary: </li> 318<li>Nested | </li> 319<li><a href="#field.summary">Field</a> | </li> 320<li>Constr | </li> 321<li><a href="#method.summary">Method</a></li> 322</ul> 323<ul class="subNavList"> 324<li>Detail: </li> 325<li><a href="#field.detail">Field</a> | </li> 326<li>Constr | </li> 327<li><a href="#method.detail">Method</a></li> 328</ul> 329</div> 330<a id="skip.navbar.bottom"> 331<!-- --> 332</a></div> 333<!-- ======== END OF BOTTOM NAVBAR ======= --> 334</nav> 335</footer> 336</body> 337</html> 338