Lines Matching refs:mCodec
75 AMediaCodec* mCodec; member in CodecHandler
84 sp<android::MediaCodec> mCodec; member
100 mCodec = codec; in CodecHandler()
108 if (mCodec->mRequestedActivityNotification) { in onMessageReceived()
112 mCodec->mCodec->requestActivityNotification(mCodec->mActivityNotification); in onMessageReceived()
113 mCodec->mRequestedActivityNotification = true; in onMessageReceived()
123 if (generation != mCodec->mGeneration) { in onMessageReceived()
128 mCodec->mRequestedActivityNotification = false; in onMessageReceived()
131 if (mCodec->mCallback) { in onMessageReceived()
132 mCodec->mCallback(mCodec, mCodec->mCallbackUserData); in onMessageReceived()
156 Mutex::Autolock _l(mCodec->mAsyncCallbackLock); in onMessageReceived()
157 if (mCodec->mAsyncCallbackUserData != NULL in onMessageReceived()
158 || mCodec->mAsyncCallback.onAsyncInputAvailable != NULL) { in onMessageReceived()
159 mCodec->mAsyncCallback.onAsyncInputAvailable( in onMessageReceived()
160 mCodec, in onMessageReceived()
161 mCodec->mAsyncCallbackUserData, in onMessageReceived()
203 Mutex::Autolock _l(mCodec->mAsyncCallbackLock); in onMessageReceived()
204 if (mCodec->mAsyncCallbackUserData != NULL in onMessageReceived()
205 || mCodec->mAsyncCallback.onAsyncOutputAvailable != NULL) { in onMessageReceived()
206 mCodec->mAsyncCallback.onAsyncOutputAvailable( in onMessageReceived()
207 mCodec, in onMessageReceived()
208 mCodec->mAsyncCallbackUserData, in onMessageReceived()
232 Mutex::Autolock _l(mCodec->mAsyncCallbackLock); in onMessageReceived()
233 if (mCodec->mAsyncCallbackUserData != NULL in onMessageReceived()
234 || mCodec->mAsyncCallback.onAsyncFormatChanged != NULL) { in onMessageReceived()
235 mCodec->mAsyncCallback.onAsyncFormatChanged( in onMessageReceived()
236 mCodec, in onMessageReceived()
237 mCodec->mAsyncCallbackUserData, in onMessageReceived()
261 Mutex::Autolock _l(mCodec->mAsyncCallbackLock); in onMessageReceived()
262 if (mCodec->mAsyncCallbackUserData != NULL in onMessageReceived()
263 || mCodec->mAsyncCallback.onAsyncError != NULL) { in onMessageReceived()
264 mCodec->mAsyncCallback.onAsyncError( in onMessageReceived()
265 mCodec, in onMessageReceived()
266 mCodec->mAsyncCallbackUserData, in onMessageReceived()
289 mCodec->mGeneration++; in onMessageReceived()
290 mCodec->mRequestedActivityNotification = false; in onMessageReceived()
325 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder); in createAMediaCodec()
327 mData->mCodec = android::MediaCodec::CreateByComponentName(mData->mLooper, name); in createAMediaCodec()
329 if (mData->mCodec == NULL) { // failed to create codec in createAMediaCodec()
363 if (mData->mCodec != NULL) { in AMediaCodec_delete()
364 mData->mCodec->release(); in AMediaCodec_delete()
365 mData->mCodec.clear(); in AMediaCodec_delete()
389 status_t err = mData->mCodec->getName(&compName); in AMediaCodec_getName()
421 status_t err = mData->mCodec->configure(nativeFormat, surface, in AMediaCodec_configure()
437 status_t err = mData->mCodec->setCallback(mData->mAsyncNotify); in AMediaCodec_setAsyncNotifyCallback()
454 return translate_error(mData->mCodec->releaseCrypto()); in AMediaCodec_releaseCrypto()
459 status_t ret = mData->mCodec->start(); in AMediaCodec_start()
471 media_status_t ret = translate_error(mData->mCodec->stop()); in AMediaCodec_stop()
483 return translate_error(mData->mCodec->flush()); in AMediaCodec_flush()
489 status_t ret = mData->mCodec->dequeueInputBuffer(&idx, timeoutUs); in AMediaCodec_dequeueInputBuffer()
502 if (mData->mCodec->getInputBuffer(idx, &abuf) != 0) { in AMediaCodec_getInputBuffer()
513 if (mData->mCodec->getInputBuffers(&abufs) == 0) { in AMediaCodec_getInputBuffer()
537 if (mData->mCodec->getOutputBuffer(idx, &abuf) != 0) { in AMediaCodec_getOutputBuffer()
548 if (mData->mCodec->getOutputBuffers(&abufs) == 0) { in AMediaCodec_getOutputBuffer()
568 status_t ret = mData->mCodec->queueInputBuffer(idx, offset, size, time, flags, &errorMsg); in AMediaCodec_queueInputBuffer()
580 status_t ret = mData->mCodec->dequeueOutputBuffer(&idx, &offset, &size, &presentationTimeUs, in AMediaCodec_dequeueOutputBuffer()
605 mData->mCodec->getOutputFormat(&format); in AMediaCodec_getOutputFormat()
612 mData->mCodec->getInputFormat(&format); in AMediaCodec_getInputFormat()
619 mData->mCodec->getOutputFormat(index, &format); in AMediaCodec_getBufferFormat()
626 return translate_error(mData->mCodec->renderOutputBufferAndRelease(idx)); in AMediaCodec_releaseOutputBuffer()
628 return translate_error(mData->mCodec->releaseOutputBuffer(idx)); in AMediaCodec_releaseOutputBuffer()
636 return translate_error(mData->mCodec->renderOutputBufferAndRelease(idx, timestampNs)); in AMediaCodec_releaseOutputBufferAtTime()
645 return translate_error(mData->mCodec->setSurface(surface)); in AMediaCodec_setOutputSurface()
656 status_t err = mData->mCodec->createInputSurface(&igbp); in AMediaCodec_createInputSurface()
703 return translate_error(mData->mCodec->setInputSurface( in AMediaCodec_setInputSurface()
717 return translate_error(mData->mCodec->setParameters(nativeParams)); in AMediaCodec_setParameters()
727 status_t err = mData->mCodec->signalEndOfInputStream(); in AMediaCodec_signalEndOfInputStream()
774 status_t err = codec->mCodec->queueSecureInputBuffer(idx, in AMediaCodec_queueSecureInputBuffer()