Home
last modified time | relevance | path

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

12

/frameworks/av/cmds/stagefright/
Dstagefright.cpp234 int64_t seekTimeUs = -1; in playSource() local
255 if (seekTimeUs >= 0) { in playSource()
256 int64_t diff = timestampUs - seekTimeUs; in playSource()
265 seekTimeUs / 1E6, timestampUs / 1E6); in playSource()
289 seekTimeUs = -1; in playSource()
292 seekTimeUs = (rand() * (float)durationUs) / RAND_MAX; in playSource()
293 options.setSeekTo(seekTimeUs); in playSource()
296 seekTimeUs, seekTimeUs / 1E6); in playSource()
554 for (int64_t seekTimeUs = 0; seekTimeUs <= durationUs; in performSeekTest() local
555 seekTimeUs += 60000ll) { in performSeekTest()
[all …]
/frameworks/av/media/libstagefright/
DMidiExtractor.cpp122 int64_t seekTimeUs; in read() local
124 if ((NULL != options) && options->getSeekTo(&seekTimeUs, &mode)) { in read()
125 if (seekTimeUs <= 0LL) { in read()
126 seekTimeUs = 0LL; in read()
128 mEngine->seekTo(seekTimeUs); in read()
DJPEGSource.cpp114 int64_t seekTimeUs; in read() local
116 if (options != NULL && options->getSeekTo(&seekTimeUs, &mode)) { in read()
DMP3Extractor.cpp498 int64_t seekTimeUs; in read() local
502 if (options != NULL && options->getSeekTo(&seekTimeUs, &mode)) { in read()
503 int64_t actualSeekTimeUs = seekTimeUs; in read()
514 mCurrentTimeUs = seekTimeUs; in read()
515 mCurrentPos = mFirstFramePos + seekTimeUs * bitrate / 8000000; in read()
DAMRExtractor.cpp260 int64_t seekTimeUs; in read() local
262 if (mOffsetTableLength > 0 && options && options->getSeekTo(&seekTimeUs, &mode)) { in read()
264 int64_t seekFrame = seekTimeUs / 20000ll; // 20ms per frame. in read()
DAACExtractor.cpp292 int64_t seekTimeUs; in read() local
294 if (options && options->getSeekTo(&seekTimeUs, &mode)) { in read()
296 int64_t seekFrame = seekTimeUs / mFrameDurationUs; in read()
DWAVExtractor.cpp425 int64_t seekTimeUs; in read() local
427 if (options != NULL && options->getSeekTo(&seekTimeUs, &mode)) { in read()
432 int64_t samplenumber = (seekTimeUs * mSampleRate) / 1000000; in read()
436 pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * (mBitsPerSample >> 3); in read()
DNuMediaExtractor.cpp384 int64_t seekTimeUs, MediaSource::ReadOptions::SeekMode mode) { in fetchTrackSamples() argument
391 if (seekTimeUs >= 0ll) { in fetchTrackSamples()
405 if (seekTimeUs >= 0ll) { in fetchTrackSamples()
406 options.setSeekTo(seekTimeUs, mode); in fetchTrackSamples()
DFLACExtractor.cpp763 int64_t seekTimeUs; in read() local
765 if ((NULL != options) && options->getSeekTo(&seekTimeUs, &mode)) { in read()
767 if (seekTimeUs <= 0LL) { in read()
771 sample = (seekTimeUs * mParser->getSampleRate()) / 1000000LL; in read()
/frameworks/av/media/libstagefright/mpeg2ts/
DMPEG2TSExtractor.cpp96 int64_t seekTimeUs; in read() local
98 if (mDoesSeek && options && options->getSeekTo(&seekTimeUs, &seekMode)) { in read()
100 status_t err = mExtractor->seek(seekTimeUs, seekMode); in read()
467 status_t MPEG2TSExtractor::seek(int64_t seekTimeUs, in seek() argument
477 (seekTimeUs > mSeekSyncPoints->keyAt(mSeekSyncPoints->size() - 1)); in seek()
483 if (timeUs > seekTimeUs) { in seek()
519 status_t err = seekBeyond(seekTimeUs); in seek()
587 status_t MPEG2TSExtractor::seekBeyond(int64_t seekTimeUs) { in seekBeyond() argument
591 while (seekTimeUs > mSeekSyncPoints->keyAt( in seekBeyond()
/frameworks/av/media/libstagefright/include/
DMPEG2TSExtractor.h87 status_t seek(int64_t seekTimeUs,
90 status_t seekBeyond(int64_t seekTimeUs);
DNuMediaExtractor.h125 int64_t seekTimeUs = -1ll,
/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp102 int64_t seekTimeUs, bool isAudio,
374 int64_t seekTimeUs, bool isAudio, in seek() argument
380 if (seekTimeUs > INT64_MAX / 1000ll || in seek()
381 seekTimeUs < INT64_MIN / 1000ll || in seek()
383 (seekTimeUs * 1000ll) < INT64_MIN + mExtractor->mSeekPreRollNs) || in seek()
385 (seekTimeUs * 1000ll) > INT64_MAX + mExtractor->mSeekPreRollNs)) { in seek()
386 ALOGE("cannot seek to %lld", (long long) seekTimeUs); in seek()
390 const int64_t seekTimeNs = seekTimeUs * 1000ll - mExtractor->mSeekPreRollNs; in seek()
397 ALOGV("Seek to beginning: %" PRId64, seekTimeUs); in seek()
406 ALOGV("Seeking to: %" PRId64, seekTimeUs); in seek()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DRTSPSource.h57 int64_t seekTimeUs,
138 void performSeek(int64_t seekTimeUs);
DGenericSource.cpp1190 status_t NuPlayer::GenericSource::seekTo(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in seekTo() argument
1192 msg->setInt64("seekTimeUs", seekTimeUs); in seekTo()
1205 int64_t seekTimeUs; in onSeek() local
1207 CHECK(msg->findInt64("seekTimeUs", &seekTimeUs)); in onSeek()
1211 status_t err = doSeek(seekTimeUs, (MediaPlayerSeekMode)mode); in onSeek()
1219 status_t NuPlayer::GenericSource::doSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in doSeek() argument
1232 readBuffer(MEDIA_TRACK_TYPE_VIDEO, seekTimeUs, mode, &actualTimeUs); in doSeek()
1235 seekTimeUs = actualTimeUs; in doSeek()
1241 readBuffer(MEDIA_TRACK_TYPE_AUDIO, seekTimeUs); in doSeek()
1242 mAudioLastDequeueTimeUs = seekTimeUs; in doSeek()
[all …]
DRTSPSource.cpp311 status_t NuPlayer::RTSPSource::seekTo(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in seekTo() argument
314 msg->setInt64("timeUs", seekTimeUs); in seekTo()
326 void NuPlayer::RTSPSource::performSeek(int64_t seekTimeUs) { in performSeek() argument
333 mHandler->seek(seekTimeUs); in performSeek()
501 int64_t seekTimeUs; in onMessageReceived() local
503 CHECK(msg->findInt64("timeUs", &seekTimeUs)); in onMessageReceived()
507 performSeek(seekTimeUs/*, (MediaPlayerSeekMode)mode */); in onMessageReceived()
DGenericSource.h79 int64_t seekTimeUs,
277 status_t doSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode);
306 int64_t seekTimeUs = -1ll,
DNuPlayer.cpp76 explicit SeekAction(int64_t seekTimeUs, MediaPlayerSeekMode mode) in SeekAction()
77 : mSeekTimeUs(seekTimeUs), in SeekAction()
473 void NuPlayer::seekToAsync(int64_t seekTimeUs, MediaPlayerSeekMode mode, bool needNotify) { in seekToAsync() argument
475 msg->setInt64("seekTimeUs", seekTimeUs); in seekToAsync()
1316 int64_t seekTimeUs; in onMessageReceived() local
1319 CHECK(msg->findInt64("seekTimeUs", &seekTimeUs)); in onMessageReceived()
1324 (long long)seekTimeUs, mode, needNotify); in onMessageReceived()
1332 onStart(seekTimeUs, (MediaPlayerSeekMode)mode); in onMessageReceived()
1348 new SeekAction(seekTimeUs, (MediaPlayerSeekMode)mode)); in onMessageReceived()
2163 void NuPlayer::performSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in performSeek() argument
[all …]
DNuPlayer.h78 int64_t seekTimeUs,
305 void performSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode);
DHTTPLiveSource.h55 int64_t seekTimeUs,
DHTTPLiveSource.cpp260 status_t NuPlayer::HTTPLiveSource::seekTo(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in seekTo() argument
262 return mLiveSession->seekTo(seekTimeUs, mode); in seekTo()
DNuPlayerDriver.cpp453 int64_t seekTimeUs = msec * 1000ll; in seekTo() local
465 mPlayer->seekToAsync(seekTimeUs, mode, true /* needNotify */); in seekTo()
473 mPositionUs = seekTimeUs; in seekTo()
/frameworks/av/media/libstagefright/wifi-display/source/
DRepeaterSource.cpp111 int64_t seekTimeUs; in read() local
113 CHECK(options == NULL || !options->getSeekTo(&seekTimeUs, &seekMode)); in read()
/frameworks/wilhelm/src/android/util/
DAacAdtsExtractor.cpp262 int64_t seekTimeUs; in read() local
264 if (options && options->getSeekTo(&seekTimeUs, &mode)) { in read()
/frameworks/av/media/libstagefright/codecs/aacenc/
DAACEncoder.cpp219 int64_t seekTimeUs; in read() local
221 CHECK(options == NULL || !options->getSeekTo(&seekTimeUs, &mode)); in read()

12