Home
last modified time | relevance | path

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

12345

/frameworks/av/media/libstagefright/omx/
DFrameDropper.cpp46 bool FrameDropper::shouldDrop(int64_t timeUs) { in shouldDrop() argument
52 mDesiredMinTimeUs = timeUs + mMinIntervalUs; in shouldDrop()
54 (long long)timeUs, (long long)mDesiredMinTimeUs); in shouldDrop()
58 if (timeUs < (mDesiredMinTimeUs - kMaxJitterUs)) { in shouldDrop()
60 (long long)timeUs, (long long)mDesiredMinTimeUs, in shouldDrop()
61 (long long)(mDesiredMinTimeUs - timeUs)); in shouldDrop()
65 int64_t n = (timeUs - mDesiredMinTimeUs + kMaxJitterUs) / mMinIntervalUs; in shouldDrop()
68 (long long)timeUs, (long long)mDesiredMinTimeUs, in shouldDrop()
69 (long long)(mDesiredMinTimeUs - timeUs)); in shouldDrop()
/frameworks/av/media/libstagefright/
DAudioSource.cpp257 int64_t timeUs; in read() local
258 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); in read()
259 int64_t elapsedTimeUs = timeUs - mStartTimeUs; in read()
281 timeUs *= (int64_t)mSampleRate / (int64_t)mOutSampleRate; in read()
282 buffer->meta_data()->setInt64(kKeyTime, timeUs); in read()
300 int64_t timeUs, position, timeNs; in dataCallback() local
309 timeUs = timeNs / 1000 - in dataCallback()
315 timeUs = systemTime() / 1000ll; in dataCallback()
319 timeUs -= mRecord->latency() * 1000LL; in dataCallback()
322 ALOGV("dataCallbackTimestamp: %" PRId64 " us", timeUs); in dataCallback()
[all …]
DMediaCodecSource.cpp348 int64_t timeUs; in getFirstSampleSystemTimeUs() local
349 if (!response->findInt64("time-us", &timeUs)) { in getFirstSampleSystemTimeUs()
350 timeUs = -1ll; in getFirstSampleSystemTimeUs()
352 return timeUs; in getFirstSampleSystemTimeUs()
657 int64_t timeUs = 0ll; in feedEncoderInputBuffers() local
662 CHECK(mbuf->meta_data()->findInt64(kKeyTime, &timeUs)); in feedEncoderInputBuffers()
674 timeUs += mInputBufferTimeOffsetUs; in feedEncoderInputBuffers()
678 mDecodingTimeQueue.push_back(timeUs); in feedEncoderInputBuffers()
682 mFirstSampleTimeUs = timeUs; in feedEncoderInputBuffers()
687 driftTimeUs = timeUs - mFirstSampleTimeUs - driftTimeUs; in feedEncoderInputBuffers()
[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 …]
DVBRISeeker.cpp165 bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { in getOffsetForTime() argument
175 while (segmentIndex < mSegments.size() && nowUs < *timeUs) { in getOffsetForTime()
180 ALOGV("getOffsetForTime %lld us => 0x%016llx", (long long)*timeUs, (long long)*pos); in getOffsetForTime()
182 *timeUs = nowUs; in getOffsetForTime()
DOggExtractor.cpp83 status_t seekToTime(int64_t timeUs);
279 int64_t timeUs; in read()
280 if (packet->meta_data()->findInt64(kKeyTime, &timeUs)) { in read()
281 ALOGI("found time = %lld us", timeUs); in read()
413 status_t MyOggExtractor::seekToTime(int64_t timeUs) { in seekToTime() argument
414 timeUs -= mSeekPreRollUs; in seekToTime()
415 if (timeUs < 0) { in seekToTime()
416 timeUs = 0; in seekToTime()
426 off64_t pos = timeUs * bps / 8000000ll; in seekToTime()
439 if (timeUs < entry.mTimeUs) { in seekToTime()
[all …]
DAVIExtractor.cpp175 int64_t timeUs; in read() local
177 mTrackIndex, mSampleIndex, &offset, &size, &isKey, &timeUs); in read()
196 out->meta_data()->setInt64(kKeyTime, timeUs); in read()
353 int64_t timeUs = mBaseTimeUs + (mNumSamplesRead * 1000000ll) / sampleRate; in read() local
356 mbuf->meta_data()->setInt64(kKeyTime, timeUs); in read()
848 int64_t timeUs; in parseIndex() local
849 status_t err = getSampleInfo(0, 0, &offset, &size, &isKey, &timeUs); in parseIndex()
853 err = getSampleInfo(0, 0, &offset, &size, &isKey, &timeUs); in parseIndex()
1005 int64_t timeUs; in addMPEG4CodecSpecificData() local
1007 getSampleInfo(trackIndex, 0, &offset, &size, &isKey, &timeUs); in addMPEG4CodecSpecificData()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerCCDecoder.cpp216 int64_t timeUs; in extractFromSEI() local
217 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromSEI()
225 timeUs, accessUnit->data() + nal->nalOffset, nal->nalSize); in extractFromSEI()
232 bool NuPlayer::CCDecoder::parseSEINalUnit(int64_t timeUs, const uint8_t *data, size_t size) { in parseSEINalUnit() argument
286 trackAdded |= parseMPEGCCData(timeUs, br.data(), br.numBitsLeft() / 8); in parseSEINalUnit()
309 int64_t timeUs; in extractFromMPEGUserData() local
310 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromMPEGUserData()
318 timeUs, accessUnit->data() + userData[i], accessUnit->size() - userData[i]); in extractFromMPEGUserData()
325 bool NuPlayer::CCDecoder::parseMPEGUserDataUnit(int64_t timeUs, const uint8_t *data, size_t size) { in parseMPEGUserDataUnit() argument
332 return parseMPEGCCData(timeUs, data + 9, size - 9); in parseMPEGUserDataUnit()
[all …]
DNuPlayerCCDecoder.h43 void display(int64_t timeUs);
82 bool parseSEINalUnit(int64_t timeUs, const uint8_t *data, size_t size);
86 bool parseMPEGUserDataUnit(int64_t timeUs, const uint8_t *data, size_t size);
89 bool parseMPEGCCData(int64_t timeUs, const uint8_t *data, size_t size);
90 bool parseDTVCCPacket(int64_t timeUs, const uint8_t *data, size_t size);
DGenericSource.cpp624 int64_t timeUs, actualTimeUs; in onMessageReceived() local
627 timeUs = mAudioLastDequeueTimeUs; in onMessageReceived()
629 timeUs = mVideoLastDequeueTimeUs; in onMessageReceived()
631 readBuffer(trackType, timeUs, MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC /* mode */, in onMessageReceived()
635 ALOGV("timeUs %lld actualTimeUs %lld", (long long)timeUs, (long long)actualTimeUs); in onMessageReceived()
729 int64_t timeUs; in fetchTextData() local
730 CHECK(msg->findInt64("timeUs", &timeUs)); in fetchTextData()
733 readBuffer(type, timeUs, MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC /* mode */, &subTimeUs); in fetchTextData()
735 int64_t delayUs = subTimeUs - timeUs; in fetchTextData()
897 int64_t timeUs; in dequeueAccessUnit() local
[all …]
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()
/frameworks/av/media/libstagefright/wifi-display/source/
DConverter.cpp533 int64_t timeUs; in feedRawAudioInputBuffers() local
534 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in feedRawAudioInputBuffers()
537 timeUs += copyUs; in feedRawAudioInputBuffers()
538 buffer->meta()->setInt64("timeUs", timeUs); in feedRawAudioInputBuffers()
579 int64_t timeUs; in feedRawAudioInputBuffers() local
580 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in feedRawAudioInputBuffers()
582 partialAudioAU->meta()->setInt64("timeUs", timeUs); in feedRawAudioInputBuffers()
585 timeUs += copyUs; in feedRawAudioInputBuffers()
586 buffer->meta()->setInt64("timeUs", timeUs); in feedRawAudioInputBuffers()
618 int64_t timeUs = 0ll; in feedEncoderInputBuffers() local
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DAnotherPacketSource.cpp142 int64_t timeUs; in dequeueAccessUnit() local
144 CHECK(mLatestDequeuedMeta->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
145 if (timeUs > seg.mMaxDequeTimeUs) { in dequeueAccessUnit()
146 seg.mMaxDequeTimeUs = timeUs; in dequeueAccessUnit()
198 int64_t timeUs; in read() local
199 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in read()
202 if (timeUs > seg.mMaxDequeTimeUs) { in read()
203 seg.mMaxDequeTimeUs = timeUs; in read()
209 bufmeta->setInt64(kKeyTime, timeUs); in read()
475 int64_t timeUs = 0; in getEstimatedBufferDurationUs() local
[all …]
DESQueue.cpp275 const void *data, size_t size, int64_t timeUs, in appendData() argument
480 info.mTimestampUs = timeUs; in appendData()
487 ALOGI("size = %zu, timeUs = %.2f secs", size, timeUs / 1E6); in appendData()
538 int64_t timeUs = fetchTimestamp(nextScan, &pesOffset, &pesScramblingControl); in dequeueScrambledAccessUnit() local
539 if (timeUs < 0ll) { in dequeueScrambledAccessUnit()
591 scrambledAccessUnit->meta()->setInt64("timeUs", timeUs); in dequeueScrambledAccessUnit()
611 mMode, (long long)timeUs, scrambledAccessUnit->size()); in dequeueScrambledAccessUnit()
702 int64_t timeUs = fetchTimestamp(syncStartPos + payloadSize); in dequeueAccessUnitAC3() local
703 if (timeUs < 0ll) { in dequeueAccessUnitAC3()
717 accessUnit->meta()->setInt64("timeUs", timeUs); in dequeueAccessUnitAC3()
[all …]
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp321 int64_t firstTimeUs, int64_t timeUs, int32_t discontinuitySeq) { in calculateMediaTimeUs() argument
322 if (timeUs >= firstTimeUs) { in calculateMediaTimeUs()
323 timeUs -= firstTimeUs; in calculateMediaTimeUs()
325 timeUs = 0; in calculateMediaTimeUs()
327 timeUs += mLastSeekTimeUs; in calculateMediaTimeUs()
329 timeUs += mDiscontinuityOffsetTimesUs.valueFor(discontinuitySeq); in calculateMediaTimeUs()
331 return timeUs; in calculateMediaTimeUs()
383 int64_t timeUs, originalTimeUs; in dequeueAccessUnit() local
386 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
387 originalTimeUs = timeUs; in dequeueAccessUnit()
[all …]
DPlaylistFetcher.cpp1616 int32_t PlaylistFetcher::getSeqNumberForTime(int64_t timeUs) const { in getSeqNumberForTime()
1627 if (timeUs < segmentStartUs + itemDurationUs) { in getSeqNumberForTime()
1664 bool PlaylistFetcher::isStartTimeReached(int64_t timeUs) { in isStartTimeReached() argument
1666 mFirstTimeUs = timeUs; in isStartTimeReached()
1672 (long long)timeUs, in isStartTimeReached()
1674 (long long)(timeUs - mFirstTimeUs)); in isStartTimeReached()
1675 timeUs -= mFirstTimeUs; in isStartTimeReached()
1676 if (timeUs < 0) { in isStartTimeReached()
1678 timeUs = 0; in isStartTimeReached()
1680 startTimeReached = (timeUs >= mStartTimeUs); in isStartTimeReached()
[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.java252 public Bitmap getFrameAtTime(long timeUs, int option) { in getFrameAtTime() argument
258 return _getFrameAtTime(timeUs, option); in getFrameAtTime()
281 public Bitmap getFrameAtTime(long timeUs) { in getFrameAtTime() argument
282 return getFrameAtTime(timeUs, OPTION_CLOSEST_SYNC); in getFrameAtTime()
303 private native Bitmap _getFrameAtTime(long timeUs, int option); in _getFrameAtTime() argument
/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/wifi-display/
DMediaSender.cpp233 int64_t timeUs; in queueAccessUnit() local
235 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in queueAccessUnit()
237 if (minTrackIndex < 0 || timeUs < minTimeUs) { in queueAccessUnit()
239 minTimeUs = timeUs; in queueAccessUnit()
260 int64_t timeUs; in queueAccessUnit() local
261 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in queueAccessUnit()
262 tsPackets->meta()->setInt64("timeUs", timeUs); in queueAccessUnit()
498 int64_t timeUs = ALooper::GetNowUs(); in packetizeAccessUnit() local
499 if (mPrevTimeUs < 0ll || mPrevTimeUs + 100000ll <= timeUs) { in packetizeAccessUnit()
503 mPrevTimeUs = timeUs; in packetizeAccessUnit()
/frameworks/av/media/libstagefright/omx/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/libstagefright/wifi-display/rtp/
DRTPSender.cpp212 int64_t timeUs; in queueRawPacket() local
213 CHECK(packet->meta()->findInt64("timeUs", &timeUs)); in queueRawPacket()
227 uint32_t rtpTime = (timeUs * 9) / 100ll; in queueRawPacket()
252 int64_t timeUs; in queueTSPackets() local
253 CHECK(tsPackets->meta()->findInt64("timeUs", &timeUs)); in queueTSPackets()
299 timeUs); in queueTSPackets()
311 int64_t timeUs; in queueAVCBuffer() local
312 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in queueAVCBuffer()
314 uint32_t rtpTime = (timeUs * 9 / 100ll); in queueAVCBuffer()
461 bool timeValid, int64_t timeUs) { in sendRTPPacket() argument
[all …]
/frameworks/av/media/libmedia/
DIMediaMetadataRetriever.cpp139 sp<IMemory> getFrameAtTime(int64_t timeUs, int option) in getFrameAtTime() argument
141 ALOGV("getTimeAtTime: time(%" PRId64 " us) and option(%d)", timeUs, option); in getFrameAtTime()
144 data.writeInt64(timeUs); in getFrameAtTime()
267 int64_t timeUs = data.readInt64(); in onTransact() local
269 ALOGV("getTimeAtTime: time(%" PRId64 " us) and option(%d)", timeUs, option); in onTransact()
273 sp<IMemory> bitmap = getFrameAtTime(timeUs, option); in onTransact()
/frameworks/av/media/libstagefright/rtsp/
Drtp_test.cpp204 int64_t timeUs; in main() local
205 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); in main()
208 buffer->range_length(), timeUs / 1E6); in main()
/frameworks/av/media/libstagefright/include/
DMPEG4Writer.h127 void setStartTimestampUs(int64_t timeUs);
141 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples)
142 : mTrack(track), mTimeStampUs(timeUs), mSamples(samples) {
215 void trackProgressStatus(size_t trackId, int64_t timeUs, status_t err = OK);

12345