/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 | 348 int64_t durationUs; in MP3Extractor() local 350 if (mSeeker == NULL || !mSeeker->getDuration(&durationUs)) { in MP3Extractor() 356 durationUs = INT64_MAX; in MP3Extractor() 358 durationUs = 8000LL * dataLength / bitrate; in MP3Extractor() 361 durationUs = -1; in MP3Extractor() 365 if (durationUs >= 0) { in MP3Extractor() 366 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 | 198 int64_t durationUs; in haveSufficientDataOnAllTracks() local 200 && (durationUs = audioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks() 204 durationUs / 1E6); in haveSufficientDataOnAllTracks() 209 && (durationUs = videoTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks() 213 durationUs / 1E6); in haveSufficientDataOnAllTracks()
|
D | RTSPSource.cpp | 182 int64_t durationUs; in haveSufficientDataOnAllTracks() local 184 && (durationUs = mAudioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks() 188 durationUs / 1E6); in haveSufficientDataOnAllTracks() 193 && (durationUs = mVideoTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks() 197 durationUs / 1E6); in haveSufficientDataOnAllTracks() 275 status_t NuPlayer::RTSPSource::getDuration(int64_t *durationUs) { in getDuration() argument 276 *durationUs = -1LL; in getDuration() 282 && audioDurationUs > *durationUs) { in getDuration() 283 *durationUs = audioDurationUs; in getDuration() 290 && videoDurationUs > *durationUs) { in getDuration() [all …]
|
D | GenericSource.cpp | 260 int64_t durationUs; in initFromDataSource() local 261 if (meta->findInt64(kKeyDuration, &durationUs)) { in initFromDataSource() 262 if (durationUs > mDurationUs) { in initFromDataSource() 263 mDurationUs = durationUs; in initFromDataSource() 886 int64_t durationUs = track->mPackets->getBufferedDurationUs(&finalResult); in dequeueAccessUnit() local 892 if (durationUs < restartBufferingMarkUs) { in dequeueAccessUnit() 947 status_t NuPlayer::GenericSource::getDuration(int64_t *durationUs) { in getDuration() argument 949 *durationUs = mDurationUs; in getDuration() 1266 int64_t durationUs; in mediaBufferToABuffer() local 1267 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 | 44 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/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/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/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 | 254 bool ASessionDescription::getDurationUs(int64_t *durationUs) const { in getDurationUs() 255 *durationUs = 0; in getDurationUs() 273 *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/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/ |
D | EncoderTest.java | 273 long durationUs; in testEncoder() local 277 durationUs = (((eleStream.getChannel().size() + frameSize - 1) / frameSize) / in testEncoder() 282 durationUs = in testEncoder() 286 durationUs, mStatsFile); in testEncoder()
|
/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/tests/ |
D | C2DecoderTest.cpp | 137 int64_t durationUs = extractor->getClipDuration(); in TEST_P() local 139 mDecoder->dumpStatistics(GetParam().first, durationUs, codecName, in TEST_P()
|
/frameworks/av/media/extractors/wav/ |
D | WAVExtractor.cpp | 333 int64_t durationUs = 0; in init() local 336 durationUs = in init() 349 durationUs = in init() 353 AMediaFormat_setInt64(mTrackMeta, AMEDIAFORMAT_KEY_DURATION, durationUs); in init()
|
/frameworks/base/libs/hwui/renderthread/ |
D | CanvasContext.cpp | 472 int durationUs; in draw() local 479 mNativeSurface->query(NATIVE_WINDOW_LAST_DEQUEUE_DURATION, &durationUs); in draw() 480 swap.dequeueDuration = us2ns(durationUs); in draw() 482 mNativeSurface->query(NATIVE_WINDOW_LAST_QUEUE_DURATION, &durationUs); in draw() 483 swap.queueDuration = us2ns(durationUs); in draw()
|