Home
last modified time | relevance | path

Searched refs:durationUs (Results 1 – 25 of 82) sorted by relevance

1234

/frameworks/av/media/extractors/mp3/
DVBRISeeker.cpp73 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()
DMP3Extractor.cpp344 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()
DXINGSeeker.cpp38 bool XINGSeeker::getDuration(int64_t *durationUs) { in getDuration() argument
43 *durationUs = mDurationUs; in getDuration()
DMP3Seeker.h29 virtual bool getDuration(int64_t *durationUs) = 0;
DVBRISeeker.h33 virtual bool getDuration(int64_t *durationUs);
DXINGSeeker.h31 virtual bool getDuration(int64_t *durationUs);
/frameworks/av/media/extractors/mpeg2/
DMPEG2TSExtractor.cpp401 int64_t durationUs = -1; in init() local
427 durationUs = currentDurationUs; in init()
442 int64_t trackDurationUs = durationUs; in init()
565 int64_t durationUs = ev.getTimeUs(); in estimateDurationsFromTimesUsAtEnd() local
574 durationUs += src->getEstimatedBufferDurationUs(); in estimateDurationsFromTimesUsAtEnd()
575 durationUs -= timeAnchorUs; in estimateDurationsFromTimesUsAtEnd()
576 durationUs -= firstTimeUs; in estimateDurationsFromTimesUsAtEnd()
577 if (durationUs > 0) { in estimateDurationsFromTimesUsAtEnd()
586 || (origDurationUs < durationUs in estimateDurationsFromTimesUsAtEnd()
587 && abs(durationUs - lastDurationUs) < 60000000)) { in estimateDurationsFromTimesUsAtEnd()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DStreamingSource.cpp199 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()
DRTPSource.cpp223 int64_t durationUs; in haveSufficientDataOnAllTracks() local
225 && (durationUs = mAudioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
229 durationUs / 1E6); in haveSufficientDataOnAllTracks()
234 && (durationUs = mVideoTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
238 durationUs / 1E6); in haveSufficientDataOnAllTracks()
335 status_t NuPlayer::RTPSource::getDuration(int64_t *durationUs) { in getDuration() argument
336 *durationUs = 0ll; in getDuration()
342 && audioDurationUs > *durationUs) { in getDuration()
343 *durationUs = audioDurationUs; in getDuration()
350 && videoDurationUs > *durationUs) { in getDuration()
[all …]
DRTSPSource.cpp190 int64_t durationUs; in haveSufficientDataOnAllTracks() local
192 && (durationUs = mAudioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
196 durationUs / 1E6); in haveSufficientDataOnAllTracks()
201 && (durationUs = mVideoTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
205 durationUs / 1E6); in haveSufficientDataOnAllTracks()
283 status_t NuPlayer::RTSPSource::getDuration(int64_t *durationUs) { in getDuration() argument
284 *durationUs = -1LL; in getDuration()
290 && audioDurationUs > *durationUs) { in getDuration()
291 *durationUs = audioDurationUs; in getDuration()
298 && videoDurationUs > *durationUs) { in getDuration()
[all …]
DGenericSource.cpp257 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/
DThrottledSource.cpp53 int64_t durationUs = in readAt() local
56 int64_t whenUs = mStartTimeUs + durationUs; in readAt()
DMediaSync.cpp511 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/
DSubtitleData.java91 public SubtitleData(int trackIndex, long startTimeUs, long durationUs, @NonNull byte[] data) { in SubtitleData() argument
97 mDurationUs = durationUs; in SubtitleData()
/frameworks/av/media/libmediatranscoding/transcoder/
DMediaSampleReaderNDK.cpp362 int64_t durationUs = 0; in getEstimatedBitrateForTrack() local
369 if (!AMediaFormat_getInt64(trackFormat, AMEDIAFORMAT_KEY_DURATION, &durationUs)) { in getEstimatedBitrateForTrack()
370 durationUs = 0; in getEstimatedBitrateForTrack()
375 if (durationUs == 0) { in getEstimatedBitrateForTrack()
379 durationUs = sampledDurationUs; in getEstimatedBitrateForTrack()
382 if (totalSampleSize == 0 || durationUs <= 0) { in getEstimatedBitrateForTrack()
387 *bitrate = roundf((float)totalSampleSize * 8 * 1000000 / durationUs); in getEstimatedBitrateForTrack()
DMediaSampleWriter.cpp145 int64_t durationUs; in addTrack() local
146 if (!AMediaFormat_getInt64(trackFormat.get(), AMEDIAFORMAT_KEY_DURATION, &durationUs)) { in addTrack()
147 durationUs = 0; in addTrack()
150 mTracks.emplace(trackIndex, durationUs); in addTrack()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaWriter.h45 virtual void setMaxFileDuration(int64_t durationUs) { mMaxFileDurationLimitUs = durationUs; } in setMaxFileDuration()
/frameworks/av/media/ndk/
DNdkMediaExtractor.cpp413 int64_t durationUs; in AMediaExtractor_getCachedDuration() local
414 if (ex->mImpl->getCachedDuration(&durationUs, &eos)) { in AMediaExtractor_getCachedDuration()
415 return durationUs; in AMediaExtractor_getCachedDuration()
459 int64_t durationUs; in AMediaExtractor_getSampleFormat() local
460 if (sampleMeta->findInt64(kKeyDuration, &durationUs)) { in AMediaExtractor_getSampleFormat()
461 meta->setInt64(AMEDIAFORMAT_KEY_DURATION, durationUs); in AMediaExtractor_getSampleFormat()
/frameworks/av/media/tests/benchmark/src/native/common/
DStats.cpp38 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/
Dandroid_AudioSfDecoder.cpp285 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/services/mediametrics/
Dstatsd_codec.cpp273 int64_t durationUs = -1; in statsd_codec() local
274 if (item->getInt64("android.media.mediacodec.vencode.durationUs", &durationUs)) { in statsd_codec()
275 metrics_proto.set_video_encode_duration_us(durationUs); in statsd_codec()
277 AStatsEvent_writeInt64(event, durationUs); in statsd_codec()
453 << " encode_duration_us:" << durationUs in statsd_codec()
/frameworks/av/media/libmediatranscoding/transcoder/include/media/
DMediaSampleWriter.h159 TrackRecord(int64_t durationUs) in TrackRecord()
160 : mDurationUs(durationUs), in TrackRecord()
/frameworks/av/media/libstagefright/mpeg2ts/
DAnotherPacketSource.cpp467 int64_t durationUs = 0; in getBufferedDurationUs() local
474 durationUs += (seg.mMaxEnqueTimeUs - seg.mMaxDequeTimeUs); in getBufferedDurationUs()
477 return durationUs; in getBufferedDurationUs()
554 int64_t durationUs = 0; in getMetaAfterLastDequeued() local
561 durationUs += lastUs - firstUs; in getMetaAfterLastDequeued()
574 if (durationUs + (lastUs - firstUs) >= delayUs) { in getMetaAfterLastDequeued()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DStats.java129 String mode, long durationUs, String statsFile) throws IOException { in dumpStatistics() argument
135 long timeTakenPerSec = (totalTimeTakenNs * 1000000) / durationUs; in dumpStatistics()
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioOffloadInfo.aidl38 long durationUs;

1234