/frameworks/av/cmds/stagefright/ |
D | stagefright.cpp | 249 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/ |
D | MidiExtractor.cpp | 123 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/ |
D | AMRExtractor.cpp | 284 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/ |
D | AACExtractor.cpp | 278 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/ |
D | MatroskaExtractor.cpp | 109 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/ |
D | MPEG2TSExtractor.h | 92 status_t seek(int64_t seekTimeUs, 95 status_t seekBeyond(int64_t seekTimeUs);
|
D | MPEG2TSExtractor.cpp | 170 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/ |
D | GenericSource.cpp | 1121 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 …]
|
D | GenericSource.h | 84 int64_t seekTimeUs, 189 status_t doSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode); 218 int64_t seekTimeUs = -1ll,
|
D | RTSPSource.h | 57 int64_t seekTimeUs, 139 void performSeek(int64_t seekTimeUs);
|
D | RTSPSource.cpp | 305 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()
|
D | NuPlayer.h | 83 int64_t seekTimeUs, 327 void performSeek(int64_t seekTimeUs, MediaPlayerSeekMode mode);
|
D | HTTPLiveSource.h | 55 int64_t seekTimeUs,
|
D | NuPlayer.cpp | 78 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 …]
|
D | HTTPLiveSource.cpp | 241 status_t NuPlayer::HTTPLiveSource::seekTo(int64_t seekTimeUs, MediaPlayerSeekMode mode) { in seekTo() argument 243 return mLiveSession->seekTo(seekTimeUs, mode); in seekTo()
|
D | RTPSource.h | 71 int64_t seekTimeUs,
|
D | NuPlayerDriver.cpp | 499 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/ |
D | JPEGSource.cpp | 115 int64_t seekTimeUs; in read() local 117 if (options != NULL && options->getSeekTo(&seekTimeUs, &mode)) { in read()
|
D | NuMediaExtractor.cpp | 525 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/ |
D | NuMediaExtractor.h | 153 int64_t seekTimeUs = -1ll, 158 int64_t seekTimeUs = -1ll,
|
/frameworks/av/media/extractors/mp3/ |
D | MP3Extractor.cpp | 490 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/ |
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 | 712 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/ |
D | WAVExtractor.cpp | 440 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/ |
D | MPEG4Extractor.cpp | 6114 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 …]
|