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()
DMP3Extractor.cpp349 int64_t durationUs; in MP3Extractor() local
351 if (mSeeker == NULL || !mSeeker->getDuration(&durationUs)) { in MP3Extractor()
357 durationUs = INT64_MAX; in MP3Extractor()
359 durationUs = 8000LL * dataLength / bitrate; in MP3Extractor()
362 durationUs = -1; in MP3Extractor()
366 if (durationUs >= 0) { in MP3Extractor()
367 mMeta->setInt64(kKeyDuration, durationUs); in MP3Extractor()
DNuMediaExtractor.cpp219 int64_t durationUs; in updateDurationAndBitrate() local
220 if (meta->findInt64(kKeyDuration, &durationUs) in updateDurationAndBitrate()
221 && durationUs > mDurationUs) { in updateDurationAndBitrate()
222 mDurationUs = durationUs; in updateDurationAndBitrate()
628 int64_t *durationUs, bool *eos) const { in getCachedDuration() argument
637 *durationUs = wvmExtractor->getCachedDurationUs(&finalStatus); in getCachedDuration()
649 *durationUs = cachedDataRemaining * 8000000ll / bitrate; in getCachedDuration()
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.cpp313 int64_t durationUs = 0; in init() local
316 durationUs = in init()
329 durationUs = in init()
333 mTrackMeta->setInt64(kKeyDuration, durationUs); in init()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DStreamingSource.cpp183 int64_t durationUs; in haveSufficientDataOnAllTracks() local
185 && (durationUs = audioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
189 durationUs / 1E6); in haveSufficientDataOnAllTracks()
194 && (durationUs = videoTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
198 durationUs / 1E6); in haveSufficientDataOnAllTracks()
DRTSPSource.cpp166 int64_t durationUs; in haveSufficientDataOnAllTracks() local
168 && (durationUs = mAudioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
172 durationUs / 1E6); in haveSufficientDataOnAllTracks()
177 && (durationUs = mVideoTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
181 durationUs / 1E6); in haveSufficientDataOnAllTracks()
265 status_t NuPlayer::RTSPSource::getDuration(int64_t *durationUs) { in getDuration() argument
266 *durationUs = 0ll; in getDuration()
272 && audioDurationUs > *durationUs) { in getDuration()
273 *durationUs = audioDurationUs; in getDuration()
280 && videoDurationUs > *durationUs) { in getDuration()
[all …]
DGenericSource.h69 virtual status_t getDuration(int64_t *durationUs);
125 int64_t durationUs,
179 int64_t durationUs,
DGenericSource.cpp269 int64_t durationUs; in initFromDataSource() local
270 if (meta->findInt64(kKeyDuration, &durationUs)) { in initFromDataSource()
271 if (durationUs > mDurationUs) { in initFromDataSource()
272 mDurationUs = durationUs; in initFromDataSource()
953 status_t NuPlayer::GenericSource::getDuration(int64_t *durationUs) { in getDuration() argument
954 *durationUs = mDurationUs; in getDuration()
1308 int64_t durationUs; in mediaBufferToABuffer() local
1309 if (mb->meta_data()->findInt64(kKeyDuration, &durationUs)) { in mediaBufferToABuffer()
1310 meta->setInt64("durationUs", durationUs); in mediaBufferToABuffer()
1531 int64_t durationUs, in prepare() argument
[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.cpp204 int64_t durationUs = -1; in init() local
215 durationUs = size * diffUs / diffOffset; in init()
216 durations.push_back(durationUs); in init()
241 durationUs = bufferedDurationUs; in init()
243 if (durationUs > 0) { in init()
245 meta->setInt64(kKeyDuration, durationUs); in init()
DAnotherPacketSource.cpp421 int64_t durationUs = 0; in getBufferedDurationUs() local
428 durationUs += (seg.mMaxEnqueTimeUs - seg.mMaxDequeTimeUs); in getBufferedDurationUs()
431 return durationUs; in getBufferedDurationUs()
483 int64_t durationUs = 0; in getMetaAfterLastDequeued() local
490 durationUs += lastUs - firstUs; in getMetaAfterLastDequeued()
503 if (durationUs + (lastUs - firstUs) >= delayUs) { in getMetaAfterLastDequeued()
/frameworks/wilhelm/src/android/
Dandroid_AudioSfDecoder.cpp277 int64_t durationUs; in onPrepare() local
280 && meta->findInt64(kKeyDuration, &durationUs)) { in onPrepare()
281 if (durationUs != 0) { in onPrepare()
282 mBitrate = size * 8000000ll / durationUs; // in bits/sec in onPrepare()
286 mDurationUsec = durationUs; in onPrepare()
287 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.cpp285 int64_t durationUs = mStreams[i].mThread->getDurationUs(); in reset() local
286 if (durationUs > maxDurationUs) { in reset()
287 maxDurationUs = durationUs; in reset()
289 if (durationUs < minDurationUs) { in reset()
290 minDurationUs = durationUs; in reset()
/frameworks/av/media/libmediaplayerservice/
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/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/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/omx/tests/
DOMXHarness.cpp586 int64_t durationUs; in testSeek() local
587 CHECK(source->getFormat()->findInt64(kKeyDuration, &durationUs)); in testSeek()
590 durationUs, durationUs / 1E6); in testSeek()
614 requestedSeekTimeUs = durationUs; in testSeek()
619 (int64_t)(uniform_rand() * durationUs); in testSeek()
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp707 int64_t durationUs; in onMessageReceived() local
708 CHECK(msg->findInt64("durationUs", &durationUs)); in onMessageReceived()
713 info->mDurationUs = durationUs; in onMessageReceived()
1448 status_t LiveSession::getDuration(int64_t *durationUs) const { in getDuration()
1458 *durationUs = maxDurationUs; in getDuration()
1464 int64_t durationUs; in isSeekable() local
1465 return getDuration(&durationUs) == OK && durationUs >= 0; in isSeekable()
2151 int64_t durationUs; in checkBuffering() local
2152 if (getDuration(&durationUs) != OK) { in checkBuffering()
2153 durationUs = -1; in checkBuffering()
[all …]

123