Lines Matching refs:mCodec
74 AMediaCodec* mCodec; member in CodecHandler
83 sp<android::MediaCodec> mCodec; member
94 mCodec = codec; in CodecHandler()
102 if (mCodec->mRequestedActivityNotification) { in onMessageReceived()
106 mCodec->mCodec->requestActivityNotification(mCodec->mActivityNotification); in onMessageReceived()
107 mCodec->mRequestedActivityNotification = true; in onMessageReceived()
117 if (generation != mCodec->mGeneration) { in onMessageReceived()
122 mCodec->mRequestedActivityNotification = false; in onMessageReceived()
125 if (mCodec->mCallback) { in onMessageReceived()
126 mCodec->mCallback(mCodec, mCodec->mCallbackUserData); in onMessageReceived()
136 mCodec->mGeneration++; in onMessageReceived()
137 mCodec->mRequestedActivityNotification = false; in onMessageReceived()
172 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder); in createAMediaCodec()
174 mData->mCodec = android::MediaCodec::CreateByComponentName(mData->mLooper, name); in createAMediaCodec()
176 if (mData->mCodec == NULL) { // failed to create codec in createAMediaCodec()
207 if (mData->mCodec != NULL) { in AMediaCodec_delete()
208 mData->mCodec->release(); in AMediaCodec_delete()
209 mData->mCodec.clear(); in AMediaCodec_delete()
239 return translate_error(mData->mCodec->configure(nativeFormat, surface, in AMediaCodec_configure()
245 status_t ret = mData->mCodec->start(); in AMediaCodec_start()
257 media_status_t ret = translate_error(mData->mCodec->stop()); in AMediaCodec_stop()
269 return translate_error(mData->mCodec->flush()); in AMediaCodec_flush()
275 status_t ret = mData->mCodec->dequeueInputBuffer(&idx, timeoutUs); in AMediaCodec_dequeueInputBuffer()
286 if (mData->mCodec->getInputBuffers(&abufs) == 0) { in AMediaCodec_getInputBuffer()
308 if (mData->mCodec->getOutputBuffers(&abufs) == 0) { in AMediaCodec_getOutputBuffer()
328 status_t ret = mData->mCodec->queueInputBuffer(idx, offset, size, time, flags, &errorMsg); in AMediaCodec_queueInputBuffer()
340 status_t ret = mData->mCodec->dequeueOutputBuffer(&idx, &offset, &size, &presentationTimeUs, in AMediaCodec_dequeueOutputBuffer()
365 mData->mCodec->getOutputFormat(&format); in AMediaCodec_getOutputFormat()
372 return translate_error(mData->mCodec->renderOutputBufferAndRelease(idx)); in AMediaCodec_releaseOutputBuffer()
374 return translate_error(mData->mCodec->releaseOutputBuffer(idx)); in AMediaCodec_releaseOutputBuffer()
382 return translate_error(mData->mCodec->renderOutputBufferAndRelease(idx, timestampNs)); in AMediaCodec_releaseOutputBufferAtTime()
391 return translate_error(mData->mCodec->setSurface(surface)); in AMediaCodec_setOutputSurface()
402 status_t err = mData->mCodec->createInputSurface(&igbp); in AMediaCodec_createInputSurface()
449 return translate_error(mData->mCodec->setInputSurface( in AMediaCodec_setInputSurface()
463 return translate_error(mData->mCodec->setParameters(nativeParams)); in AMediaCodec_setParameters()
473 status_t err = mData->mCodec->signalEndOfInputStream(); in AMediaCodec_signalEndOfInputStream()
520 status_t err = codec->mCodec->queueSecureInputBuffer(idx, in AMediaCodec_queueSecureInputBuffer()