Lines Matching refs:mediaTimeUs
898 int64_t mediaTimeUs; in fillAudioBuffer() local
899 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in fillAudioBuffer()
900 ALOGV("fillAudioBuffer: rendering audio at media time %.2f secs", mediaTimeUs / 1E6); in fillAudioBuffer()
901 setAudioFirstAnchorTimeIfNeeded_l(mediaTimeUs); in fillAudioBuffer()
1072 int64_t mediaTimeUs; in onDrainAudioQueue() local
1073 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in onDrainAudioQueue()
1075 mediaTimeUs / 1E6); in onDrainAudioQueue()
1076 onNewAudioMediaTime(mediaTimeUs); in onDrainAudioQueue()
1198 int64_t NuPlayer::Renderer::getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs) { in getRealTimeUs() argument
1200 if (mMediaClock->getRealTimeFor(mediaTimeUs, &realUs) != OK) { in getRealTimeUs()
1208 void NuPlayer::Renderer::onNewAudioMediaTime(int64_t mediaTimeUs) { in onNewAudioMediaTime() argument
1212 if (mediaTimeUs == mAnchorTimeMediaUs) { in onNewAudioMediaTime()
1215 setAudioFirstAnchorTimeIfNeeded_l(mediaTimeUs); in onNewAudioMediaTime()
1227 int64_t nowMediaUs = mediaTimeUs - getPendingAudioPlayoutDurationUs(nowUs); in onNewAudioMediaTime()
1228 mMediaClock->updateAnchor(nowMediaUs, nowUs, mediaTimeUs); in onNewAudioMediaTime()
1245 mMediaClock->updateAnchor(mAudioFirstAnchorTimeMediaUs, nowUs, mediaTimeUs); in onNewAudioMediaTime()
1250 mAnchorTimeMediaUs = mediaTimeUs; in onNewAudioMediaTime()
1296 int64_t mediaTimeUs; in postDrainVideoQueue() local
1297 CHECK(entry.mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in postDrainVideoQueue()
1302 mMediaClock->updateAnchor(mediaTimeUs, nowUs, mediaTimeUs); in postDrainVideoQueue()
1303 mAnchorTimeMediaUs = mediaTimeUs; in postDrainVideoQueue()
1306 mNextVideoTimeMediaUs = mediaTimeUs; in postDrainVideoQueue()
1309 mMediaClock->updateMaxTimeMedia(mediaTimeUs + kDefaultVideoFrameIntervalUs); in postDrainVideoQueue()
1312 if (!mVideoSampleReceived || mediaTimeUs < mAudioFirstAnchorTimeMediaUs) { in postDrainVideoQueue()
1318 mMediaClock->addTimer(msg, mediaTimeUs, -twoVsyncsUs); in postDrainVideoQueue()
1345 int64_t mediaTimeUs = -1; in onDrainVideoQueue() local
1349 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in onDrainVideoQueue()
1351 realTimeUs = getRealTimeUs(mediaTimeUs, nowUs); in onDrainVideoQueue()
1373 && mediaTimeUs > mLastAudioMediaTimeUs) { in onDrainVideoQueue()
1376 mMediaClock->updateMaxTimeMedia(mediaTimeUs + kDefaultVideoFrameIntervalUs); in onDrainVideoQueue()