Home
last modified time | relevance | path

Searched refs:RETURN_IF_FAIL (Results 1 – 6 of 6) sorted by relevance

/cts/tests/media/jni/
DNativeCodecUnitTest.cpp116 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 …]
DNativeCodecEncoderSurfaceTest.cpp228 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 …]
DNativeCodecDecoderTestCommon.cpp191 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 …]
DNativeCodecEncoderTest.cpp259 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 …]
DNativeCodecTestBase.cpp442 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()
DNativeCodecTestBase.h31 #define RETURN_IF_FAIL(status, str) \ macro