Home
last modified time | relevance | path

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

1234

/frameworks/av/media/libstagefright/
DAudioSource.cpp236 int64_t timeUs; in read() local
237 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); in read()
238 int64_t elapsedTimeUs = timeUs - mStartTimeUs; in read()
274 int64_t timeUs = systemTime() / 1000ll; in dataCallback() local
276 ALOGV("dataCallbackTimestamp: %" PRId64 " us", timeUs); in dataCallback()
284 if (mNumFramesReceived == 0 && timeUs < mStartTimeUs) { in dataCallback()
286 ALOGV("Drop audio data at %" PRId64 "/%" PRId64 " us", timeUs, mStartTimeUs); in dataCallback()
291 mInitialReadTimeUs = timeUs; in dataCallback()
294 mStartTimeUs = timeUs - mStartTimeUs; in dataCallback()
329 queueInputBuffer_l(lostAudioBuffer, timeUs); in dataCallback()
[all …]
DMediaCodecSource.cpp535 int64_t timeUs = 0ll; in feedEncoderInputBuffers() local
540 CHECK(mbuf->meta_data()->findInt64(kKeyTime, &timeUs)); in feedEncoderInputBuffers()
544 mDecodingTimeQueue.push_back(timeUs); in feedEncoderInputBuffers()
548 mFirstSampleTimeUs = timeUs; in feedEncoderInputBuffers()
554 driftTimeUs = timeUs - mFirstSampleTimeUs - driftTimeUs; in feedEncoderInputBuffers()
584 bufferIndex, 0, size, timeUs, flags); in feedEncoderInputBuffers()
685 int64_t timeUs; in onMessageReceived() local
692 CHECK(msg->findInt64("timeUs", &timeUs)); in onMessageReceived()
717 CHECK_GE(timeUs, 0ll); in onMessageReceived()
722 decodingTimeUs = timeUs; 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()
670 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 %" PRId64 " us => 0x%016llx", *timeUs, *pos); in getOffsetForTime()
168 *timeUs = nowUs; in getOffsetForTime()
DOggExtractor.cpp77 status_t seekToTime(int64_t timeUs);
195 int64_t timeUs; in read()
196 if (packet->meta_data()->findInt64(kKeyTime, &timeUs)) { in read()
197 ALOGI("found time = %lld us", timeUs); in read()
317 status_t MyVorbisExtractor::seekToTime(int64_t timeUs) { in seekToTime() argument
321 off64_t pos = timeUs * approxBitrate() / 8000000ll; in seekToTime()
334 if (timeUs < entry.mTimeUs) { in seekToTime()
336 } else if (timeUs > entry.mTimeUs) { in seekToTime()
464 int64_t timeUs = -1; in readNextPacket() local
533 timeUs = mCurrentPage.mPrevPacketPos * 1000000ll / mVi.rate; in readNextPacket()
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp249 const void *data, size_t size, int64_t timeUs) { in appendData() argument
447 info.mTimestampUs = timeUs; in appendData()
452 ALOGI("size = %zu, timeUs = %.2f secs", size, timeUs / 1E6); in appendData()
536 int64_t timeUs = fetchTimestamp(syncStartPos + payloadSize); in dequeueAccessUnitAC3() local
537 CHECK_GE(timeUs, 0ll); in dequeueAccessUnitAC3()
538 accessUnit->meta()->setInt64("timeUs", timeUs); in dequeueAccessUnitAC3()
585 int64_t timeUs = fetchTimestamp(payloadSize + 4); in dequeueAccessUnitPCMAudio() local
586 CHECK_GE(timeUs, 0ll); in dequeueAccessUnitPCMAudio()
587 accessUnit->meta()->setInt64("timeUs", timeUs); in dequeueAccessUnitPCMAudio()
694 int64_t timeUs = fetchTimestampAAC(offset); in dequeueAccessUnitAAC() local
[all …]
DAnotherPacketSource.cpp172 int64_t timeUs; in read() local
173 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in read()
177 mediaBuffer->meta_data()->setInt64(kKeyTime, timeUs); in read()
327 int64_t timeUs; in getBufferedDurationUs_l() local
328 if (buffer->meta()->findInt64("timeUs", &timeUs)) { in getBufferedDurationUs_l()
329 if (time1 < 0 || timeUs < time1) { in getBufferedDurationUs_l()
330 time1 = timeUs; in getBufferedDurationUs_l()
333 if (time2 < 0 || timeUs > time2) { in getBufferedDurationUs_l()
334 time2 = timeUs; in getBufferedDurationUs_l()
389 status_t AnotherPacketSource::nextBufferTime(int64_t *timeUs) { in nextBufferTime() argument
[all …]
/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/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.java247 public Bitmap getFrameAtTime(long timeUs, int option) { in getFrameAtTime() argument
253 return _getFrameAtTime(timeUs, option); in getFrameAtTime()
276 public Bitmap getFrameAtTime(long timeUs) { in getFrameAtTime() argument
277 return getFrameAtTime(timeUs, OPTION_CLOSEST_SYNC); in getFrameAtTime()
298 private native Bitmap _getFrameAtTime(long timeUs, int option); in _getFrameAtTime() argument
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp134 int64_t timeUs; in dequeueAccessUnit() local
137 && extra->findInt64("timeUs", &timeUs)) { in dequeueAccessUnit()
139 mLastSeekTimeUs = timeUs; in dequeueAccessUnit()
277 int64_t timeUs; in dequeueAccessUnit() local
279 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
287 if (timeUs > strm.mLastDequeuedTimeUs) { in dequeueAccessUnit()
288 durUs = timeUs - strm.mLastDequeuedTimeUs; in dequeueAccessUnit()
290 durUs = strm.mLastDequeuedTimeUs - timeUs; in dequeueAccessUnit()
295 firstTimeUs = timeUs; in dequeueAccessUnit()
297 mDiscontinuityAbsStartTimesUs.add(strm.mCurDiscontinuitySeq, timeUs); in dequeueAccessUnit()
[all …]
DPlaylistFetcher.cpp1135 int32_t PlaylistFetcher::getSeqNumberForTime(int64_t timeUs) const { in getSeqNumberForTime()
1152 if (timeUs < segmentStartUs + itemDurationUs) { in getSeqNumberForTime()
1259 int64_t timeUs; in extractAndQueueAccessUnitsFromTs() local
1265 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractAndQueueAccessUnitsFromTs()
1269 mFirstTimeUs = timeUs; in extractAndQueueAccessUnitsFromTs()
1273 timeUs -= mFirstTimeUs; in extractAndQueueAccessUnitsFromTs()
1274 if (timeUs < 0) { in extractAndQueueAccessUnitsFromTs()
1275 timeUs = 0; in extractAndQueueAccessUnitsFromTs()
1279 if (timeUs < mStartTimeUs) { in extractAndQueueAccessUnitsFromTs()
1282 timeUs, mStartTimeUs); in extractAndQueueAccessUnitsFromTs()
[all …]
/frameworks/av/cmds/stagefright/
Dmuxer.cpp160 int64_t timeUs; in muxing() local
161 err = extractor->getSampleTime(&timeUs); in muxing()
175 if (enableTrim && timeUs > trimStartTimeUs && in muxing()
176 timeUs <= trimEndTimeUs) { in muxing()
178 trimOffsetTimeUs = timeUs; in muxing()
184 if (enableTrim && timeUs > trimEndTimeUs) { in muxing()
191 timeUs - trimOffsetTimeUs, sampleFlags); in muxing()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp812 int64_t timeUs, actualTimeUs; in onMessageReceived() local
815 timeUs = mAudioLastDequeueTimeUs; in onMessageReceived()
817 timeUs = mVideoLastDequeueTimeUs; in onMessageReceived()
819 readBuffer(trackType, timeUs, &actualTimeUs, formatChange); in onMessageReceived()
821 ALOGV("timeUs %lld actualTimeUs %lld", timeUs, actualTimeUs); in onMessageReceived()
911 int64_t timeUs; in fetchTextData() local
912 CHECK(msg->findInt64("timeUs", &timeUs)); in fetchTextData()
915 readBuffer(type, timeUs, &subTimeUs); in fetchTextData()
917 int64_t delayUs = subTimeUs - timeUs; in fetchTextData()
1040 int64_t timeUs; in dequeueAccessUnit() local
[all …]
DNuPlayerDecoderPassThrough.cpp181 int64_t timeUs; in aggregateBuffer() local
183 bool smallTimestampValid = accessUnit->meta()->findInt64("timeUs", &timeUs); in aggregateBuffer()
200 mAggregateBuffer->meta()->setInt64("timeUs", timeUs); in aggregateBuffer()
317 int64_t timeUs = 0; in onInputBufferFetched() local
318 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in onInputBufferFetched()
320 if (timeUs < mSkipRenderingUntilMediaTimeUs) { in onInputBufferFetched()
322 mComponentName.c_str(), (long long)timeUs); in onInputBufferFetched()
DNuPlayerCCDecoder.cpp188 int64_t timeUs; in extractFromSEI() local
189 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in extractFromSEI()
274 mCCMap.add(timeUs, ccBuf); in extractFromSEI()
323 void NuPlayer::CCDecoder::display(int64_t timeUs) { in display() argument
329 ssize_t index = mCCMap.indexOfKey(timeUs); in display()
331 ALOGV("cc for timestamp %" PRId64 " not found", timeUs); in display()
343 ccBuf->meta()->setInt64("timeUs", timeUs); in display()
DNuPlayerDecoder.cpp400 int64_t timeUs; in handleAnOutputBuffer() local
403 &bufferIx, &offset, &size, &timeUs, &flags); in handleAnOutputBuffer()
409 mComponentName.c_str(), (int)bufferIx, timeUs, flags); in handleAnOutputBuffer()
476 buffer->meta()->setInt64("timeUs", timeUs); in handleAnOutputBuffer()
488 if (timeUs < mSkipRenderingUntilMediaTimeUs) { in handleAnOutputBuffer()
490 mComponentName.c_str(), (long long)timeUs); in handleAnOutputBuffer()
737 int64_t timeUs = 0; in onInputBufferFetched() local
739 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); in onInputBufferFetched()
760 timeUs, in onInputBufferFetched()
787 int64_t timeUs; in onRenderBuffer() local
[all …]
/frameworks/av/media/libstagefright/omx/
DGraphicBufferSource.cpp583 int64_t timeUs = item.mTimestamp / 1000; in getTimestamp() local
589 mPrevCaptureUs = timeUs; in getTimestamp()
590 mPrevFrameUs = timeUs; in getTimestamp()
593 int64_t nFrames = (timeUs + mTimePerCaptureUs / 2 - mPrevCaptureUs) in getTimestamp()
597 ALOGV("skipping frame, timeUs %lld", static_cast<long long>(timeUs)); in getTimestamp()
605 static_cast<long long>(timeUs), in getTimestamp()
619 int64_t originalTimeUs = timeUs; in getTimestamp()
628 timeUs = (timestampGapUs < mMaxTimestampGapUs ? in getTimestamp()
632 mPrevModifiedTimeUs = timeUs; in getTimestamp()
633 mOriginalTimeUs.add(timeUs, originalTimeUs); in getTimestamp()
[all …]
/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/timedtext/
DTimedTextSRTSource.cpp270 int64_t timeUs, const AString &text, Parcel *parcel) { in extractAndAppendLocalDescriptions() argument
278 (const uint8_t *)data, size, flag, timeUs / 1000, parcel); in extractAndAppendLocalDescriptions()
283 int TimedTextSRTSource::compareExtendedRangeAndTime(size_t index, int64_t timeUs) { in compareExtendedRangeAndTime() argument
288 if (timeUs >= startTimeUs && timeUs < endTimeUs) { in compareExtendedRangeAndTime()
290 } else if (endTimeUs <= timeUs) { in compareExtendedRangeAndTime()
/frameworks/av/media/libmedia/
DIMediaMetadataRetriever.cpp128 sp<IMemory> getFrameAtTime(int64_t timeUs, int option) in getFrameAtTime() argument
130 ALOGV("getTimeAtTime: time(%" PRId64 " us) and option(%d)", timeUs, option); in getFrameAtTime()
133 data.writeInt64(timeUs); in getFrameAtTime()
240 int64_t timeUs = data.readInt64(); in onTransact() local
242 ALOGV("getTimeAtTime: time(%" PRId64 " us) and option(%d)", timeUs, option); in onTransact()
246 sp<IMemory> bitmap = getFrameAtTime(timeUs, option); in onTransact()
/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()
301 timeUs); in queueTSPackets()
313 int64_t timeUs; in queueAVCBuffer() local
314 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in queueAVCBuffer()
316 uint32_t rtpTime = (timeUs * 9 / 100ll); in queueAVCBuffer()
463 bool timeValid, int64_t timeUs) { in sendRTPPacket() argument
[all …]
/frameworks/av/include/media/stagefright/
DMPEG4Writer.h106 void setStartTimestampUs(int64_t timeUs);
120 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples) in Chunk()
121 : mTrack(track), mTimeStampUs(timeUs), mSamples(samples) { in Chunk()
190 void trackProgressStatus(size_t trackId, int64_t timeUs, status_t err = OK);
/frameworks/av/media/libstagefright/rtsp/
Drtp_test.cpp213 int64_t timeUs; in main() local
214 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); in main()
217 buffer->range_length(), timeUs / 1E6); in main()
/frameworks/av/include/media/
DMediaMetadataRetrieverInterface.h43 virtual VideoFrame* getFrameAtTime(int64_t timeUs, int option) = 0;
55 virtual VideoFrame* getFrameAtTime(int64_t timeUs, int option) { return NULL; } in getFrameAtTime() argument

1234