Home | History | Annotate | Download | only in nuplayer

Lines Matching defs:audio

123     FlushDecoderAction(FlushCommand audio, FlushCommand video)
124 : mAudio(audio),
393 // do some cursory validation of the settings here. audio modes are
501 mime = "audio/";
751 (mSource != NULL && mStarted && mSource->getFormat(false /* audio */) != NULL
757 if (mSource == NULL || !mStarted || mSource->getFormat(false /* audio */) == NULL
766 (obj != NULL ? FLUSH_CMD_FLUSH : FLUSH_CMD_NONE) /* audio */,
775 // If the video decoder is not set (perhaps audio only in this case)
844 // Set mPlaybackSettings so that the new audio decoder can
986 // initialize video before audio because successful initialization of
987 // video may change deep buffer mode of audio.
994 // Don't try to re-open audio sink if there's an existing decoder.
1013 // We're not currently decoding anything (no audio or
1035 bool audio = msg->what() == kWhatAudioNotify;
1038 (audio? mAudioDecoderGeneration : mVideoDecoderGeneration);
1044 audio ? "audio" : "video", requesterGeneration,
1064 audio ? "audio" : "video", formatChange);
1069 audio ? FLUSH_CMD_SHUTDOWN : FLUSH_CMD_NONE,
1070 audio ? FLUSH_CMD_NONE : FLUSH_CMD_SHUTDOWN));
1083 ALOGV("got %s decoder EOS", audio ? "audio" : "video");
1086 audio ? "audio" : "video",
1090 mRenderer->queueEOS(audio, err);
1092 ALOGV("decoder %s flush completed", audio ? "audio" : "video");
1094 handleFlushComplete(audio, true /* isDecoder */);
1101 mSource->getFormat(false /* audio */);
1106 ALOGV("%s shutdown completed", audio ? "audio" : "video");
1107 if (audio) {
1144 FlushStatus *flushing = audio ? &mFlushingAudio : &mFlushingVideo;
1146 err, audio ? "audio" : "video", *flushing);
1152 audio ? FLUSH_CMD_SHUTDOWN : FLUSH_CMD_NONE,
1153 audio ? FLUSH_CMD_NONE : FLUSH_CMD_SHUTDOWN));
1164 getDecoder(audio)->initiateShutdown(); // In the middle of a seek.
1172 if (audio) {
1173 if (mVideoDecoderError || mSource->getFormat(false /* audio */) == NULL
1175 // When both audio and video have error, or this stream has only audio
1179 // Only audio track has error. Video track could be still good to play.
1184 if (mAudioDecoderError || mSource->getFormat(true /* audio */) == NULL
1186 // When both audio and video have error, or this stream has only video
1190 // Only video track has error. Audio track could be still good to play.
1222 int32_t audio;
1223 CHECK(msg->findInt32("audio", &audio));
1228 if (audio) {
1235 ALOGV("reached %s EOS", audio ? "audio" : "video");
1238 audio ? "audio" : "video", finalResult);
1249 int32_t audio;
1250 CHECK(msg->findInt32("audio", &audio));
1252 if (audio) {
1258 ALOGV("renderer %s flush completed.", audio ? "audio" : "video");
1259 if (audio && (mFlushingAudio == NONE || mFlushingAudio == FLUSHED
1264 handleFlushComplete(audio, false /* isDecoder */);
1274 ALOGV("Tear down audio with reason %d.", reason);
1305 FLUSH_CMD_SHUTDOWN /* audio */,
1332 // Audio-only cases are handled separately.
1345 new FlushDecoderAction(FLUSH_CMD_FLUSH /* audio */,
1424 instantiateDecoder(true /* audio */, &mAudioDecoder);
1474 if (mSource->getFormat(false /* audio */) == NULL) {
1491 bool hasAudio = (mSource->getFormat(true /* audio */) != NULL);
1492 bool hasVideo = (mSource->getFormat(false /* audio */) != NULL);
1494 ALOGE("no metadata for either audio or video source");
1500 ALOGV_IF(!hasAudio, "no metadata for audio source"); // video only stream
1502 sp<MetaData> audioMeta = mSource->getFormatMeta(true /* audio */);
1513 // Modular DRM: Disabling audio offload if the source is protected
1583 // Audio decoder is no longer needed if it's in shut/shutting down status.
1587 void NuPlayer::handleFlushComplete(bool audio, bool isDecoder) {
1591 mFlushComplete[audio][isDecoder] = true;
1592 if (!mFlushComplete[audio][!isDecoder]) {
1596 FlushStatus *state = audio ? &mFlushingAudio : &mFlushingVideo;
1608 ALOGV("initiating %s decoder shutdown", audio ? "audio" : "video");
1609 getDecoder(audio)->initiateShutdown();
1631 ALOGV("both audio and video are flushed now.");
1682 mFlushComplete[1 /* audio */][1 /* isDecoder */] = true;
1687 mFlushComplete[1 /* audio */][1 /* isDecoder */] = true;
1696 mRenderer->flush(true /* audio */, false /* notifyComplete */);
1698 mRenderer->flush(false /* audio */, false /* notifyComplete */);
1708 instantiateDecoder(true /* audio */, &mAudioDecoder, !forceNonOffload);
1718 ALOGW("No renderer can be used to determine audio mode. Use non-offload for safety.");
1723 sp<MetaData> audioMeta = mSource->getFormatMeta(true /* audio */);
1724 sp<AMessage> videoFormat = mSource->getFormat(false /* audio */);
1731 // Modular DRM: Disabling audio offload if the source is protected
1741 // open audio sink early under offload mode.
1752 bool audio, sp<DecoderBase> *decoder, bool checkAudioModeChange) {
1753 // The audio decoder could be cleared by tear down. If still in shut down
1754 // process, no need to create a new audio decoder.
1755 if (*decoder != NULL || (audio && mFlushingAudio == SHUT_DOWN)) {
1759 sp<AMessage> format = mSource->getFormat(audio);
1772 if (!audio) {
1795 if (audio) {
1806 const bool hasVideo = (mSource->getFormat(false /*audio */) != NULL);
1809 ALOGV("instantiateDecoder audio DecoderPassThrough hasVideo: %d", hasVideo);
1814 ALOGV("instantiateDecoder audio Decoder");
1847 if (!audio) {
1973 void NuPlayer::flushDecoder(bool audio, bool needShutdown) {
1975 audio ? "audio" : "video", needShutdown);
1977 const sp<DecoderBase> &decoder = getDecoder(audio);
1980 audio ? "audio" : "video");
1999 mFlushComplete[audio][false /* isDecoder */] = (mRenderer == NULL);
2000 mFlushComplete[audio][true /* isDecoder */] = false;
2001 if (audio) {
2003 "audio flushDecoder() is called in state %d", mFlushingAudio);
2013 bool audio, bool video, const sp<AMessage> &reply) {
2014 ALOGI("queueDecoderShutdown audio=%d, video=%d", audio, video);
2018 audio ? FLUSH_CMD_SHUTDOWN : FLUSH_CMD_NONE,
2110 sp<MetaData> meta = mSource->getFormatMeta(false /* audio */);
2172 "mSource is NULL and decoders not NULL audio(%p) video(%p)",
2183 void NuPlayer::performDecoderFlush(FlushCommand audio, FlushCommand video) {
2184 ALOGV("performDecoderFlush audio=%d, video=%d", audio, video);
2186 if ((audio == FLUSH_CMD_NONE || mAudioDecoder == NULL)
2191 if (audio != FLUSH_CMD_NONE && mAudioDecoder != NULL) {
2192 flushDecoder(true /* audio */, (audio == FLUSH_CMD_SHUTDOWN));
2196 flushDecoder(false /* audio */, (video == FLUSH_CMD_SHUTDOWN));
2283 // if audio-only, we can notify seek complete now,
2357 new FlushDecoderAction(FLUSH_CMD_SHUTDOWN /* audio */,
2546 int32_t audio, video;
2547 CHECK(msg->findInt32("audio", &audio));
2553 queueDecoderShutdown(audio, video, reply);
2798 const sp<DecoderBase> &videoDecoder = getDecoder(false/*audio*/);
2804 const sp<DecoderBase> &audioDecoder = getDecoder(true/*audio*/);
2810 ALOGV("onReleaseDrm: audio decoder ret: %d", status_audio);
2827 sp<AMessage> NuPlayer::Source::getFormat(bool audio) {
2828 sp<MetaData> meta = getFormatMeta(audio);