Lines Matching refs:mCodec
100 AMediaCodec* mCodec; member in CodecHandler
109 sp<android::MediaCodec> mCodec; member
130 mCodec = codec; in CodecHandler()
138 if (mCodec->mRequestedActivityNotification) { in onMessageReceived()
142 mCodec->mCodec->requestActivityNotification(mCodec->mActivityNotification); in onMessageReceived()
143 mCodec->mRequestedActivityNotification = true; in onMessageReceived()
153 if (generation != mCodec->mGeneration) { in onMessageReceived()
158 mCodec->mRequestedActivityNotification = false; in onMessageReceived()
161 if (mCodec->mCallback) { in onMessageReceived()
162 mCodec->mCallback(mCodec, mCodec->mCallbackUserData); in onMessageReceived()
186 Mutex::Autolock _l(mCodec->mAsyncCallbackLock); in onMessageReceived()
187 if (mCodec->mAsyncCallback.onAsyncInputAvailable != NULL) { in onMessageReceived()
188 mCodec->mAsyncCallback.onAsyncInputAvailable( in onMessageReceived()
189 mCodec, in onMessageReceived()
190 mCodec->mAsyncCallbackUserData, in onMessageReceived()
232 Mutex::Autolock _l(mCodec->mAsyncCallbackLock); in onMessageReceived()
233 if (mCodec->mAsyncCallback.onAsyncOutputAvailable != NULL) { in onMessageReceived()
234 mCodec->mAsyncCallback.onAsyncOutputAvailable( in onMessageReceived()
235 mCodec, in onMessageReceived()
236 mCodec->mAsyncCallbackUserData, in onMessageReceived()
260 Mutex::Autolock _l(mCodec->mAsyncCallbackLock); in onMessageReceived()
261 if (mCodec->mAsyncCallback.onAsyncFormatChanged != NULL) { in onMessageReceived()
262 mCodec->mAsyncCallback.onAsyncFormatChanged( in onMessageReceived()
263 mCodec, in onMessageReceived()
264 mCodec->mAsyncCallbackUserData, in onMessageReceived()
288 Mutex::Autolock _l(mCodec->mAsyncCallbackLock); in onMessageReceived()
289 if (mCodec->mAsyncCallback.onAsyncError != NULL) { in onMessageReceived()
290 mCodec->mAsyncCallback.onAsyncError( in onMessageReceived()
291 mCodec, in onMessageReceived()
292 mCodec->mAsyncCallbackUserData, in onMessageReceived()
315 mCodec->mGeneration++; in onMessageReceived()
316 mCodec->mRequestedActivityNotification = false; in onMessageReceived()
375 Mutex::Autolock _l(mCodec->mFrameRenderedCallbackLock); in onMessageReceived()
376 if (mCodec->mFrameRenderedCallback != NULL) { in onMessageReceived()
379 mCodec->mFrameRenderedCallback( in onMessageReceived()
380 mCodec, in onMessageReceived()
381 mCodec->mFrameRenderedCallbackUserData, in onMessageReceived()
424 mData->mCodec = android::MediaCodec::CreateByType( in createAMediaCodec()
432 mData->mCodec = android::MediaCodec::CreateByComponentName( in createAMediaCodec()
439 if (mData->mCodec == NULL) { // failed to create codec in createAMediaCodec()
494 if (mData->mCodec != NULL) { in AMediaCodec_delete()
495 mData->mCodec->release(); in AMediaCodec_delete()
496 mData->mCodec.clear(); in AMediaCodec_delete()
520 status_t err = mData->mCodec->getName(&compName); in AMediaCodec_getName()
554 status_t err = mData->mCodec->configure(dupNativeFormat, surface, in AMediaCodec_configure()
582 status_t err = mData->mCodec->setCallback(mData->mAsyncNotify); in AMediaCodec_setAsyncNotifyCallback()
606 status_t err = mData->mCodec->setOnFrameRenderedNotification(mData->mFrameRenderedNotify); in AMediaCodec_setOnFrameRenderedCallback()
620 return translate_error(mData->mCodec->releaseCrypto()); in AMediaCodec_releaseCrypto()
625 status_t ret = mData->mCodec->start(); in AMediaCodec_start()
637 media_status_t ret = translate_error(mData->mCodec->stop()); in AMediaCodec_stop()
649 return translate_error(mData->mCodec->flush()); in AMediaCodec_flush()
655 status_t ret = mData->mCodec->dequeueInputBuffer(&idx, timeoutUs); in AMediaCodec_dequeueInputBuffer()
668 if (mData->mCodec->getInputBuffer(idx, &abuf) != 0) { in AMediaCodec_getInputBuffer()
679 if (mData->mCodec->getInputBuffers(&abufs) == 0) { in AMediaCodec_getInputBuffer()
703 if (mData->mCodec->getOutputBuffer(idx, &abuf) != 0) { in AMediaCodec_getOutputBuffer()
714 if (mData->mCodec->getOutputBuffers(&abufs) == 0) { in AMediaCodec_getOutputBuffer()
734 status_t ret = mData->mCodec->queueInputBuffer(idx, offset, size, time, flags, &errorMsg); in AMediaCodec_queueInputBuffer()
746 status_t ret = mData->mCodec->dequeueOutputBuffer(&idx, &offset, &size, &presentationTimeUs, in AMediaCodec_dequeueOutputBuffer()
771 mData->mCodec->getOutputFormat(&format); in AMediaCodec_getOutputFormat()
778 mData->mCodec->getInputFormat(&format); in AMediaCodec_getInputFormat()
785 mData->mCodec->getOutputFormat(index, &format); in AMediaCodec_getBufferFormat()
792 return translate_error(mData->mCodec->renderOutputBufferAndRelease(idx)); in AMediaCodec_releaseOutputBuffer()
794 return translate_error(mData->mCodec->releaseOutputBuffer(idx)); in AMediaCodec_releaseOutputBuffer()
802 return translate_error(mData->mCodec->renderOutputBufferAndRelease(idx, timestampNs)); in AMediaCodec_releaseOutputBufferAtTime()
811 return translate_error(mData->mCodec->setSurface(surface)); in AMediaCodec_setOutputSurface()
822 status_t err = mData->mCodec->createInputSurface(&igbp); in AMediaCodec_createInputSurface()
869 return translate_error(mData->mCodec->setInputSurface( in AMediaCodec_setInputSurface()
883 return translate_error(mData->mCodec->setParameters(nativeParams)); in AMediaCodec_setParameters()
893 status_t err = mData->mCodec->signalEndOfInputStream(); in AMediaCodec_signalEndOfInputStream()
940 status_t err = codec->mCodec->queueSecureInputBuffer(idx, in AMediaCodec_queueSecureInputBuffer()