/frameworks/av/media/extractors/mp3/ |
D | VBRISeeker.cpp | 73 int64_t durationUs = in CreateFromSource() local 76 ALOGV("duration = %.2f secs", durationUs / 1E6); in CreateFromSource() 119 if (durationUs) { in CreateFromSource() 120 seeker->mDurationUs = durationUs; in CreateFromSource() 157 bool VBRISeeker::getDuration(int64_t *durationUs) { in getDuration() argument 162 *durationUs = mDurationUs; in getDuration()
|
D | MP3Extractor.cpp | 344 int64_t durationUs; in MP3Extractor() local 346 if (mSeeker == NULL || !mSeeker->getDuration(&durationUs)) { in MP3Extractor() 352 durationUs = INT64_MAX; in MP3Extractor() 354 durationUs = 8000LL * dataLength / bitrate; in MP3Extractor() 357 durationUs = -1; in MP3Extractor() 361 if (durationUs >= 0) { in MP3Extractor() 362 AMediaFormat_setInt64(mMeta, AMEDIAFORMAT_KEY_DURATION, durationUs); in MP3Extractor()
|
D | XINGSeeker.cpp | 38 bool XINGSeeker::getDuration(int64_t *durationUs) { in getDuration() argument 43 *durationUs = mDurationUs; in getDuration()
|
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/extractors/mpeg2/ |
D | MPEG2TSExtractor.cpp | 398 int64_t durationUs = -1; in init() local 424 durationUs = currentDurationUs; in init() 439 int64_t trackDurationUs = durationUs; in init() 562 int64_t durationUs = ev.getTimeUs(); in estimateDurationsFromTimesUsAtEnd() local 571 durationUs += src->getEstimatedBufferDurationUs(); in estimateDurationsFromTimesUsAtEnd() 572 durationUs -= timeAnchorUs; in estimateDurationsFromTimesUsAtEnd() 573 durationUs -= firstTimeUs; in estimateDurationsFromTimesUsAtEnd() 574 if (durationUs > 0) { in estimateDurationsFromTimesUsAtEnd() 583 || (origDurationUs < durationUs in estimateDurationsFromTimesUsAtEnd() 584 && abs(durationUs - lastDurationUs) < 60000000)) { in estimateDurationsFromTimesUsAtEnd() [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | StreamingSource.cpp | 199 int64_t durationUs; in haveSufficientDataOnAllTracks() local 201 && (durationUs = audioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks() 205 durationUs / 1E6); in haveSufficientDataOnAllTracks() 210 && (durationUs = videoTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks() 214 durationUs / 1E6); in haveSufficientDataOnAllTracks()
|
D | RTSPSource.cpp | 186 int64_t durationUs; in haveSufficientDataOnAllTracks() local 188 && (durationUs = mAudioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks() 192 durationUs / 1E6); in haveSufficientDataOnAllTracks() 197 && (durationUs = mVideoTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks() 201 durationUs / 1E6); in haveSufficientDataOnAllTracks() 279 status_t NuPlayer::RTSPSource::getDuration(int64_t *durationUs) { in getDuration() argument 280 *durationUs = -1LL; in getDuration() 286 && audioDurationUs > *durationUs) { in getDuration() 287 *durationUs = audioDurationUs; in getDuration() 294 && videoDurationUs > *durationUs) { in getDuration() [all …]
|
D | GenericSource.cpp | 257 int64_t durationUs; in initFromDataSource() local 258 if (meta->findInt64(kKeyDuration, &durationUs)) { in initFromDataSource() 259 if (durationUs > mDurationUs) { in initFromDataSource() 260 mDurationUs = durationUs; in initFromDataSource() 874 int64_t durationUs = track->mPackets->getBufferedDurationUs(&finalResult); in dequeueAccessUnit() local 880 if (durationUs < restartBufferingMarkUs) { in dequeueAccessUnit() 935 status_t NuPlayer::GenericSource::getDuration(int64_t *durationUs) { in getDuration() argument 937 *durationUs = mDurationUs; in getDuration() 1254 int64_t durationUs; in mediaBufferToABuffer() local 1255 if (mb->meta_data().findInt64(kKeyDuration, &durationUs)) { in mediaBufferToABuffer() [all …]
|
/frameworks/av/media/libstagefright/ |
D | ThrottledSource.cpp | 53 int64_t durationUs = in readAt() local 56 int64_t whenUs = mStartTimeUs + durationUs; in readAt()
|
D | MediaSync.cpp | 511 int64_t durationUs = in getPlayedOutAudioDurationMedia_l() local 514 if (durationUs < 0) { in getPlayedOutAudioDurationMedia_l() 525 "set to zero", (long long)durationUs); in getPlayedOutAudioDurationMedia_l() 526 durationUs = 0; in getPlayedOutAudioDurationMedia_l() 530 (long long)durationUs, (long long)nowUs, numFramesPlayed, in getPlayedOutAudioDurationMedia_l() 532 return durationUs; in getPlayedOutAudioDurationMedia_l()
|
/frameworks/base/media/java/android/media/ |
D | SubtitleData.java | 91 public SubtitleData(int trackIndex, long startTimeUs, long durationUs, @NonNull byte[] data) { in SubtitleData() argument 97 mDurationUs = durationUs; in SubtitleData()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaWriter.h | 45 virtual void setMaxFileDuration(int64_t durationUs) { mMaxFileDurationLimitUs = durationUs; } in setMaxFileDuration()
|
/frameworks/av/media/ndk/ |
D | NdkMediaExtractor.cpp | 409 int64_t durationUs; in AMediaExtractor_getCachedDuration() local 410 if (ex->mImpl->getCachedDuration(&durationUs, &eos)) { in AMediaExtractor_getCachedDuration() 411 return durationUs; in AMediaExtractor_getCachedDuration() 451 int64_t durationUs; in AMediaExtractor_getSampleFormat() local 452 if (sampleMeta->findInt64(kKeyDuration, &durationUs)) { in AMediaExtractor_getSampleFormat() 453 meta->setInt64(AMEDIAFORMAT_KEY_DURATION, durationUs); in AMediaExtractor_getSampleFormat()
|
/frameworks/av/media/tests/benchmark/src/native/common/ |
D | Stats.cpp | 38 void Stats::dumpStatistics(string operation, string inputReference, int64_t durationUs, in dumpStatistics() argument 46 nsecs_t timeTakenPerSec = (totalTimeTakenNs * 1000000) / durationUs; in dumpStatistics()
|
/frameworks/wilhelm/src/android/ |
D | android_AudioSfDecoder.cpp | 285 int64_t durationUs; in onPrepare() local 288 && meta->findInt64(kKeyDuration, &durationUs)) { in onPrepare() 289 if (durationUs != 0) { in onPrepare() 290 mBitrate = size * 8000000LL / durationUs; // in bits/sec in onPrepare() 294 mDurationUsec = durationUs; in onPrepare() 295 durationMsec = durationUs / 1000; in onPrepare()
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | AnotherPacketSource.cpp | 465 int64_t durationUs = 0; in getBufferedDurationUs() local 472 durationUs += (seg.mMaxEnqueTimeUs - seg.mMaxDequeTimeUs); in getBufferedDurationUs() 475 return durationUs; in getBufferedDurationUs() 552 int64_t durationUs = 0; in getMetaAfterLastDequeued() local 559 durationUs += lastUs - firstUs; in getMetaAfterLastDequeued() 572 if (durationUs + (lastUs - firstUs) >= delayUs) { in getMetaAfterLastDequeued()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | ASessionDescription.cpp | 260 bool ASessionDescription::getDurationUs(int64_t *durationUs) const { in getDurationUs() 261 *durationUs = 0; in getDurationUs() 279 *durationUs = (int64_t)((to - from) * 1E6); in getDurationUs()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/ |
D | Stats.java | 129 String mode, long durationUs, String statsFile) throws IOException { in dumpStatistics() argument 135 long timeTakenPerSec = (totalTimeTakenNs * 1000000) / durationUs; in dumpStatistics()
|
/frameworks/av/media/tests/benchmark/tests/ |
D | C2DecoderTest.cpp | 137 int64_t durationUs = extractor->getClipDuration(); in TEST_P() local 139 mDecoder->dumpStatistics(GetParam().first, durationUs); in TEST_P()
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmWriter.cpp | 348 int64_t durationUs = mStreams[i].mThread->getDurationUs(); in reset() local 349 if (durationUs > maxDurationUs) { in reset() 350 maxDurationUs = durationUs; in reset() 352 if (durationUs < minDurationUs) { in reset() 353 minDurationUs = durationUs; in reset()
|
/frameworks/av/media/tests/benchmark/src/native/decoder/ |
D | C2Decoder.h | 34 void dumpStatistics(string inputReference, int64_t durationUs);
|
/frameworks/av/media/extractors/wav/ |
D | WAVExtractor.cpp | 335 int64_t durationUs = 0; in init() local 338 durationUs = in init() 351 durationUs = in init() 355 AMediaFormat_setInt64(mTrackMeta, AMEDIAFORMAT_KEY_DURATION, durationUs); in init()
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | C2Encoder.h | 47 void dumpStatistics(string inputReference, int64_t durationUs);
|