Home
last modified time | relevance | path

Searched refs:mDecoder (Results 1 – 13 of 13) 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.java173 int inputBufIndex = mDecoder.dequeueInputBuffer(Q_DEQ_TIMEOUT_US); in doWork()
180 int outputBufIndex = mDecoder.dequeueOutputBuffer(info, Q_DEQ_TIMEOUT_US); in doWork()
210 mDecoder = MediaCodec.createByCodecName(mDecoderName); in encode()
213 mDecoder.start(); in encode()
221 mDecoder.stop(); in encode()
222 mDecoder.release(); in encode()
224 mDecoder = null; in encode()
266 mDecoder.setCallback(new MediaCodec.Callback() { in configureCodec()
274 ByteBuffer dstBuf = mDecoder.getInputBuffer(index); in configureCodec()
315 mDecoder.configure(mDecoderFormat, mSurface, null, 0); in configureCodec()
[all …]
DCodecPerformanceTestBase.java89 MediaCodec mDecoder; field in CodecPerformanceTestBase
345 ByteBuffer dstBuf = mDecoder.getInputBuffer(bufferIndex); in enqueueDecoderInput()
352 mDecoder.queueInputBuffer(bufferIndex, 0, info.size, info.presentationTimeUs, info.flags); in enqueueDecoderInput()
362 mDecoder.releaseOutputBuffer(bufferIndex, render); in dequeueDecoderOutput()
/cts/tests/mediapc/src/android/mediapc/cts/
DCodecTranscoderTestBase.java58 MediaCodec mDecoder; field in CodecTranscoderTestBase
137 mAsyncHandleDecoder.setCallBack(mDecoder, isAsync); in configureCodec()
138 mDecoder.configure(decFormat, mSurface, null, 0); in configureCodec()
146 mDecoder.queueInputBuffer(bufferIndex, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM); in enqueueDecoderEOS()
158 ByteBuffer inputBuffer = mDecoder.getInputBuffer(bufferIndex); in enqueueDecoderInput()
170 mDecoder.queueInputBuffer(bufferIndex, 0, size, pts, codecFlags); in enqueueDecoderInput()
192 mDecoder.releaseOutputBuffer(bufferIndex, mSurface != null); in dequeueDecoderOutput()
284 mDecoder.dequeueOutputBuffer(outInfo, CodecTestBase.Q_DEQ_TIMEOUT_US); in queueEOS()
288 int inputBufferId = mDecoder.dequeueInputBuffer(CodecTestBase.Q_DEQ_TIMEOUT_US); in queueEOS()
307 mDecoder.dequeueOutputBuffer(outInfo, CodecTestBase.Q_DEQ_TIMEOUT_US); in queueEOS()
[all …]
/cts/tests/media/jni/
DNativeCodecEncoderSurfaceTest.cpp38 AMediaCodec* mDecoder; member in CodecEncoderSurfaceTest
99 mDecoder = nullptr;
134 if (mDecoder) { in ~CodecEncoderSurfaceTest()
135 AMediaCodec_delete(mDecoder); in ~CodecEncoderSurfaceTest()
136 mDecoder = nullptr; in ~CodecEncoderSurfaceTest()
210 media_status_t val = AMediaCodec_getName(mDecoder, &name); in configureCodec()
220 AMediaCodec_releaseName(mDecoder, name); in configureCodec()
247 RETURN_IF_FAIL(mAsyncHandleDecoder.setCallBack(mDecoder, isAsync), in configureCodec()
249 RETURN_IF_FAIL(AMediaCodec_configure(mDecoder, mDecFormat, mWindow, nullptr, 0), in configureCodec()
269 RETURN_IF_FAIL(AMediaCodec_queueInputBuffer(mDecoder, bufferIndex, 0, 0, 0, in enqueueDecoderEOS()
[all …]
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecEncoderSurfaceTestBase.java77 protected MediaCodec mDecoder; field in CodecEncoderSurfaceTestBase
175 if (mDecoder != null) { in tearDownCodecEncoderSurfaceTestBase()
176 mDecoder.release(); in tearDownCodecEncoderSurfaceTestBase()
177 mDecoder = null; in tearDownCodecEncoderSurfaceTestBase()
253 mAsyncHandleDecoder.setCallBack(mDecoder, isAsync); in configureCodec()
254 mDecoder.configure(decFormat, mSurface, null, 0); in configureCodec()
272 mDecoder.queueInputBuffer(bufferIndex, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM); in enqueueDecoderEOS()
284 ByteBuffer inputBuffer = mDecoder.getInputBuffer(bufferIndex); in enqueueDecoderInput()
304 mDecoder.queueInputBuffer(bufferIndex, 0, size, pts, codecFlags); in enqueueDecoderInput()
324 mDecoder.releaseOutputBuffer(bufferIndex, mSurface != null); in dequeueDecoderOutput()
[all …]
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaSyncTest.java602 private MediaCodec mDecoder = null; field in MediaSyncTest.Decoder
656 mDecoder = MediaCodec.createDecoderByType(mimeType); in setup()
657 mDecoder.configure(mediaFormat, mSurface, null, 0); in setup()
658 mDecoder.setCallback(this, mHandler); in setup()
667 if (mDecoder != null) { in start()
668 mDecoder.start(); in start()
674 if (mDecoder != null) { in release()
676 mDecoder.stop(); in release()
679 mDecoder.release(); in release()
680 mDecoder = null; in release()
[all …]
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DHDRDecoderTest.java146 private MediaCodec mDecoder = null; field in HDRDecoderTest
250 if (mDecoder != null) { in tearDown()
251 mDecoder.release(); in tearDown()
298 mDecoder = MediaCodec.createByCodecName(mCodecName); in testHdrMetadata()
299 mDecoder.setCallback(new MediaCodec.Callback() { in testHdrMetadata()
388 mDecoder.configure(format, surface, null/*crypto*/, 0/*flags*/); in testHdrMetadata()
389 mDecoder.start(); in testHdrMetadata()
395 mDecoder.stop(); in testHdrMetadata()
468 mDecoder = MediaCodec.createByCodecName(mCodecName); in testHdrToSdr()
469 mDecoder.setCallback(new MediaCodec.Callback() { in testHdrToSdr()
[all …]
DDecoderConformanceTest.java84 private MediaCodec mDecoder; field in DecoderConformanceTest
148 mDecoder.stop(); in release()
154 mDecoder.release(); in release()
160 mDecoder = null; in release()
182 mDecoder = MediaCodec.createByCodecName(decoderName); in decodeTestVector()
183 MediaCodecInfo codecInfo = mDecoder.getCodecInfo(); in decodeTestVector()
198 if (MediaUtils.verifyDecoder(mDecoder, mExtractor, frameMD5Sums)) { in decodeTestVector()
DAdaptivePlaybackTest.java470 Decoder mDecoder; // test state field in AdaptivePlaybackTest.EosFlushSeekTest
478 mDecoder = new Decoder(c.name); in addTests()
479 mDecoder.configureAndStart(stepFormat(), stepSurface()); in addTests()
488 int decodedFrames = -mDecoder.queueInputBufferRange( in addTests()
498 warn(mDecoder.getWarnings()); in addTests()
499 mDecoder.clearWarnings(); in addTests()
500 mDecoder.flush(); in addTests()
505 assertEquals(1, mDecoder.getOutputFormatChangeCount()); in addTests()
518 mDecoder.stop(); in addTests()
520 mDecoder.release(); in addTests()
[all …]
DImageReaderDecoderTest.java116 MediaCodec mDecoder = null; field in ImageReaderDecoderTest
163 mDecoder = MediaCodec.createByCodecName(mCodecName); in setUp()
175 if (mDecoder != null) { in tearDown()
176 mDecoder.release(); in tearDown()
368 MediaCodecInfo info = mDecoder.getCodecInfo(); in decodeTest()
382 mDecoder, mExtractor, mediaFormat, in decodeTest()
385 mDecoder.stop(); in decodeTest()
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DVideoEncoderTest.java290 protected MediaCodec mDecoder, mEncoder; field in VideoEncoderTest.VideoProcessorBase
342 mDecoder = MediaCodec.createByCodecName(videoDecName); in initCodecsAndConfigureEncoder()
345 mDecoder.setCallback(this); in initCodecsAndConfigureEncoder()
396 if (mDecoder != null) { in close()
397 mDecoder.release(); in close()
398 mDecoder = null; in close()
429 mDecoder.queueInputBuffer( in fillDecoderInputBuffer()
439 mDecoder.getInputBuffer(ix).put(mBuffer); in fillDecoderInputBuffer()
442 mDecoder.queueInputBuffer( in fillDecoderInputBuffer()
505 if (mEncoder != null && mDecoder != null) { in onInputBufferAvailable()
[all …]
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DEncodeVirtualDisplayWithCompositionTestImpl.java105 private MediaCodec mDecoder; field in EncodeVirtualDisplayWithCompositionTestImpl
177 mDecoder = MediaCodec.createDecoderByType(mimeType); in doTestRenderingOutput()
179 mDecoder = MediaCodec.createByCodecName(decoderName); in doTestRenderingOutput()
192 mDecoder.configure(decoderFormat, mDecodingSurface.getSurface(), null, 0); in doTestRenderingOutput()
194 mDecoder.setVideoScalingMode(MediaCodec.VIDEO_SCALING_MODE_SCALE_TO_FIT); in doTestRenderingOutput()
195 mDecoder.start(); in doTestRenderingOutput()
196 mDecoderInputBuffers = mDecoder.getInputBuffers(); in doTestRenderingOutput()
224 int inputBufferIndex = mDecoder.dequeueInputBuffer(DEQUEUE_TIMEOUT_US); in doTestRenderingOutput()
235 mDecoder.queueInputBuffer(inputBufferIndex, 0, info.size, in doTestRenderingOutput()
292 if (mDecoder != null) { in doTestRenderingOutput()
[all …]