Lines Matching refs:mediaTimeUs

713             int64_t mediaTimeUs;  in fillAudioBuffer()  local
714 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in fillAudioBuffer()
715 ALOGV("fillAudioBuffer: rendering audio at media time %.2f secs", mediaTimeUs / 1E6); in fillAudioBuffer()
716 setAudioFirstAnchorTimeIfNeeded_l(mediaTimeUs); in fillAudioBuffer()
863 int64_t mediaTimeUs; in onDrainAudioQueue() local
864 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in onDrainAudioQueue()
866 mediaTimeUs / 1E6); in onDrainAudioQueue()
867 onNewAudioMediaTime(mediaTimeUs); in onDrainAudioQueue()
956 int64_t NuPlayer::Renderer::getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs) { in getRealTimeUs() argument
958 if (mMediaClock->getRealTimeFor(mediaTimeUs, &realUs) != OK) { in getRealTimeUs()
966 void NuPlayer::Renderer::onNewAudioMediaTime(int64_t mediaTimeUs) { in onNewAudioMediaTime() argument
970 if (mediaTimeUs == mAnchorTimeMediaUs) { in onNewAudioMediaTime()
973 setAudioFirstAnchorTimeIfNeeded_l(mediaTimeUs); in onNewAudioMediaTime()
975 int64_t nowMediaUs = mediaTimeUs - getPendingAudioPlayoutDurationUs(nowUs); in onNewAudioMediaTime()
976 mMediaClock->updateAnchor(nowMediaUs, nowUs, mediaTimeUs); in onNewAudioMediaTime()
978 mAnchorTimeMediaUs = mediaTimeUs; in onNewAudioMediaTime()
1009 int64_t mediaTimeUs; in postDrainVideoQueue() local
1010 CHECK(entry.mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in postDrainVideoQueue()
1011 realTimeUs = mediaTimeUs; in postDrainVideoQueue()
1013 int64_t mediaTimeUs; in postDrainVideoQueue() local
1014 CHECK(entry.mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in postDrainVideoQueue()
1019 mMediaClock->updateAnchor(mediaTimeUs, nowUs, mediaTimeUs); in postDrainVideoQueue()
1020 mAnchorTimeMediaUs = mediaTimeUs; in postDrainVideoQueue()
1023 realTimeUs = getRealTimeUs(mediaTimeUs, nowUs); in postDrainVideoQueue()
1028 mMediaClock->updateMaxTimeMedia(mediaTimeUs + 100000); in postDrainVideoQueue()
1087 int64_t mediaTimeUs; in onDrainVideoQueue() local
1088 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in onDrainVideoQueue()
1091 realTimeUs = getRealTimeUs(mediaTimeUs, nowUs); in onDrainVideoQueue()