Searched defs:durationUs (Results 1 - 25 of 37) sorted by relevance

12

/frameworks/av/media/libstagefright/
H A DThrottledSource.cpp53 int64_t durationUs = local
56 int64_t whenUs = mStartTimeUs + durationUs;
H A DVBRISeeker.cpp72 int64_t durationUs = local
75 ALOGV("duration = %.2f secs", durationUs / 1E6);
103 if (durationUs) {
104 seeker->mDurationUs = durationUs;
141 bool VBRISeeker::getDuration(int64_t *durationUs) { argument
146 *durationUs = mDurationUs;
H A DXINGSeeker.cpp36 bool XINGSeeker::getDuration(int64_t *durationUs) { argument
41 *durationUs = mDurationUs;
H A DAudioPlayer.cpp175 int64_t durationUs; local
176 if (format->findInt64(kKeyDuration, &durationUs)) {
177 offloadInfo.duration_us = durationUs;
H A DNuMediaExtractor.cpp219 int64_t durationUs; local
220 if (meta->findInt64(kKeyDuration, &durationUs)
221 && durationUs > mDurationUs) {
222 mDurationUs = durationUs;
628 int64_t *durationUs, bool *eos) const {
637 *durationUs = wvmExtractor->getCachedDurationUs(&finalStatus);
649 *durationUs = cachedDataRemaining * 8000000ll / bitrate;
627 getCachedDuration( int64_t *durationUs, bool *eos) const argument
H A DWAVExtractor.cpp313 int64_t durationUs = 0; local
316 durationUs =
329 durationUs =
333 mTrackMeta->setInt64(kKeyDuration, durationUs);
H A DMP3Extractor.cpp349 int64_t durationUs; local
351 if (mSeeker == NULL || !mSeeker->getDuration(&durationUs)) {
357 durationUs = INT64_MAX;
359 durationUs = 8000LL * dataLength / bitrate;
362 durationUs = -1;
366 if (durationUs >= 0) {
367 mMeta->setInt64(kKeyDuration, durationUs);
H A DMediaSync.cpp524 int64_t durationUs = local
527 if (durationUs < 0) {
538 "set to zero", (long long)durationUs);
539 durationUs = 0;
543 (long long)durationUs, (long long)nowUs, numFramesPlayed,
545 return durationUs;
H A DStagefrightMetadataRetriever.cpp656 int64_t durationUs; local
657 if (trackMeta->findInt64(kKeyDuration, &durationUs)) {
658 if (durationUs > maxDurationUs) {
659 maxDurationUs = durationUs;
H A DAVIExtractor.cpp908 int64_t durationUs; local
910 getSampleTime(i, track->mSamples.size() - 1, &durationUs));
912 ALOGV("track %d duration = %.2f secs", i, durationUs / 1E6);
914 track->mMeta->setInt64(kKeyDuration, durationUs);
/frameworks/av/include/media/stagefright/
H A DMediaWriter.h42 virtual void setMaxFileDuration(int64_t durationUs) { mMaxFileDurationLimitUs = durationUs; } argument
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DHTTPLiveSource.cpp138 status_t NuPlayer::HTTPLiveSource::getDuration(int64_t *durationUs) { argument
139 return mLiveSession->getDuration(durationUs);
H A DStreamingSource.cpp183 int64_t durationUs; local
185 && (durationUs = audioTrack->getBufferedDurationUs(&err))
189 durationUs / 1E6);
194 && (durationUs = videoTrack->getBufferedDurationUs(&err))
198 durationUs / 1E6);
H A DNuPlayerDecoder.cpp629 int64_t durationUs; local
633 && mSource->getDuration(&durationUs) == OK
634 && durationUs > AUDIO_SINK_MIN_DEEP_BUFFER_DURATION_US)) {
H A DNuPlayerDriver.cpp622 void NuPlayerDriver::notifyDuration(int64_t durationUs) { argument
624 mDurationUs = durationUs;
H A DRTSPSource.cpp166 int64_t durationUs; local
168 && (durationUs = mAudioTrack->getBufferedDurationUs(&err))
172 durationUs / 1E6);
177 && (durationUs = mVideoTrack->getBufferedDurationUs(&err))
181 durationUs / 1E6);
265 status_t NuPlayer::RTSPSource::getDuration(int64_t *durationUs) { argument
266 *durationUs = 0ll;
272 && audioDurationUs > *durationUs) {
273 *durationUs = audioDurationUs;
280 && videoDurationUs > *durationUs) {
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/
H A DAACEncoder.cpp205 int64_t durationUs; local
206 if (srcFormat->findInt64(kKeyDuration, &durationUs)) {
207 mMeta->setInt64(kKeyDuration, durationUs);
/frameworks/av/media/libstagefright/mpeg2ts/
H A DAnotherPacketSource.cpp292 mLatestEnqueuedMeta->setInt64("durationUs", frameDeltaUs);
293 } else if (!mLatestEnqueuedMeta->findInt64("durationUs", &frameDeltaUs)) {
296 mLatestEnqueuedMeta->setInt64("durationUs", frameDeltaUs);
421 int64_t durationUs = 0; local
428 durationUs += (seg.mMaxEnqueTimeUs - seg.mMaxDequeTimeUs);
431 return durationUs;
483 int64_t durationUs = 0; local
490 durationUs += lastUs - firstUs;
503 if (durationUs + (lastUs - firstUs) >= delayUs) {
H A DMPEG2TSExtractor.cpp204 int64_t durationUs = -1; local
215 durationUs = size * diffUs / diffOffset;
216 durations.push_back(durationUs);
241 durationUs = bufferedDurationUs;
243 if (durationUs > 0) {
245 meta->setInt64(kKeyDuration, durationUs);
/frameworks/av/media/libstagefright/rtsp/
H A DAPacketSource.cpp417 int64_t durationUs; local
418 if (sessionDesc->getDurationUs(&durationUs)) {
419 mFormat->setInt64(kKeyDuration, durationUs);
/frameworks/wilhelm/src/android/
H A Dandroid_AudioSfDecoder.cpp277 int64_t durationUs; local
280 && meta->findInt64(kKeyDuration, &durationUs)) {
281 if (durationUs != 0) {
282 mBitrate = size * 8000000ll / durationUs; // in bits/sec
286 mDurationUsec = durationUs;
287 durationMsec = durationUs / 1000;
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp586 int64_t durationUs; local
587 CHECK(source->getFormat()->findInt64(kKeyDuration, &durationUs));
590 durationUs, durationUs / 1E6);
614 requestedSeekTimeUs = durationUs;
619 (int64_t)(uniform_rand() * durationUs);
/frameworks/av/media/libstagefright/webm/
H A DWebmWriter.cpp285 int64_t durationUs = mStreams[i].mThread->getDurationUs(); local
286 if (durationUs > maxDurationUs) {
287 maxDurationUs = durationUs;
289 if (durationUs < minDurationUs) {
290 minDurationUs = durationUs;
/frameworks/base/media/jni/
H A Dandroid_media_MediaExtractor.cpp247 bool JMediaExtractor::getCachedDuration(int64_t *durationUs, bool *eos) const { argument
248 return mImpl->getCachedDuration(durationUs, eos);
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp225 int64_t durationUs; local
226 CHECK(meta->findInt64(kKeyDuration, &durationUs));
289 seekTimeUs = (rand() * (float)durationUs) / RAND_MAX;
548 int64_t durationUs; local
549 CHECK(source->getFormat()->findInt64(kKeyDuration, &durationUs));
551 for (int64_t seekTimeUs = 0; seekTimeUs <= durationUs;

Completed in 191 milliseconds

12