Home
last modified time | relevance | path

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

123

/frameworks/av/media/libstagefright/
DVBRISeeker.cpp69 int64_t durationUs = in CreateFromSource() local
72 ALOGV("duration = %.2f secs", durationUs / 1E6); in CreateFromSource()
100 if (durationUs) { in CreateFromSource()
101 seeker->mDurationUs = durationUs; in CreateFromSource()
138 bool VBRISeeker::getDuration(int64_t *durationUs) { in getDuration() argument
143 *durationUs = mDurationUs; in getDuration()
DThrottledSource.cpp53 int64_t durationUs = in readAt() local
56 int64_t whenUs = mStartTimeUs + durationUs; in readAt()
DNuMediaExtractor.cpp199 int64_t durationUs; in updateDurationAndBitrate() local
200 if (meta->findInt64(kKeyDuration, &durationUs) in updateDurationAndBitrate()
201 && durationUs > mDurationUs) { in updateDurationAndBitrate()
202 mDurationUs = durationUs; in updateDurationAndBitrate()
553 int64_t *durationUs, bool *eos) const { in getCachedDuration() argument
562 *durationUs = wvmExtractor->getCachedDurationUs(&finalStatus); in getCachedDuration()
574 *durationUs = cachedDataRemaining * 8000000ll / bitrate; in getCachedDuration()
DMP3Extractor.cpp336 int64_t durationUs; in MP3Extractor() local
338 if (mSeeker == NULL || !mSeeker->getDuration(&durationUs)) { in MP3Extractor()
341 durationUs = 8000LL * (fileSize - mFirstFramePos) / bitrate; in MP3Extractor()
343 durationUs = -1; in MP3Extractor()
347 if (durationUs >= 0) { in MP3Extractor()
348 mMeta->setInt64(kKeyDuration, durationUs); in MP3Extractor()
DXINGSeeker.cpp36 bool XINGSeeker::getDuration(int64_t *durationUs) { in getDuration() argument
41 *durationUs = mDurationUs; in getDuration()
DUtils.cpp81 int64_t durationUs; in convertMetaDataToMessage() local
82 if (meta->findInt64(kKeyDuration, &durationUs)) { in convertMetaDataToMessage()
83 msg->setInt64("durationUs", durationUs); in convertMetaDataToMessage()
378 int64_t durationUs; in convertMessageToMetaData() local
379 if (msg->findInt64("durationUs", &durationUs)) { in convertMessageToMetaData()
380 meta->setInt64(kKeyDuration, durationUs); in convertMessageToMetaData()
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/
DGenericSource.cpp96 int64_t durationUs; in initFromDataSource() local
97 if (meta->findInt64(kKeyDuration, &durationUs)) { in initFromDataSource()
98 if (durationUs > mDurationUs) { in initFromDataSource()
99 mDurationUs = durationUs; in initFromDataSource()
185 status_t NuPlayer::GenericSource::getDuration(int64_t *durationUs) { in getDuration() argument
186 *durationUs = mDurationUs; in getDuration()
DRTSPSource.cpp171 int64_t durationUs; in haveSufficientDataOnAllTracks() local
173 && (durationUs = mAudioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
177 durationUs / 1E6); in haveSufficientDataOnAllTracks()
182 && (durationUs = mVideoTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
186 durationUs / 1E6); in haveSufficientDataOnAllTracks()
282 status_t NuPlayer::RTSPSource::getDuration(int64_t *durationUs) { in getDuration() argument
283 *durationUs = 0ll; in getDuration()
289 && audioDurationUs > *durationUs) { in getDuration()
290 *durationUs = audioDurationUs; in getDuration()
297 && videoDurationUs > *durationUs) { in getDuration()
[all …]
DHTTPLiveSource.cpp120 status_t NuPlayer::HTTPLiveSource::getDuration(int64_t *durationUs) { in getDuration() argument
121 return mLiveSession->getDuration(durationUs); in getDuration()
176 int64_t timeUs, baseUs, durationUs, delayUs; in onMessageReceived() local
179 CHECK(buffer->meta()->findInt64("durationUs", &durationUs)); in onMessageReceived()
DNuPlayer.cpp393 int64_t durationUs; in onMessageReceived() local
394 if (mDriver != NULL && mSource->getDuration(&durationUs) == OK) { in onMessageReceived()
397 driver->notifyDuration(durationUs); in onMessageReceived()
609 int64_t durationUs; in onMessageReceived() local
616 mSource->getDuration(&durationUs) == OK && in onMessageReceived()
617 durationUs in onMessageReceived()
1391 int64_t durationUs; in onSourceNotify() local
1392 if (mDriver != NULL && mSource->getDuration(&durationUs) == OK) { in onSourceNotify()
1395 driver->notifyDuration(durationUs); in onSourceNotify()
1452 int64_t timeUs, durationUs; in onSourceNotify() local
[all …]
/frameworks/av/include/media/stagefright/
DMediaWriter.h42 virtual void setMaxFileDuration(int64_t durationUs) { mMaxFileDurationLimitUs = durationUs; } in setMaxFileDuration()
DMPEG4Writer.h192 void writeMvhdBox(int64_t durationUs);
193 void writeMoovBox(int64_t durationUs);
/frameworks/av/media/libmediaplayerservice/
DStagefrightPlayer.cpp136 int64_t durationUs; in getDuration() local
137 status_t err = mPlayer->getDuration(&durationUs); in getDuration()
144 *msec = (durationUs + 500) / 1000; in getDuration()
DStagefrightRecorder.cpp423 status_t StagefrightRecorder::setParamInterleaveDuration(int32_t durationUs) { in setParamInterleaveDuration() argument
424 ALOGV("setParamInterleaveDuration: %d", durationUs); in setParamInterleaveDuration()
425 if (durationUs <= 500000) { // 500 ms in setParamInterleaveDuration()
429 ALOGE("Audio/video interleave duration is too small: %d us", durationUs); in setParamInterleaveDuration()
431 } else if (durationUs >= 10000000) { // 10 seconds in setParamInterleaveDuration()
435 ALOGE("Audio/video interleave duration is too large: %d us", durationUs); in setParamInterleaveDuration()
438 mInterleaveDurationUs = durationUs; in setParamInterleaveDuration()
593 int32_t durationUs; in setParameter() local
594 if (safe_strtoi32(value.string(), &durationUs)) { in setParameter()
595 return setParamInterleaveDuration(durationUs); in setParameter()
[all …]
/frameworks/wilhelm/src/android/
Dandroid_AudioSfDecoder.cpp272 int64_t durationUs; in onPrepare() local
275 && meta->findInt64(kKeyDuration, &durationUs)) { in onPrepare()
276 if (durationUs != 0) { in onPrepare()
277 mBitrate = size * 8000000ll / durationUs; // in bits/sec in onPrepare()
281 mDurationUsec = durationUs; in onPrepare()
282 durationMsec = durationUs / 1000; in onPrepare()
/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/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()
DASessionDescription.h51 bool getDurationUs(int64_t *durationUs) const;
/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/libvideoeditor/lvpp/
DPreviewPlayer.cpp721 int64_t durationUs; in initAudioDecoder_l() local
722 if (mAudioTrack->getFormat()->findInt64(kKeyDuration, &durationUs)) { in initAudioDecoder_l()
723 setDuration_l(durationUs); in initAudioDecoder_l()
756 int64_t durationUs; in initVideoDecoder_l() local
757 if (mVideoTrack->getFormat()->findInt64(kKeyDuration, &durationUs)) { in initVideoDecoder_l()
758 setDuration_l(durationUs); in initVideoDecoder_l()
1854 void PreviewPlayer::setDuration_l(int64_t durationUs) { in setDuration_l() argument
1855 if (mDurationUs < 0 || durationUs > mDurationUs) { in setDuration_l()
1856 mDurationUs = durationUs; in setDuration_l()
1860 status_t PreviewPlayer::getDuration(int64_t *durationUs) { in getDuration() argument
[all …]
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.cpp603 int64_t durationUs; in testSeek() local
604 CHECK(source->getFormat()->findInt64(kKeyDuration, &durationUs)); in testSeek()
607 durationUs, durationUs / 1E6); in testSeek()
631 requestedSeekTimeUs = durationUs; in testSeek()
636 (int64_t)(uniform_rand() * durationUs); in testSeek()
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.cpp1194 int64_t durationUs; in extractAndQueueAccessUnits() local
1195 CHECK(itemMeta->findInt64("durationUs", &durationUs)); in extractAndQueueAccessUnits()
1197 buffer->meta()->setInt64("durationUs", durationUs); in extractAndQueueAccessUnits()
1357 int64_t durationUs = 0ll; in updateDuration() local
1366 durationUs += itemDurationUs; in updateDuration()
1371 msg->setInt64("durationUs", durationUs); in updateDuration()
1376 int64_t durationUs, threshold; in resumeThreshold() local
1377 if (msg->findInt64("durationUs", &durationUs)) { in resumeThreshold()
1378 return kNumSkipFrames * durationUs; in resumeThreshold()

123