Searched refs:mediaCodec (Results 1 – 2 of 2) sorted by relevance
814 MediaCodec mediaCodec = null; in testDecodeAfterFlush()824 mediaCodec = MediaCodec.createDecoderByType(mimeType); in testDecodeAfterFlush()825 mediaCodec.configure(mediaFormat, outputSurface.getSurface(), in testDecodeAfterFlush()827 mediaCodec.start(); in testDecodeAfterFlush()829 if (!runDecodeTillFirstOutput(mediaCodec, mediaExtractor)) { in testDecodeAfterFlush()835 mediaCodec.flush(); in testDecodeAfterFlush()837 completed.set(runDecodeTillFirstOutput(mediaCodec, mediaExtractor)); in testDecodeAfterFlush()841 if (mediaCodec != null) { in testDecodeAfterFlush()842 mediaCodec.stop(); in testDecodeAfterFlush()843 mediaCodec.release(); in testDecodeAfterFlush()[all …]
430 public void onInputBufferAvailable(MediaCodec mediaCodec, int ix) { in onInputBufferAvailable() argument431 if (mediaCodec == mDecoder) { in onInputBufferAvailable()434 } else if (mediaCodec == mEncoder) { in onInputBufferAvailable()443 fail("received input buffer on " + mediaCodec.getName()); in onInputBufferAvailable()449 MediaCodec mediaCodec, int ix, BufferInfo info) { in onOutputBufferAvailable() argument450 if (mediaCodec == mDecoder) { in onOutputBufferAvailable()479 } else if (mediaCodec == mEncoder) { in onOutputBufferAvailable()482 fail("received output buffer on " + mediaCodec.getName()); in onOutputBufferAvailable()514 public void onError(MediaCodec mediaCodec, MediaCodec.CodecException e) { in onError() argument515 fail("received error on " + mediaCodec.getName() + ": " + e); in onError()[all …]