Lines Matching refs:mDecoder
37 AMediaCodec* mDecoder; member in CodecEncoderSurfaceTest
91 mDecoder = nullptr;
114 if (mDecoder) { in ~CodecEncoderSurfaceTest()
115 AMediaCodec_delete(mDecoder); in ~CodecEncoderSurfaceTest()
116 mDecoder = nullptr; in ~CodecEncoderSurfaceTest()
178 CHECK_STATUS(mAsyncHandleDecoder.setCallBack(mDecoder, isAsync), in configureCodec()
180 CHECK_STATUS(AMediaCodec_configure(mDecoder, mDecFormat, mWindow, nullptr, 0), in configureCodec()
216 CHECK_STATUS(AMediaCodec_queueInputBuffer(mDecoder, bufferIndex, 0, 0, 0, in enqueueDecoderEOS()
231 uint8_t* buf = AMediaCodec_getInputBuffer(mDecoder, bufferIndex, &bufSize); in enqueueDecoderInput()
250 CHECK_STATUS(AMediaCodec_queueInputBuffer(mDecoder, bufferIndex, 0, size, pts, flags), in enqueueDecoderInput()
272 CHECK_STATUS(AMediaCodec_releaseOutputBuffer(mDecoder, bufferIndex, mWindow != nullptr), in dequeueDecoderOutput()
385 ssize_t oBufferID = AMediaCodec_dequeueOutputBuffer(mDecoder, &outInfo, kQDeQTimeOutUs); in queueEOS()
395 ssize_t iBufferId = AMediaCodec_dequeueInputBuffer(mDecoder, kQDeQTimeOutUs); in queueEOS()
424 AMediaCodec_dequeueOutputBuffer(mDecoder, &outInfo, kQDeQTimeOutUs); in queueEOS()
471 ssize_t oBufferID = AMediaCodec_dequeueOutputBuffer(mDecoder, &outInfo, kQDeQTimeOutUs); in doWork()
481 ssize_t iBufferId = AMediaCodec_dequeueInputBuffer(mDecoder, kQDeQTimeOutUs); in doWork()
526 mDecoder = AMediaCodec_createCodecByName(decoder); in testSimpleEncode()
527 if (!mDecoder || !mEncoder) { in testSimpleEncode()
549 CHECK_STATUS(AMediaCodec_start(mDecoder), "AMediaCodec_start failed"); in testSimpleEncode()
562 CHECK_STATUS(AMediaCodec_stop(mDecoder), "AMediaCodec_stop failed"); in testSimpleEncode()
593 CHECK_STATUS(AMediaCodec_delete(mDecoder), "AMediaCodec_delete failed"); in testSimpleEncode()
594 mDecoder = nullptr; in testSimpleEncode()