Home
last modified time | relevance | path

Searched refs:mediaUs (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/media/libstagefright/
DMediaClock.cpp172 int64_t mediaUs = mAnchorTimeMediaUs in getMediaTime_l() local
174 if (mediaUs > mMaxTimeMediaUs && !allowPastMaxTime) { in getMediaTime_l()
175 mediaUs = mMaxTimeMediaUs; in getMediaTime_l()
177 if (mediaUs < mStartingTimeMediaUs) { in getMediaTime_l()
178 mediaUs = mStartingTimeMediaUs; in getMediaTime_l()
180 if (mediaUs < 0) { in getMediaTime_l()
181 mediaUs = 0; in getMediaTime_l()
183 *outMediaUs = mediaUs; in getMediaTime_l()
/frameworks/av/media/libmediaplayerservice/nuplayer/include/nuplayer/
DNuPlayerRenderer.h74 status_t getCurrentPosition(int64_t *mediaUs);
231 status_t getCurrentPositionOnLooper(int64_t *mediaUs);
233 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo = false);
234 bool getCurrentPositionIfPaused_l(int64_t *mediaUs);
236 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo = false);
248 void setAudioFirstAnchorTimeIfNeeded_l(int64_t mediaUs);
DNuPlayer.h91 status_t getCurrentPosition(int64_t *mediaUs);
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp384 status_t NuPlayer::Renderer::getCurrentPosition(int64_t *mediaUs) { in getCurrentPosition() argument
385 status_t result = mMediaClock->getMediaTime(ALooper::GetNowUs(), mediaUs); in getCurrentPosition()
407 *mediaUs = mAudioFirstAnchorTimeMediaUs; in getCurrentPosition()
414 return mMediaClock->getMediaTime(ALooper::GetNowUs(), mediaUs); in getCurrentPosition()
422 void NuPlayer::Renderer::setAudioFirstAnchorTimeIfNeeded_l(int64_t mediaUs) { in setAudioFirstAnchorTimeIfNeeded_l() argument
424 mAudioFirstAnchorTimeMediaUs = mediaUs; in setAudioFirstAnchorTimeIfNeeded_l()
425 mMediaClock->setStartingTimeMedia(mediaUs); in setAudioFirstAnchorTimeIfNeeded_l()
1225 int64_t mediaUs; in getPendingAudioPlayoutDurationUs() local
1226 if (mMediaClock->getMediaTime(nowUs, &mediaUs) != OK) { in getPendingAudioPlayoutDurationUs()
1229 return writtenAudioDurationUs - (mediaUs - mAudioFirstAnchorTimeMediaUs); in getPendingAudioPlayoutDurationUs()
[all …]
DNuPlayer.cpp2258 status_t NuPlayer::getCurrentPosition(int64_t *mediaUs) { in getCurrentPosition() argument
2264 return renderer->getCurrentPosition(mediaUs); in getCurrentPosition()
/frameworks/base/media/jni/
Dandroid_media_MediaSync.cpp286 int64_t mediaUs = 0; in android_media_MediaSync_native_getTimestamp() local
287 if (mediaClock->getMediaTime(nowUs, &mediaUs) != OK) { in android_media_MediaSync_native_getTimestamp()
292 (jlong)mediaUs); in android_media_MediaSync_native_getTimestamp()