Home
last modified time | relevance | path

Searched refs:mDecoder (Results 1 – 11 of 11) sorted by relevance

/cts/tests/video/src/android/video/cts/
DCodecDecoderPerformanceTestBase.java67 int inputBufIndex = mDecoder.dequeueInputBuffer(Q_DEQ_TIMEOUT_US); in doWork()
72 int outputBufIndex = mDecoder.dequeueOutputBuffer(info, Q_DEQ_TIMEOUT_US); in doWork()
87 mDecoder = MediaCodec.createByCodecName(mDecoderName); in decode()
88 mDecoder.configure(mDecoderFormat, mSurface, null, 0); in decode()
89 mDecoder.start(); in decode()
93 mDecoder.stop(); in decode()
94 mDecoder.release(); in decode()
95 mDecoder = null; in decode()
104 if (mDecoder != null) { in finalize()
105 mDecoder.release(); in finalize()
[all …]
DCodecEncoderPerformanceTestBase.java137 int inputBufIndex = mDecoder.dequeueInputBuffer(Q_DEQ_TIMEOUT_US); in doWork()
144 int outputBufIndex = mDecoder.dequeueOutputBuffer(info, Q_DEQ_TIMEOUT_US); in doWork()
173 mDecoder = MediaCodec.createByCodecName(mDecoderName); in encode()
179 mDecoder.configure(mDecoderFormat, mSurface, null, 0); in encode()
180 mDecoder.start(); in encode()
188 mDecoder.stop(); in encode()
189 mDecoder.release(); in encode()
191 mDecoder = null; in encode()
198 if (mDecoder != null) { in finalize()
199 mDecoder.release(); in finalize()
[all …]
DCodecPerformanceTestBase.java82 MediaCodec mDecoder; field in CodecPerformanceTestBase
321 ByteBuffer dstBuf = mDecoder.getInputBuffer(bufferIndex); in enqueueDecoderInput()
328 mDecoder.queueInputBuffer(bufferIndex, 0, info.size, info.presentationTimeUs, info.flags); in enqueueDecoderInput()
338 mDecoder.releaseOutputBuffer(bufferIndex, render); in dequeueDecoderOutput()
/cts/tests/mediapc/src/android/mediapc/cts/
DCodecTranscoderTestBase.java48 MediaCodec mDecoder; field in CodecTranscoderTestBase
121 mAsyncHandleDecoder.setCallBack(mDecoder, isAsync); in configureCodec()
122 mDecoder.configure(decFormat, mSurface, null, 0); in configureCodec()
130 mDecoder.queueInputBuffer(bufferIndex, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM); in enqueueDecoderEOS()
142 ByteBuffer inputBuffer = mDecoder.getInputBuffer(bufferIndex); in enqueueDecoderInput()
154 mDecoder.queueInputBuffer(bufferIndex, 0, size, pts, codecFlags); in enqueueDecoderInput()
168 mDecoder.releaseOutputBuffer(bufferIndex, mSurface != null); in dequeueDecoderOutput()
252 mDecoder.dequeueOutputBuffer(outInfo, CodecTestBase.Q_DEQ_TIMEOUT_US); in queueEOS()
256 int inputBufferId = mDecoder.dequeueInputBuffer(CodecTestBase.Q_DEQ_TIMEOUT_US); in queueEOS()
275 mDecoder.dequeueOutputBuffer(outInfo, CodecTestBase.Q_DEQ_TIMEOUT_US); in queueEOS()
[all …]
/cts/tests/media/jni/
DNativeCodecEncoderSurfaceTest.cpp37 AMediaCodec* mDecoder; member in CodecEncoderSurfaceTest
91 mDecoder = nullptr;
114 if (mDecoder) { in ~CodecEncoderSurfaceTest()
115 AMediaCodec_delete(mDecoder); in ~CodecEncoderSurfaceTest()
116 mDecoder = nullptr; in ~CodecEncoderSurfaceTest()
178 CHECK_STATUS(mAsyncHandleDecoder.setCallBack(mDecoder, isAsync), in configureCodec()
180 CHECK_STATUS(AMediaCodec_configure(mDecoder, mDecFormat, mWindow, nullptr, 0), in configureCodec()
216 CHECK_STATUS(AMediaCodec_queueInputBuffer(mDecoder, bufferIndex, 0, 0, 0, in enqueueDecoderEOS()
231 uint8_t* buf = AMediaCodec_getInputBuffer(mDecoder, bufferIndex, &bufSize); in enqueueDecoderInput()
250 CHECK_STATUS(AMediaCodec_queueInputBuffer(mDecoder, bufferIndex, 0, size, pts, flags), in enqueueDecoderInput()
[all …]
/cts/tests/media/src/android/mediav2/cts/
DCodecEncoderSurfaceTest.java65 private MediaCodec mDecoder; field in CodecEncoderSurfaceTest
177 mAsyncHandleDecoder.setCallBack(mDecoder, isAsync); in configureCodec()
178 mDecoder.configure(decFormat, mSurface, null, 0); in configureCodec()
186 mDecoder.queueInputBuffer(bufferIndex, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM); in enqueueDecoderEOS()
198 ByteBuffer inputBuffer = mDecoder.getInputBuffer(bufferIndex); in enqueueDecoderInput()
218 mDecoder.queueInputBuffer(bufferIndex, 0, size, pts, codecFlags); in enqueueDecoderInput()
238 mDecoder.releaseOutputBuffer(bufferIndex, mSurface != null); in dequeueDecoderOutput()
340 mDecoder.dequeueOutputBuffer(outInfo, CodecTestBase.Q_DEQ_TIMEOUT_US); in queueEOS()
344 int inputBufferId = mDecoder.dequeueInputBuffer(CodecTestBase.Q_DEQ_TIMEOUT_US); in queueEOS()
363 mDecoder.dequeueOutputBuffer(outInfo, CodecTestBase.Q_DEQ_TIMEOUT_US); in queueEOS()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaSyncTest.java601 private MediaCodec mDecoder = null; field in MediaSyncTest.Decoder
655 mDecoder = MediaCodec.createDecoderByType(mimeType); in setup()
656 mDecoder.configure(mediaFormat, mSurface, null, 0); in setup()
657 mDecoder.setCallback(this, mHandler); in setup()
666 if (mDecoder != null) { in start()
667 mDecoder.start(); in start()
673 if (mDecoder != null) { in release()
675 mDecoder.stop(); in release()
678 mDecoder.release(); in release()
679 mDecoder = null; in release()
[all …]
DDecoderConformanceTest.java69 private MediaCodec mDecoder; field in DecoderConformanceTest
120 mDecoder.stop(); in release()
126 mDecoder.release(); in release()
132 mDecoder = null; in release()
154 mDecoder = MediaCodec.createByCodecName(decoderName); in decodeTestVector()
155 MediaCodecInfo codecInfo = mDecoder.getCodecInfo(); in decodeTestVector()
170 if (MediaUtils.verifyDecoder(mDecoder, mExtractor, frameMD5Sums)) { in decodeTestVector()
DAdaptivePlaybackTest.java444 Decoder mDecoder; // test state field in AdaptivePlaybackTest.EosFlushSeekTest
452 mDecoder = new Decoder(c.name); in addTests()
453 mDecoder.configureAndStart(stepFormat(), stepSurface()); in addTests()
462 int decodedFrames = -mDecoder.queueInputBufferRange( in addTests()
472 warn(mDecoder.getWarnings()); in addTests()
473 mDecoder.clearWarnings(); in addTests()
474 mDecoder.flush(); in addTests()
479 assertEquals(1, mDecoder.getOutputFormatChangeCount()); in addTests()
492 mDecoder.stop(); in addTests()
494 mDecoder.release(); in addTests()
[all …]
DVideoEncoderTest.java231 protected MediaCodec mDecoder, mEncoder; field in VideoEncoderTest.VideoProcessorBase
283 mDecoder = MediaCodec.createByCodecName(videoDecName); in initCodecsAndConfigureEncoder()
286 mDecoder.setCallback(this); in initCodecsAndConfigureEncoder()
337 if (mDecoder != null) { in close()
338 mDecoder.release(); in close()
339 mDecoder = null; in close()
370 mDecoder.queueInputBuffer( in fillDecoderInputBuffer()
380 mDecoder.getInputBuffer(ix).put(mBuffer); in fillDecoderInputBuffer()
383 mDecoder.queueInputBuffer( in fillDecoderInputBuffer()
445 if (mEncoder != null && mDecoder != null) { in onInputBufferAvailable()
[all …]
DEncodeVirtualDisplayWithCompositionTestImpl.java106 private MediaCodec mDecoder; field in EncodeVirtualDisplayWithCompositionTestImpl
182 mDecoder = MediaCodec.createDecoderByType(mimeType); in doTestRenderingOutput()
184 mDecoder = MediaCodec.createByCodecName(decoderName); in doTestRenderingOutput()
197 mDecoder.configure(decoderFormat, mDecodingSurface.getSurface(), null, 0); in doTestRenderingOutput()
199 mDecoder.setVideoScalingMode(MediaCodec.VIDEO_SCALING_MODE_SCALE_TO_FIT); in doTestRenderingOutput()
200 mDecoder.start(); in doTestRenderingOutput()
201 mDecoderInputBuffers = mDecoder.getInputBuffers(); in doTestRenderingOutput()
234 int inputBufferIndex = mDecoder.dequeueInputBuffer(DEQUEUE_TIMEOUT_US); in doTestRenderingOutput()
245 mDecoder.queueInputBuffer(inputBufferIndex, 0, info.size, in doTestRenderingOutput()
302 if (mDecoder != null) { in doTestRenderingOutput()
[all …]