Home
last modified time | relevance | path

Searched refs:mediaTimeUs (Results 1 – 20 of 20) sorted by relevance

/frameworks/av/include/media/stagefright/
DFrameRenderTracker.h61 Info(int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) in Info()
62 : mMediaTimeUs(mediaTimeUs), in Info()
70 Info(int64_t mediaTimeUs, nsecs_t renderTimeNs) in Info()
71 : mMediaTimeUs(mediaTimeUs), in Info()
98 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence);
109 status_t onFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano);
DMediaSync.h236 int64_t getRealTime(int64_t mediaTimeUs, int64_t nowUs);
DACodec.h393 void onFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano);
/frameworks/base/media/java/android/media/
DMediaTimestamp.java43 return mediaTimeUs; in getAnchorMediaTimeUs()
66 public final long mediaTimeUs; field in MediaTimestamp
74 mediaTimeUs = mediaUs; in MediaTimestamp()
81 mediaTimeUs = 0; in MediaTimestamp()
DMediaCodec.java1517 Object mediaTimeUs = map.get(i + "-media-time-us"); in handleMessage() local
1519 if (mediaTimeUs == null || systemNano == null in handleMessage()
1524 mCodec, (long)mediaTimeUs, (long)systemNano); in handleMessage()
/frameworks/av/media/libstagefright/
DFrameRenderTracker.cpp46 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) { in onFrameQueued() argument
47 mRenderQueue.emplace_back(mediaTimeUs, graphicBuffer, fence); in onFrameQueued()
89 status_t FrameRenderTracker::onFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano) { in onFrameRendered() argument
93 mComponentName.c_str(), (long long)systemNano, (long long)mediaTimeUs); in onFrameRendered()
100 mComponentName.c_str(), (long long)systemNano, (long long)mediaTimeUs); in onFrameRendered()
104 mRenderQueue.emplace_back(mediaTimeUs, systemNano); in onFrameRendered()
DAwesomePlayer.cpp119 void render(const void *data, size_t size, int64_t mediaTimeUs, nsecs_t renderTimeNs) { in render()
120 (void)mTarget->render(data, size, mediaTimeUs, renderTimeNs, NULL, mFormat); in render()
1915 int64_t realTimeUs, mediaTimeUs; in onVideoEvent() local
1917 && mAudioPlayer->getMediaTimeMapping(&realTimeUs, &mediaTimeUs)) { in onVideoEvent()
1919 mTimeSourceDeltaUs, realTimeUs - mediaTimeUs, in onVideoEvent()
1920 mTimeSourceDeltaUs - (realTimeUs - mediaTimeUs)); in onVideoEvent()
1921 ATRACE_INT("TS delta change (ms)", (mTimeSourceDeltaUs - (realTimeUs - mediaTimeUs)) / 1E3); in onVideoEvent()
1922 mTimeSourceDeltaUs = realTimeUs - mediaTimeUs; in onVideoEvent()
1950 &realTimeUs, &mediaTimeUs)) { in onVideoEvent()
1959 mSeekTimeUs = mediaTimeUs; in onVideoEvent()
DACodec.cpp257 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) { in onFrameRendered() argument
1278 if (mRenderTracker.onFrameRendered(mediaTimeUs, systemNano) != OK) { in onFrameRendered()
4720 int64_t mediaTimeUs, systemNano; in onOMXMessage() local
4722 CHECK(msg->findInt64("media_time_us", &mediaTimeUs)); in onOMXMessage()
4726 mediaTimeUs, systemNano); in onOMXMessage()
4736 int64_t mediaTimeUs __unused, nsecs_t systemNano __unused) { in onOMXFrameRendered()
5254 int64_t mediaTimeUs = -1; in onOutputBufferDrained() local
[all …]
DMediaSync.cpp463 int64_t MediaSync::getRealTime(int64_t mediaTimeUs, int64_t nowUs) { in getRealTime() argument
465 if (mMediaClock->getRealTimeFor(mediaTimeUs, &realUs) != OK) { in getRealTime()
DMediaCodec.cpp2460 int64_t mediaTimeUs = -1; in onReleaseOutputBuffer() local
2461 info->mData->meta()->findInt64("timeUs", &mediaTimeUs); in onReleaseOutputBuffer()
2466 ALOGV("using buffer PTS of %lld", (long long)mediaTimeUs); in onReleaseOutputBuffer()
2467 renderTimeNs = mediaTimeUs * 1000; in onReleaseOutputBuffer()
2474 mediaTimeUs, renderTimeNs, NULL, info->mFormat); in onReleaseOutputBuffer()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp713 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()
[all …]
DStreamingSource.cpp128 int64_t mediaTimeUs; in onReadBuffer() local
129 memcpy(&mediaTimeUs, &buffer[2], sizeof(mediaTimeUs)); in onReadBuffer()
131 extra->setInt64(IStreamListener::kKeyMediaTimeUs, mediaTimeUs); in onReadBuffer()
DNuPlayerDecoderPassThrough.cpp271 int64_t mediaTimeUs; in fetchInputData()
272 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs)); in fetchInputData()
274 mediaTimeUs / 1E6); in fetchInputData()
DNuPlayerRenderer.h221 void onNewAudioMediaTime(int64_t mediaTimeUs);
222 int64_t getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs);
DNuPlayerDecoder.cpp752 int64_t mediaTimeUs; in fetchInputData()
753 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs)); in fetchInputData()
756 mediaTimeUs / 1E6); in fetchInputData()
/frameworks/av/media/libstagefright/codecs/aacenc/
DAACEncoder.cpp319 int64_t mediaTimeUs = in read() local
322 buffer->meta_data()->setInt64(kKeyTime, mAnchorTimeUs + mediaTimeUs); in read()
324 buffer->meta_data()->setInt64(kKeyDriftTime, mediaTimeUs - wallClockTimeUs); in read()
/frameworks/av/media/libstagefright/include/
DSoftwareRenderer.h40 const void *data, size_t size, int64_t mediaTimeUs, nsecs_t renderTimeNs,
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp264 int64_t mediaTimeUs; in signalDiscontinuity() local
268 IStreamListener::kKeyMediaTimeUs, &mediaTimeUs)) { in signalDiscontinuity()
1180 int64_t mediaTimeUs; in signalDiscontinuity() local
1182 if (extra->findInt64(IStreamListener::kKeyMediaTimeUs, &mediaTimeUs)) { in signalDiscontinuity()
1183 mAbsoluteTimeAnchorUs = mediaTimeUs; in signalDiscontinuity()
1187 IStreamListener::kKeyRecentMediaTimeUs, &mediaTimeUs)) { in signalDiscontinuity()
1189 mediaTimeUs -= mAbsoluteTimeAnchorUs; in signalDiscontinuity()
1192 mediaTimeUs -= mTimeOffsetUs; in signalDiscontinuity()
1194 mLastRecoveredPTS = (mediaTimeUs * 9) / 100; in signalDiscontinuity()
/frameworks/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp206 const void *data, size_t size, int64_t mediaTimeUs, nsecs_t renderTimeNs, in render() argument
369 mRenderTracker.onFrameQueued(mediaTimeUs, (GraphicBuffer *)buf, Fence::NO_FENCE); in render()
/frameworks/av/media/libstagefright/rtsp/
DMyHandler.h1857 int64_t mediaTimeUs = mMediaAnchorUs + ntpTimeUs - mNTPAnchorUs; in addMediaTimestamp() local
1859 if (mediaTimeUs > mLastMediaTimeUs) { in addMediaTimestamp()
1860 mLastMediaTimeUs = mediaTimeUs; in addMediaTimestamp()
1863 if (mediaTimeUs < 0) { in addMediaTimestamp()
1869 trackIndex, rtpTime, (long long)mediaTimeUs, mediaTimeUs / 1E6); in addMediaTimestamp()
1871 accessUnit->meta()->setInt64("timeUs", mediaTimeUs); in addMediaTimestamp()