Lines Matching refs:mDecoder

38     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()
284 uint8_t* buf = AMediaCodec_getInputBuffer(mDecoder, bufferIndex, &bufSize); in enqueueDecoderInput()
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()
435 ssize_t oBufferID = AMediaCodec_dequeueOutputBuffer(mDecoder, &outInfo, kQDeQTimeOutUs); in queueEOS()
447 ssize_t iBufferId = AMediaCodec_dequeueInputBuffer(mDecoder, kQDeQTimeOutUs); in queueEOS()
478 AMediaCodec_dequeueOutputBuffer(mDecoder, &outInfo, kQDeQTimeOutUs); in queueEOS()
527 ssize_t oBufferID = AMediaCodec_dequeueOutputBuffer(mDecoder, &outInfo, kQDeQTimeOutUs); in doWork()
539 ssize_t iBufferId = AMediaCodec_dequeueInputBuffer(mDecoder, kQDeQTimeOutUs); in doWork()
583 mDecoder = AMediaCodec_createCodecByName(decoder); in testSimpleEncode()
584 RETURN_IF_NULL(mDecoder, StringFormat("unable to create media codec by name %s", decoder)) in testSimpleEncode()
600 RETURN_IF_FAIL(AMediaCodec_start(mDecoder), "Decoder AMediaCodec_start failed") in testSimpleEncode()
613 RETURN_IF_FAIL(AMediaCodec_stop(mDecoder), "AMediaCodec_stop failed for Decoder") in testSimpleEncode()
649 RETURN_IF_FAIL(AMediaCodec_delete(mDecoder), "AMediaCodec_delete failed for decoder") in testSimpleEncode()
650 mDecoder = nullptr; in testSimpleEncode()