diff options
author | Chong Zhang <chz@google.com> | 2014-07-08 18:49:21 -0700 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2014-07-11 11:53:03 -0700 |
commit | 8d5e556b2b76278000a506382fdf594c071e1fbd (patch) | |
tree | ac94878f83134d8eddd36f00ee4b1f4d4dd5994b /api | |
parent | ca249dc6342a7c6678ca3b7f1dabe0e32d3d902e (diff) | |
download | frameworks_base-8d5e556b2b76278000a506382fdf594c071e1fbd.zip frameworks_base-8d5e556b2b76278000a506382fdf594c071e1fbd.tar.gz frameworks_base-8d5e556b2b76278000a506382fdf594c071e1fbd.tar.bz2 |
MediaCodec async callbacks
Bug: 11990118
Change-Id: I210d4302e1fd7e1a48d2228fd3f4f20c16b18a75
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index c5fc314..1450496 100644 --- a/api/current.txt +++ b/api/current.txt @@ -14289,6 +14289,7 @@ package android.media { method public final void release(); method public final void releaseOutputBuffer(int, boolean); method public final void releaseOutputBuffer(int, long); + method public void setCallback(android.media.MediaCodec.Callback); method public final void setParameters(android.os.Bundle); method public final void setVideoScalingMode(int); method public final void signalEndOfInputStream(); @@ -14319,6 +14320,14 @@ package android.media { field public int size; } + public static abstract class MediaCodec.Callback { + ctor public MediaCodec.Callback(); + method public abstract void onError(android.media.MediaCodec, int, int); + method public abstract void onInputBufferAvailable(android.media.MediaCodec, int); + method public abstract void onOutputBufferAvailable(android.media.MediaCodec, int, android.media.MediaCodec.BufferInfo); + method public abstract void onOutputFormatChanged(android.media.MediaCodec, android.media.MediaFormat); + } + public static final class MediaCodec.CodecException extends java.lang.IllegalStateException { ctor public MediaCodec.CodecException(int, int, java.lang.String); method public int getErrorCode(); |