2021-04-20 16:18:09 +01:00

484 lines
27 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_101) on Wed Dec 14 17:18:31 GMT 2016 -->
<title>MediaCodecUtil (ExoPlayer library)</title>
<meta name="date" content="2016-12-14">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="MediaCodecUtil (ExoPlayer library)";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":41,"i4":9,"i5":9,"i6":9,"i7":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/google/android/exoplayer/MediaCodecTrackRenderer.EventListener.html" title="interface in com.google.android.exoplayer"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/google/android/exoplayer/MediaCodecUtil.html" target="_top">Frames</a></li>
<li><a href="MediaCodecUtil.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.google.android.exoplayer</div>
<h2 title="Class MediaCodecUtil" class="title">Class MediaCodecUtil</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>com.google.android.exoplayer.MediaCodecUtil</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public final class <span class="typeNameLabel">MediaCodecUtil</span>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">A utility class for querying the available codecs.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></span></code>
<div class="block">Thrown when an error occurs querying the device for its underlying media capabilities.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/google/android/exoplayer/DecoderInfo.html" title="class in com.google.android.exoplayer">DecoderInfo</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.html#getDecoderInfo-java.lang.String-boolean-">getDecoderInfo</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;mimeType,
boolean&nbsp;secure)</code>
<div class="block">Get information about the preferred decoder for a given mime type.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../com/google/android/exoplayer/DecoderInfo.html" title="class in com.google.android.exoplayer">DecoderInfo</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.html#getDecoderInfos-java.lang.String-boolean-">getDecoderInfos</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;mimeType,
boolean&nbsp;secure)</code>
<div class="block">Returns all @{link DecoderInfo}s for a given mime type, in the order given by
<a href="https://developer.android.com/reference/android/media/MediaCodecList.html?is-external=true" title="class or interface in android.media"><code>MediaCodecList</code></a>.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/google/android/exoplayer/DecoderInfo.html" title="class in com.google.android.exoplayer">DecoderInfo</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.html#getPassthroughDecoderInfo--">getPassthroughDecoderInfo</a></span>()</code>
<div class="block">Gets information about a decoder suitable for audio passthrough.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.html#isH264ProfileSupported-int-int-">isH264ProfileSupported</a></span>(int&nbsp;profile,
int&nbsp;level)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">Prefer <a href="../../../../com/google/android/exoplayer/MediaCodecUtil.html#getDecoderInfos-java.lang.String-boolean-"><code>getDecoderInfos(String, boolean)</code></a> for new code.</span></div>
</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.html#isSizeAndRateSupportedV21-java.lang.String-boolean-int-int-double-">isSizeAndRateSupportedV21</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;mimeType,
boolean&nbsp;secure,
int&nbsp;width,
int&nbsp;height,
double&nbsp;frameRate)</code>
<div class="block">Tests whether the device advertises it can decode video of a given type at a specified
width, height, and frame rate.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.html#isSizeSupportedV21-java.lang.String-boolean-int-int-">isSizeSupportedV21</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;mimeType,
boolean&nbsp;secure,
int&nbsp;width,
int&nbsp;height)</code>
<div class="block">Tests whether the device advertises it can decode video of a given type at a specified width
and height.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.html#maxH264DecodableFrameSize--">maxH264DecodableFrameSize</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.html#warmCodec-java.lang.String-boolean-">warmCodec</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;mimeType,
boolean&nbsp;secure)</code>
<div class="block">Optional call to warm the codec cache for a given mime type.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="warmCodec-java.lang.String-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>warmCodec</h4>
<pre>public static&nbsp;void&nbsp;warmCodec(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;mimeType,
boolean&nbsp;secure)</pre>
<div class="block">Optional call to warm the codec cache for a given mime type.
<p>
Calling this method may speed up subsequent calls to <a href="../../../../com/google/android/exoplayer/MediaCodecUtil.html#getDecoderInfo-java.lang.String-boolean-"><code>getDecoderInfo(String, boolean)</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mimeType</code> - The mime type.</dd>
<dd><code>secure</code> - Whether the decoder is required to support secure decryption. Always pass false
unless secure decryption really is required.</dd>
</dl>
</li>
</ul>
<a name="getPassthroughDecoderInfo--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPassthroughDecoderInfo</h4>
<pre>public static&nbsp;<a href="../../../../com/google/android/exoplayer/DecoderInfo.html" title="class in com.google.android.exoplayer">DecoderInfo</a>&nbsp;getPassthroughDecoderInfo()</pre>
<div class="block">Gets information about a decoder suitable for audio passthrough.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A <a href="../../../../com/google/android/exoplayer/DecoderInfo.html" title="class in com.google.android.exoplayer"><code>DecoderInfo</code></a> describing the decoder, or null if no suitable decoder exists.</dd>
</dl>
</li>
</ul>
<a name="getDecoderInfo-java.lang.String-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDecoderInfo</h4>
<pre>public static&nbsp;<a href="../../../../com/google/android/exoplayer/DecoderInfo.html" title="class in com.google.android.exoplayer">DecoderInfo</a>&nbsp;getDecoderInfo(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;mimeType,
boolean&nbsp;secure)
throws <a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></pre>
<div class="block">Get information about the preferred decoder for a given mime type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mimeType</code> - The mime type.</dd>
<dd><code>secure</code> - Whether the decoder is required to support secure decryption. Always pass false
unless secure decryption really is required.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A <a href="../../../../com/google/android/exoplayer/DecoderInfo.html" title="class in com.google.android.exoplayer"><code>DecoderInfo</code></a> describing the decoder, or null if no suitable decoder exists.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></code></dd>
</dl>
</li>
</ul>
<a name="getDecoderInfos-java.lang.String-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDecoderInfos</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../com/google/android/exoplayer/DecoderInfo.html" title="class in com.google.android.exoplayer">DecoderInfo</a>&gt;&nbsp;getDecoderInfos(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;mimeType,
boolean&nbsp;secure)
throws <a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></pre>
<div class="block">Returns all @{link DecoderInfo}s for a given mime type, in the order given by
<a href="https://developer.android.com/reference/android/media/MediaCodecList.html?is-external=true" title="class or interface in android.media"><code>MediaCodecList</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mimeType</code> - The mime type.</dd>
<dd><code>secure</code> - Whether the decoders are required to support secure decryption. Always pass false
unless secure decryption really is required.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A list of all @{link DecoderInfo}s for the given mime type. May be empty if no suitable
decoders exist.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></code></dd>
</dl>
</li>
</ul>
<a name="isSizeSupportedV21-java.lang.String-boolean-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSizeSupportedV21</h4>
<pre>public static&nbsp;boolean&nbsp;isSizeSupportedV21(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;mimeType,
boolean&nbsp;secure,
int&nbsp;width,
int&nbsp;height)
throws <a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></pre>
<div class="block">Tests whether the device advertises it can decode video of a given type at a specified width
and height.
<p>
Must not be called if the device SDK version is less than 21.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mimeType</code> - The mime type.</dd>
<dd><code>secure</code> - Whether the decoder is required to support secure decryption. Always pass false
unless secure decryption really is required.</dd>
<dd><code>width</code> - Width in pixels.</dd>
<dd><code>height</code> - Height in pixels.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Whether the decoder advertises support of the given size.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></code></dd>
</dl>
</li>
</ul>
<a name="isSizeAndRateSupportedV21-java.lang.String-boolean-int-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSizeAndRateSupportedV21</h4>
<pre>public static&nbsp;boolean&nbsp;isSizeAndRateSupportedV21(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;mimeType,
boolean&nbsp;secure,
int&nbsp;width,
int&nbsp;height,
double&nbsp;frameRate)
throws <a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></pre>
<div class="block">Tests whether the device advertises it can decode video of a given type at a specified
width, height, and frame rate.
<p>
Must not be called if the device SDK version is less than 21.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mimeType</code> - The mime type.</dd>
<dd><code>secure</code> - Whether the decoder is required to support secure decryption. Always pass false
unless secure decryption really is required.</dd>
<dd><code>width</code> - Width in pixels.</dd>
<dd><code>height</code> - Height in pixels.</dd>
<dd><code>frameRate</code> - Frame rate in frames per second.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Whether the decoder advertises support of the given size and frame rate.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></code></dd>
</dl>
</li>
</ul>
<a name="isH264ProfileSupported-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isH264ProfileSupported</h4>
<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static&nbsp;boolean&nbsp;isH264ProfileSupported(int&nbsp;profile,
int&nbsp;level)
throws <a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">Prefer <a href="../../../../com/google/android/exoplayer/MediaCodecUtil.html#getDecoderInfos-java.lang.String-boolean-"><code>getDecoderInfos(String, boolean)</code></a> for new code.</span></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>profile</code> - An AVC profile constant from <a href="https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel.html?is-external=true" title="class or interface in android.media"><code>MediaCodecInfo.CodecProfileLevel</code></a>.</dd>
<dd><code>level</code> - An AVC profile level from <a href="https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel.html?is-external=true" title="class or interface in android.media"><code>MediaCodecInfo.CodecProfileLevel</code></a>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Whether the specified profile is supported at the specified level.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></code></dd>
</dl>
</li>
</ul>
<a name="maxH264DecodableFrameSize--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>maxH264DecodableFrameSize</h4>
<pre>public static&nbsp;int&nbsp;maxH264DecodableFrameSize()
throws <a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the maximum frame size for an H264 stream that can be decoded on the device.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer">MediaCodecUtil.DecoderQueryException</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/google/android/exoplayer/MediaCodecTrackRenderer.EventListener.html" title="interface in com.google.android.exoplayer"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/google/android/exoplayer/MediaCodecUtil.DecoderQueryException.html" title="class in com.google.android.exoplayer"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/google/android/exoplayer/MediaCodecUtil.html" target="_top">Frames</a></li>
<li><a href="MediaCodecUtil.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>