/frameworks/av/cmds/stagefright/ |
D | stagefright.cpp | 250 int64_t seekTimeUs = -1; in playSource() local 271 if (seekTimeUs >= 0) { in playSource() 272 int64_t diff = timestampUs - seekTimeUs; in playSource() 281 seekTimeUs / 1E6, timestampUs / 1E6); in playSource() 305 seekTimeUs = -1; in playSource() 308 seekTimeUs = (rand() * (float)durationUs) / RAND_MAX; in playSource() 309 options.setSeekTo(seekTimeUs); in playSource() 312 seekTimeUs, seekTimeUs / 1E6); in playSource() 573 for (int64_t seekTimeUs = 0; seekTimeUs <= durationUs; in performSeekTest() local 574 seekTimeUs += 60000ll) { in performSeekTest() [all …]
|
/frameworks/av/media/extractors/midi/ |
D | MidiExtractor.cpp | 121 int64_t seekTimeUs; in read() local 123 if ((NULL != options) && options->getSeekTo(&seekTimeUs, &mode)) { in read() 124 if (seekTimeUs <= 0LL) { in read() 125 seekTimeUs = 0LL; in read() 127 mEngine.seekTo(seekTimeUs); in read()
|
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
D | GenericSource2.cpp | 1000 status_t NuPlayer2::GenericSource2::seekTo(int64_t seekTimeUs, MediaPlayer2SeekMode mode) { in seekTo() argument 1001 ALOGV("seekTo: %lld, %d", (long long)seekTimeUs, mode); in seekTo() 1003 msg->setInt64("seekTimeUs", seekTimeUs); in seekTo() 1019 int64_t seekTimeUs; in onSeek() local 1021 CHECK(msg->findInt64("seekTimeUs", &seekTimeUs)); in onSeek() 1025 status_t err = doSeek(seekTimeUs, (MediaPlayer2SeekMode)mode); in onSeek() 1033 status_t NuPlayer2::GenericSource2::doSeek(int64_t seekTimeUs, MediaPlayer2SeekMode mode) { in doSeek() argument 1038 readBuffer(MEDIA_TRACK_TYPE_VIDEO, seekTimeUs, mode, &actualTimeUs); in doSeek() 1041 seekTimeUs = actualTimeUs; in doSeek() 1048 readBuffer(MEDIA_TRACK_TYPE_AUDIO, seekTimeUs, MediaPlayer2SeekMode::SEEK_CLOSEST); in doSeek() [all …]
|
D | GenericSource2.h | 83 int64_t seekTimeUs, 188 status_t doSeek(int64_t seekTimeUs, MediaPlayer2SeekMode mode); 217 int64_t seekTimeUs = -1ll,
|
D | RTSPSource2.h | 56 int64_t seekTimeUs, 137 void performSeek(int64_t seekTimeUs);
|
D | RTSPSource2.cpp | 296 status_t NuPlayer2::RTSPSource2::seekTo(int64_t seekTimeUs, MediaPlayer2SeekMode mode) { in seekTo() argument 299 msg->setInt64("timeUs", seekTimeUs); in seekTo() 311 void NuPlayer2::RTSPSource2::performSeek(int64_t seekTimeUs) { in performSeek() argument 318 mHandler->seek(seekTimeUs); in performSeek() 495 int64_t seekTimeUs; in onMessageReceived() local 497 CHECK(msg->findInt64("timeUs", &seekTimeUs)); in onMessageReceived() 501 performSeek(seekTimeUs/*, (MediaPlayer2SeekMode)mode */); in onMessageReceived()
|
D | NuPlayer2.cpp | 113 explicit SeekAction(int64_t seekTimeUs, MediaPlayer2SeekMode mode) in SeekAction() 114 : mSeekTimeUs(seekTimeUs), in SeekAction() 584 void NuPlayer2::seekToAsync(int64_t seekTimeUs, MediaPlayer2SeekMode mode, bool needNotify) { in seekToAsync() argument 586 msg->setInt64("seekTimeUs", seekTimeUs); in seekToAsync() 1529 int64_t seekTimeUs; in onMessageReceived() local 1532 CHECK(msg->findInt64("seekTimeUs", &seekTimeUs)); in onMessageReceived() 1537 (long long)seekTimeUs, mode, needNotify); in onMessageReceived() 1544 if (seekTimeUs > 0) { in onMessageReceived() 1545 performSeek(seekTimeUs, (MediaPlayer2SeekMode)mode); in onMessageReceived() 1562 new SeekAction(seekTimeUs, (MediaPlayer2SeekMode)mode)); in onMessageReceived() [all …]
|
/frameworks/av/media/extractors/mkv/ |
D | MatroskaExtractor.cpp | 109 int64_t seekTimeUs, bool isAudio, 125 void seekwithoutcue_l(int64_t seekTimeUs, int64_t *actualFrameTimeUs); 426 int64_t seekTimeUs, bool isAudio, in seek() argument 432 if (seekTimeUs > INT64_MAX / 1000ll || in seek() 433 seekTimeUs < INT64_MIN / 1000ll || in seek() 435 (seekTimeUs * 1000ll) < INT64_MIN + mExtractor->mSeekPreRollNs) || in seek() 437 (seekTimeUs * 1000ll) > INT64_MAX + mExtractor->mSeekPreRollNs)) { in seek() 438 ALOGE("cannot seek to %lld", (long long) seekTimeUs); in seek() 442 const int64_t seekTimeNs = seekTimeUs * 1000ll - mExtractor->mSeekPreRollNs; in seek() 449 ALOGV("Seek to beginning: %" PRId64, seekTimeUs); in seek() [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | GenericSource.cpp | 1131 status_t NuPlayer::GenericSource::seekTo(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in seekTo() argument 1132 ALOGV("seekTo: %lld, %d", (long long)seekTimeUs, mode); in seekTo() 1134 msg->setInt64("seekTimeUs", seekTimeUs); in seekTo() 1150 int64_t seekTimeUs; in onSeek() local 1152 CHECK(msg->findInt64("seekTimeUs", &seekTimeUs)); in onSeek() 1156 status_t err = doSeek(seekTimeUs, (MediaPlayerSeekMode)mode); in onSeek() 1164 status_t NuPlayer::GenericSource::doSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in doSeek() argument 1169 readBuffer(MEDIA_TRACK_TYPE_VIDEO, seekTimeUs, mode, &actualTimeUs); in doSeek() 1172 seekTimeUs = actualTimeUs; in doSeek() 1179 readBuffer(MEDIA_TRACK_TYPE_AUDIO, seekTimeUs, MediaPlayerSeekMode::SEEK_CLOSEST); in doSeek() [all …]
|
D | GenericSource.h | 83 int64_t seekTimeUs, 188 status_t doSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode); 217 int64_t seekTimeUs = -1ll,
|
D | RTSPSource.h | 57 int64_t seekTimeUs, 139 void performSeek(int64_t seekTimeUs);
|
D | RTSPSource.cpp | 297 status_t NuPlayer::RTSPSource::seekTo(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in seekTo() argument 300 msg->setInt64("timeUs", seekTimeUs); in seekTo() 312 void NuPlayer::RTSPSource::performSeek(int64_t seekTimeUs) { in performSeek() argument 319 mHandler->seek(seekTimeUs); in performSeek() 496 int64_t seekTimeUs; in onMessageReceived() local 498 CHECK(msg->findInt64("timeUs", &seekTimeUs)); in onMessageReceived() 502 performSeek(seekTimeUs/*, (MediaPlayerSeekMode)mode */); in onMessageReceived()
|
D | NuPlayer.cpp | 77 explicit SeekAction(int64_t seekTimeUs, MediaPlayerSeekMode mode) in SeekAction() 78 : mSeekTimeUs(seekTimeUs), in SeekAction() 488 void NuPlayer::seekToAsync(int64_t seekTimeUs, MediaPlayerSeekMode mode, bool needNotify) { in seekToAsync() argument 490 msg->setInt64("seekTimeUs", seekTimeUs); in seekToAsync() 1358 int64_t seekTimeUs; in onMessageReceived() local 1361 CHECK(msg->findInt64("seekTimeUs", &seekTimeUs)); in onMessageReceived() 1366 (long long)seekTimeUs, mode, needNotify); in onMessageReceived() 1374 onStart(seekTimeUs, (MediaPlayerSeekMode)mode); in onMessageReceived() 1390 new SeekAction(seekTimeUs, (MediaPlayerSeekMode)mode)); in onMessageReceived() 2312 void NuPlayer::performSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in performSeek() argument [all …]
|
D | NuPlayer.h | 82 int64_t seekTimeUs, 322 void performSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode);
|
/frameworks/av/media/extractors/mpeg2/ |
D | MPEG2TSExtractor.h | 92 status_t seek(int64_t seekTimeUs, 95 status_t seekBeyond(int64_t seekTimeUs);
|
D | MPEG2TSExtractor.cpp | 171 int64_t seekTimeUs; in read() local 173 if (mDoesSeek && options && options->getSeekTo(&seekTimeUs, &seekMode)) { in read() 175 status_t err = mExtractor->seek(seekTimeUs, (ReadOptions::SeekMode)seekMode); in read() 619 status_t MPEG2TSExtractor::seek(int64_t seekTimeUs, in seek() argument 629 (seekTimeUs > mSeekSyncPoints->keyAt(mSeekSyncPoints->size() - 1)); in seek() 635 if (timeUs > seekTimeUs) { in seek() 673 status_t err = seekBeyond(seekTimeUs); in seek() 741 status_t MPEG2TSExtractor::seekBeyond(int64_t seekTimeUs) { in seekBeyond() argument 745 while (seekTimeUs > mSeekSyncPoints->keyAt( in seekBeyond()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | NuMediaExtractor.h | 143 int64_t seekTimeUs = -1ll, 148 int64_t seekTimeUs = -1ll,
|
/frameworks/av/media/libstagefright/ |
D | JPEGSource.cpp | 115 int64_t seekTimeUs; in read() local 117 if (options != NULL && options->getSeekTo(&seekTimeUs, &mode)) { in read()
|
D | NuMediaExtractor.cpp | 454 int64_t seekTimeUs, MediaSource::ReadOptions::SeekMode mode) { in fetchAllTrackSamples() argument 460 fetchTrackSamples(info, seekTimeUs, mode); in fetchAllTrackSamples() 488 int64_t seekTimeUs, MediaSource::ReadOptions::SeekMode mode) { in fetchTrackSamples() argument 494 if (seekTimeUs >= 0LL) { in fetchTrackSamples() 495 options.setSeekTo(seekTimeUs, mode); in fetchTrackSamples()
|
/frameworks/av/media/extractors/aac/ |
D | AACExtractor.cpp | 274 int64_t seekTimeUs; in read() local 276 if (options && options->getSeekTo(&seekTimeUs, &mode)) { in read() 278 int64_t seekFrame = seekTimeUs / mFrameDurationUs; in read()
|
/frameworks/av/media/extractors/amr/ |
D | AMRExtractor.cpp | 279 int64_t seekTimeUs; in read() local 281 if (mOffsetTableLength > 0 && options && options->getSeekTo(&seekTimeUs, &mode)) { in read() 283 int64_t seekFrame = seekTimeUs / 20000LL; // 20ms per frame. in read()
|
/frameworks/av/media/extractors/mp3/ |
D | MP3Extractor.cpp | 499 int64_t seekTimeUs; in read() local 503 if (options != NULL && options->getSeekTo(&seekTimeUs, &mode)) { in read() 504 int64_t actualSeekTimeUs = seekTimeUs; in read() 515 mCurrentTimeUs = seekTimeUs; in read() 516 mCurrentPos = mFirstFramePos + seekTimeUs * bitrate / 8000000; in read()
|
/frameworks/av/media/extractors/wav/ |
D | WAVExtractor.cpp | 438 int64_t seekTimeUs; in read() local 440 if (options != NULL && options->getSeekTo(&seekTimeUs, &mode)) { in read() 445 int64_t samplenumber = (seekTimeUs * mSampleRate) / 1000000; in read() 449 pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * (mBitsPerSample >> 3); in read()
|
/frameworks/wilhelm/src/android/util/ |
D | AacAdtsExtractor.cpp | 237 int64_t seekTimeUs; in read() local 239 if (options && options->getSeekTo(&seekTimeUs, &mode)) { in read()
|
/frameworks/av/media/extractors/flac/ |
D | FLACExtractor.cpp | 710 int64_t seekTimeUs; in read() local 712 if ((NULL != options) && options->getSeekTo(&seekTimeUs, &mode)) { in read() 714 if (seekTimeUs <= 0LL) { in read() 718 sample = (seekTimeUs * mParser->getSampleRate()) / 1000000LL; in read()
|