Lines Matching defs:audio

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