Home
last modified time | relevance | path

Searched refs:timeUs (Results 1 – 25 of 121) sorted by relevance

12345

/frameworks/av/media/module/bqhelper/
DFrameDropper.cpp50 bool FrameDropper::shouldDrop(int64_t timeUs) { in shouldDrop() argument
56 mDesiredMinTimeUs = timeUs + mMinIntervalUs; in shouldDrop()
58 (long long)timeUs, (long long)mDesiredMinTimeUs); in shouldDrop()
62 if (timeUs < (mDesiredMinTimeUs - kMaxJitterUs)) { in shouldDrop()
64 (long long)timeUs, (long long)mDesiredMinTimeUs, in shouldDrop()
65 (long long)(mDesiredMinTimeUs - timeUs)); in shouldDrop()
69 int64_t n = (timeUs - mDesiredMinTimeUs + kMaxJitterUs) / mMinIntervalUs; in shouldDrop()
72 (long long)timeUs, (long long)mDesiredMinTimeUs, in shouldDrop()
73 (long long)(mDesiredMinTimeUs - timeUs)); in shouldDrop()
DGraphicBufferSource.cpp719 int64_t timeUs = item.mTimestampNs / 1000; in fillCodecBuffer_l() local
720 if (mFrameDropper != NULL && mFrameDropper->shouldDrop(timeUs)) { in fillCodecBuffer_l()
721 ALOGV("skipping frame (%lld) to meet max framerate", static_cast<long long>(timeUs)); in fillCodecBuffer_l()
809 int64_t timeUs = bufferTimeNs / 1000; in calculateCodecTimestamp_l() local
810 timeUs += mInputBufferTimeOffsetUs; in calculateCodecTimestamp_l()
818 mPrevCaptureUs = mBaseCaptureUs = timeUs; in calculateCodecTimestamp_l()
821 std::llround((timeUs * mCaptureFps) / mFps); in calculateCodecTimestamp_l()
824 double nFrames = (timeUs - mPrevCaptureUs) * mCaptureFps / 1000000; in calculateCodecTimestamp_l()
828 static_cast<long long>(timeUs)); in calculateCodecTimestamp_l()
841 if (timeUs <= mPrevCaptureUs) { in calculateCodecTimestamp_l()
[all …]
/frameworks/av/media/libstagefright/
DAudioSource.cpp292 int64_t timeUs; in read() local
293 CHECK(buffer->meta_data().findInt64(kKeyTime, &timeUs)); in read()
294 int64_t elapsedTimeUs = timeUs - mStartTimeUs; in read()
316 timeUs *= (int64_t)mSampleRate / (int64_t)mOutSampleRate; in read()
317 buffer->meta_data().setInt64(kKeyTime, timeUs); in read()
350 int64_t timeUs, position, timeNs; in onMoreData() local
359 timeUs = timeNs / 1000 - in onMoreData()
365 timeUs = systemTime() / 1000LL; in onMoreData()
369 timeUs -= mRecord->latency() * 1000LL; in onMoreData()
372 ALOGV("dataCallbackTimestamp: %" PRId64 " us", timeUs); in onMoreData()
[all …]
DMPEG2TSWriter.cpp266 int64_t timeUs; in appendAVCFrame() local
267 CHECK(buffer->meta_data().findInt64(kKeyTime, &timeUs)); in appendAVCFrame()
268 mBuffer->meta()->setInt64("timeUs", timeUs); in appendAVCFrame()
290 int64_t timeUs; in appendAACFrames() local
291 CHECK(buffer->meta_data().findInt64(kKeyTime, &timeUs)); in appendAACFrames()
293 mBuffer->meta()->setInt64("timeUs", timeUs); in appendAACFrames()
430 int64_t timeUs; in lastAccessUnitTimeUs() local
431 CHECK(mLastAccessUnit->meta()->findInt64("timeUs", &timeUs)); in lastAccessUnitTimeUs()
432 return timeUs; in lastAccessUnitTimeUs()
629 int64_t timeUs = source->lastAccessUnitTimeUs(); in onMessageReceived() local
[all …]
DMediaCodecSource.cpp366 int64_t timeUs; in getFirstSampleSystemTimeUs() local
367 if (!response->findInt64("time-us", &timeUs)) { in getFirstSampleSystemTimeUs()
368 timeUs = -1LL; in getFirstSampleSystemTimeUs()
370 return timeUs; in getFirstSampleSystemTimeUs()
714 int64_t timeUs = 0LL; in feedEncoderInputBuffers() local
719 CHECK(mbuf->meta_data().findInt64(kKeyTime, &timeUs)); in feedEncoderInputBuffers()
731 timeUs += mInputBufferTimeOffsetUs; in feedEncoderInputBuffers()
735 mDecodingTimeQueue.push_back(timeUs); in feedEncoderInputBuffers()
739 mFirstSampleTimeUs = timeUs; in feedEncoderInputBuffers()
744 driftTimeUs = timeUs - mFirstSampleTimeUs - driftTimeUs; in feedEncoderInputBuffers()
[all …]
/frameworks/av/media/module/mpeg2ts/
DAnotherPacketSource.cpp143 int64_t timeUs; in dequeueAccessUnit() local
145 CHECK(mLatestDequeuedMeta->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
146 if (timeUs > seg.mMaxDequeTimeUs) { in dequeueAccessUnit()
147 seg.mMaxDequeTimeUs = timeUs; in dequeueAccessUnit()
199 int64_t timeUs; in read() local
200 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in read()
203 if (timeUs > seg.mMaxDequeTimeUs) { in read()
204 seg.mMaxDequeTimeUs = timeUs; in read()
210 bufmeta.setInt64(kKeyTime, timeUs); in read()
490 int64_t timeUs = 0; in getEstimatedBufferDurationUs() local
[all …]
DESQueue.cpp872 const void *data, size_t size, int64_t timeUs, in appendData() argument
1186 info.mTimestampUs = timeUs; in appendData()
1193 ALOGI("size = %zu, timeUs = %.2f secs", size, timeUs / 1E6); in appendData()
1245 int64_t timeUs = fetchTimestamp(nextScan, &pesOffset, &pesScramblingControl); in dequeueScrambledAccessUnit() local
1246 if (timeUs < 0ll) { in dequeueScrambledAccessUnit()
1348 scrambledAccessUnit->meta()->setInt64("timeUs", timeUs); in dequeueScrambledAccessUnit()
1369 mMode, (long long)timeUs, scrambledAccessUnit->size()); in dequeueScrambledAccessUnit()
1469 int64_t timeUs = fetchTimestamp(syncStartPos + payloadSize); in dequeueAccessUnitDTSOrDTSHD() local
1470 if (timeUs < 0LL) { in dequeueAccessUnitDTSOrDTSHD()
1479 accessUnit->meta()->setInt64("timeUs", timeUs); in dequeueAccessUnitDTSOrDTSHD()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerCCDecoder.cpp230 int64_t timeUs; in extractFromSEI() local
231 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromSEI()
239 timeUs, accessUnit->data() + nal->nalOffset, nal->nalSize); in extractFromSEI()
246 bool NuPlayer::CCDecoder::parseSEINalUnit(int64_t timeUs, const uint8_t *data, size_t size) { in parseSEINalUnit() argument
300 trackAdded |= parseMPEGCCData(timeUs, br.data(), br.numBitsLeft() / 8); in parseSEINalUnit()
323 int64_t timeUs; in extractFromMPEGUserData() local
324 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromMPEGUserData()
337 timeUs, accessUnit->data() + userData[i], accessUnit->size() - userData[i]); in extractFromMPEGUserData()
344 bool NuPlayer::CCDecoder::parseMPEGUserDataUnit(int64_t timeUs, const uint8_t *data, size_t size) { in parseMPEGUserDataUnit() argument
357 return parseMPEGCCData(timeUs, data + 9, size - 9); in parseMPEGUserDataUnit()
[all …]
DNuPlayerDecoderPassThrough.cpp177 int64_t timeUs; in aggregateBuffer() local
179 bool smallTimestampValid = accessUnit->meta()->findInt64("timeUs", &timeUs); in aggregateBuffer()
196 mAggregateBuffer->meta()->setInt64("timeUs", timeUs); in aggregateBuffer()
320 int64_t timeUs = 0; in onInputBufferFetched() local
321 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in onInputBufferFetched()
323 if (timeUs < mSkipRenderingUntilMediaTimeUs) { in onInputBufferFetched()
325 mComponentName.c_str(), (long long)timeUs); in onInputBufferFetched()
344 mcBuffer->meta()->setInt64("timeUs", timeUs); in onInputBufferFetched()
DGenericSource.cpp676 int64_t timeUs, actualTimeUs; in onMessageReceived() local
679 timeUs = mAudioLastDequeueTimeUs; in onMessageReceived()
681 timeUs = mVideoLastDequeueTimeUs; in onMessageReceived()
683 readBuffer(trackType, timeUs, MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC /* mode */, in onMessageReceived()
687 ALOGV("timeUs %lld actualTimeUs %lld", (long long)timeUs, (long long)actualTimeUs); in onMessageReceived()
738 int64_t timeUs; in fetchTextData() local
739 CHECK(msg->findInt64("timeUs", &timeUs)); in fetchTextData()
742 readBuffer(type, timeUs, MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC /* mode */, &subTimeUs); in fetchTextData()
907 int64_t timeUs; in dequeueAccessUnit() local
909 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
[all …]
DNuPlayerDecoder.cpp169 int64_t timeUs; in onMessageReceived() local
175 CHECK(msg->findInt64("timeUs", &timeUs)); in onMessageReceived()
178 handleAnOutputBuffer(index, offset, size, timeUs, flags); in onMessageReceived()
730 int64_t timeUs, in handleAnOutputBuffer() argument
761 buffer->meta()->setInt64("timeUs", timeUs); in handleAnOutputBuffer()
784 if (timeUs < mSkipRenderingUntilMediaTimeUs) { in handleAnOutputBuffer()
786 mComponentName.c_str(), (long long)timeUs); in handleAnOutputBuffer()
1062 int64_t timeUs = 0; in onInputBufferFetched() local
1064 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in onInputBufferFetched()
1075 ALOGV("[%s] cvo(%d) found at %lld us", mComponentName.c_str(), cvo, (long long)timeUs); in onInputBufferFetched()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/include/nuplayer/
DNuPlayerCCDecoder.h44 void display(int64_t timeUs);
83 bool parseSEINalUnit(int64_t timeUs, const uint8_t *data, size_t size);
87 bool parseMPEGUserDataUnit(int64_t timeUs, const uint8_t *data, size_t size);
90 bool parseMPEGCCData(int64_t timeUs, const uint8_t *data, size_t size);
91 bool parseDTVCCPacket(int64_t timeUs, const uint8_t *data, size_t size);
/frameworks/base/media/java/android/media/
DMediaTimeProvider.java38 public void notifyAt(long timeUs, OnMediaTimeListener listener); in notifyAt() argument
74 void onTimedEvent(long timeUs); in onTimedEvent() argument
81 void onSeek(long timeUs); in onSeek() argument
DMediaMetadataRetriever.java568 public @Nullable Bitmap getFrameAtTime(long timeUs, @Option int option) { in getFrameAtTime() argument
574 return _getFrameAtTime(timeUs, option, -1 /*dst_width*/, -1 /*dst_height*/, null); in getFrameAtTime()
615 long timeUs, @Option int option, @NonNull BitmapParams params) { in getFrameAtTime() argument
621 return _getFrameAtTime(timeUs, option, -1 /*dst_width*/, -1 /*dst_height*/, params); in getFrameAtTime()
656 public @Nullable Bitmap getScaledFrameAtTime(long timeUs, @Option int option, in getScaledFrameAtTime() argument
659 return _getFrameAtTime(timeUs, option, dstWidth, dstHeight, null); in getScaledFrameAtTime()
701 public @Nullable Bitmap getScaledFrameAtTime(long timeUs, @Option int option, in getScaledFrameAtTime() argument
705 return _getFrameAtTime(timeUs, option, dstWidth, dstHeight, params); in getScaledFrameAtTime()
744 public @Nullable Bitmap getFrameAtTime(long timeUs) { in getFrameAtTime() argument
745 return getFrameAtTime(timeUs, OPTION_CLOSEST_SYNC); in getFrameAtTime()
[all …]
/frameworks/av/media/codec2/sfplugin/
DFrameReassembler.cpp90 int64_t timeUs; in process() local
91 if (!buffer->meta()->findInt64("timeUs", &timeUs)) { in process()
102 if (timeUs < endTimestampUs.peek()) { in process()
103 uint64_t diffUs = (endTimestampUs - timeUs).peeku(); in process()
108 endTimestampUs.peekll(), (long long)timeUs); in process()
111 uint64_t diffUs = (timeUs - endTimestampUs).peeku(); in process()
140 timeUs += bytesToSamples(copySize) * 1000000 / mSampleRate; in process()
144 mCurrentOrdinal.timestamp = timeUs; in process()
145 mCurrentOrdinal.customOrdinal = timeUs; in process()
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp326 int64_t firstTimeUs, int64_t timeUs, int32_t discontinuitySeq) { in calculateMediaTimeUs() argument
327 if (timeUs >= firstTimeUs) { in calculateMediaTimeUs()
328 timeUs -= firstTimeUs; in calculateMediaTimeUs()
330 timeUs = 0; in calculateMediaTimeUs()
332 timeUs += mLastSeekTimeUs; in calculateMediaTimeUs()
334 timeUs += mDiscontinuityOffsetTimesUs.valueFor(discontinuitySeq); in calculateMediaTimeUs()
336 return timeUs; in calculateMediaTimeUs()
388 int64_t timeUs, originalTimeUs; in dequeueAccessUnit() local
391 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
392 originalTimeUs = timeUs; in dequeueAccessUnit()
[all …]
DPlaylistFetcher.cpp1645 int32_t PlaylistFetcher::getSeqNumberForTime(int64_t timeUs) const { in getSeqNumberForTime()
1656 if (timeUs < segmentStartUs + itemDurationUs) { in getSeqNumberForTime()
1693 bool PlaylistFetcher::isStartTimeReached(int64_t timeUs) { in isStartTimeReached() argument
1695 mFirstTimeUs = timeUs; in isStartTimeReached()
1701 (long long)timeUs, in isStartTimeReached()
1703 (long long)(timeUs - mFirstTimeUs)); in isStartTimeReached()
1704 timeUs -= mFirstTimeUs; in isStartTimeReached()
1705 if (timeUs < 0) { in isStartTimeReached()
1707 timeUs = 0; in isStartTimeReached()
1709 startTimeReached = (timeUs >= mStartTimeUs); in isStartTimeReached()
[all …]
/frameworks/av/cmds/stagefright/
Dmuxer.cpp183 int64_t timeUs; in muxing() local
184 err = extractor->getSampleTime(&timeUs); in muxing()
198 if (enableTrim && timeUs > trimStartTimeUs && in muxing()
199 timeUs <= trimEndTimeUs) { in muxing()
201 trimOffsetTimeUs = timeUs; in muxing()
207 if (enableTrim && timeUs > trimEndTimeUs) { in muxing()
214 timeUs - trimOffsetTimeUs, sampleFlags); in muxing()
/frameworks/av/media/module/bqhelper/tests/
DFrameDropper_test.cpp29 int64_t timeUs; member
102 int64_t testTimeUs = frames[i].timeUs + jitter; in RunTest()
104 (long long)frames[i].timeUs, (long long)testTimeUs, jitter); in RunTest()
/frameworks/av/media/module/extractors/mp3/
DVBRISeeker.cpp164 bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { in getOffsetForTime() argument
174 while (segmentIndex < mSegments.size() && nowUs < *timeUs) { in getOffsetForTime()
179 ALOGV("getOffsetForTime %lld us => 0x%016llx", (long long)*timeUs, (long long)*pos); in getOffsetForTime()
181 *timeUs = nowUs; in getOffsetForTime()
/frameworks/av/media/libstagefright/rtsp/
Drtp_test.cpp203 int64_t timeUs; in main() local
204 CHECK(buffer->meta_data().findInt64(kKeyTime, &timeUs)); in main()
207 buffer->range_length(), timeUs / 1E6); in main()
DARTPWriter.cpp829 uint32_t ARTPWriter::getRtpTime(int64_t timeUs) { in getRtpTime() argument
831 int64_t rtpTime = mRTPTimeBase + (timeUs * clockPerMs / 1000LL); in getRtpTime()
977 void ARTPWriter::sendSPSPPSIfIFrame(MediaBufferBase *mediaBuf, int64_t timeUs) { in sendSPSPPSIfIFrame() argument
987 mSPSBuf->meta_data().setInt64(kKeyTime, timeUs); in sendSPSPPSIfIFrame()
993 mPPSBuf->meta_data().setInt64(kKeyTime, timeUs); in sendSPSPPSIfIFrame()
999 void ARTPWriter::sendVPSSPSPPSIfIFrame(MediaBufferBase *mediaBuf, int64_t timeUs) { in sendVPSSPSPPSIfIFrame() argument
1010 mVPSBuf->meta_data().setInt64(kKeyTime, timeUs); in sendVPSSPSPPSIfIFrame()
1016 mSPSBuf->meta_data().setInt64(kKeyTime, timeUs); in sendVPSSPSPPSIfIFrame()
1022 mPPSBuf->meta_data().setInt64(kKeyTime, timeUs); in sendVPSSPSPPSIfIFrame()
1032 int64_t timeUs; in sendHEVCData() local
[all …]
/frameworks/av/media/module/extractors/ogg/
DOggExtractor.cpp86 status_t seekToTime(int64_t timeUs);
292 int64_t timeUs; in read()
294 ALOGI("found time = %lld us", timeUs); in read()
490 status_t MyOggExtractor::seekToTime(int64_t timeUs) { in seekToTime() argument
491 timeUs -= mSeekPreRollUs; in seekToTime()
492 if (timeUs < 0) { in seekToTime()
493 timeUs = 0; in seekToTime()
503 off64_t pos = timeUs * bps / 8000000ll; in seekToTime()
516 if (timeUs < entry.mTimeUs) { in seekToTime()
518 } else if (timeUs > entry.mTimeUs) { in seekToTime()
[all …]
/frameworks/av/media/libstagefright/rtsp/include/media/stagefright/rtsp/
DARTPWriter.h139 uint32_t getRtpTime(int64_t timeUs);
153 void sendVPSSPSPPSIfIFrame(MediaBufferBase *mediaBuf, int64_t timeUs);
154 void sendSPSPPSIfIFrame(MediaBufferBase *mediaBuf, int64_t timeUs);
/frameworks/av/media/libmediaplayerservice/
DStagefrightMetadataRetriever.h45 int64_t timeUs, int option, int colorFormat, bool metaOnly);
72 int64_t timeUs, int option, int colorFormat, bool metaOnly);

12345