/cts/tests/media/jni/ |
D | NativeCodecUnitTest.cpp | 116 RETURN_IF_FAIL(AMediaCodec_releaseOutputBuffer(mCodec, bufferIndex, false), in dequeueOutput() 268 RETURN_IF_FAIL(AMediaCodec_stop(mCodec), "AMediaCodec_stop failed") in testConfigureInInitState() 280 RETURN_IF_FAIL(AMediaCodec_start(mCodec), "AMediaCodec_start failed") in testConfigureInRunningState() 295 RETURN_IF_FAIL(AMediaCodec_start(mCodec), "AMediaCodec_start failed") in testConfigureInRunningState() 311 RETURN_IF_FAIL(AMediaCodec_stop(mCodec), "AMediaCodec_stop failed") in testConfigureInRunningState() 323 RETURN_IF_FAIL(AMediaCodec_stop(mCodec), "AMediaCodec_stop failed") in testConfigureInUnInitState() 324 RETURN_IF_FAIL(AMediaCodec_configure(mCodec, mFormat, nullptr, nullptr, in testConfigureInUnInitState() 327 RETURN_IF_FAIL(AMediaCodec_stop(mCodec), "AMediaCodec_stop failed") in testConfigureInUnInitState() 344 RETURN_IF_FAIL(AMediaCodec_stop(mCodec), "AMediaCodec_stop failed") in testDequeueInputBufferInInitState() 356 RETURN_IF_FAIL(AMediaCodec_start(mCodec), "AMediaCodec_start failed") in testDequeueInputBufferInRunningState() [all …]
|
D | NativeCodecEncoderSurfaceTest.cpp | 228 RETURN_IF_FAIL(mAsyncHandleEncoder.setCallBack(mEncoder, isAsync), in configureCodec() 230 RETURN_IF_FAIL(AMediaCodec_configure(mEncoder, mEncFormat, nullptr, nullptr, in configureCodec() 238 RETURN_IF_FAIL(AMediaCodec_createPersistentInputSurface(&mWindow), in configureCodec() 240 RETURN_IF_FAIL(AMediaCodec_setInputSurface(mEncoder, in configureCodec() 244 RETURN_IF_FAIL(AMediaCodec_createInputSurface(mEncoder, &mWindow), 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() 297 RETURN_IF_FAIL(AMediaCodec_queueInputBuffer(mDecoder, bufferIndex, 0, size, pts, flags), in enqueueDecoderInput() 319 RETURN_IF_FAIL(AMediaCodec_releaseOutputBuffer(mDecoder, bufferIndex, mWindow != nullptr), in dequeueDecoderOutput() [all …]
|
D | NativeCodecDecoderTestCommon.cpp | 191 RETURN_IF_FAIL(mAsyncHandle.setCallBack(mCodec, isAsync), in configureCodec() 193 RETURN_IF_FAIL(AMediaCodec_configure(mCodec, format, mWindow, nullptr, in configureCodec() 210 RETURN_IF_FAIL(AMediaCodec_queueInputBuffer(mCodec, bufferIndex, 0, csdSize, 0, flags), in enqueueCodecConfig() 234 RETURN_IF_FAIL(AMediaCodec_queueInputBuffer(mCodec, bufferIndex, 0, size, pts, flags), in enqueueInput() 275 RETURN_IF_FAIL(AMediaCodec_releaseOutputBuffer(mCodec, bufferIndex, mWindow != nullptr), in dequeueOutput() 345 RETURN_IF_FAIL(AMediaCodec_start(mCodec), "AMediaCodec_start failed") in decodeToMemory() 349 RETURN_IF_FAIL(AMediaCodec_stop(mCodec), "AMediaCodec_stop failed") in decodeToMemory() 350 RETURN_IF_FAIL(AMediaCodec_delete(mCodec), "AMediaCodec_delete failed") in decodeToMemory() 377 RETURN_IF_FAIL(AMediaCodec_getName(mCodec, &name), "AMediaCodec_getName failed") in testSimpleDecode() 389 RETURN_IF_FAIL(AMediaCodec_start(mCodec), "AMediaCodec_start failed") in testSimpleDecode() [all …]
|
D | NativeCodecEncoderTest.cpp | 259 RETURN_IF_FAIL(AMediaCodec_queueInputBuffer(mCodec, bufferIndex, 0, size, pts, flags), in enqueueInput() 294 RETURN_IF_FAIL(AMediaCodec_releaseOutputBuffer(mCodec, bufferIndex, false), in dequeueOutput() 367 RETURN_IF_FAIL(AMediaCodec_start(mCodec), "AMediaCodec_start failed") in encodeToMemory() 371 RETURN_IF_FAIL(AMediaCodec_stop(mCodec), "AMediaCodec_stop failed") in encodeToMemory() 372 RETURN_IF_FAIL(AMediaCodec_delete(mCodec), "AMediaCodec_delete failed") in encodeToMemory() 413 RETURN_IF_FAIL(AMediaCodec_getName(mCodec, &name), "AMediaCodec_getName failed") in testSimpleEncode() 420 RETURN_IF_FAIL(AMediaCodec_start(mCodec), "AMediaCodec_start failed") in testSimpleEncode() 424 RETURN_IF_FAIL(AMediaCodec_stop(mCodec), "AMediaCodec_stop failed") in testSimpleEncode() 425 RETURN_IF_FAIL(AMediaCodec_delete(mCodec), "AMediaCodec_delete failed") in testSimpleEncode() 468 RETURN_IF_FAIL(AMediaCodec_start(mCodec), "AMediaCodec_start failed") in testReconfigure() [all …]
|
D | NativeCodecTestBase.cpp | 442 RETURN_IF_FAIL(mAsyncHandle.setCallBack(mCodec, isAsync), in configureCodec() 444 RETURN_IF_FAIL(AMediaCodec_configure(mCodec, format, nullptr, nullptr, in configureCodec() 451 RETURN_IF_FAIL(AMediaCodec_flush(mCodec), "AMediaCodec_flush failed") in flushCodec() 464 RETURN_IF_FAIL(AMediaCodec_stop(mCodec), "AMediaCodec_stop failed") in reConfigureCodec() 503 RETURN_IF_FAIL(AMediaCodec_queueInputBuffer(mCodec, bufferIndex, 0, 0, 0, in enqueueEOS()
|
D | NativeCodecTestBase.h | 31 #define RETURN_IF_FAIL(status, str) \ macro
|