/frameworks/base/media/java/android/media/ |
H A D | MediaTimestamp.java | 43 return mediaTimeUs; 66 public final long mediaTimeUs; field in class:MediaTimestamp 74 mediaTimeUs = mediaUs; 81 mediaTimeUs = 0;
|
/frameworks/av/include/media/stagefright/ |
H A D | FrameRenderTracker.h | 61 Info(int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) argument 62 : mMediaTimeUs(mediaTimeUs), 70 Info(int64_t mediaTimeUs, nsecs_t renderTimeNs) argument 71 : mMediaTimeUs(mediaTimeUs), 95 // called when |graphicBuffer| corresponding to |mediaTimeUs| is 98 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence); 109 status_t onFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | StreamingSource.cpp | 128 int64_t mediaTimeUs; local 129 memcpy(&mediaTimeUs, &buffer[2], sizeof(mediaTimeUs)); 131 extra->setInt64(IStreamListener::kKeyMediaTimeUs, mediaTimeUs);
|
H A D | NuPlayerRenderer.cpp | 728 int64_t mediaTimeUs; local 729 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); 730 ALOGV("fillAudioBuffer: rendering audio at media time %.2f secs", mediaTimeUs / 1E6); 731 setAudioFirstAnchorTimeIfNeeded_l(mediaTimeUs); 882 int64_t mediaTimeUs; local 883 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); 885 mediaTimeUs / 1E6); 886 onNewAudioMediaTime(mediaTimeUs); 979 int64_t NuPlayer::Renderer::getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs) { argument 981 if (mMediaClock->getRealTimeFor(mediaTimeUs, 989 onNewAudioMediaTime(int64_t mediaTimeUs) argument 1032 int64_t mediaTimeUs; local 1036 int64_t mediaTimeUs; local 1110 int64_t mediaTimeUs; local [all...] |
/frameworks/av/media/libstagefright/ |
H A D | FrameRenderTracker.cpp | 46 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) { 47 mRenderQueue.emplace_back(mediaTimeUs, graphicBuffer, fence); 89 status_t FrameRenderTracker::onFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano) { argument 93 mComponentName.c_str(), (long long)systemNano, (long long)mediaTimeUs); 100 mComponentName.c_str(), (long long)systemNano, (long long)mediaTimeUs); 104 mRenderQueue.emplace_back(mediaTimeUs, systemNano); 45 onFrameQueued( int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) argument
|
H A D | MediaSync.cpp | 463 int64_t MediaSync::getRealTime(int64_t mediaTimeUs, int64_t nowUs) { argument 465 if (mMediaClock->getRealTimeFor(mediaTimeUs, &realUs) != OK) {
|
H A D | AwesomePlayer.cpp | 119 void render(const void *data, size_t size, int64_t mediaTimeUs, nsecs_t renderTimeNs) { argument 120 (void)mTarget->render(data, size, mediaTimeUs, renderTimeNs, NULL, mFormat); 1915 int64_t realTimeUs, mediaTimeUs; local 1917 && mAudioPlayer->getMediaTimeMapping(&realTimeUs, &mediaTimeUs)) { 1919 mTimeSourceDeltaUs, realTimeUs - mediaTimeUs, 1920 mTimeSourceDeltaUs - (realTimeUs - mediaTimeUs)); 1921 ATRACE_INT("TS delta change (ms)", (mTimeSourceDeltaUs - (realTimeUs - mediaTimeUs)) / 1E3); 1922 mTimeSourceDeltaUs = realTimeUs - mediaTimeUs; 1950 &realTimeUs, &mediaTimeUs)) { 1959 mSeekTimeUs = mediaTimeUs; [all...] |
H A D | MediaCodec.cpp | 2508 int64_t mediaTimeUs = -1; local 2509 info->mData->meta()->findInt64("timeUs", &mediaTimeUs); 2514 ALOGV("using buffer PTS of %lld", (long long)mediaTimeUs); 2515 renderTimeNs = mediaTimeUs * 1000; 2522 mediaTimeUs, renderTimeNs, NULL, info->mFormat);
|
H A D | ACodec.cpp | 257 virtual bool onOMXFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano); 375 virtual bool onOMXFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano); 394 virtual bool onOMXFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano); 1277 void ACodec::onFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano) { argument 1278 if (mRenderTracker.onFrameRendered(mediaTimeUs, systemNano) != OK) { 4720 int64_t mediaTimeUs, systemNano; local 4722 CHECK(msg->findInt64("media_time_us", &mediaTimeUs)); 4726 mediaTimeUs, systemNano); 4736 int64_t mediaTimeUs __unused, nsecs_t systemNano __unused) { 5254 int64_t mediaTimeUs local 6362 onOMXFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano) argument 6459 onOMXFrameRendered( int64_t mediaTimeUs, nsecs_t systemNano) argument [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/ |
H A D | AACEncoder.cpp | 319 int64_t mediaTimeUs = local 322 buffer->meta_data()->setInt64(kKeyTime, mAnchorTimeUs + mediaTimeUs); 324 buffer->meta_data()->setInt64(kKeyDriftTime, mediaTimeUs - wallClockTimeUs);
|
/frameworks/av/media/libstagefright/colorconversion/ |
H A D | SoftwareRenderer.cpp | 206 const void *data, size_t size, int64_t mediaTimeUs, nsecs_t renderTimeNs, 369 mRenderTracker.onFrameQueued(mediaTimeUs, (GraphicBuffer *)buf, Fence::NO_FENCE); 205 render( const void *data, size_t size, int64_t mediaTimeUs, nsecs_t renderTimeNs, void* , const sp<AMessage>& format) argument
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | ATSParser.cpp | 264 int64_t mediaTimeUs; local 268 IStreamListener::kKeyMediaTimeUs, &mediaTimeUs)) { 803 extra->setInt64("resume-at-mediaTimeUs", resumeAtMediaTimeUs); 1180 int64_t mediaTimeUs; local 1182 if (extra->findInt64(IStreamListener::kKeyMediaTimeUs, &mediaTimeUs)) { 1183 mAbsoluteTimeAnchorUs = mediaTimeUs; 1187 IStreamListener::kKeyRecentMediaTimeUs, &mediaTimeUs)) { 1189 mediaTimeUs -= mAbsoluteTimeAnchorUs; 1192 mediaTimeUs -= mTimeOffsetUs; 1194 mLastRecoveredPTS = (mediaTimeUs * [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | MyHandler.h | 1857 int64_t mediaTimeUs = mMediaAnchorUs + ntpTimeUs - mNTPAnchorUs; local 1859 if (mediaTimeUs > mLastMediaTimeUs) { 1860 mLastMediaTimeUs = mediaTimeUs; 1863 if (mediaTimeUs < 0) { 1868 ALOGV("track %d rtpTime=%u mediaTimeUs = %lld us (%.2f secs)", 1869 trackIndex, rtpTime, (long long)mediaTimeUs, mediaTimeUs / 1E6); 1871 accessUnit->meta()->setInt64("timeUs", mediaTimeUs);
|