Home
last modified time | relevance | path

Searched refs:seekTimeUs (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/av/cmds/stagefright/
Dstagefright.cpp249 int64_t seekTimeUs = -1; in playSource() local
270 if (seekTimeUs >= 0) { in playSource()
271 int64_t diff = timestampUs - seekTimeUs; in playSource()
280 seekTimeUs / 1E6, timestampUs / 1E6); in playSource()
304 seekTimeUs = -1; in playSource()
307 seekTimeUs = (rand() * (float)durationUs) / (float)RAND_MAX; in playSource()
308 options.setSeekTo(seekTimeUs); in playSource()
311 seekTimeUs, seekTimeUs / 1E6); in playSource()
572 for (int64_t seekTimeUs = 0; seekTimeUs <= durationUs; in performSeekTest() local
573 seekTimeUs += 60000ll) { in performSeekTest()
[all …]
/frameworks/av/media/extractors/midi/
DMidiExtractor.cpp123 int64_t seekTimeUs; in read() local
125 if ((NULL != options) && options->getSeekTo(&seekTimeUs, &mode)) { in read()
126 if (seekTimeUs <= 0LL) { in read()
127 seekTimeUs = 0LL; in read()
129 mEngine.seekTo(seekTimeUs); in read()
/frameworks/av/media/extractors/amr/
DAMRExtractor.cpp284 int64_t seekTimeUs; in read() local
286 if (mOffsetTableLength > 0 && options && options->getSeekTo(&seekTimeUs, &mode)) { in read()
292 seekFrame = (seekTimeUs + frameDurationUs - 1) / frameDurationUs; in read()
296 seekFrame = (seekTimeUs + frameDurationUs/2) / frameDurationUs; in read()
300 seekFrame = seekTimeUs / frameDurationUs; in read()
/frameworks/av/media/extractors/aac/
DAACExtractor.cpp278 int64_t seekTimeUs; in read() local
280 if (options && options->getSeekTo(&seekTimeUs, &mode)) { in read()
286 seekFrame = (seekTimeUs + mFrameDurationUs - 1) / mFrameDurationUs; in read()
290 seekFrame = (seekTimeUs + mFrameDurationUs/2) / mFrameDurationUs; in read()
295 seekFrame = seekTimeUs / mFrameDurationUs; in read()
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp109 int64_t seekTimeUs, bool isAudio,
125 void seekwithoutcue_l(int64_t seekTimeUs, int64_t *actualFrameTimeUs);
431 int64_t seekTimeUs, bool isAudio, in seek() argument
437 if (seekTimeUs > INT64_MAX / 1000ll || in seek()
438 seekTimeUs < INT64_MIN / 1000ll || in seek()
440 (seekTimeUs * 1000ll) < INT64_MIN + mExtractor->mSeekPreRollNs) || in seek()
442 (seekTimeUs * 1000ll) > INT64_MAX + mExtractor->mSeekPreRollNs)) { in seek()
443 ALOGE("cannot seek to %lld", (long long) seekTimeUs); in seek()
447 const int64_t seekTimeNs = seekTimeUs * 1000ll - mExtractor->mSeekPreRollNs; in seek()
454 ALOGV("Seek to beginning: %" PRId64, seekTimeUs); in seek()
[all …]
/frameworks/av/media/extractors/mpeg2/
DMPEG2TSExtractor.h92 status_t seek(int64_t seekTimeUs,
95 status_t seekBeyond(int64_t seekTimeUs);
DMPEG2TSExtractor.cpp170 int64_t seekTimeUs; in read() local
172 if (mDoesSeek && options && options->getSeekTo(&seekTimeUs, &seekMode)) { in read()
174 status_t err = mExtractor->seek(seekTimeUs, (ReadOptions::SeekMode)seekMode); in read()
621 status_t MPEG2TSExtractor::seek(int64_t seekTimeUs, in seek() argument
631 (seekTimeUs > mSeekSyncPoints->keyAt(mSeekSyncPoints->size() - 1)); in seek()
637 if (timeUs > seekTimeUs) { in seek()
675 status_t err = seekBeyond(seekTimeUs); in seek()
743 status_t MPEG2TSExtractor::seekBeyond(int64_t seekTimeUs) { in seekBeyond() argument
747 while (seekTimeUs > mSeekSyncPoints->keyAt( in seekBeyond()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp1121 status_t NuPlayer::GenericSource::seekTo(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in seekTo() argument
1122 ALOGV("seekTo: %lld, %d", (long long)seekTimeUs, mode); in seekTo()
1124 msg->setInt64("seekTimeUs", seekTimeUs); in seekTo()
1140 int64_t seekTimeUs; in onSeek() local
1142 CHECK(msg->findInt64("seekTimeUs", &seekTimeUs)); in onSeek()
1146 status_t err = doSeek(seekTimeUs, (MediaPlayerSeekMode)mode); in onSeek()
1154 status_t NuPlayer::GenericSource::doSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in doSeek() argument
1159 readBuffer(MEDIA_TRACK_TYPE_VIDEO, seekTimeUs, mode, &actualTimeUs); in doSeek()
1162 seekTimeUs = std::max<int64_t>(0, actualTimeUs); in doSeek()
1169 readBuffer(MEDIA_TRACK_TYPE_AUDIO, seekTimeUs, MediaPlayerSeekMode::SEEK_CLOSEST); in doSeek()
[all …]
DGenericSource.h84 int64_t seekTimeUs,
189 status_t doSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode);
218 int64_t seekTimeUs = -1ll,
DRTSPSource.h57 int64_t seekTimeUs,
139 void performSeek(int64_t seekTimeUs);
DRTSPSource.cpp305 status_t NuPlayer::RTSPSource::seekTo(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in seekTo() argument
308 msg->setInt64("timeUs", seekTimeUs); in seekTo()
320 void NuPlayer::RTSPSource::performSeek(int64_t seekTimeUs) { in performSeek() argument
327 mHandler->seek(seekTimeUs); in performSeek()
504 int64_t seekTimeUs; in onMessageReceived() local
506 CHECK(msg->findInt64("timeUs", &seekTimeUs)); in onMessageReceived()
510 performSeek(seekTimeUs/*, (MediaPlayerSeekMode)mode */); in onMessageReceived()
DNuPlayer.h83 int64_t seekTimeUs,
327 void performSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode);
DHTTPLiveSource.h55 int64_t seekTimeUs,
DNuPlayer.cpp78 explicit SeekAction(int64_t seekTimeUs, MediaPlayerSeekMode mode) in SeekAction()
79 : mSeekTimeUs(seekTimeUs), in SeekAction()
501 void NuPlayer::seekToAsync(int64_t seekTimeUs, MediaPlayerSeekMode mode, bool needNotify) { in seekToAsync() argument
503 msg->setInt64("seekTimeUs", seekTimeUs); in seekToAsync()
1373 int64_t seekTimeUs; in onMessageReceived() local
1376 CHECK(msg->findInt64("seekTimeUs", &seekTimeUs)); in onMessageReceived()
1381 (long long)seekTimeUs, mode, needNotify); in onMessageReceived()
1389 onStart(seekTimeUs, (MediaPlayerSeekMode)mode); in onMessageReceived()
1405 new SeekAction(seekTimeUs, (MediaPlayerSeekMode)mode)); in onMessageReceived()
2340 void NuPlayer::performSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in performSeek() argument
[all …]
DHTTPLiveSource.cpp241 status_t NuPlayer::HTTPLiveSource::seekTo(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in seekTo() argument
243 return mLiveSession->seekTo(seekTimeUs, mode); in seekTo()
DRTPSource.h71 int64_t seekTimeUs,
DNuPlayerDriver.cpp499 int64_t seekTimeUs = msec * 1000LL; in seekTo() local
511 mPlayer->seekToAsync(seekTimeUs, mode, true /* needNotify */); in seekTo()
519 mPositionUs = seekTimeUs; in seekTo()
/frameworks/av/media/libstagefright/
DJPEGSource.cpp115 int64_t seekTimeUs; in read() local
117 if (options != NULL && options->getSeekTo(&seekTimeUs, &mode)) { in read()
DNuMediaExtractor.cpp525 int64_t seekTimeUs, MediaSource::ReadOptions::SeekMode mode) { in fetchAllTrackSamples() argument
531 fetchTrackSamples(info, seekTimeUs, mode); in fetchAllTrackSamples()
559 int64_t seekTimeUs, MediaSource::ReadOptions::SeekMode mode) { in fetchTrackSamples() argument
565 if (seekTimeUs >= 0LL) { in fetchTrackSamples()
566 options.setSeekTo(seekTimeUs, mode); in fetchTrackSamples()
/frameworks/av/media/libstagefright/include/media/stagefright/
DNuMediaExtractor.h153 int64_t seekTimeUs = -1ll,
158 int64_t seekTimeUs = -1ll,
/frameworks/av/media/extractors/mp3/
DMP3Extractor.cpp490 int64_t seekTimeUs; in read() local
494 if (options != NULL && options->getSeekTo(&seekTimeUs, &mode)) { in read()
495 int64_t actualSeekTimeUs = seekTimeUs; in read()
506 mCurrentTimeUs = seekTimeUs; in read()
508 if (__builtin_mul_overflow(seekTimeUs, bitrate, &seekTimeUsTimesBitrate)) { in read()
/frameworks/wilhelm/src/android/util/
DAacAdtsExtractor.cpp237 int64_t seekTimeUs; in read() local
239 if (options && options->getSeekTo(&seekTimeUs, &mode)) { in read()
/frameworks/av/media/extractors/flac/
DFLACExtractor.cpp712 int64_t seekTimeUs; in read() local
714 if ((NULL != options) && options->getSeekTo(&seekTimeUs, &mode)) { in read()
716 if (seekTimeUs <= 0LL) { in read()
720 sample = (seekTimeUs * mParser->getSampleRate()) / 1000000LL; in read()
/frameworks/av/media/extractors/wav/
DWAVExtractor.cpp440 int64_t seekTimeUs; in read() local
442 if (options != NULL && options->getSeekTo(&seekTimeUs, &mode)) { in read()
445 bool overflowed = __builtin_mul_overflow(seekTimeUs, mSampleRate, &sampleNumber); in read()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp6114 int64_t seekTimeUs; in read() local
6117 if (options && options->getSeekTo(&seekTimeUs, &mode)) { in read()
6118 ALOGV("seekTimeUs:%" PRId64, seekTimeUs); in read()
6128 if (seekTimeUs >= 0) { in read()
6164 seekTimeUs = std::max(seekTimeUs - elstInitialEmptyEditUs, (int64_t)0); in read()
6168 seekTimeUs += elstShiftStartUs; in read()
6171 ", elstShiftStartUs:%" PRIu64, seekTimeUs, elstInitialEmptyEditUs, in read()
6177 seekTimeUs, 1000000, mTimescale, in read()
6239 seekTimeUs, in read()
6279 options && options->getSeekTo(&seekTimeUs, &mode) ? in read()
[all …]

12