Home
last modified time | relevance | path

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

12

/frameworks/base/media/java/android/media/
DMediaTimestamp.java50 return mediaTimeUs; in getAnchorMediaTimeUs()
84 public final long mediaTimeUs; field in MediaTimestamp
98 public MediaTimestamp(long mediaTimeUs, long nanoTimeNs, in MediaTimestamp() argument
100 this.mediaTimeUs = mediaTimeUs; in MediaTimestamp()
107 mediaTimeUs = 0; in MediaTimestamp()
118 return (this.mediaTimeUs == that.mediaTimeUs) in equals()
126 + "{AnchorMediaTimeUs=" + mediaTimeUs in toString()
/frameworks/av/media/libstagefright/include/media/stagefright/
DFrameRenderTracker.h60 RenderedFrameInfo(int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, in RenderedFrameInfo()
62 : mMediaTimeUs(mediaTimeUs), in RenderedFrameInfo()
70 RenderedFrameInfo(int64_t mediaTimeUs, nsecs_t renderTimeNs) in RenderedFrameInfo()
71 : mMediaTimeUs(mediaTimeUs), in RenderedFrameInfo()
101 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence);
112 status_t onFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano);
DMediaClock.h67 void addTimer(const sp<AMessage> &notify, int64_t mediaTimeUs, int64_t adjustRealUs = 0);
84 Timer(const sp<AMessage> &notify, int64_t mediaTimeUs, int64_t adjustRealUs);
DMediaSync.h236 int64_t getRealTime(int64_t mediaTimeUs, int64_t nowUs);
/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 (mLastRenderTimeNs == systemNano && mediaTimeUs != INT64_MAX)) { in onFrameRendered()
95 mComponentName.c_str(), (long long)systemNano, (long long)mediaTimeUs); in onFrameRendered()
102 mComponentName.c_str(), (long long)systemNano, (long long)mediaTimeUs); in onFrameRendered()
106 mRenderQueue.emplace_back(mediaTimeUs, systemNano); in onFrameRendered()
DMediaClock.cpp33 MediaClock::Timer::Timer(const sp<AMessage> &notify, int64_t mediaTimeUs, int64_t adjustRealUs) in Timer() argument
35 mMediaTimeUs(mediaTimeUs), in Timer()
209 void MediaClock::addTimer(const sp<AMessage> &notify, int64_t mediaTimeUs, in addTimer() argument
218 + (it->mMediaTimeUs - mediaTimeUs)) <= 0) { in addTimer()
226 mTimers.emplace_back(notify, mediaTimeUs, adjustRealUs); in addTimer()
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2Renderer.cpp885 int64_t mediaTimeUs; in fillAudioBuffer() local
886 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in fillAudioBuffer()
887 ALOGV("fillAudioBuffer: rendering audio at media time %.2f secs", mediaTimeUs / 1E6); in fillAudioBuffer()
888 setAudioFirstAnchorTimeIfNeeded_l(mediaTimeUs); in fillAudioBuffer()
1059 int64_t mediaTimeUs; in onDrainAudioQueue() local
1060 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in onDrainAudioQueue()
1062 mediaTimeUs / 1E6); in onDrainAudioQueue()
1063 onNewAudioMediaTime(mediaTimeUs); in onDrainAudioQueue()
1184 int64_t NuPlayer2::Renderer::getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs) { in getRealTimeUs() argument
1186 if (mMediaClock->getRealTimeFor(mediaTimeUs, &realUs) != OK) { in getRealTimeUs()
[all …]
DNuPlayer2DecoderPassThrough.cpp270 int64_t mediaTimeUs; in fetchInputData()
271 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs)); in fetchInputData()
273 mediaTimeUs / 1E6); in fetchInputData()
DNuPlayer2Renderer.h244 void onNewAudioMediaTime(int64_t mediaTimeUs);
245 int64_t getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs);
DNuPlayer2Driver.h58 virtual status_t notifyAt(int64_t mediaTimeUs) override;
DNuPlayer2Driver.cpp584 status_t NuPlayer2Driver::notifyAt(int64_t mediaTimeUs) { in notifyAt() argument
585 ALOGV("notifyAt(%p), time:%lld", this, (long long)mediaTimeUs); in notifyAt()
586 return mPlayer->notifyAt(mediaTimeUs); in notifyAt()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp898 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()
[all …]
DStreamingSource.cpp143 int64_t mediaTimeUs; in onReadBuffer() local
144 memcpy(&mediaTimeUs, &buffer[2], sizeof(mediaTimeUs)); in onReadBuffer()
146 extra->setInt64(kATSParserKeyMediaTimeUs, 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.h243 void onNewAudioMediaTime(int64_t mediaTimeUs);
244 int64_t getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs);
DNuPlayerDriver.h68 virtual status_t notifyAt(int64_t mediaTimeUs) override;
/frameworks/av/media/libstagefright/include/
DSoftwareRenderer.h41 const void *data, size_t size, int64_t mediaTimeUs, nsecs_t renderTimeNs,
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp350 int64_t mediaTimeUs; in signalDiscontinuity() local
354 kATSParserKeyMediaTimeUs, &mediaTimeUs)) { in signalDiscontinuity()
1909 int64_t mediaTimeUs; in signalDiscontinuity() local
1911 if (extra->findInt64(kATSParserKeyMediaTimeUs, &mediaTimeUs)) { in signalDiscontinuity()
1912 mAbsoluteTimeAnchorUs = mediaTimeUs; in signalDiscontinuity()
1916 kATSParserKeyRecentMediaTimeUs, &mediaTimeUs)) { in signalDiscontinuity()
1918 mediaTimeUs -= mAbsoluteTimeAnchorUs; in signalDiscontinuity()
1921 mediaTimeUs -= mTimeOffsetUs; in signalDiscontinuity()
1923 mLastRecoveredPTS = (mediaTimeUs * 9) / 100; in signalDiscontinuity()
/frameworks/av/media/libmedia/include/media/
DIMediaPlayer.h82 virtual status_t notifyAt(int64_t mediaTimeUs) = 0;
Dmediaplayer.h242 status_t notifyAt(int64_t mediaTimeUs);
/frameworks/av/include/media/
DIMediaPlayer.h82 virtual status_t notifyAt(int64_t mediaTimeUs) = 0;
Dmediaplayer.h242 status_t notifyAt(int64_t mediaTimeUs);
/frameworks/av/media/libstagefright/rtsp/
DMyHandler.h1919 int64_t mediaTimeUs = mMediaAnchorUs + ntpTimeUs - mNTPAnchorUs; in addMediaTimestamp() local
1921 if (mediaTimeUs > mLastMediaTimeUs) { in addMediaTimestamp()
1922 mLastMediaTimeUs = mediaTimeUs; in addMediaTimestamp()
1925 if (mediaTimeUs < 0 && !mSeekable) { in addMediaTimestamp()
1931 trackIndex, rtpTime, (long long)mediaTimeUs, mediaTimeUs / 1E6); in addMediaTimestamp()
1933 accessUnit->meta()->setInt64("timeUs", mediaTimeUs); in addMediaTimestamp()
/frameworks/av/media/libmediaplayer2/include/mediaplayer2/
Dmediaplayer2.h86 status_t notifyAt(int64_t mediaTimeUs);
/frameworks/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp248 const void *data, size_t , int64_t mediaTimeUs, nsecs_t renderTimeNs, in render() argument
470 mRenderTracker.onFrameQueued(mediaTimeUs, (GraphicBuffer *)buf, Fence::NO_FENCE); in render()

12