/frameworks/av/media/libstagefright/ |
D | VBRISeeker.cpp | 69 int64_t durationUs = in CreateFromSource() local 72 ALOGV("duration = %.2f secs", durationUs / 1E6); in CreateFromSource() 100 if (durationUs) { in CreateFromSource() 101 seeker->mDurationUs = durationUs; in CreateFromSource() 138 bool VBRISeeker::getDuration(int64_t *durationUs) { in getDuration() argument 143 *durationUs = mDurationUs; in getDuration()
|
D | ThrottledSource.cpp | 53 int64_t durationUs = in readAt() local 56 int64_t whenUs = mStartTimeUs + durationUs; in readAt()
|
D | NuMediaExtractor.cpp | 199 int64_t durationUs; in updateDurationAndBitrate() local 200 if (meta->findInt64(kKeyDuration, &durationUs) in updateDurationAndBitrate() 201 && durationUs > mDurationUs) { in updateDurationAndBitrate() 202 mDurationUs = durationUs; in updateDurationAndBitrate() 553 int64_t *durationUs, bool *eos) const { in getCachedDuration() argument 562 *durationUs = wvmExtractor->getCachedDurationUs(&finalStatus); in getCachedDuration() 574 *durationUs = cachedDataRemaining * 8000000ll / bitrate; in getCachedDuration()
|
D | MP3Extractor.cpp | 336 int64_t durationUs; in MP3Extractor() local 338 if (mSeeker == NULL || !mSeeker->getDuration(&durationUs)) { in MP3Extractor() 341 durationUs = 8000LL * (fileSize - mFirstFramePos) / bitrate; in MP3Extractor() 343 durationUs = -1; in MP3Extractor() 347 if (durationUs >= 0) { in MP3Extractor() 348 mMeta->setInt64(kKeyDuration, durationUs); in MP3Extractor()
|
D | XINGSeeker.cpp | 36 bool XINGSeeker::getDuration(int64_t *durationUs) { in getDuration() argument 41 *durationUs = mDurationUs; in getDuration()
|
D | Utils.cpp | 81 int64_t durationUs; in convertMetaDataToMessage() local 82 if (meta->findInt64(kKeyDuration, &durationUs)) { in convertMetaDataToMessage() 83 msg->setInt64("durationUs", durationUs); in convertMetaDataToMessage() 378 int64_t durationUs; in convertMessageToMetaData() local 379 if (msg->findInt64("durationUs", &durationUs)) { in convertMessageToMetaData() 380 meta->setInt64(kKeyDuration, durationUs); in convertMessageToMetaData()
|
D | WAVExtractor.cpp | 307 int64_t durationUs = 0; in init() local 310 durationUs = in init() 314 durationUs = in init() 319 mTrackMeta->setInt64(kKeyDuration, durationUs); in init()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | GenericSource.cpp | 96 int64_t durationUs; in initFromDataSource() local 97 if (meta->findInt64(kKeyDuration, &durationUs)) { in initFromDataSource() 98 if (durationUs > mDurationUs) { in initFromDataSource() 99 mDurationUs = durationUs; in initFromDataSource() 185 status_t NuPlayer::GenericSource::getDuration(int64_t *durationUs) { in getDuration() argument 186 *durationUs = mDurationUs; in getDuration()
|
D | RTSPSource.cpp | 171 int64_t durationUs; in haveSufficientDataOnAllTracks() local 173 && (durationUs = mAudioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks() 177 durationUs / 1E6); in haveSufficientDataOnAllTracks() 182 && (durationUs = mVideoTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks() 186 durationUs / 1E6); in haveSufficientDataOnAllTracks() 282 status_t NuPlayer::RTSPSource::getDuration(int64_t *durationUs) { in getDuration() argument 283 *durationUs = 0ll; in getDuration() 289 && audioDurationUs > *durationUs) { in getDuration() 290 *durationUs = audioDurationUs; in getDuration() 297 && videoDurationUs > *durationUs) { in getDuration() [all …]
|
D | HTTPLiveSource.cpp | 120 status_t NuPlayer::HTTPLiveSource::getDuration(int64_t *durationUs) { in getDuration() argument 121 return mLiveSession->getDuration(durationUs); in getDuration() 176 int64_t timeUs, baseUs, durationUs, delayUs; in onMessageReceived() local 179 CHECK(buffer->meta()->findInt64("durationUs", &durationUs)); in onMessageReceived()
|
D | NuPlayer.cpp | 393 int64_t durationUs; in onMessageReceived() local 394 if (mDriver != NULL && mSource->getDuration(&durationUs) == OK) { in onMessageReceived() 397 driver->notifyDuration(durationUs); in onMessageReceived() 609 int64_t durationUs; in onMessageReceived() local 616 mSource->getDuration(&durationUs) == OK && in onMessageReceived() 617 durationUs in onMessageReceived() 1391 int64_t durationUs; in onSourceNotify() local 1392 if (mDriver != NULL && mSource->getDuration(&durationUs) == OK) { in onSourceNotify() 1395 driver->notifyDuration(durationUs); in onSourceNotify() 1452 int64_t timeUs, durationUs; in onSourceNotify() local [all …]
|
/frameworks/av/include/media/stagefright/ |
D | MediaWriter.h | 42 virtual void setMaxFileDuration(int64_t durationUs) { mMaxFileDurationLimitUs = durationUs; } in setMaxFileDuration()
|
D | MPEG4Writer.h | 192 void writeMvhdBox(int64_t durationUs); 193 void writeMoovBox(int64_t durationUs);
|
/frameworks/av/media/libmediaplayerservice/ |
D | StagefrightPlayer.cpp | 136 int64_t durationUs; in getDuration() local 137 status_t err = mPlayer->getDuration(&durationUs); in getDuration() 144 *msec = (durationUs + 500) / 1000; in getDuration()
|
D | StagefrightRecorder.cpp | 423 status_t StagefrightRecorder::setParamInterleaveDuration(int32_t durationUs) { in setParamInterleaveDuration() argument 424 ALOGV("setParamInterleaveDuration: %d", durationUs); in setParamInterleaveDuration() 425 if (durationUs <= 500000) { // 500 ms in setParamInterleaveDuration() 429 ALOGE("Audio/video interleave duration is too small: %d us", durationUs); in setParamInterleaveDuration() 431 } else if (durationUs >= 10000000) { // 10 seconds in setParamInterleaveDuration() 435 ALOGE("Audio/video interleave duration is too large: %d us", durationUs); in setParamInterleaveDuration() 438 mInterleaveDurationUs = durationUs; in setParamInterleaveDuration() 593 int32_t durationUs; in setParameter() local 594 if (safe_strtoi32(value.string(), &durationUs)) { in setParameter() 595 return setParamInterleaveDuration(durationUs); in setParameter() [all …]
|
/frameworks/wilhelm/src/android/ |
D | android_AudioSfDecoder.cpp | 272 int64_t durationUs; in onPrepare() local 275 && meta->findInt64(kKeyDuration, &durationUs)) { in onPrepare() 276 if (durationUs != 0) { in onPrepare() 277 mBitrate = size * 8000000ll / durationUs; // in bits/sec in onPrepare() 281 mDurationUsec = durationUs; in onPrepare() 282 durationMsec = durationUs / 1000; in onPrepare()
|
/frameworks/av/media/libstagefright/include/ |
D | MP3Seeker.h | 29 virtual bool getDuration(int64_t *durationUs) = 0;
|
D | VBRISeeker.h | 33 virtual bool getDuration(int64_t *durationUs);
|
D | XINGSeeker.h | 31 virtual bool getDuration(int64_t *durationUs);
|
/frameworks/av/media/libstagefright/rtsp/ |
D | ASessionDescription.cpp | 252 bool ASessionDescription::getDurationUs(int64_t *durationUs) const { in getDurationUs() 253 *durationUs = 0; in getDurationUs() 271 *durationUs = (int64_t)((to - from) * 1E6); in getDurationUs()
|
D | ASessionDescription.h | 51 bool getDurationUs(int64_t *durationUs) const;
|
/frameworks/av/media/libstagefright/codecs/aacenc/ |
D | AACEncoder.cpp | 205 int64_t durationUs; in getFormat() local 206 if (srcFormat->findInt64(kKeyDuration, &durationUs)) { in getFormat() 207 mMeta->setInt64(kKeyDuration, durationUs); in getFormat()
|
/frameworks/av/libvideoeditor/lvpp/ |
D | PreviewPlayer.cpp | 721 int64_t durationUs; in initAudioDecoder_l() local 722 if (mAudioTrack->getFormat()->findInt64(kKeyDuration, &durationUs)) { in initAudioDecoder_l() 723 setDuration_l(durationUs); in initAudioDecoder_l() 756 int64_t durationUs; in initVideoDecoder_l() local 757 if (mVideoTrack->getFormat()->findInt64(kKeyDuration, &durationUs)) { in initVideoDecoder_l() 758 setDuration_l(durationUs); in initVideoDecoder_l() 1854 void PreviewPlayer::setDuration_l(int64_t durationUs) { in setDuration_l() argument 1855 if (mDurationUs < 0 || durationUs > mDurationUs) { in setDuration_l() 1856 mDurationUs = durationUs; in setDuration_l() 1860 status_t PreviewPlayer::getDuration(int64_t *durationUs) { in getDuration() argument [all …]
|
/frameworks/av/media/libstagefright/omx/tests/ |
D | OMXHarness.cpp | 603 int64_t durationUs; in testSeek() local 604 CHECK(source->getFormat()->findInt64(kKeyDuration, &durationUs)); in testSeek() 607 durationUs, durationUs / 1E6); in testSeek() 631 requestedSeekTimeUs = durationUs; in testSeek() 636 (int64_t)(uniform_rand() * durationUs); in testSeek()
|
/frameworks/av/media/libstagefright/httplive/ |
D | PlaylistFetcher.cpp | 1194 int64_t durationUs; in extractAndQueueAccessUnits() local 1195 CHECK(itemMeta->findInt64("durationUs", &durationUs)); in extractAndQueueAccessUnits() 1197 buffer->meta()->setInt64("durationUs", durationUs); in extractAndQueueAccessUnits() 1357 int64_t durationUs = 0ll; in updateDuration() local 1366 durationUs += itemDurationUs; in updateDuration() 1371 msg->setInt64("durationUs", durationUs); in updateDuration() 1376 int64_t durationUs, threshold; in resumeThreshold() local 1377 if (msg->findInt64("durationUs", &durationUs)) { in resumeThreshold() 1378 return kNumSkipFrames * durationUs; in resumeThreshold()
|