/frameworks/base/media/libstagefright/ |
ThrottledSource.cpp | 63 int64_t durationUs = 66 int64_t whenUs = mStartTimeUs + durationUs;
|
VBRISeeker.cpp | 69 int64_t durationUs = 72 LOGV("duration = %.2f secs", durationUs / 1E6); 96 seeker->mDurationUs = durationUs; 132 bool VBRISeeker::getDuration(int64_t *durationUs) { 137 *durationUs = mDurationUs;
|
StagefrightMetadataRetriever.cpp | 462 int64_t durationUs; 463 if (trackMeta->findInt64(kKeyDuration, &durationUs)) { 464 if (durationUs > maxDurationUs) { 465 maxDurationUs = durationUs;
|
WAVExtractor.cpp | 231 int64_t durationUs = 235 mTrackMeta->setInt64(kKeyDuration, durationUs);
|
MP3Extractor.cpp | 320 int64_t durationUs; 322 if (mSeeker == NULL || !mSeeker->getDuration(&durationUs)) { 325 durationUs = 8000LL * (fileSize - mFirstFramePos) / bitrate; 327 durationUs = -1; 331 if (durationUs >= 0) { 332 mMeta->setInt64(kKeyDuration, durationUs);
|
AVIExtractor.cpp | 907 int64_t durationUs; 909 getSampleTime(i, track->mSamples.size() - 1, &durationUs)); 911 LOGV("track %d duration = %.2f secs", i, durationUs / 1E6); 913 track->mMeta->setInt64(kKeyDuration, durationUs); [all...] |
MPEG4Writer.cpp | 643 int64_t durationUs = (*it)->getDurationUs(); 644 if (durationUs > maxDurationUs) { 645 maxDurationUs = durationUs; 647 if (durationUs < minDurationUs) { 648 minDurationUs = durationUs; 713 void MPEG4Writer::writeMvhdBox(int64_t durationUs) { 720 int32_t duration = (durationUs * mTimeScale + 5E5) / 1E6; 738 void MPEG4Writer::writeMoovBox(int64_t durationUs) { 740 writeMvhdBox(durationUs); 799 status_t MPEG4Writer::setInterleaveDuration(uint32_t durationUs) { [all...] |
OggExtractor.cpp | 636 int64_t durationUs = lastGranulePosition * 1000000ll / mVi.rate; 638 mMeta->setInt64(kKeyDuration, durationUs);
|
AwesomePlayer.cpp | 604 bool AwesomePlayer::getCachedDuration_l(int64_t *durationUs, bool *eos) { 610 *durationUs = cachedDataRemaining * 8000000ll / bitrate; 615 *durationUs = mWVMExtractor->getCachedDurationUs(&finalStatus); [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/enc/ |
AMRNBEncoder.cpp | 135 int64_t durationUs; 136 if (srcFormat->findInt64(kKeyDuration, &durationUs)) { 137 mMeta->setInt64(kKeyDuration, durationUs);
|
/frameworks/base/media/libmediaplayerservice/ |
StagefrightPlayer.cpp | 136 int64_t durationUs; 137 status_t err = mPlayer->getDuration(&durationUs); 144 *msec = (durationUs + 500) / 1000;
|
StagefrightRecorder.cpp | 420 status_t StagefrightRecorder::setParamInterleaveDuration(int32_t durationUs) { 421 LOGV("setParamInterleaveDuration: %d", durationUs); 422 if (durationUs <= 500000) { // 500 ms 426 LOGE("Audio/video interleave duration is too small: %d us", durationUs); 428 } else if (durationUs >= 10000000) { // 10 seconds 432 LOGE("Audio/video interleave duration is too large: %d us", durationUs); 435 mInterleaveDurationUs = durationUs; 590 int32_t durationUs; 591 if (safe_strtoi32(value.string(), &durationUs)) { 592 return setParamInterleaveDuration(durationUs); [all...] |
/frameworks/base/media/libstagefright/codecs/aacenc/ |
AACEncoder.cpp | 205 int64_t durationUs; 206 if (srcFormat->findInt64(kKeyDuration, &durationUs)) { 207 mMeta->setInt64(kKeyDuration, durationUs);
|
/frameworks/base/media/libstagefright/codecs/amrwbenc/ |
AMRWBEncoder.cpp | 186 int64_t durationUs; 187 if (srcFormat->findInt64(kKeyDuration, &durationUs)) { 188 mMeta->setInt64(kKeyDuration, durationUs);
|
/frameworks/base/media/libstagefright/mpeg2ts/ |
MPEG2TSExtractor.cpp | 84 int64_t durationUs; 86 && mExtractor->mLiveSession->getDuration(&durationUs) == OK) { 87 meta->setInt64(kKeyDuration, durationUs);
|
/frameworks/base/media/libmediaplayerservice/nuplayer/ |
NuPlayer.cpp | 649 int64_t durationUs; 650 if (mDriver != NULL && mSource->getDuration(&durationUs) == OK) { 653 driver->notifyDuration(durationUs);
|
/frameworks/base/media/libstagefright/httplive/ |
M3UParser.cpp | 206 err = parseMetaDataDuration(line, &itemMeta, "durationUs"); 230 int64_t durationUs; 232 || !itemMeta->findInt64("durationUs", &durationUs)) {
|
LiveSession.cpp | 444 CHECK(itemMeta->findInt64("durationUs", &itemDurationUs)); 531 CHECK(itemMeta->findInt64("durationUs", &itemDurationUs)); 561 CHECK(itemMeta->findInt64("durationUs", &itemDurationUs)); 899 status_t LiveSession::getDuration(int64_t *durationUs) { 901 *durationUs = mDurationUs; 907 int64_t durationUs; 908 return getDuration(&durationUs) == OK && durationUs >= 0;
|
/frameworks/base/media/libstagefright/rtsp/ |
APacketSource.cpp | 414 int64_t durationUs; 415 if (sessionDesc->getDurationUs(&durationUs)) { 416 mFormat->setInt64(kKeyDuration, durationUs);
|
/frameworks/media/libvideoeditor/lvpp/ |
VideoEditorPlayer.cpp | 138 int64_t durationUs; 139 status_t err = mPlayer->getDuration(&durationUs); 146 *msec = (durationUs + 500) / 1000;
|
PreviewPlayer.cpp | 717 int64_t durationUs; 718 if (mAudioTrack->getFormat()->findInt64(kKeyDuration, &durationUs)) { 720 if (mDurationUs < 0 || durationUs > mDurationUs) { 721 mDurationUs = durationUs; 757 int64_t durationUs; 758 if (mVideoTrack->getFormat()->findInt64(kKeyDuration, &durationUs)) { 760 if (mDurationUs < 0 || durationUs > mDurationUs) { 761 mDurationUs = durationUs; [all...] |
PreviewPlayerBase.cpp | 518 bool PreviewPlayerBase::getCachedDuration_l(int64_t *durationUs, bool *eos) { 524 *durationUs = cachedDataRemaining * 8000000ll / bitrate; 1070 status_t PreviewPlayerBase::getDuration(int64_t *durationUs) { 1077 *durationUs = mDurationUs; [all...] |
/system/media/wilhelm/src/android/ |
android_AudioSfDecoder.cpp | 270 int64_t durationUs; 273 && meta->findInt64(kKeyDuration, &durationUs)) { 274 if (durationUs != 0) { 275 mBitrate = size * 8000000ll / durationUs; // in bits/sec 279 mDurationUsec = durationUs; 280 durationMsec = durationUs / 1000;
|
/frameworks/base/media/libstagefright/omx/tests/ |
OMXHarness.cpp | 597 int64_t durationUs; 598 CHECK(source->getFormat()->findInt64(kKeyDuration, &durationUs)); 601 durationUs, durationUs / 1E6); 625 requestedSeekTimeUs = durationUs; 630 (int64_t)(uniform_rand() * durationUs);
|
/frameworks/base/cmds/stagefright/ |
stagefright.cpp | 225 int64_t durationUs; 226 CHECK(meta->findInt64(kKeyDuration, &durationUs)); 289 seekTimeUs = (rand() * (float)durationUs) / RAND_MAX; 541 int64_t durationUs; 542 CHECK(source->getFormat()->findInt64(kKeyDuration, &durationUs)); 544 for (int64_t seekTimeUs = 0; seekTimeUs <= durationUs;
|