public class MediaVideoDecoder extends MediaDecoder
mState, STATE_INITIALIZED, STATE_PAUSED, STATE_PLAYING, STATE_PREPARED, STATE_UNINITIALIZED, STATE_WAIT, TAG| Constructor and Description |
|---|
MediaVideoDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected android.media.MediaCodec |
createCodec(android.media.MediaExtractor media_extractor,
int track_index,
android.media.MediaFormat format) |
protected android.view.Surface |
getOutputSurface() |
int |
getRotation() |
int |
getVideoHeight() |
int |
getVideoWidth() |
protected boolean |
handleOutput(java.nio.ByteBuffer buffer,
int offset,
int size,
long presentationTimeUs)
process decoded data
|
protected int |
handlePrepare(android.media.MediaExtractor media_extractor) |
void |
setSurface(android.view.Surface surface) |
protected void |
updateMovieInfo(android.media.MediaMetadataRetriever metadata) |
adjustPresentationTime, callErrorHandler, callOnPrepared, callOnRelease, callOnStart, callOnStop, getBitRate, getCallback, getDuration, handleInput, internal_HandleInput, internal_handleOutput, isPrepared, isRunning, pause, prepare, release, restart, seek, selectTrack, setCallback, setDataSource, setDataSource, setDataSource, setDataSource, setDataSource, setDataSource, start, stoppublic int getVideoWidth()
public int getVideoHeight()
public int getRotation()
protected int handlePrepare(android.media.MediaExtractor media_extractor)
handlePrepare in class MediaDecoderprotected android.media.MediaCodec createCodec(android.media.MediaExtractor media_extractor,
int track_index,
android.media.MediaFormat format)
throws java.io.IOException
createCodec in class MediaDecoderjava.io.IOExceptionpublic void setSurface(android.view.Surface surface)
protected android.view.Surface getOutputSurface()
getOutputSurface in class MediaDecoderprotected boolean handleOutput(java.nio.ByteBuffer buffer,
int offset,
int size,
long presentationTimeUs)
MediaDecoderhandleOutput in class MediaDecoderprotected void updateMovieInfo(android.media.MediaMetadataRetriever metadata)
updateMovieInfo in class MediaDecoder