Lines Matching refs:mCodec

75     AMediaCodec* mCodec;
84 sp<android::MediaCodec> mCodec;
100 mCodec = codec;
108 if (mCodec->mRequestedActivityNotification) {
112 mCodec->mCodec->requestActivityNotification(mCodec->mActivityNotification);
113 mCodec->mRequestedActivityNotification = true;
123 if (generation != mCodec->mGeneration) {
128 mCodec->mRequestedActivityNotification = false;
131 if (mCodec->mCallback) {
132 mCodec->mCallback(mCodec, mCodec->mCallbackUserData);
156 Mutex::Autolock _l(mCodec->mAsyncCallbackLock);
157 if (mCodec->mAsyncCallbackUserData != NULL
158 || mCodec->mAsyncCallback.onAsyncInputAvailable != NULL) {
159 mCodec->mAsyncCallback.onAsyncInputAvailable(
160 mCodec,
161 mCodec->mAsyncCallbackUserData,
203 Mutex::Autolock _l(mCodec->mAsyncCallbackLock);
204 if (mCodec->mAsyncCallbackUserData != NULL
205 || mCodec->mAsyncCallback.onAsyncOutputAvailable != NULL) {
206 mCodec->mAsyncCallback.onAsyncOutputAvailable(
207 mCodec,
208 mCodec->mAsyncCallbackUserData,
226 Mutex::Autolock _l(mCodec->mAsyncCallbackLock);
227 if (mCodec->mAsyncCallbackUserData != NULL
228 || mCodec->mAsyncCallback.onAsyncFormatChanged != NULL) {
229 mCodec->mAsyncCallback.onAsyncFormatChanged(
230 mCodec,
231 mCodec->mAsyncCallbackUserData,
255 Mutex::Autolock _l(mCodec->mAsyncCallbackLock);
256 if (mCodec->mAsyncCallbackUserData != NULL
257 || mCodec->mAsyncCallback.onAsyncError != NULL) {
258 mCodec->mAsyncCallback.onAsyncError(
259 mCodec,
260 mCodec->mAsyncCallbackUserData,
283 mCodec->mGeneration++;
284 mCodec->mRequestedActivityNotification = false;
319 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder);
321 mData->mCodec = android::MediaCodec::CreateByComponentName(mData->mLooper, name);
323 if (mData->mCodec == NULL) { // failed to create codec
357 if (mData->mCodec != NULL) {
358 mData->mCodec->release();
359 mData->mCodec.clear();
383 status_t err = mData->mCodec->getName(&compName);
415 status_t err = mData->mCodec->configure(nativeFormat, surface,
431 status_t err = mData->mCodec->setCallback(mData->mAsyncNotify);
448 return translate_error(mData->mCodec->releaseCrypto());
453 status_t ret = mData->mCodec->start();
465 media_status_t ret = translate_error(mData->mCodec->stop());
477 return translate_error(mData->mCodec->flush());
483 status_t ret = mData->mCodec->dequeueInputBuffer(&idx, timeoutUs);
496 if (mData->mCodec->getInputBuffer(idx, &abuf) != 0) {
507 if (mData->mCodec->getInputBuffers(&abufs) == 0) {
531 if (mData->mCodec->getOutputBuffer(idx, &abuf) != 0) {
542 if (mData->mCodec->getOutputBuffers(&abufs) == 0) {
562 status_t ret = mData->mCodec->queueInputBuffer(idx, offset, size, time, flags, &errorMsg);
574 status_t ret = mData->mCodec->dequeueOutputBuffer(&idx, &offset, &size, &presentationTimeUs,
599 mData->mCodec->getOutputFormat(&format);
606 mData->mCodec->getInputFormat(&format);
613 mData->mCodec->getOutputFormat(index, &format);
620 return translate_error(mData->mCodec->renderOutputBufferAndRelease(idx));
622 return translate_error(mData->mCodec->releaseOutputBuffer(idx));
630 return translate_error(mData->mCodec->renderOutputBufferAndRelease(idx, timestampNs));
639 return translate_error(mData->mCodec->setSurface(surface));
650 status_t err = mData->mCodec->createInputSurface(&igbp);
697 return translate_error(mData->mCodec->setInputSurface(
711 return translate_error(mData->mCodec->setParameters(nativeParams));
721 status_t err = mData->mCodec->signalEndOfInputStream();
768 status_t err = codec->mCodec->queueSecureInputBuffer(idx,