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

123

/frameworks/av/media/libstagefright/include/
H A DMP3Seeker.h29 virtual bool getDuration(int64_t *durationUs) = 0;
H A DVBRISeeker.h33 virtual bool getDuration(int64_t *durationUs);
H A DXINGSeeker.h31 virtual bool getDuration(int64_t *durationUs);
/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 DNuMediaExtractor.cpp201 int64_t durationUs; local
202 if (meta->findInt64(kKeyDuration, &durationUs)
203 && durationUs > mDurationUs) {
204 mDurationUs = durationUs;
555 int64_t *durationUs, bool *eos) const {
564 *durationUs = wvmExtractor->getCachedDurationUs(&finalStatus);
576 *durationUs = cachedDataRemaining * 8000000ll / bitrate;
554 getCachedDuration( int64_t *durationUs, bool *eos) const argument
H A DAudioPlayer.cpp167 int64_t durationUs; local
168 if (format->findInt64(kKeyDuration, &durationUs)) {
169 offloadInfo.duration_us = durationUs;
770 int64_t durationUs; local
771 mSource->getFormat()->findInt64(kKeyDuration, &durationUs);
772 return durationUs;
H A DMP3Extractor.cpp336 int64_t durationUs; local
338 if (mSeeker == NULL || !mSeeker->getDuration(&durationUs)) {
341 durationUs = 8000LL * (fileSize - mFirstFramePos) / bitrate;
343 durationUs = -1;
347 if (durationUs >= 0) {
348 mMeta->setInt64(kKeyDuration, durationUs);
/frameworks/av/include/media/stagefright/
H A DMediaWriter.h42 virtual void setMaxFileDuration(int64_t durationUs) { mMaxFileDurationLimitUs = durationUs; } argument
H A DMPEG4Writer.h192 void writeMvhdBox(int64_t durationUs);
193 void writeMoovBox(int64_t durationUs);
H A DNuMediaExtractor.h76 bool getCachedDuration(int64_t *durationUs, bool *eos) const;
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DStreamingSource.cpp180 int64_t durationUs; local
182 && (durationUs = audioTrack->getBufferedDurationUs(&err))
186 durationUs / 1E6);
191 && (durationUs = videoTrack->getBufferedDurationUs(&err))
195 durationUs / 1E6);
H A DRTSPSource.cpp173 int64_t durationUs; local
175 && (durationUs = mAudioTrack->getBufferedDurationUs(&err))
179 durationUs / 1E6);
184 && (durationUs = mVideoTrack->getBufferedDurationUs(&err))
188 durationUs / 1E6);
272 status_t NuPlayer::RTSPSource::getDuration(int64_t *durationUs) { argument
273 *durationUs = 0ll;
279 && audioDurationUs > *durationUs) {
280 *durationUs = audioDurationUs;
287 && videoDurationUs > *durationUs) {
[all...]
H A DHTTPLiveSource.cpp130 status_t NuPlayer::HTTPLiveSource::getDuration(int64_t *durationUs) { argument
131 return mLiveSession->getDuration(durationUs);
198 int64_t timeUs, baseUs, durationUs, delayUs; local
201 CHECK(buffer->meta()->findInt64("durationUs", &durationUs));
H A DHTTPLiveSource.h42 virtual status_t getDuration(int64_t *durationUs);
H A DNuPlayerDriver.h70 void notifyDuration(int64_t durationUs);
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightPlayer.cpp138 int64_t durationUs; local
139 status_t err = mPlayer->getDuration(&durationUs);
146 *msec = (durationUs + 500) / 1000;
H A DStagefrightRecorder.cpp431 status_t StagefrightRecorder::setParamInterleaveDuration(int32_t durationUs) { argument
432 ALOGV("setParamInterleaveDuration: %d", durationUs);
433 if (durationUs <= 500000) { // 500 ms
437 ALOGE("Audio/video interleave duration is too small: %d us", durationUs);
439 } else if (durationUs >= 10000000) { // 10 seconds
443 ALOGE("Audio/video interleave duration is too large: %d us", durationUs);
446 mInterleaveDurationUs = durationUs;
601 int32_t durationUs; local
602 if (safe_strtoi32(value.string(), &durationUs)) {
603 return setParamInterleaveDuration(durationUs);
1201 int64_t durationUs = mEncoderProfiles->getCamcorderProfileParamByName( local
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DASessionDescription.h51 bool getDurationUs(int64_t *durationUs) const;
H A DASessionDescription.cpp252 bool ASessionDescription::getDurationUs(int64_t *durationUs) const {
253 *durationUs = 0;
271 *durationUs = (int64_t)((to - from) * 1E6);
/frameworks/wilhelm/src/android/
H A Dandroid_AudioSfDecoder.cpp274 int64_t durationUs; local
277 && meta->findInt64(kKeyDuration, &durationUs)) {
278 if (durationUs != 0) {
279 mBitrate = size * 8000000ll / durationUs; // in bits/sec
283 mDurationUsec = durationUs;
284 durationMsec = durationUs / 1000;
/frameworks/base/media/jni/
H A Dandroid_media_MediaExtractor.h64 bool getCachedDuration(int64_t *durationUs, bool *eos) const;
/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.cpp229 mLatestEnqueuedMeta->setInt64("durationUs", frameDeltaUs);
230 } else if (!mLatestEnqueuedMeta->findInt64("durationUs", &frameDeltaUs)) {
233 mLatestEnqueuedMeta->setInt64("durationUs", frameDeltaUs);
321 int64_t durationUs = 0; local
338 durationUs += time2 - time1;
345 return durationUs + (time2 - time1);

Completed in 313 milliseconds

123