Lines Matching refs:audio

158 sp<MetaData> NuPlayer::RTSPSource::getFormatMeta(bool audio) {  in getFormatMeta()  argument
159 sp<AnotherPacketSource> source = getSource(audio); in getFormatMeta()
205 bool audio, sp<ABuffer> *accessUnit) { in dequeueAccessUnit() argument
210 sp<AnotherPacketSource> source = getSource(audio); in dequeueAccessUnit()
221 if (sourceReachedEOS(!audio)) { in dequeueAccessUnit()
230 int64_t eosTimeout = audio ? mEOSTimeoutAudio : mEOSTimeoutVideo; in dequeueAccessUnit()
232 setEOSTimeout(audio, ALooper::GetNowUs()); in dequeueAccessUnit()
234 setEOSTimeout(audio, 0); in dequeueAccessUnit()
240 if (!sourceNearEOS(!audio)) { in dequeueAccessUnit()
251 setEOSTimeout(audio, 0); in dequeueAccessUnit()
256 sp<AnotherPacketSource> NuPlayer::RTSPSource::getSource(bool audio) { in getSource() argument
259 audio ? ATSParser::AUDIO : ATSParser::VIDEO); in getSource()
264 return audio ? mAudioTrack : mVideoTrack; in getSource()
267 void NuPlayer::RTSPSource::setEOSTimeout(bool audio, int64_t timeout) { in setEOSTimeout() argument
268 if (audio) { in setEOSTimeout()
419 const bool audio = true; in signalSourceEOS() local
422 sp<AnotherPacketSource> source = getSource(audio); in signalSourceEOS()
433 bool NuPlayer::RTSPSource::sourceReachedEOS(bool audio) { in sourceReachedEOS() argument
434 sp<AnotherPacketSource> source = getSource(audio); in sourceReachedEOS()
441 bool NuPlayer::RTSPSource::sourceNearEOS(bool audio) { in sourceNearEOS() argument
442 sp<AnotherPacketSource> source = getSource(audio); in sourceNearEOS()
463 const bool audio = true; in postSourceEOSIfNecessary() local
467 if (sourceNearEOS(audio) || sourceNearEOS(video)) { in postSourceEOSIfNecessary()