• Home
  • Raw
  • Download

Lines Matching refs:audio

93     ShutdownDecoderAction(bool audio, bool video)  in ShutdownDecoderAction()
94 : mAudio(audio), in ShutdownDecoderAction()
535 bool audio = msg->what() == kWhatAudioNotify; in onMessageReceived() local
545 audio, codecRequest); in onMessageReceived()
557 ALOGV("got %s decoder EOS", audio ? "audio" : "video"); in onMessageReceived()
560 audio ? "audio" : "video", in onMessageReceived()
564 mRenderer->queueEOS(audio, err); in onMessageReceived()
568 if (audio) { in onMessageReceived()
578 ALOGV("decoder %s flush completed", audio ? "audio" : "video"); in onMessageReceived()
582 audio ? "audio" : "video"); in onMessageReceived()
584 (audio ? mAudioDecoder : mVideoDecoder)->initiateShutdown(); in onMessageReceived()
586 if (audio) { in onMessageReceived()
595 if (audio) { in onMessageReceived()
685 ALOGV("%s shutdown completed", audio ? "audio" : "video"); in onMessageReceived()
686 if (audio) { in onMessageReceived()
701 audio ? "audio" : "video"); in onMessageReceived()
703 mRenderer->queueEOS(audio, UNKNOWN_ERROR); in onMessageReceived()
705 renderBuffer(audio, codecRequest); in onMessageReceived()
726 int32_t audio; in onMessageReceived() local
727 CHECK(msg->findInt32("audio", &audio)); in onMessageReceived()
732 if (audio) { in onMessageReceived()
739 ALOGV("reached %s EOS", audio ? "audio" : "video"); in onMessageReceived()
742 audio ? "audio" : "video", finalResult); in onMessageReceived()
768 int32_t audio; in onMessageReceived() local
769 CHECK(msg->findInt32("audio", &audio)); in onMessageReceived()
771 ALOGV("renderer %s flush completed.", audio ? "audio" : "video"); in onMessageReceived()
887 status_t NuPlayer::instantiateDecoder(bool audio, sp<Decoder> *decoder) { in instantiateDecoder() argument
892 sp<AMessage> format = mSource->getFormat(audio); in instantiateDecoder()
898 if (!audio) { in instantiateDecoder()
905 new AMessage(audio ? kWhatAudioNotify : kWhatVideoNotify, in instantiateDecoder()
908 *decoder = audio ? new Decoder(notify) : in instantiateDecoder()
917 status_t NuPlayer::feedDecoderInputData(bool audio, const sp<AMessage> &msg) { in feedDecoderInputData() argument
921 if ((audio && IsFlushingState(mFlushingAudio)) in feedDecoderInputData()
922 || (!audio && IsFlushingState(mFlushingVideo))) { in feedDecoderInputData()
932 status_t err = mSource->dequeueAccessUnit(audio, &accessUnit); in feedDecoderInputData()
942 (audio && in feedDecoderInputData()
944 || (!audio && in feedDecoderInputData()
950 audio ? "audio" : "video", formatChange, timeChange); in feedDecoderInputData()
952 if (audio) { in feedDecoderInputData()
966 audio ? "audio" : "video", resumeAtMediaTimeUs); in feedDecoderInputData()
968 if (audio) { in feedDecoderInputData()
991 sp<AMessage> newFormat = mSource->getFormat(audio); in feedDecoderInputData()
992 sp<Decoder> &decoder = audio ? mAudioDecoder : mVideoDecoder; in feedDecoderInputData()
994 flushDecoder(audio, /* needShutdown = */ true); in feedDecoderInputData()
996 flushDecoder(audio, /* needShutdown = */ false); in feedDecoderInputData()
1002 if (audio) { in feedDecoderInputData()
1019 if (!audio) { in feedDecoderInputData()
1024 if (!audio in feedDecoderInputData()
1039 audio ? "audio" : "video", in feedDecoderInputData()
1049 void NuPlayer::renderBuffer(bool audio, const sp<AMessage> &msg) { in renderBuffer() argument
1055 if (IsFlushingState(audio ? mFlushingAudio : mFlushingVideo)) { in renderBuffer()
1062 " right back.", audio ? "audio" : "video"); in renderBuffer()
1072 audio in renderBuffer()
1082 audio ? "audio" : "video", in renderBuffer()
1092 mRenderer->queueBuffer(audio, buffer, reply); in renderBuffer()
1109 void NuPlayer::flushDecoder(bool audio, bool needShutdown) { in flushDecoder() argument
1111 audio ? "audio" : "video", needShutdown); in flushDecoder()
1113 if ((audio && mAudioDecoder == NULL) || (!audio && mVideoDecoder == NULL)) { in flushDecoder()
1115 audio ? "audio" : "video"); in flushDecoder()
1122 (audio ? mAudioDecoder : mVideoDecoder)->signalFlush(); in flushDecoder()
1123 mRenderer->flush(audio); in flushDecoder()
1128 if (audio) { in flushDecoder()
1153 sp<AMessage> NuPlayer::Source::getFormat(bool audio) { in getFormat() argument
1154 sp<MetaData> meta = getFormatMeta(audio); in getFormat()
1283 void NuPlayer::performDecoderShutdown(bool audio, bool video) { in performDecoderShutdown() argument
1284 ALOGV("performDecoderShutdown audio=%d, video=%d", audio, video); in performDecoderShutdown()
1286 if ((!audio || mAudioDecoder == NULL) in performDecoderShutdown()
1293 if (mFlushingAudio == NONE && (!audio || mAudioDecoder == NULL)) { in performDecoderShutdown()
1301 if (audio && mAudioDecoder != NULL) { in performDecoderShutdown()
1471 int32_t audio, video; in onSourceNotify() local
1472 CHECK(msg->findInt32("audio", &audio)); in onSourceNotify()
1478 queueDecoderShutdown(audio, video, reply); in onSourceNotify()
1516 bool audio, bool video, const sp<AMessage> &reply) { in queueDecoderShutdown() argument
1517 ALOGI("queueDecoderShutdown audio=%d, video=%d", audio, video); in queueDecoderShutdown()
1520 new ShutdownDecoderAction(audio, video)); in queueDecoderShutdown()