Home
last modified time | relevance | path

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

12345

/frameworks/av/media/libstagefright/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()
/frameworks/av/media/libstagefright/
DAudioSource.cpp271 int64_t timeUs; in read() local
272 CHECK(buffer->meta_data().findInt64(kKeyTime, &timeUs)); in read()
273 int64_t elapsedTimeUs = timeUs - mStartTimeUs; in read()
295 timeUs *= (int64_t)mSampleRate / (int64_t)mOutSampleRate; in read()
296 buffer->meta_data().setInt64(kKeyTime, timeUs); in read()
329 int64_t timeUs, position, timeNs; in dataCallback() local
338 timeUs = timeNs / 1000 - in dataCallback()
344 timeUs = systemTime() / 1000LL; in dataCallback()
348 timeUs -= mRecord->latency() * 1000LL; in dataCallback()
351 ALOGV("dataCallbackTimestamp: %" PRId64 " us", timeUs); in dataCallback()
[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.cpp374 int64_t timeUs; in getFirstSampleSystemTimeUs() local
375 if (!response->findInt64("time-us", &timeUs)) { in getFirstSampleSystemTimeUs()
376 timeUs = -1LL; in getFirstSampleSystemTimeUs()
378 return timeUs; in getFirstSampleSystemTimeUs()
695 int64_t timeUs = 0LL; in feedEncoderInputBuffers() local
700 CHECK(mbuf->meta_data().findInt64(kKeyTime, &timeUs)); in feedEncoderInputBuffers()
712 timeUs += mInputBufferTimeOffsetUs; in feedEncoderInputBuffers()
716 mDecodingTimeQueue.push_back(timeUs); in feedEncoderInputBuffers()
720 mFirstSampleTimeUs = timeUs; in feedEncoderInputBuffers()
725 driftTimeUs = timeUs - mFirstSampleTimeUs - driftTimeUs; in feedEncoderInputBuffers()
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DAnotherPacketSource.cpp141 int64_t timeUs; in dequeueAccessUnit() local
143 CHECK(mLatestDequeuedMeta->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
144 if (timeUs > seg.mMaxDequeTimeUs) { in dequeueAccessUnit()
145 seg.mMaxDequeTimeUs = timeUs; in dequeueAccessUnit()
197 int64_t timeUs; in read() local
198 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in read()
201 if (timeUs > seg.mMaxDequeTimeUs) { in read()
202 seg.mMaxDequeTimeUs = timeUs; in read()
208 bufmeta.setInt64(kKeyTime, timeUs); in read()
488 int64_t timeUs = 0; in getEstimatedBufferDurationUs() local
[all …]
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2CCDecoder.cpp229 int64_t timeUs; in extractFromSEI() local
230 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromSEI()
238 timeUs, accessUnit->data() + nal->nalOffset, nal->nalSize); in extractFromSEI()
245 bool NuPlayer2::CCDecoder::parseSEINalUnit(int64_t timeUs, const uint8_t *data, size_t size) { in parseSEINalUnit() argument
299 trackAdded |= parseMPEGCCData(timeUs, br.data(), br.numBitsLeft() / 8); in parseSEINalUnit()
322 int64_t timeUs; in extractFromMPEGUserData() local
323 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromMPEGUserData()
331 timeUs, accessUnit->data() + userData[i], accessUnit->size() - userData[i]); in extractFromMPEGUserData()
338 bool NuPlayer2::CCDecoder::parseMPEGUserDataUnit(int64_t timeUs, const uint8_t *data, size_t size) { in parseMPEGUserDataUnit() argument
345 return parseMPEGCCData(timeUs, data + 9, size - 9); in parseMPEGUserDataUnit()
[all …]
DNuPlayer2CCDecoder.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);
DNuPlayer2DecoderPassThrough.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()
DGenericSource2.cpp552 int64_t timeUs, actualTimeUs; in onMessageReceived() local
555 timeUs = mAudioLastDequeueTimeUs; in onMessageReceived()
557 timeUs = mVideoLastDequeueTimeUs; in onMessageReceived()
559 readBuffer(trackType, timeUs, MediaPlayer2SeekMode::SEEK_PREVIOUS_SYNC /* mode */, in onMessageReceived()
563 ALOGV("timeUs %lld actualTimeUs %lld", (long long)timeUs, (long long)actualTimeUs); in onMessageReceived()
614 int64_t timeUs; in fetchTextData() local
615 CHECK(msg->findInt64("timeUs", &timeUs)); in fetchTextData()
618 readBuffer(type, timeUs, MediaPlayer2SeekMode::SEEK_PREVIOUS_SYNC /* mode */, &subTimeUs); in fetchTextData()
797 int64_t timeUs; in dequeueAccessUnit() local
799 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
[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 …]
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);
DNuPlayerDecoderPassThrough.cpp178 int64_t timeUs; in aggregateBuffer() local
180 bool smallTimestampValid = accessUnit->meta()->findInt64("timeUs", &timeUs); in aggregateBuffer()
197 mAggregateBuffer->meta()->setInt64("timeUs", timeUs); in aggregateBuffer()
321 int64_t timeUs = 0; in onInputBufferFetched() local
322 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in onInputBufferFetched()
324 if (timeUs < mSkipRenderingUntilMediaTimeUs) { in onInputBufferFetched()
326 mComponentName.c_str(), (long long)timeUs); in onInputBufferFetched()
345 mcBuffer->meta()->setInt64("timeUs", timeUs); in onInputBufferFetched()
DGenericSource.cpp686 int64_t timeUs, actualTimeUs; in onMessageReceived() local
689 timeUs = mAudioLastDequeueTimeUs; in onMessageReceived()
691 timeUs = mVideoLastDequeueTimeUs; in onMessageReceived()
693 readBuffer(trackType, timeUs, MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC /* mode */, in onMessageReceived()
697 ALOGV("timeUs %lld actualTimeUs %lld", (long long)timeUs, (long long)actualTimeUs); in onMessageReceived()
748 int64_t timeUs; in fetchTextData() local
749 CHECK(msg->findInt64("timeUs", &timeUs)); in fetchTextData()
752 readBuffer(type, timeUs, MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC /* mode */, &subTimeUs); in fetchTextData()
917 int64_t timeUs; in dequeueAccessUnit() local
919 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
[all …]
/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.java261 public Bitmap getFrameAtTime(long timeUs, @Option int option) { in getFrameAtTime() argument
267 return _getFrameAtTime(timeUs, option, -1 /*dst_width*/, -1 /*dst_height*/); in getFrameAtTime()
306 long timeUs, @Option int option, int dstWidth, int dstHeight) { in getScaledFrameAtTime() argument
318 return _getFrameAtTime(timeUs, option, dstWidth, dstHeight); in getScaledFrameAtTime()
345 public Bitmap getFrameAtTime(long timeUs) { in getFrameAtTime() argument
346 return getFrameAtTime(timeUs, OPTION_CLOSEST_SYNC); in getFrameAtTime()
371 private native Bitmap _getFrameAtTime(long timeUs, int option, int width, int height); in _getFrameAtTime() argument
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp325 int64_t firstTimeUs, int64_t timeUs, int32_t discontinuitySeq) { in calculateMediaTimeUs() argument
326 if (timeUs >= firstTimeUs) { in calculateMediaTimeUs()
327 timeUs -= firstTimeUs; in calculateMediaTimeUs()
329 timeUs = 0; in calculateMediaTimeUs()
331 timeUs += mLastSeekTimeUs; in calculateMediaTimeUs()
333 timeUs += mDiscontinuityOffsetTimesUs.valueFor(discontinuitySeq); in calculateMediaTimeUs()
335 return timeUs; in calculateMediaTimeUs()
387 int64_t timeUs, originalTimeUs; in dequeueAccessUnit() local
390 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
391 originalTimeUs = timeUs; in dequeueAccessUnit()
[all …]
DPlaylistFetcher.cpp1643 int32_t PlaylistFetcher::getSeqNumberForTime(int64_t timeUs) const { in getSeqNumberForTime()
1654 if (timeUs < segmentStartUs + itemDurationUs) { in getSeqNumberForTime()
1691 bool PlaylistFetcher::isStartTimeReached(int64_t timeUs) { in isStartTimeReached() argument
1693 mFirstTimeUs = timeUs; in isStartTimeReached()
1699 (long long)timeUs, in isStartTimeReached()
1701 (long long)(timeUs - mFirstTimeUs)); in isStartTimeReached()
1702 timeUs -= mFirstTimeUs; in isStartTimeReached()
1703 if (timeUs < 0) { in isStartTimeReached()
1705 timeUs = 0; in isStartTimeReached()
1707 startTimeReached = (timeUs >= mStartTimeUs); in isStartTimeReached()
[all …]
/frameworks/av/cmds/stagefright/
Dmuxer.cpp179 int64_t timeUs; in muxing() local
180 err = extractor->getSampleTime(&timeUs); in muxing()
194 if (enableTrim && timeUs > trimStartTimeUs && in muxing()
195 timeUs <= trimEndTimeUs) { in muxing()
197 trimOffsetTimeUs = timeUs; in muxing()
203 if (enableTrim && timeUs > trimEndTimeUs) { in muxing()
210 timeUs - trimOffsetTimeUs, sampleFlags); in muxing()
/frameworks/av/media/libstagefright/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/extractors/mp3/
DVBRISeeker.cpp167 bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { in getOffsetForTime() argument
177 while (segmentIndex < mSegments.size() && nowUs < *timeUs) { in getOffsetForTime()
182 ALOGV("getOffsetForTime %lld us => 0x%016llx", (long long)*timeUs, (long long)*pos); in getOffsetForTime()
184 *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()
/frameworks/av/media/extractors/ogg/
DOggExtractor.cpp83 status_t seekToTime(int64_t timeUs);
289 int64_t timeUs; in read()
291 ALOGI("found time = %lld us", timeUs); in read()
435 status_t MyOggExtractor::seekToTime(int64_t timeUs) { in seekToTime() argument
436 timeUs -= mSeekPreRollUs; in seekToTime()
437 if (timeUs < 0) { in seekToTime()
438 timeUs = 0; in seekToTime()
448 off64_t pos = timeUs * bps / 8000000ll; in seekToTime()
461 if (timeUs < entry.mTimeUs) { in seekToTime()
463 } else if (timeUs > entry.mTimeUs) { in seekToTime()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DCpuPowerCalculator.java42 final long timeUs = u.getTimeAtCpuSpeed(cluster, speed, statsType); in calculateApp() local
43 final double cpuSpeedStepPower = timeUs * in calculateApp()
47 + speed + " timeUs=" + timeUs + " power=" in calculateApp()
/frameworks/av/media/libmedia/omx/1.0/
DWGraphicBufferSource.cpp42 bool suspend, int64_t timeUs) { in setSuspend() argument
43 return toBinderStatus(mBase->setSuspend(suspend, timeUs)); in setSuspend()
/frameworks/av/media/libstagefright/include/
DFrameDecoder.h77 int64_t timeUs,
133 int64_t timeUs,
168 int64_t timeUs,

12345