Home | History | Annotate | Download | only in nuplayer

Lines Matching defs:nowUs

345         int64_t nowUs = ALooper::GetNowUs();
346 int64_t nowMediaUs = mAudioSink->getPlayedOutDurationUs(nowUs)
348 mMediaClock->updateAnchor(nowMediaUs, nowUs, -1);
813 int64_t nowUs = ALooper::GetNowUs();
815 mAudioFirstAnchorTimeMediaUs + mAudioSink->getPlayedOutDurationUs(nowUs);
817 mMediaClock->updateAnchor(nowMediaUs, nowUs, INT64_MAX);
1041 int64_t NuPlayer::Renderer::getPendingAudioPlayoutDurationUs(int64_t nowUs) {
1044 int64_t nowUs = ALooper::GetNowUs();
1046 if (mMediaClock->getMediaTime(nowUs, &mediaUs) != OK) {
1052 return writtenAudioDurationUs - mAudioSink->getPlayedOutDurationUs(nowUs);
1055 int64_t NuPlayer::Renderer::getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs) {
1060 return nowUs;
1081 int64_t nowUs = ALooper::GetNowUs();
1083 if (nowUs >= mNextAudioClockUpdateTimeUs) {
1084 int64_t nowMediaUs = mediaTimeUs - getPendingAudioPlayoutDurationUs(nowUs);
1085 mMediaClock->updateAnchor(nowMediaUs, nowUs, mediaTimeUs);
1087 mNextAudioClockUpdateTimeUs = nowUs + kMinimumAudioClockUpdatePeriodUs;
1091 if ((mMediaClock->getMediaTime(nowUs, &unused) != OK)
1102 mMediaClock->updateAnchor(mAudioFirstAnchorTimeMediaUs, nowUs, mediaTimeUs);
1136 int64_t nowUs = ALooper::GetNowUs();
1149 mMediaClock->updateAnchor(mediaTimeUs, nowUs, mediaTimeUs);
1151 realTimeUs = nowUs;
1154 realTimeUs = nowUs;
1157 realTimeUs = getRealTimeUs(mediaTimeUs, nowUs);
1160 realTimeUs = nowUs;
1162 realTimeUs = nowUs;
1174 delayUs = realTimeUs - nowUs;
1203 delayUs = realTimeUs - nowUs;
1231 int64_t nowUs = ALooper::GetNowUs();
1239 realTimeUs = getRealTimeUs(mediaTimeUs, nowUs);
1245 setVideoLateByUs(nowUs - realTimeUs);
1278 realTimeUs = nowUs;