1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "//www.w3.org/TR/html4/strict.dtd">
2<HTML style="overflow:auto;">
3<HEAD>
4<meta name="generator" content="JDiff v1.1.0">
5<!-- Generated by the JDiff Javadoc doclet -->
6<!-- (http://www.jdiff.org) -->
7<meta name="description" content="JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared.">
8<meta name="keywords" content="diff, jdiff, javadiff, java diff, java difference, API difference, difference between two APIs, API diff, Javadoc, doclet">
9<TITLE>
10android.media.MediaCodec
11</TITLE>
12<link href="../../../../assets/android-developer-docs.css" rel="stylesheet" type="text/css" />
13<link href="../stylesheet-jdiff.css" rel="stylesheet" type="text/css" />
14<noscript>
15<style type="text/css">
16body{overflow:auto;}
17#body-content{position:relative; top:0;}
18#doc-content{overflow:visible;border-left:3px solid #666;}
19#side-nav{padding:0;}
20#side-nav .toggle-list ul {display:block;}
21#resize-packages-nav{border-bottom:3px solid #666;}
22</style>
23</noscript>
24<style type="text/css">
25</style>
26</HEAD>
27<BODY>
28<!-- Start of nav bar -->
29<a name="top"></a>
30<div id="header" style="margin-bottom:0;padding-bottom:0;">
31<div id="headerLeft">
32<a href="../../../../index.html" tabindex="-1" target="_top"><img src="../../../../assets/images/bg_logo.png" alt="Android Developers" /></a>
33</div>
34  <div id="headerRight">
35  <div id="headerLinks">
36<!-- <img src="/assets/images/icon_world.jpg" alt="" /> -->
37<span class="text">
38<!-- &nbsp;<a href="#">English</a> | -->
39<nobr><a href="//developer.android.com" target="_top">Android Developers</a> | <a href="//www.android.com" target="_top">Android.com</a></nobr>
40</span>
41</div>
42  <div class="and-diff-id" style="margin-top:6px;margin-right:8px;">
43    <table class="diffspectable">
44      <tr>
45        <td colspan="2" class="diffspechead">API Diff Specification</td>
46      </tr>
47      <tr>
48        <td class="diffspec" style="padding-top:.25em">To Level:</td>
49        <td class="diffvaluenew" style="padding-top:.25em">21</td>
50      </tr>
51      <tr>
52        <td class="diffspec">From Level:</td>
53        <td class="diffvalueold">20</td>
54      </tr>
55      <tr>
56        <td class="diffspec">Generated</td>
57        <td class="diffvalue">2014.10.15 15:01</td>
58      </tr>
59    </table>
60    </div><!-- End and-diff-id -->
61  <div class="and-diff-id" style="margin-right:8px;">
62    <table class="diffspectable">
63      <tr>
64        <td class="diffspec" colspan="2"><a href="jdiff_statistics.html">Statistics</a>
65      </tr>
66    </table>
67  </div> <!-- End and-diff-id -->
68  </div> <!-- End headerRight -->
69  </div> <!-- End header -->
70<div id="body-content" xstyle="padding:12px;padding-right:18px;">
71<div id="doc-content" style="position:relative;">
72<div id="mainBodyFluid">
73<H2>
74Class android.media.<A HREF="../../../../reference/android/media/MediaCodec.html" target="_top"><font size="+2"><code>MediaCodec</code></font></A>
75</H2>
76<a NAME="constructors"></a>
77<a NAME="methods"></a>
78<p>
79<a NAME="Added"></a>
80<TABLE summary="Added Methods" WIDTH="100%">
81<TR>
82  <TH VALIGN="TOP" COLSPAN=2>Added Methods</FONT></TD>
83</TH>
84<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
85  <TD VALIGN="TOP" WIDTH="25%">
86  <A NAME="android.media.MediaCodec.getInputBuffer_added(int)"></A>
87  <nobr><code>ByteBuffer</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#getInputBuffer(int)" target="_top"><code>getInputBuffer</code></A>(<code>int</code>)</nobr>
88  </TD>
89  <TD>&nbsp;</TD>
90</TR>
91<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
92  <TD VALIGN="TOP" WIDTH="25%">
93  <A NAME="android.media.MediaCodec.getInputFormat_added()"></A>
94  <nobr><code>MediaFormat</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#getInputFormat()" target="_top"><code>getInputFormat</code></A>()</nobr>
95  </TD>
96  <TD>&nbsp;</TD>
97</TR>
98<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
99  <TD VALIGN="TOP" WIDTH="25%">
100  <A NAME="android.media.MediaCodec.getInputImage_added(int)"></A>
101  <nobr><code>Image</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#getInputImage(int)" target="_top"><code>getInputImage</code></A>(<code>int</code>)</nobr>
102  </TD>
103  <TD>&nbsp;</TD>
104</TR>
105<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
106  <TD VALIGN="TOP" WIDTH="25%">
107  <A NAME="android.media.MediaCodec.getOutputBuffer_added(int)"></A>
108  <nobr><code>ByteBuffer</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#getOutputBuffer(int)" target="_top"><code>getOutputBuffer</code></A>(<code>int</code>)</nobr>
109  </TD>
110  <TD>&nbsp;</TD>
111</TR>
112<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
113  <TD VALIGN="TOP" WIDTH="25%">
114  <A NAME="android.media.MediaCodec.getOutputFormat_added(int)"></A>
115  <nobr><code>MediaFormat</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#getOutputFormat(int)" target="_top"><code>getOutputFormat</code></A>(<code>int</code>)</nobr>
116  </TD>
117  <TD>&nbsp;</TD>
118</TR>
119<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
120  <TD VALIGN="TOP" WIDTH="25%">
121  <A NAME="android.media.MediaCodec.getOutputImage_added(int)"></A>
122  <nobr><code>Image</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#getOutputImage(int)" target="_top"><code>getOutputImage</code></A>(<code>int</code>)</nobr>
123  </TD>
124  <TD>&nbsp;</TD>
125</TR>
126<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
127  <TD VALIGN="TOP" WIDTH="25%">
128  <A NAME="android.media.MediaCodec.releaseOutputBuffer_added(int, long)"></A>
129  <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#releaseOutputBuffer(int, long)" target="_top"><code>releaseOutputBuffer</code></A>(<code>int,</nobr> long<nobr><nobr></code>)</nobr>
130  </TD>
131  <TD>&nbsp;</TD>
132</TR>
133<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
134  <TD VALIGN="TOP" WIDTH="25%">
135  <A NAME="android.media.MediaCodec.reset_added()"></A>
136  <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#reset()" target="_top"><code>reset</code></A>()</nobr>
137  </TD>
138  <TD>&nbsp;</TD>
139</TR>
140<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
141  <TD VALIGN="TOP" WIDTH="25%">
142  <A NAME="android.media.MediaCodec.setCallback_added(android.media.MediaCodec.Callback)"></A>
143  <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#setCallback(android.media.MediaCodec.Callback)" target="_top"><code>setCallback</code></A>(<code>Callback</code>)</nobr>
144  </TD>
145  <TD>&nbsp;</TD>
146</TR>
147</TABLE>
148&nbsp;
149<p>
150<a NAME="Changed"></a>
151<TABLE summary="Changed Methods" WIDTH="100%">
152<TR>
153  <TH VALIGN="TOP" COLSPAN=3>Changed Methods</FONT></TD>
154</TH>
155<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
156  <TD VALIGN="TOP" WIDTH="25%">
157  <A NAME="android.media.MediaCodec.createByCodecName_changed(java.lang.String)"></A>
158  <nobr><code>MediaCodec</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#createByCodecName(java.lang.String)" target="_top"><code>createByCodecName</code></A>(<code>String</code>)  </nobr>
159  </TD>
160  <TD VALIGN="TOP" WIDTH="30%">
161Change in exceptions thrown from no exceptions to <code>java.io.IOException</code>.<br>
162  </TD>
163  <TD>&nbsp;</TD>
164</TR>
165<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
166  <TD VALIGN="TOP" WIDTH="25%">
167  <A NAME="android.media.MediaCodec.createDecoderByType_changed(java.lang.String)"></A>
168  <nobr><code>MediaCodec</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#createDecoderByType(java.lang.String)" target="_top"><code>createDecoderByType</code></A>(<code>String</code>)  </nobr>
169  </TD>
170  <TD VALIGN="TOP" WIDTH="30%">
171Change in exceptions thrown from no exceptions to <code>java.io.IOException</code>.<br>
172  </TD>
173  <TD>&nbsp;</TD>
174</TR>
175<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
176  <TD VALIGN="TOP" WIDTH="25%">
177  <A NAME="android.media.MediaCodec.createEncoderByType_changed(java.lang.String)"></A>
178  <nobr><code>MediaCodec</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#createEncoderByType(java.lang.String)" target="_top"><code>createEncoderByType</code></A>(<code>String</code>)  </nobr>
179  </TD>
180  <TD VALIGN="TOP" WIDTH="30%">
181Change in exceptions thrown from no exceptions to <code>java.io.IOException</code>.<br>
182  </TD>
183  <TD>&nbsp;</TD>
184</TR>
185<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
186  <TD VALIGN="TOP" WIDTH="25%">
187  <A NAME="android.media.MediaCodec.getInputBuffers_changed()"></A>
188  <nobr><code>ByteBuffer[]</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#getInputBuffers()" target="_top"><code>getInputBuffers</code></A>()  </nobr>
189  </TD>
190  <TD VALIGN="TOP" WIDTH="30%">
191<b>Now deprecated</b>.<br>
192  </TD>
193  <TD>&nbsp;</TD>
194</TR>
195<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
196  <TD VALIGN="TOP" WIDTH="25%">
197  <A NAME="android.media.MediaCodec.getOutputBuffers_changed()"></A>
198  <nobr><code>ByteBuffer[]</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#getOutputBuffers()" target="_top"><code>getOutputBuffers</code></A>()  </nobr>
199  </TD>
200  <TD VALIGN="TOP" WIDTH="30%">
201<b>Now deprecated</b>.<br>
202  </TD>
203  <TD>&nbsp;</TD>
204</TR>
205</TABLE>
206&nbsp;
207<a NAME="fields"></a>
208<p>
209<a NAME="Added"></a>
210<TABLE summary="Added Fields" WIDTH="100%">
211<TR>
212  <TH VALIGN="TOP" COLSPAN=2>Added Fields</FONT></TD>
213</TH>
214<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
215  <TD VALIGN="TOP" WIDTH="25%">
216  <A NAME="android.media.MediaCodec.BUFFER_FLAG_KEY_FRAME"></A>
217  <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#BUFFER_FLAG_KEY_FRAME" target="_top"><code>BUFFER_FLAG_KEY_FRAME</code></A></nobr>
218  </TD>
219  <TD>&nbsp;</TD>
220</TR>
221</TABLE>
222&nbsp;
223<p>
224<a NAME="Changed"></a>
225<TABLE summary="Changed Fields" WIDTH="100%">
226<TR>
227  <TH VALIGN="TOP" COLSPAN=3>Changed Fields</FONT></TD>
228</TH>
229<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
230  <TD VALIGN="TOP" WIDTH="25%">
231  <A NAME="android.media.MediaCodec.BUFFER_FLAG_SYNC_FRAME"></A>
232  <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#BUFFER_FLAG_SYNC_FRAME" target="_top"><code>BUFFER_FLAG_SYNC_FRAME</code></font></A></nobr>  </TD>
233  <TD VALIGN="TOP" WIDTH="30%">
234<b>Now deprecated</b>.<br>
235  </TD>
236  <TD>&nbsp;</TD>
237</TR>
238<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
239  <TD VALIGN="TOP" WIDTH="25%">
240  <A NAME="android.media.MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED"></A>
241  <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/media/MediaCodec.html#INFO_OUTPUT_BUFFERS_CHANGED" target="_top"><code>INFO_OUTPUT_BUFFERS_CHANGED</code></font></A></nobr>  </TD>
242  <TD VALIGN="TOP" WIDTH="30%">
243<b>Now deprecated</b>.<br>
244  </TD>
245  <TD>&nbsp;</TD>
246</TR>
247</TABLE>
248&nbsp;
249      </div>
250      <div id="footer">
251        <div id="copyright">
252        Except as noted, this content is licensed under
253        <a href="//creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5</a>.
254        For details and restrictions, see the <a href="/license.html">Content License</a>.
255        </div>
256      <div id="footerlinks">
257      <p>
258        <a href="//www.android.com/terms.html">Site Terms of Service</a> -
259        <a href="//www.android.com/privacy.html">Privacy Policy</a> -
260        <a href="//www.android.com/branding.html">Brand Guidelines</a>
261      </p>
262    </div>
263    </div> <!-- end footer -->
264    </div><!-- end doc-content -->
265    </div> <!-- end body-content -->
266<script src="//www.google-analytics.com/ga.js" type="text/javascript">
267</script>
268<script type="text/javascript">
269  try {
270    var pageTracker = _gat._getTracker("UA-5831155-1");
271    pageTracker._setAllowAnchor(true);
272    pageTracker._initData();
273    pageTracker._trackPageview();
274  } catch(e) {}
275</script>
276</BODY>
277</HTML>
278