Home
last modified time | relevance | path

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

1234

/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()
DGraphicBufferSource.cpp635 int64_t timeUs = item.mTimestamp / 1000; in fillCodecBuffer_l() local
636 if (mFrameDropper != NULL && mFrameDropper->shouldDrop(timeUs)) { in fillCodecBuffer_l()
637 ALOGV("skipping frame (%lld) to meet max framerate", static_cast<long long>(timeUs)); in fillCodecBuffer_l()
776 int64_t timeUs = item.mTimestamp / 1000; in getTimestamp() local
782 mPrevCaptureUs = timeUs; in getTimestamp()
783 mPrevFrameUs = timeUs; in getTimestamp()
786 int64_t nFrames = (timeUs + mTimePerCaptureUs / 2 - mPrevCaptureUs) in getTimestamp()
790 ALOGV("skipping frame, timeUs %lld", static_cast<long long>(timeUs)); in getTimestamp()
798 static_cast<long long>(timeUs), in getTimestamp()
812 int64_t originalTimeUs = timeUs; in getTimestamp()
[all …]
/frameworks/av/media/libstagefright/
DAudioSource.cpp256 int64_t timeUs; in read() local
257 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); in read()
258 int64_t elapsedTimeUs = timeUs - mStartTimeUs; in read()
281 mFirstSampleTimeUs = timeUs; in read()
283 timeUs = mFirstSampleTimeUs + (timeUs - mFirstSampleTimeUs) in read()
285 buffer->meta_data()->setInt64(kKeyTime, timeUs); in read()
303 int64_t timeUs = systemTime() / 1000ll; in dataCallback() local
307 timeUs -= mRecord->latency() * 1000LL; in dataCallback()
309 ALOGV("dataCallbackTimestamp: %" PRId64 " us", timeUs); in dataCallback()
317 if (mNumFramesReceived == 0 && timeUs < mStartTimeUs) { in dataCallback()
[all …]
DMediaCodecSource.cpp643 int64_t timeUs = 0ll; in feedEncoderInputBuffers() local
648 CHECK(mbuf->meta_data()->findInt64(kKeyTime, &timeUs)); in feedEncoderInputBuffers()
649 timeUs += mInputBufferTimeOffsetUs; in feedEncoderInputBuffers()
653 mDecodingTimeQueue.push_back(timeUs); in feedEncoderInputBuffers()
657 mFirstSampleTimeUs = timeUs; in feedEncoderInputBuffers()
663 driftTimeUs = timeUs - mFirstSampleTimeUs - driftTimeUs; in feedEncoderInputBuffers()
693 bufferIndex, 0, size, timeUs, flags); in feedEncoderInputBuffers()
803 int64_t timeUs; in onMessageReceived() local
809 CHECK(msg->findInt64("timeUs", &timeUs)); in onMessageReceived()
834 timeUs += mInputBufferTimeOffsetUs; in onMessageReceived()
[all …]
DMPEG2TSWriter.cpp264 int64_t timeUs; in postAVCFrame() local
265 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); in postAVCFrame()
266 copy->meta()->setInt64("timeUs", timeUs); in postAVCFrame()
295 int64_t timeUs; in appendAACFrames() local
296 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); in appendAACFrames()
298 mAACBuffer->meta()->setInt64("timeUs", timeUs); in appendAACFrames()
453 int64_t timeUs; in lastAccessUnitTimeUs() local
454 CHECK(mLastAccessUnit->meta()->findInt64("timeUs", &timeUs)); in lastAccessUnitTimeUs()
456 return timeUs; in lastAccessUnitTimeUs()
657 int64_t timeUs = source->lastAccessUnitTimeUs(); in onMessageReceived() local
[all …]
DVBRISeeker.cpp151 bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { in getOffsetForTime() argument
161 while (segmentIndex < mSegments.size() && nowUs < *timeUs) { in getOffsetForTime()
166 ALOGV("getOffsetForTime %lld us => 0x%016llx", (long long)*timeUs, (long long)*pos); in getOffsetForTime()
168 *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 …]
/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
280 trackAdded |= parseMPEGCCData(timeUs, br.data(), br.numBitsLeft() / 8); in parseSEINalUnit()
303 int64_t timeUs; in extractFromMPEGUserData() local
304 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromMPEGUserData()
312 timeUs, accessUnit->data() + userData[i], accessUnit->size() - userData[i]); in extractFromMPEGUserData()
319 bool NuPlayer::CCDecoder::parseMPEGUserDataUnit(int64_t timeUs, const uint8_t *data, size_t size) { in parseMPEGUserDataUnit() argument
326 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.cpp661 int64_t timeUs, actualTimeUs; in onMessageReceived() local
664 timeUs = mAudioLastDequeueTimeUs; in onMessageReceived()
666 timeUs = mVideoLastDequeueTimeUs; in onMessageReceived()
668 readBuffer(trackType, timeUs, &actualTimeUs, formatChange); in onMessageReceived()
670 ALOGV("timeUs %lld actualTimeUs %lld", (long long)timeUs, (long long)actualTimeUs); in onMessageReceived()
758 int64_t timeUs; in fetchTextData() local
759 CHECK(msg->findInt64("timeUs", &timeUs)); in fetchTextData()
762 readBuffer(type, timeUs, &subTimeUs); in fetchTextData()
764 int64_t delayUs = subTimeUs - timeUs; in fetchTextData()
924 int64_t timeUs; in dequeueAccessUnit() local
[all …]
DNuPlayerDecoderPassThrough.cpp182 int64_t timeUs; in aggregateBuffer() local
184 bool smallTimestampValid = accessUnit->meta()->findInt64("timeUs", &timeUs); in aggregateBuffer()
201 mAggregateBuffer->meta()->setInt64("timeUs", timeUs); in aggregateBuffer()
323 int64_t timeUs = 0; in onInputBufferFetched() local
324 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in onInputBufferFetched()
326 if (timeUs < mSkipRenderingUntilMediaTimeUs) { in onInputBufferFetched()
328 mComponentName.c_str(), (long long)timeUs); in onInputBufferFetched()
/frameworks/av/media/libstagefright/wifi-display/source/
DConverter.cpp532 int64_t timeUs; in feedRawAudioInputBuffers() local
533 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in feedRawAudioInputBuffers()
536 timeUs += copyUs; in feedRawAudioInputBuffers()
537 buffer->meta()->setInt64("timeUs", timeUs); in feedRawAudioInputBuffers()
578 int64_t timeUs; in feedRawAudioInputBuffers() local
579 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in feedRawAudioInputBuffers()
581 partialAudioAU->meta()->setInt64("timeUs", timeUs); in feedRawAudioInputBuffers()
584 timeUs += copyUs; in feedRawAudioInputBuffers()
585 buffer->meta()->setInt64("timeUs", timeUs); in feedRawAudioInputBuffers()
617 int64_t timeUs = 0ll; in feedEncoderInputBuffers() local
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp249 const void *data, size_t size, int64_t timeUs) { in appendData() argument
453 info.mTimestampUs = timeUs; in appendData()
458 ALOGI("size = %zu, timeUs = %.2f secs", size, timeUs / 1E6); in appendData()
547 int64_t timeUs = fetchTimestamp(syncStartPos + payloadSize); in dequeueAccessUnitAC3() local
548 if (timeUs < 0ll) { in dequeueAccessUnitAC3()
552 accessUnit->meta()->setInt64("timeUs", timeUs); in dequeueAccessUnitAC3()
610 int64_t timeUs = fetchTimestamp(payloadSize + 4); in dequeueAccessUnitPCMAudio() local
611 if (timeUs < 0ll) { in dequeueAccessUnitPCMAudio()
615 accessUnit->meta()->setInt64("timeUs", timeUs); in dequeueAccessUnitPCMAudio()
739 int64_t timeUs = fetchTimestamp(offset); in dequeueAccessUnitAAC() local
[all …]
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()
207 mediaBuffer->meta_data()->setInt64(kKeyTime, timeUs); in read()
434 status_t AnotherPacketSource::nextBufferTime(int64_t *timeUs) { in nextBufferTime() argument
[all …]
/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.cpp1537 int32_t PlaylistFetcher::getSeqNumberForTime(int64_t timeUs) const { in getSeqNumberForTime()
1548 if (timeUs < segmentStartUs + itemDurationUs) { in getSeqNumberForTime()
1585 bool PlaylistFetcher::isStartTimeReached(int64_t timeUs) { in isStartTimeReached() argument
1587 mFirstTimeUs = timeUs; in isStartTimeReached()
1593 (long long)timeUs, in isStartTimeReached()
1595 (long long)(timeUs - mFirstTimeUs)); in isStartTimeReached()
1596 timeUs -= mFirstTimeUs; in isStartTimeReached()
1597 if (timeUs < 0) { in isStartTimeReached()
1599 timeUs = 0; in isStartTimeReached()
1601 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.cpp180 int64_t timeUs; in muxing() local
181 err = extractor->getSampleTime(&timeUs); in muxing()
195 if (enableTrim && timeUs > trimStartTimeUs && in muxing()
196 timeUs <= trimEndTimeUs) { in muxing()
198 trimOffsetTimeUs = timeUs; in muxing()
204 if (enableTrim && timeUs > trimEndTimeUs) { in muxing()
211 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()
496 int64_t timeUs = ALooper::GetNowUs(); in packetizeAccessUnit() local
497 if (mPrevTimeUs < 0ll || mPrevTimeUs + 100000ll <= timeUs) { in packetizeAccessUnit()
501 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/include/media/stagefright/
DMPEG4Writer.h111 void setStartTimestampUs(int64_t timeUs);
125 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples) in Chunk()
126 : mTrack(track), mTimeStampUs(timeUs), mSamples(samples) { in Chunk()
195 void trackProgressStatus(size_t trackId, int64_t timeUs, status_t err = OK);
/frameworks/av/media/libstagefright/rtsp/
Drtp_test.cpp206 int64_t timeUs; in main() local
207 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); in main()
210 buffer->range_length(), timeUs / 1E6); in main()

1234