Home
last modified time | relevance | path

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

123

/frameworks/av/media/libstagefright/
DVBRISeeker.cpp72 int64_t durationUs = in CreateFromSource() local
75 ALOGV("duration = %.2f secs", durationUs / 1E6); in CreateFromSource()
103 if (durationUs) { in CreateFromSource()
104 seeker->mDurationUs = durationUs; in CreateFromSource()
141 bool VBRISeeker::getDuration(int64_t *durationUs) { in getDuration() argument
146 *durationUs = mDurationUs; in getDuration()
DThrottledSource.cpp53 int64_t durationUs = in readAt() local
56 int64_t whenUs = mStartTimeUs + durationUs; in readAt()
DNuMediaExtractor.cpp201 int64_t durationUs; in updateDurationAndBitrate() local
202 if (meta->findInt64(kKeyDuration, &durationUs) in updateDurationAndBitrate()
203 && durationUs > mDurationUs) { in updateDurationAndBitrate()
204 mDurationUs = durationUs; in updateDurationAndBitrate()
555 int64_t *durationUs, bool *eos) const { in getCachedDuration() argument
564 *durationUs = wvmExtractor->getCachedDurationUs(&finalStatus); in getCachedDuration()
576 *durationUs = cachedDataRemaining * 8000000ll / bitrate; in getCachedDuration()
DUtils.cpp100 int64_t durationUs; in convertMetaDataToMessage() local
101 if (meta->findInt64(kKeyDuration, &durationUs)) { in convertMetaDataToMessage()
102 msg->setInt64("durationUs", durationUs); in convertMetaDataToMessage()
558 int64_t durationUs; in convertMessageToMetaData() local
559 if (msg->findInt64("durationUs", &durationUs)) { in convertMessageToMetaData()
560 meta->setInt64(kKeyDuration, durationUs); in convertMessageToMetaData()
932 int64_t durationUs; in getSegmentTimeUs() local
933 CHECK(mMeta->findInt64("segmentDurationUs", &durationUs)); in getSegmentTimeUs()
936 playlistAgeUs = (playlistAgeUs + durationUs / 2) in getSegmentTimeUs()
937 / durationUs * durationUs; in getSegmentTimeUs()
DMP3Extractor.cpp348 int64_t durationUs; in MP3Extractor() local
350 if (mSeeker == NULL || !mSeeker->getDuration(&durationUs)) { in MP3Extractor()
353 durationUs = 8000LL * (fileSize - mFirstFramePos) / bitrate; in MP3Extractor()
355 durationUs = -1; in MP3Extractor()
359 if (durationUs >= 0) { in MP3Extractor()
360 mMeta->setInt64(kKeyDuration, durationUs); in MP3Extractor()
DAudioPlayer.cpp167 int64_t durationUs; in start() local
168 if (format->findInt64(kKeyDuration, &durationUs)) { in start()
169 offloadInfo.duration_us = durationUs; in start()
781 int64_t durationUs; in getMediaTimeUs() local
782 mSource->getFormat()->findInt64(kKeyDuration, &durationUs); in getMediaTimeUs()
783 return durationUs; in getMediaTimeUs()
DXINGSeeker.cpp36 bool XINGSeeker::getDuration(int64_t *durationUs) { in getDuration() argument
41 *durationUs = mDurationUs; in getDuration()
DMediaSync.cpp524 int64_t durationUs = in getPlayedOutAudioDurationMedia_l() local
527 if (durationUs < 0) { in getPlayedOutAudioDurationMedia_l()
538 "set to zero", (long long)durationUs); in getPlayedOutAudioDurationMedia_l()
539 durationUs = 0; in getPlayedOutAudioDurationMedia_l()
543 (long long)durationUs, (long long)nowUs, numFramesPlayed, in getPlayedOutAudioDurationMedia_l()
545 return durationUs; in getPlayedOutAudioDurationMedia_l()
DWAVExtractor.cpp307 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/
DStreamingSource.cpp180 int64_t durationUs; in haveSufficientDataOnAllTracks() local
182 && (durationUs = audioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
186 durationUs / 1E6); in haveSufficientDataOnAllTracks()
191 && (durationUs = videoTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
195 durationUs / 1E6); in haveSufficientDataOnAllTracks()
DRTSPSource.cpp175 int64_t durationUs; in haveSufficientDataOnAllTracks() local
177 && (durationUs = mAudioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
181 durationUs / 1E6); in haveSufficientDataOnAllTracks()
186 && (durationUs = mVideoTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
190 durationUs / 1E6); in haveSufficientDataOnAllTracks()
274 status_t NuPlayer::RTSPSource::getDuration(int64_t *durationUs) { in getDuration() argument
275 *durationUs = 0ll; in getDuration()
281 && audioDurationUs > *durationUs) { in getDuration()
282 *durationUs = audioDurationUs; in getDuration()
289 && videoDurationUs > *durationUs) { in getDuration()
[all …]
/frameworks/av/include/media/stagefright/
DMediaWriter.h42 virtual void setMaxFileDuration(int64_t durationUs) { mMaxFileDurationLimitUs = durationUs; } in setMaxFileDuration()
DMPEG4Writer.h197 void writeMvhdBox(int64_t durationUs);
198 void writeMoovBox(int64_t durationUs);
/frameworks/av/media/libstagefright/mpeg2ts/
DMPEG2TSExtractor.cpp198 int64_t durationUs = -1; in init() local
209 durationUs = size * diffUs / diffOffset; in init()
210 durations.push_back(durationUs); in init()
235 durationUs = bufferedDurationUs; in init()
237 if (durationUs > 0) { in init()
239 meta->setInt64(kKeyDuration, durationUs); in init()
DAnotherPacketSource.cpp415 int64_t durationUs = 0; in getBufferedDurationUs() local
422 durationUs += (seg.mMaxEnqueTimeUs - seg.mMaxDequeTimeUs); in getBufferedDurationUs()
425 return durationUs; in getBufferedDurationUs()
477 int64_t durationUs = 0; in getMetaAfterLastDequeued() local
484 durationUs += lastUs - firstUs; in getMetaAfterLastDequeued()
497 if (durationUs + (lastUs - firstUs) >= delayUs) { in getMetaAfterLastDequeued()
/frameworks/av/media/libmediaplayerservice/
DStagefrightPlayer.cpp138 int64_t durationUs; in getDuration() local
139 status_t err = mPlayer->getDuration(&durationUs); in getDuration()
146 *msec = (durationUs + 500) / 1000; in getDuration()
DStagefrightRecorder.cpp458 status_t StagefrightRecorder::setParamInterleaveDuration(int32_t durationUs) { in setParamInterleaveDuration() argument
459 ALOGV("setParamInterleaveDuration: %d", durationUs); in setParamInterleaveDuration()
460 if (durationUs <= 500000) { // 500 ms in setParamInterleaveDuration()
464 ALOGE("Audio/video interleave duration is too small: %d us", durationUs); in setParamInterleaveDuration()
466 } else if (durationUs >= 10000000) { // 10 seconds in setParamInterleaveDuration()
470 ALOGE("Audio/video interleave duration is too large: %d us", durationUs); in setParamInterleaveDuration()
473 mInterleaveDurationUs = durationUs; in setParamInterleaveDuration()
631 int32_t durationUs; in setParameter() local
632 if (safe_strtoi32(value.string(), &durationUs)) { in setParameter()
633 return setParamInterleaveDuration(durationUs); in setParameter()
[all …]
/frameworks/wilhelm/src/android/
Dandroid_AudioSfDecoder.cpp275 int64_t durationUs; in onPrepare() local
278 && meta->findInt64(kKeyDuration, &durationUs)) { in onPrepare()
279 if (durationUs != 0) { in onPrepare()
280 mBitrate = size * 8000000ll / durationUs; // in bits/sec in onPrepare()
284 mDurationUsec = durationUs; in onPrepare()
285 durationMsec = durationUs / 1000; in onPrepare()
/frameworks/av/media/libstagefright/rtsp/
DASessionDescription.cpp252 bool ASessionDescription::getDurationUs(int64_t *durationUs) const { in getDurationUs()
253 *durationUs = 0; in getDurationUs()
271 *durationUs = (int64_t)((to - from) * 1E6); in getDurationUs()
/frameworks/av/media/libstagefright/webm/
DWebmWriter.cpp255 int64_t durationUs = mStreams[i].mThread->getDurationUs(); in reset() local
256 if (durationUs > maxDurationUs) { in reset()
257 maxDurationUs = durationUs; in reset()
259 if (durationUs < minDurationUs) { in reset()
260 minDurationUs = durationUs; in reset()
/frameworks/av/media/libstagefright/include/
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/libstagefright/codecs/aacenc/
DAACEncoder.cpp205 int64_t durationUs; in getFormat() local
206 if (srcFormat->findInt64(kKeyDuration, &durationUs)) { in getFormat()
207 mMeta->setInt64(kKeyDuration, durationUs); in getFormat()
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.cpp587 int64_t durationUs; in testSeek() local
588 CHECK(source->getFormat()->findInt64(kKeyDuration, &durationUs)); in testSeek()
591 durationUs, durationUs / 1E6); in testSeek()
615 requestedSeekTimeUs = durationUs; in testSeek()
620 (int64_t)(uniform_rand() * durationUs); in testSeek()

123