media/docs/doc/reference/com/google/android/exoplayer2/decoder/CryptoInfo.html
2021-04-21 11:00:57 +01:00

585 lines
28 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><!-- 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 -->
<title>CryptoInfo (ExoPlayer library)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../jquery/jquery-1.10.2.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="CryptoInfo (ExoPlayer library)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":42,"i2":10,"i3":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../";loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="fixedNav">
<!-- ========= 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/exoplayer2/decoder/Buffer.html" title="class in com.google.android.exoplayer2.decoder"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/google/android/exoplayer2/decoder/Decoder.html" title="interface in com.google.android.exoplayer2.decoder"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/google/android/exoplayer2/decoder/CryptoInfo.html" target="_top">Frames</a></li>
<li><a href="CryptoInfo.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>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="../../../../../com/google/android/exoplayer2/decoder/package-summary.html">com.google.android.exoplayer2.decoder</a></div>
<h2 title="Class CryptoInfo" class="title">Class CryptoInfo</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>com.google.android.exoplayer2.decoder.CryptoInfo</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public final class <span class="typeNameLabel">CryptoInfo</span>
extends <a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></pre>
<div class="block">Compatibility wrapper for <a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo</code></a>.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#clearBlocks">clearBlocks</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#encryptedBlocks">encryptedBlocks</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#iv">iv</a></span></code></th>
<td class="colLast">
<div class="block">The 16 byte initialization vector.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>byte[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#key">key</a></span></code></th>
<td class="colLast">
<div class="block">The 16 byte key id.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#mode">mode</a></span></code></th>
<td class="colLast">
<div class="block">The type of encryption that has been applied.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#numBytesOfClearData">numBytesOfClearData</a></span></code></th>
<td class="colLast">
<div class="block">The number of leading unencrypted bytes in each sub-sample.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#numBytesOfEncryptedData">numBytesOfEncryptedData</a></span></code></th>
<td class="colLast">
<div class="block">The number of trailing encrypted bytes in each sub-sample.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#numSubSamples">numSubSamples</a></span></code></th>
<td class="colLast">
<div class="block">The number of subSamples that make up the buffer's contents.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#CryptoInfo--">CryptoInfo</a></span>()</code></th>
<td class="colLast">&nbsp;</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" 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="t2" class="tableTab"><span><a href="javascript:show(2);">Instance 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="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html" title="class or interface in android.media" class="externalLink" target="_top">MediaCodec.CryptoInfo</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#getFrameworkCryptoInfo--">getFrameworkCryptoInfo</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns an equivalent <a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo</code></a> instance.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html" title="class or interface in android.media" class="externalLink" target="_top">MediaCodec.CryptoInfo</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#getFrameworkCryptoInfoV16--">getFrameworkCryptoInfoV16</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#getFrameworkCryptoInfo--"><code>getFrameworkCryptoInfo()</code></a>.</div>
</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#increaseClearDataFirstSubSampleBy-int-">increaseClearDataFirstSubSampleBy</a></span>&#8203;(int&nbsp;count)</code></th>
<td class="colLast">
<div class="block">Increases the number of clear data for the first sub sample by <code>count</code>.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#set-int-int:A-int:A-byte:A-byte:A-int-int-int-">set</a></span>&#8203;(int&nbsp;numSubSamples,
int[]&nbsp;numBytesOfClearData,
int[]&nbsp;numBytesOfEncryptedData,
byte[]&nbsp;key,
byte[]&nbsp;iv,
int&nbsp;mode,
int&nbsp;encryptedBlocks,
int&nbsp;clearBlocks)</code></th>
<td class="colLast">&nbsp;</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="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></h3>
<code><a href="https://developer.android.com/reference/java/lang/Object.html#clone--" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang" class="externalLink" target="_top">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="iv">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>iv</h4>
<pre>@Nullable
public&nbsp;byte[] iv</pre>
<div class="block">The 16 byte initialization vector. If the initialization vector of the content is shorter than
16 bytes, 0 byte padding is appended to extend the vector to the required 16 byte length.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html#iv" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo.iv</code></a></dd>
</dl>
</li>
</ul>
<a name="key">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>key</h4>
<pre>@Nullable
public&nbsp;byte[] key</pre>
<div class="block">The 16 byte key id.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html#key" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo.key</code></a></dd>
</dl>
</li>
</ul>
<a name="mode">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mode</h4>
<pre><a href="../../../../../com/google/android/exoplayer2/C.CryptoMode.html" title="annotation in com.google.android.exoplayer2">@CryptoMode</a>
public&nbsp;int mode</pre>
<div class="block">The type of encryption that has been applied. Must be one of the <a href="../../../../../com/google/android/exoplayer2/C.CryptoMode.html" title="annotation in com.google.android.exoplayer2"><code>C.CryptoMode</code></a> values.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html#mode" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo.mode</code></a></dd>
</dl>
</li>
</ul>
<a name="numBytesOfClearData">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>numBytesOfClearData</h4>
<pre>@Nullable
public&nbsp;int[] numBytesOfClearData</pre>
<div class="block">The number of leading unencrypted bytes in each sub-sample. If null, all bytes are treated as
encrypted and <a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#numBytesOfEncryptedData"><code>numBytesOfEncryptedData</code></a> must be specified.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html#numBytesOfClearData" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo.numBytesOfClearData</code></a></dd>
</dl>
</li>
</ul>
<a name="numBytesOfEncryptedData">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>numBytesOfEncryptedData</h4>
<pre>@Nullable
public&nbsp;int[] numBytesOfEncryptedData</pre>
<div class="block">The number of trailing encrypted bytes in each sub-sample. If null, all bytes are treated as
clear and <a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#numBytesOfClearData"><code>numBytesOfClearData</code></a> must be specified.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html#numBytesOfEncryptedData" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo.numBytesOfEncryptedData</code></a></dd>
</dl>
</li>
</ul>
<a name="numSubSamples">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>numSubSamples</h4>
<pre>public&nbsp;int numSubSamples</pre>
<div class="block">The number of subSamples that make up the buffer's contents.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html#numSubSamples" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo.numSubSamples</code></a></dd>
</dl>
</li>
</ul>
<a name="encryptedBlocks">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>encryptedBlocks</h4>
<pre>public&nbsp;int encryptedBlocks</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.Pattern.html" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo.Pattern</code></a></dd>
</dl>
</li>
</ul>
<a name="clearBlocks">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>clearBlocks</h4>
<pre>public&nbsp;int clearBlocks</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.Pattern.html" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo.Pattern</code></a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="CryptoInfo--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>CryptoInfo</h4>
<pre>public&nbsp;CryptoInfo()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="set-int-int:A-int:A-byte:A-byte:A-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;void&nbsp;set&#8203;(int&nbsp;numSubSamples,
int[]&nbsp;numBytesOfClearData,
int[]&nbsp;numBytesOfEncryptedData,
byte[]&nbsp;key,
byte[]&nbsp;iv,
<a href="../../../../../com/google/android/exoplayer2/C.CryptoMode.html" title="annotation in com.google.android.exoplayer2">@CryptoMode</a>
int&nbsp;mode,
int&nbsp;encryptedBlocks,
int&nbsp;clearBlocks)</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html#set-int-int:A-int:A-byte:A-byte:A-int-" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo.set(int, int[], int[], byte[], byte[], int)</code></a></dd>
</dl>
</li>
</ul>
<a name="getFrameworkCryptoInfo--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFrameworkCryptoInfo</h4>
<pre>public&nbsp;<a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html" title="class or interface in android.media" class="externalLink" target="_top">MediaCodec.CryptoInfo</a>&nbsp;getFrameworkCryptoInfo()</pre>
<div class="block">Returns an equivalent <a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo</code></a> instance.
<p>Successive calls to this method on a single <a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html" title="class in com.google.android.exoplayer2.decoder"><code>CryptoInfo</code></a> will return the same
instance. Changes to the <a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html" title="class in com.google.android.exoplayer2.decoder"><code>CryptoInfo</code></a> will be reflected in the returned object. The
return object should not be modified directly.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The equivalent <a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html" title="class or interface in android.media" class="externalLink" target="_top"><code>MediaCodec.CryptoInfo</code></a> instance.</dd>
</dl>
</li>
</ul>
<a name="getFrameworkCryptoInfoV16--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFrameworkCryptoInfoV16</h4>
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
public&nbsp;<a href="https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html" title="class or interface in android.media" class="externalLink" target="_top">MediaCodec.CryptoInfo</a>&nbsp;getFrameworkCryptoInfoV16()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#getFrameworkCryptoInfo--"><code>getFrameworkCryptoInfo()</code></a>.</div>
</div>
</li>
</ul>
<a name="increaseClearDataFirstSubSampleBy-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>increaseClearDataFirstSubSampleBy</h4>
<pre>public&nbsp;void&nbsp;increaseClearDataFirstSubSampleBy&#8203;(int&nbsp;count)</pre>
<div class="block">Increases the number of clear data for the first sub sample by <code>count</code>.
<p>If <code>count</code> is 0, this method is a no-op. Otherwise, it adds <code>count</code> to <a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#numBytesOfClearData"><code>numBytesOfClearData</code></a>[0].
<p>If <a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#numBytesOfClearData"><code>numBytesOfClearData</code></a> is null (which is permitted), this method will instantiate
it to a new <code>int[1]</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>count</code> - The number of bytes to be added to the first subSample of <a href="../../../../../com/google/android/exoplayer2/decoder/CryptoInfo.html#numBytesOfClearData"><code>numBytesOfClearData</code></a>.</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/exoplayer2/decoder/Buffer.html" title="class in com.google.android.exoplayer2.decoder"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/google/android/exoplayer2/decoder/Decoder.html" title="interface in com.google.android.exoplayer2.decoder"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/google/android/exoplayer2/decoder/CryptoInfo.html" target="_top">Frames</a></li>
<li><a href="CryptoInfo.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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&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>