Searched refs:timeUs (Results 1 - 25 of 92) sorted by relevance

1234

/frameworks/base/media/java/android/media/
H A DMediaTimeProvider.java29 * registers the listener to get seek and stop notifications. If timeUs is
33 * is larger than or equal to timeUs.
35 * @param timeUs presentation time to get timed event callback at (or
38 public void notifyAt(long timeUs, OnMediaTimeListener listener); argument
72 * @param timeUs current media time
74 void onTimedEvent(long timeUs); argument
79 * @param timeUs current media time
81 void onSeek(long timeUs); argument
H A DMediaMetadataRetriever.java225 * @param timeUs The time position where the frame will be retrieved.
228 * When this happens, a frame nearby will be returned. If timeUs is
234 * that has a timestamp earlier than or the same as timeUs. Use
236 * that has a timestamp later than or the same as timeUs. Use
238 * that has a timestamp closest to or the same as timeUs. Use
240 * or may not be a sync frame but is closest to or the same as timeUs.
242 * to the other options if there is no sync frame located at timeUs.
247 public Bitmap getFrameAtTime(long timeUs, int option) { argument
253 return _getFrameAtTime(timeUs, option);
264 * @param timeUs Th
276 getFrameAtTime(long timeUs) argument
298 _getFrameAtTime(long timeUs, int option) argument
[all...]
/frameworks/av/media/libstagefright/include/
H A DMP3Seeker.h31 // Given a request seek time in "*timeUs", find the byte offset closest
32 // to that position and return it in "*pos". Update "*timeUs" to reflect
34 virtual bool getOffsetForTime(int64_t *timeUs, off64_t *pos) = 0;
H A DVBRISeeker.h34 virtual bool getOffsetForTime(int64_t *timeUs, off64_t *pos);
H A DXINGSeeker.h32 virtual bool getOffsetForTime(int64_t *timeUs, off64_t *pos);
H A DStagefrightMetadataRetriever.h42 virtual VideoFrame *getFrameAtTime(int64_t timeUs, int option);
/frameworks/av/include/media/
H A DMediaMetadataRetrieverInterface.h43 virtual VideoFrame* getFrameAtTime(int64_t timeUs, int option) = 0;
55 virtual VideoFrame* getFrameAtTime(int64_t timeUs, int option) { return NULL; } argument
H A DIMediaMetadataRetriever.h43 virtual sp<IMemory> getFrameAtTime(int64_t timeUs, int option) = 0;
/frameworks/av/media/libstagefright/
H A DAudioSource.cpp236 int64_t timeUs; local
237 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs));
238 int64_t elapsedTimeUs = timeUs - mStartTimeUs;
274 int64_t timeUs = systemTime() / 1000ll; local
276 ALOGV("dataCallbackTimestamp: %" PRId64 " us", timeUs);
284 if (mNumFramesReceived == 0 && timeUs < mStartTimeUs) {
286 ALOGV("Drop audio data at %" PRId64 "/%" PRId64 " us", timeUs, mStartTimeUs);
291 mInitialReadTimeUs = timeUs;
294 mStartTimeUs = timeUs - mStartTimeUs;
329 queueInputBuffer_l(lostAudioBuffer, timeUs);
346 queueInputBuffer_l(MediaBuffer *buffer, int64_t timeUs) argument
[all...]
H A DMediaCodecSource.cpp565 int64_t timeUs = 0ll; local
570 CHECK(mbuf->meta_data()->findInt64(kKeyTime, &timeUs));
574 mDecodingTimeQueue.push_back(timeUs);
578 mFirstSampleTimeUs = timeUs;
584 driftTimeUs = timeUs - mFirstSampleTimeUs - driftTimeUs;
608 bufferIndex, 0, size, timeUs, flags);
640 int64_t timeUs; local
644 &bufferIndex, &offset, &size, &timeUs, &flags);
670 // queued before start, and offset timeUs by start time
671 CHECK_GE(timeUs,
[all...]
H A DVBRISeeker.cpp151 bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { argument
161 while (segmentIndex < mSegments.size() && nowUs < *timeUs) {
166 ALOGV("getOffsetForTime %" PRId64 " us => 0x%016llx", *timeUs, *pos);
168 *timeUs = nowUs;
/frameworks/av/media/libstagefright/mpeg2ts/
H A DAnotherPacketSource.cpp172 int64_t timeUs; local
173 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
177 mediaBuffer->meta_data()->setInt64(kKeyTime, timeUs);
207 CHECK(buffer->meta()->findInt64("timeUs", &lastQueuedTimeUs));
209 ALOGV("queueAccessUnit timeUs=%" PRIi64 " us (%.2f secs)", mLastQueuedTimeUs, mLastQueuedTimeUs / 1E6);
224 CHECK(mLatestEnqueuedMeta->findInt64("timeUs", &latestTimeUs));
316 int64_t timeUs; local
317 if (buffer->meta()->findInt64("timeUs", &timeUs)) {
378 nextBufferTime(int64_t *timeUs) argument
[all...]
H A DESQueue.cpp241 const void *data, size_t size, int64_t timeUs) {
431 info.mTimestampUs = timeUs;
436 ALOGI("size = %zu, timeUs = %.2f secs", size, timeUs / 1E6);
455 accessUnit->meta()->setInt64("timeUs", info.mTimestampUs);
520 int64_t timeUs = fetchTimestamp(syncStartPos + payloadSize); local
521 CHECK_GE(timeUs, 0ll);
522 accessUnit->meta()->setInt64("timeUs", timeUs);
569 int64_t timeUs local
240 appendData( const void *data, size_t size, int64_t timeUs) argument
678 int64_t timeUs = fetchTimestampAAC(offset); local
693 int64_t timeUs = -1; local
727 int64_t timeUs = -1; local
861 int64_t timeUs = fetchTimestamp(nextScan); local
917 int64_t timeUs = fetchTimestamp(frameSize); local
1074 int64_t timeUs = fetchTimestamp(offset); local
1233 int64_t timeUs = fetchTimestamp(offset); local
[all...]
/frameworks/av/media/libstagefright/timedtext/
H A DTimedTextPlayer.h44 void seekToAsync(int64_t timeUs);
75 void postTextEvent(const sp<ParcelEvent>& parcel = NULL, int64_t timeUs = -1);
H A DTimedTextSRTSource.h71 int64_t timeUs, const AString &text, Parcel *parcel);
73 // Compares the time range of the subtitle at index to the given timeUs.
74 // The time range of the subtitle to match with given timeUs is extended to
78 // called with seek options. Note that timeUs within gap ranges, such as
87 // returns 0, if timeUs is in [200, 400)
88 // returns -1, if timeUs >= 400,
89 // returns 1, if timeUs < 200.
90 int compareExtendedRangeAndTime(size_t index, int64_t timeUs);
H A DTimedText3GPPSource.h50 int64_t timeUs, const MediaBuffer *textBuffer, Parcel *parcel);
H A DTimedTextSRTSource.cpp270 int64_t timeUs, const AString &text, Parcel *parcel) {
278 (const uint8_t *)data, size, flag, timeUs / 1000, parcel);
283 int TimedTextSRTSource::compareExtendedRangeAndTime(size_t index, int64_t timeUs) { argument
288 if (timeUs >= startTimeUs && timeUs < endTimeUs) {
290 } else if (endTimeUs <= timeUs) {
269 extractAndAppendLocalDescriptions( int64_t timeUs, const AString &text, Parcel *parcel) argument
H A DTimedTextPlayer.cpp70 void TimedTextPlayer::seekToAsync(int64_t timeUs) { argument
72 msg->setInt64("seekTimeUs", timeUs);
260 void TimedTextPlayer::postTextEvent(const sp<ParcelEvent>& parcel, int64_t timeUs) { argument
261 int64_t delayUs = delayUsFromCurrentTime(timeUs);
267 msg->setInt64("fireTimeUs", timeUs);
/frameworks/av/media/libstagefright/wifi-display/source/
H A DConverter.cpp532 int64_t timeUs; local
533 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
536 timeUs += copyUs;
537 buffer->meta()->setInt64("timeUs", timeUs);
578 int64_t timeUs; local
579 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
581 partialAudioAU->meta()->setInt64("timeUs", timeU
617 int64_t timeUs = 0ll; local
658 int64_t timeUs; local
688 int64_t timeUs; local
[all...]
/frameworks/av/cmds/stagefright/
H A Dmuxer.cpp160 int64_t timeUs; local
161 err = extractor->getSampleTime(&timeUs);
175 if (enableTrim && timeUs > trimStartTimeUs &&
176 timeUs <= trimEndTimeUs) {
178 trimOffsetTimeUs = timeUs;
184 if (enableTrim && timeUs > trimEndTimeUs) {
191 timeUs - trimOffsetTimeUs, sampleFlags);
/frameworks/av/include/media/stagefright/
H A DMPEG4Writer.h106 void setStartTimestampUs(int64_t timeUs);
120 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples) argument
121 : mTrack(track), mTimeStampUs(timeUs), mSamples(samples) {
190 void trackProgressStatus(size_t trackId, int64_t timeUs, status_t err = OK);
/frameworks/av/media/libmedia/
H A DIMediaMetadataRetriever.cpp128 sp<IMemory> getFrameAtTime(int64_t timeUs, int option) argument
130 ALOGV("getTimeAtTime: time(%" PRId64 " us) and option(%d)", timeUs, option);
133 data.writeInt64(timeUs);
240 int64_t timeUs = data.readInt64(); local
242 ALOGV("getTimeAtTime: time(%" PRId64 " us) and option(%d)", timeUs, option);
246 sp<IMemory> bitmap = getFrameAtTime(timeUs, option);
/frameworks/av/media/libstagefright/omx/
H A DGraphicBufferSource.cpp583 int64_t timeUs = item.mTimestamp / 1000; local
589 mPrevCaptureUs = timeUs;
590 mPrevFrameUs = timeUs;
593 int64_t nFrames = (timeUs + mTimePerCaptureUs / 2 - mPrevCaptureUs)
597 ALOGV("skipping frame, timeUs %lld", static_cast<long long>(timeUs));
604 ALOGV("timeUs %lld, captureUs %lld, frameUs %lld",
605 static_cast<long long>(timeUs),
619 int64_t originalTimeUs = timeUs;
628 timeUs
646 int64_t timeUs = getTimestamp(item); local
[all...]
/frameworks/av/media/libstagefright/wifi-display/
H A DMediaSender.cpp233 int64_t timeUs; local
235 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs));
237 if (minTrackIndex < 0 || timeUs < minTimeUs) {
239 minTimeUs = timeUs;
260 int64_t timeUs; local
261 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs));
262 tsPackets->meta()->setInt64("timeUs", timeUs);
496 int64_t timeUs = ALooper::GetNowUs(); local
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DLiveSession.cpp97 discontinuity->meta()->setInt64("timeUs", -1);
124 int64_t timeUs; local
127 && extra->findInt64("timeUs", &timeUs)) {
129 mLastSeekTimeUs = timeUs;
253 int64_t timeUs; local
255 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs));
263 if (timeUs > strm.mLastDequeuedTimeUs) {
264 durUs = timeUs
349 seekTo(int64_t timeUs) argument
1100 int64_t timeUs; local
1180 changeConfiguration( int64_t timeUs, size_t bandwidthIndex, bool pickTrack) argument
1353 int64_t timeUs; local
[all...]

Completed in 420 milliseconds

1234