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

12

/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;
/frameworks/av/include/media/stagefright/
H A DMediaWriter.h42 virtual void setMaxFileDuration(int64_t durationUs) { mMaxFileDurationLimitUs = durationUs; } argument
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp1541 int64_t durationUs = (int64_t)((int32_t)numFramesPlayed * 1000000LL / mSampleRateHz) local
1543 if (durationUs < 0) {
1551 ALOGV("getPlayedOutDurationUs: negative duration %lld set to zero", (long long)durationUs);
1552 durationUs = 0;
1555 (long long)durationUs, (long long)nowUs, numFramesPlayed, (long long)numFramesPlayedAt);
1556 return durationUs;
H A DStagefrightRecorder.cpp458 status_t StagefrightRecorder::setParamInterleaveDuration(int32_t durationUs) { argument
459 ALOGV("setParamInterleaveDuration: %d", durationUs);
460 if (durationUs <= 500000) { // 500 ms
464 ALOGE("Audio/video interleave duration is too small: %d us", durationUs);
466 } else if (durationUs >= 10000000) { // 10 seconds
470 ALOGE("Audio/video interleave duration is too large: %d us", durationUs);
473 mInterleaveDurationUs = durationUs;
631 int32_t durationUs; local
632 if (safe_strtoi32(value.string(), &durationUs)) {
633 return setParamInterleaveDuration(durationUs);
1242 int64_t durationUs = mEncoderProfiles->getCamcorderProfileParamByName( local
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp269 int64_t durationUs; local
270 if (meta->findInt64(kKeyDuration, &durationUs)) {
271 if (durationUs > mDurationUs) {
272 mDurationUs = durationUs;
953 status_t NuPlayer::GenericSource::getDuration(int64_t *durationUs) { argument
954 *durationUs = mDurationUs;
1308 int64_t durationUs; local
1309 if (mb->meta_data()->findInt64(kKeyDuration, &durationUs)) {
1310 meta->setInt64("durationUs", durationUs);
1528 prepare( const sp<NuCachedSource2> &cachedSource, const sp<WVMExtractor> &wvmExtractor, int64_t durationUs, int64_t bitrate, bool isStreaming) argument
1593 prepare_l( const sp<NuCachedSource2> &cachedSource, const sp<WVMExtractor> &wvmExtractor, int64_t durationUs, int64_t bitrate, bool isStreaming) argument
[all...]
H A DHTTPLiveSource.cpp138 status_t NuPlayer::HTTPLiveSource::getDuration(int64_t *durationUs) { argument
139 return mLiveSession->getDuration(durationUs);
H A DNuPlayer.cpp634 int64_t durationUs; local
635 if (mDriver != NULL && mSource->getDuration(&durationUs) == OK) {
638 driver->notifyDuration(durationUs);
2146 int64_t durationUs; local
2147 if (mSource->getDuration(&durationUs) == OK) {
2148 driver->notifyDuration(durationUs);
2352 int64_t timeUs, durationUs; local
2355 CHECK(buffer->meta()->findInt64("durationUs", &durationUs));
2360 in.writeInt64(durationUs);
[all...]
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...]
H A DStreamingSource.cpp183 int64_t durationUs; local
185 && (durationUs = audioTrack->getBufferedDurationUs(&err))
189 durationUs / 1E6);
194 && (durationUs = videoTrack->getBufferedDurationUs(&err))
198 durationUs / 1E6);
/frameworks/av/media/libstagefright/
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);
H A DAudioPlayer.cpp175 int64_t durationUs; local
176 if (format->findInt64(kKeyDuration, &durationUs)) {
177 offloadInfo.duration_us = 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 DMPEG4Extractor.cpp1605 int64_t durationUs; local
1606 if (mLastTrack->meta->findInt64(kKeyDuration, &durationUs)) {
1607 if (durationUs > 0) {
1609 (durationUs >> 1)) / durationUs;
H A DMPEG4Writer.cpp941 int64_t durationUs = (*it)->getDurationUs(); local
942 if (durationUs > maxDurationUs) {
943 maxDurationUs = durationUs;
945 if (durationUs < minDurationUs) {
946 minDurationUs = durationUs;
1036 void MPEG4Writer::writeMvhdBox(int64_t durationUs) { argument
1043 int32_t duration = (durationUs * mTimeScale + 5E5) / 1E6;
1061 void MPEG4Writer::writeMoovBox(int64_t durationUs) { argument
1063 writeMvhdBox(durationUs);
1126 status_t MPEG4Writer::setInterleaveDuration(uint32_t durationUs) { argument
[all...]
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 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 DOggExtractor.cpp846 int64_t durationUs = getTimeUsOfGranule(lastGranulePosition); local
848 mMeta->setInt64(kKeyDuration, durationUs);
H A DStagefrightMetadataRetriever.cpp656 int64_t durationUs; local
657 if (trackMeta->findInt64(kKeyDuration, &durationUs)) {
658 if (durationUs > maxDurationUs) {
659 maxDurationUs = durationUs;
H A DThrottledSource.cpp53 int64_t durationUs = local
56 int64_t whenUs = mStartTimeUs + durationUs;
H A DUtils.cpp612 int64_t durationUs; local
613 if (meta->findInt64(kKeyDuration, &durationUs)) {
614 msg->setInt64("durationUs", durationUs);
1256 int64_t durationUs; local
1257 if (msg->findInt64("durationUs", &durationUs)) {
1258 meta->setInt64(kKeyDuration, durationUs);
1677 int64_t durationUs; local
1678 CHECK(mMeta->findInt64("segmentDurationUs", &durationUs));
[all...]
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 DWAVExtractor.cpp313 int64_t durationUs = 0; local
316 durationUs =
329 durationUs =
333 mTrackMeta->setInt64(kKeyDuration, durationUs);
H A DXINGSeeker.cpp36 bool XINGSeeker::getDuration(int64_t *durationUs) { argument
41 *durationUs = mDurationUs;

Completed in 242 milliseconds

12