Home
last modified time | relevance | path

Searched refs:mediaTimeUs (Results 1 – 19 of 19) 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.h514 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.java1621 Object mediaTimeUs = map.get(i + "-media-time-us"); in handleMessage() local
1623 if (mediaTimeUs == null || systemNano == null in handleMessage()
1628 mCodec, (long)mediaTimeUs, (long)systemNano); in handleMessage()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp785 int64_t mediaTimeUs; in fillAudioBuffer() local
786 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in fillAudioBuffer()
787 ALOGV("fillAudioBuffer: rendering audio at media time %.2f secs", mediaTimeUs / 1E6); in fillAudioBuffer()
788 setAudioFirstAnchorTimeIfNeeded_l(mediaTimeUs); in fillAudioBuffer()
940 int64_t mediaTimeUs; in onDrainAudioQueue() local
941 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in onDrainAudioQueue()
943 mediaTimeUs / 1E6); in onDrainAudioQueue()
944 onNewAudioMediaTime(mediaTimeUs); in onDrainAudioQueue()
1055 int64_t NuPlayer::Renderer::getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs) { in getRealTimeUs() argument
1057 if (mMediaClock->getRealTimeFor(mediaTimeUs, &realUs) != OK) { in getRealTimeUs()
[all …]
DStreamingSource.cpp131 int64_t mediaTimeUs; in onReadBuffer() local
132 memcpy(&mediaTimeUs, &buffer[2], sizeof(mediaTimeUs)); in onReadBuffer()
134 extra->setInt64(IStreamListener::kKeyMediaTimeUs, mediaTimeUs); in onReadBuffer()
DNuPlayerDecoderPassThrough.cpp275 int64_t mediaTimeUs; in fetchInputData()
276 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs)); in fetchInputData()
278 mediaTimeUs / 1E6); in fetchInputData()
DNuPlayerRenderer.h227 void onNewAudioMediaTime(int64_t mediaTimeUs);
228 int64_t getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs);
DNuPlayerDecoder.cpp757 int64_t mediaTimeUs; in fetchInputData()
758 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs)); in fetchInputData()
761 mediaTimeUs / 1E6); in fetchInputData()
/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()
DMediaSync.cpp463 int64_t MediaSync::getRealTime(int64_t mediaTimeUs, int64_t nowUs) { in getRealTime() argument
465 if (mMediaClock->getRealTimeFor(mediaTimeUs, &realUs) != OK) { in getRealTime()
DACodec.cpp260 virtual bool onOMXFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano);
378 virtual bool onOMXFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano);
397 virtual bool onOMXFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano);
1359 void ACodec::onFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano) { in onFrameRendered() argument
1360 if (mRenderTracker.onFrameRendered(mediaTimeUs, systemNano) != OK) { in onFrameRendered()
5535 int64_t mediaTimeUs, systemNano; in onOMXMessage() local
5537 CHECK(msg->findInt64("media_time_us", &mediaTimeUs)); in onOMXMessage()
5541 mediaTimeUs, systemNano); in onOMXMessage()
5551 int64_t mediaTimeUs __unused, nsecs_t systemNano __unused) { in onOMXFrameRendered()
6152 int64_t mediaTimeUs = -1; in onOutputBufferDrained() local
[all …]
DMediaCodec.cpp2614 int64_t mediaTimeUs = -1; in onReleaseOutputBuffer() local
2615 info->mData->meta()->findInt64("timeUs", &mediaTimeUs); in onReleaseOutputBuffer()
2620 ALOGV("using buffer PTS of %lld", (long long)mediaTimeUs); in onReleaseOutputBuffer()
2621 renderTimeNs = mediaTimeUs * 1000; in onReleaseOutputBuffer()
2628 mediaTimeUs, renderTimeNs, NULL, info->mFormat); in onReleaseOutputBuffer()
/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/mpeg2ts/
DATSParser.cpp267 int64_t mediaTimeUs; in signalDiscontinuity() local
271 IStreamListener::kKeyMediaTimeUs, &mediaTimeUs)) { in signalDiscontinuity()
1184 int64_t mediaTimeUs; in signalDiscontinuity() local
1186 if (extra->findInt64(IStreamListener::kKeyMediaTimeUs, &mediaTimeUs)) { in signalDiscontinuity()
1187 mAbsoluteTimeAnchorUs = mediaTimeUs; in signalDiscontinuity()
1191 IStreamListener::kKeyRecentMediaTimeUs, &mediaTimeUs)) { in signalDiscontinuity()
1193 mediaTimeUs -= mAbsoluteTimeAnchorUs; in signalDiscontinuity()
1196 mediaTimeUs -= mTimeOffsetUs; in signalDiscontinuity()
1198 mLastRecoveredPTS = (mediaTimeUs * 9) / 100; in signalDiscontinuity()
/frameworks/av/media/libstagefright/include/
DSoftwareRenderer.h40 const void *data, size_t size, int64_t mediaTimeUs, nsecs_t renderTimeNs,
/frameworks/av/media/libstagefright/rtsp/
DMyHandler.h1906 int64_t mediaTimeUs = mMediaAnchorUs + ntpTimeUs - mNTPAnchorUs; in addMediaTimestamp() local
1908 if (mediaTimeUs > mLastMediaTimeUs) { in addMediaTimestamp()
1909 mLastMediaTimeUs = mediaTimeUs; in addMediaTimestamp()
1912 if (mediaTimeUs < 0) { in addMediaTimestamp()
1918 trackIndex, rtpTime, (long long)mediaTimeUs, mediaTimeUs / 1E6); in addMediaTimestamp()
1920 accessUnit->meta()->setInt64("timeUs", mediaTimeUs); in addMediaTimestamp()
/frameworks/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp206 const void *data, size_t size, int64_t mediaTimeUs, nsecs_t renderTimeNs, in render() argument
379 mRenderTracker.onFrameQueued(mediaTimeUs, (GraphicBuffer *)buf, Fence::NO_FENCE); in render()