Home
last modified time | relevance | path

Searched refs:isAsync (Results 1 – 25 of 48) sorted by relevance

12

/cts/tests/media/jni/
DNativeCodecUnitTest.cpp260 for (auto isAsync : boolStates) { in testConfigureInInitState() local
261 if (!configureCodec(mFormat, isAsync, true, isEncoder)) return false; in testConfigureInInitState()
278 for (auto isAsync : boolStates) { in testConfigureInRunningState() local
279 if (!configureCodec(mFormat, isAsync, false, isEncoder)) return false; in testConfigureInRunningState()
321 for (auto isAsync : boolStates) { in testConfigureInUnInitState() local
322 if (!configureCodec(mFormat, isAsync, false, isEncoder)) return false; in testConfigureInUnInitState()
337 for (auto isAsync : boolStates) { in testDequeueInputBufferInInitState() local
338 if (!configureCodec(mFormat, isAsync, false, isEncoder)) return false; in testDequeueInputBufferInInitState()
354 for (auto isAsync : boolStates) { in testDequeueInputBufferInRunningState() local
355 if (!configureCodec(mFormat, isAsync, false, isEncoder)) return false; in testDequeueInputBufferInRunningState()
[all …]
DNativeCodecEncoderTest.cpp53 bool configureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame,
55 void resetContext(bool isAsync, bool signalEOSWithLastFrame) override;
155 bool CodecEncoderTest::configureCodec(AMediaFormat* format, bool isAsync, in configureCodec() argument
158 return CodecTestBase::configureCodec(format, isAsync, signalEOSWithLastFrame, isEncoder); in configureCodec()
161 void CodecEncoderTest::resetContext(bool isAsync, bool signalEOSWithLastFrame) { in resetContext() argument
162 CodecTestBase::resetContext(isAsync, signalEOSWithLastFrame); in resetContext()
404 for (auto isAsync : boolStates) { in testSimpleEncode() local
419 if (!configureCodec(format, isAsync, eosType, true)) return false; in testSimpleEncode()
459 for (auto isAsync : boolStates) { in testReconfigure() local
465 if (!configureCodec(format, isAsync, true, true)) return false; in testReconfigure()
[all …]
DNativeCodecDecoderTestCommon.cpp50 bool configureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame,
167 bool CodecDecoderTest::configureCodec(AMediaFormat* format, bool isAsync, in configureCodec() argument
169 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
187 (isAsync ? "asynchronous" : "synchronous"))); in configureCodec()
191 RETURN_IF_FAIL(mAsyncHandle.setCallBack(mCodec, isAsync), in configureCodec()
366 for (auto isAsync : boolStates) { in testSimpleDecode() local
382 if (!configureCodec(mInpDecFormat, isAsync, eosType, false)) return false; in testSimpleDecode()
441 for (auto isAsync : boolStates) { in testFlush() local
442 if (isAsync) continue; // TODO(b/147576107) in testFlush()
449 if (!configureCodec(mInpDecFormat, isAsync, true, false)) return false; in testFlush()
[all …]
DNativeCodecEncoderSurfaceTest.cpp65 bool configureCodec(bool isAsync, bool signalEOSWithLastFrame, bool usePersistentSurface);
66 void resetContext(bool isAsync, bool signalEOSWithLastFrame);
188 bool CodecEncoderSurfaceTest::configureCodec(bool isAsync, bool signalEOSWithLastFrame, in configureCodec() argument
192 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
225 (isAsync ? "asynchronous" : "synchronous")); in configureCodec()
228 RETURN_IF_FAIL(mAsyncHandleEncoder.setCallBack(mEncoder, isAsync), in configureCodec()
247 RETURN_IF_FAIL(mAsyncHandleDecoder.setCallBack(mDecoder, isAsync), in configureCodec()
254 void CodecEncoderSurfaceTest::resetContext(bool isAsync, bool signalEOSWithLastFrame) { in resetContext() argument
257 mIsCodecInAsyncMode = isAsync; in resetContext()
574 for (bool isAsync : boolStates) { in testSimpleEncode() local
[all …]
DNativeCodecTestBase.h186 virtual bool configureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame,
189 bool reConfigureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame,
191 virtual void resetContext(bool isAsync, bool signalEOSWithLastFrame);
DNativeCodecTestBase.cpp418 bool CodecTestBase::configureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame, in configureCodec() argument
420 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
438 (isAsync ? "asynchronous" : "synchronous"))); in configureCodec()
442 RETURN_IF_FAIL(mAsyncHandle.setCallBack(mCodec, isAsync), in configureCodec()
462 bool CodecTestBase::reConfigureCodec(AMediaFormat* format, bool isAsync, in reConfigureCodec() argument
465 return configureCodec(format, isAsync, signalEOSWithLastFrame, isEncoder); in reConfigureCodec()
468 void CodecTestBase::resetContext(bool isAsync, bool signalEOSWithLastFrame) { in resetContext() argument
470 mIsCodecInAsyncMode = isAsync; in resetContext()
/cts/tests/media/src/android/mediav2/cts/
DCodecUnitTest.java208 void tryConfigureCodecInInvalidState(MediaFormat format, boolean isAsync, String msg) { in tryConfigureCodecInInvalidState() argument
210 configureCodec(format, isAsync, false, true); in tryConfigureCodecInInvalidState()
535 for (boolean isAsync : boolStates) { in testConfigureInInitState()
536 configureCodec(format, isAsync, false, true); in testConfigureInInitState()
538 tryConfigureCodecInInvalidState(format, isAsync, in testConfigureInInitState()
553 for (boolean isAsync : boolStates) { in testConfigureAfterStart()
554 configureCodec(format, isAsync, false, true); in testConfigureAfterStart()
557 tryConfigureCodecInInvalidState(format, isAsync, in testConfigureAfterStart()
574 for (boolean isAsync : boolStates) { in testConfigureAfterQueueInputBuffer()
575 configureCodec(format, isAsync, false, true); in testConfigureAfterQueueInputBuffer()
[all …]
DCodecDecoderSurfaceTest.java243 for (boolean isAsync : boolStates) { in testSimpleDecodeToSurface()
246 configureCodec(format, isAsync, true, false); in testSimpleDecodeToSurface()
291 for (boolean isAsync : boolStates) { in testDetachAndReattachSurface()
298 format, isAsync, in testDetachAndReattachSurface()
299 isAsync /* cryptoCallAndSignalEosWithLastFrame */); in testDetachAndReattachSurface()
318 format, isAsync, isAsync /* cryptoCallAndSignalEosWithLastFrame */, in testDetachAndReattachSurface()
407 for (boolean isAsync : boolStates) { in testFlush()
408 if (isAsync) continue; // TODO(b/147576107) in testFlush()
410 configureCodec(format, isAsync, true, false); in testFlush()
519 for (boolean isAsync : boolStates) { in testReconfigure()
[all …]
DCodecDecoderDetachedSurfaceTest.java183 protected void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument
184 super.resetContext(isAsync, signalEOSWithLastFrame); in resetContext()
302 for (boolean isAsync : boolStates) { in testSetOutputSurface()
307 configureCodec(format, isAsync, isAsync /* use crypto configure api */, in testSetOutputSurface()
363 for (boolean isAsync : boolStates) { in testFeatureDetachedSurface()
367 configureCodec(format, isAsync, isAsync /* use crypto configure api */, in testFeatureDetachedSurface()
428 for (boolean isAsync : boolStates) { in testDetachOutputSurface()
434 configureCodec(format, isAsync, isAsync /* use crypto configure api */, in testDetachOutputSurface()
483 configureCodec(format, isAsync, isAsync /* use crypto configure api */, in testDetachOutputSurface()
492 configureCodec(format, isAsync, isAsync /* use crypto configure api */, in testDetachOutputSurface()
DCodecEncoderTest.java100 protected void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument
101 super.resetContext(isAsync, signalEOSWithLastFrame); in resetContext()
348 for (boolean isAsync : boolStates) { in testSimpleEncode()
353 configureCodec(format, isAsync, eosType, true); in testSimpleEncode()
452 for (boolean isAsync : boolStates) { in testReconfigure()
454 configureCodec(format, isAsync, true, true); in testReconfigure()
457 reConfigureCodec(format, !isAsync, false, true); in testReconfigure()
461 reConfigureCodec(format, !isAsync, false, true); in testReconfigure()
468 reConfigureCodec(format, isAsync, true, true); in testReconfigure()
484 reConfigureCodec(format, !isAsync, false, true); in testReconfigure()
[all …]
DCodecDecoderTest.java388 for (boolean isAsync : boolStates) { in testSimpleDecode()
393 configureCodec(format, isAsync, eosType, false); in testSimpleDecode()
491 for (boolean isAsync : boolStates) { in testFlush()
492 if (isAsync) continue; // TODO(b/147576107) in testFlush()
494 configureCodec(format, isAsync, true, false); in testFlush()
639 for (boolean isAsync : boolStates) { in testReconfigure()
643 configureCodec(format, isAsync, true, false); in testReconfigure()
654 reConfigureCodec(format, !isAsync, false, false); in testReconfigure()
658 reConfigureCodec(format, !isAsync, false, false); in testReconfigure()
670 reConfigureCodec(format, isAsync, true, false); in testReconfigure()
[all …]
DEncodeDecodeAccuracyTest.java286 private void resetContext(boolean isAsync) { in resetContext() argument
287 super.resetContext(isAsync, false); in resetContext()
300 private void configureCodec(MediaFormat encFormat, boolean isAsync) { in configureCodec() argument
301 resetContext(isAsync); in configureCodec()
302 mAsyncHandleEncoder.setCallBack(mEncoder, isAsync); in configureCodec()
532 final boolean isAsync = true; in testEncodeDecodeAccuracyRGB()
539 configureCodec(format, isAsync); in testEncodeDecodeAccuracyRGB()
DCodecDecoderPauseTest.java101 final boolean isAsync = true; in testPause()
111 configureCodec(format, isAsync, false, false); in testPause()
/cts/tests/video/src/android/video/cts/
DCodecEncoderPerformanceTest.java53 boolean isAsync, int maxBFrames) { in CodecEncoderPerformanceTest() argument
55 isAsync, maxBFrames); in CodecEncoderPerformanceTest()
99 for (boolean isAsync : boolStates) { in input()
104 bitrate, keyPriority, scalingFactor, isAsync, in input()
111 isAsync, 2}); in input()
DCodecEncoderPerformanceTestBase.java75 boolean isAsync, int maxBFrames) { in CodecEncoderPerformanceTestBase() argument
80 mIsAsync = isAsync; in CodecEncoderPerformanceTestBase()
229 void configureCodec(boolean isAsync) { in configureCodec() argument
230 resetContext(isAsync); in configureCodec()
232 if (isAsync) { in configureCodec()
265 if (isAsync) { in configureCodec()
322 void resetContext(boolean isAsync) { in resetContext() argument
323 mIsCodecInAsyncMode = isAsync; in resetContext()
/cts/tests/mediapc/src/android/mediapc/cts/
DCodecTestBase.java294 void configureCodec(MediaFormat format, boolean isAsync, boolean signalEOSWithLastFrame, in configureCodec() argument
296 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
297 mAsyncHandle.setCallBack(mCodec, isAsync); in configureCodec()
309 void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument
311 mIsCodecInAsyncMode = isAsync; in resetContext()
611 void configureCodec(MediaFormat format, boolean isAsync, boolean signalEOSWithLastFrame, in configureCodec() argument
613 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
614 mAsyncHandle.setCallBack(mCodec, isAsync); in configureCodec()
666 void configureCodec(MediaFormat format, boolean isAsync, boolean signalEOSWithLastFrame, in configureCodec() argument
668 configureCodec(format, isAsync, signalEOSWithLastFrame, isEncoder, null); in configureCodec()
[all …]
DMultiEncoderPerfTest.java57 public MultiEncoderPerfTest(String mediaType, String encoderName, boolean isAsync) { in MultiEncoderPerfTest() argument
58 super(mediaType, null, isAsync); in MultiEncoderPerfTest()
81 for (boolean isAsync : boolStates) { in inputParams()
82 argsList.add(new Object[]{mediaType, encoder, isAsync}); in inputParams()
DCodecTranscoderTestBase.java111 void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument
114 mIsCodecInAsyncMode = isAsync; in resetContext()
126 void configureCodec(MediaFormat decFormat, MediaFormat encFormat, boolean isAsync, in configureCodec() argument
128 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
129 mAsyncHandleEncoder.setCallBack(mEncoder, isAsync); in configureCodec()
137 mAsyncHandleDecoder.setCallBack(mDecoder, isAsync); in configureCodec()
404 boolean isAsync, boolean useHighBitDepth) { in Transcode() argument
408 mIsAsync = isAsync; in Transcode()
504 void configureCodec(MediaFormat decFormat, MediaFormat encFormat, boolean isAsync, in configureCodec() argument
508 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
[all …]
DMultiEncoderPairPerfTest.java60 boolean isAsync) { in MultiEncoderPairPerfTest() argument
61 super(null, null, isAsync); in MultiEncoderPairPerfTest()
93 for (boolean isAsync : boolStates) { in inputParams()
94 argsList.add(new Object[]{pair1, pair2, isAsync}); in inputParams()
DMultiDecoderPerfTest.java57 public MultiDecoderPerfTest(String mediaType, String decoderName, boolean isAsync) { in MultiDecoderPerfTest() argument
58 super(mediaType, null, isAsync); in MultiDecoderPerfTest()
82 for (boolean isAsync : boolStates) { in inputParams()
83 argsList.add(new Object[]{mediaType, decoder, isAsync}); in inputParams()
DFrameDropTestBase.java160 public FrameDropTestBase(String mediaType, String decoderName, boolean isAsync) { in FrameDropTestBase() argument
163 mIsAsync = isAsync; in FrameDropTestBase()
186 for (boolean isAsync : boolStates) { in prepareArgumentsList()
187 argsList.add(new Object[]{mediaType, decoder, isAsync}); in prepareArgumentsList()
DCodecInitializationLatencyTest.java317 for (boolean isAsync : boolStates) { in testInitializationLatency()
321 new EncoderInitializationLatency(mMediaType, mCodecName, isAsync); in testInitializationLatency()
332 isAsync, false); in testInitializationLatency()
342 isAsync, surfaceMode); in testInitializationLatency()
401 EncoderInitializationLatency(String mediaType, String encoderName, boolean isAsync) { in EncoderInitializationLatency() argument
404 mIsAsync = isAsync; in EncoderInitializationLatency()
550 boolean isAsync, boolean surfaceMode) { in DecoderInitializationLatency() argument
553 mIsAsync = isAsync; in DecoderInitializationLatency()
DFrameDropTest.java43 public FrameDropTest(String mediaType, String decoderName, boolean isAsync) { in FrameDropTest() argument
44 super(mediaType, decoderName, isAsync); in FrameDropTest()
DAdaptivePlaybackFrameDropTest.java44 public AdaptivePlaybackFrameDropTest(String mediaType, String decoderName, boolean isAsync) { in AdaptivePlaybackFrameDropTest() argument
45 super(mediaType, decoderName, isAsync); in AdaptivePlaybackFrameDropTest()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecEncoderSurfaceTestBase.java224 protected void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument
227 mIsCodecInAsyncMode = isAsync; in resetContext()
237 protected void configureCodec(MediaFormat decFormat, MediaFormat encFormat, boolean isAsync, in configureCodec() argument
239 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
240 mAsyncHandleEncoder.setCallBack(mEncoder, isAsync); in configureCodec()
253 mAsyncHandleDecoder.setCallBack(mDecoder, isAsync); in configureCodec()
262 (isAsync ? "asynchronous" : "synchronous"))); in configureCodec()
548 protected void encodeToMemory(boolean isAsync, boolean signalEOSWithLastFrame, in encodeToMemory() argument
551 encodeToMemory(isAsync, signalEOSWithLastFrame, saveToMem, outBuff, muxOutput, outPath, in encodeToMemory()
556 protected void encodeToMemory(boolean isAsync, boolean signalEOSWithLastFrame, in encodeToMemory() argument
[all …]

12