Home
last modified time | relevance | path

Searched refs:mDurationUs (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/media/java/android/media/
DSubtitleData.java72 private long mDurationUs; field in SubtitleData
97 mDurationUs = durationUs; in SubtitleData()
122 return mDurationUs; in getDurationUs()
146 mDurationUs = parcel.readLong(); in parseParcel()
/frameworks/av/media/extractors/mp3/
DXINGSeeker.cpp31 : mDurationUs(-1), in XINGSeeker()
39 if (mDurationUs < 0) { in getDuration()
43 *durationUs = mDurationUs; in getDuration()
49 if (mSizeBytes == 0 || mDurationUs < 0) { in getOffsetForTime()
53 float percent = (float)(*timeUs) * 100 / mDurationUs; in getOffsetForTime()
148 seeker->mDurationUs = (int64_t)frames * samples_per_frame * 1000000LL / sampling_rate; in CreateFromSource()
DVBRISeeker.cpp120 seeker->mDurationUs = durationUs; in CreateFromSource()
154 : mDurationUs(-1) { in VBRISeeker()
158 if (mDurationUs < 0) { in getDuration()
162 *durationUs = mDurationUs; in getDuration()
168 if (mDurationUs < 0 || mSegments.size() == 0) { in getOffsetForTime()
172 int64_t segmentDurationUs = mDurationUs / mSegments.size(); in getOffsetForTime()
DVBRISeeker.h38 int64_t mDurationUs; member
DXINGSeeker.h39 int64_t mDurationUs; member
/frameworks/av/media/libstagefright/
DNuMediaExtractor.cpp54 mDurationUs(-1LL) { in NuMediaExtractor()
213 mDurationUs = -1LL; in updateDurationAndBitrate()
235 && durationUs > mDurationUs) { in updateDurationAndBitrate()
236 mDurationUs = durationUs; in updateDurationAndBitrate()
771 if (mDurationUs > 0 && mDataSource->getSize(&size) == OK) { in getTotalBitrate()
772 *bitrate = size * 8000000LL / mDurationUs; // in bits/sec in getTotalBitrate()
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2Driver.cpp119 mDurationUs(-1), in NuPlayer2Driver()
430 if (mDurationUs < 0) { in getDuration()
434 *msec = (mDurationUs + 500LL) / 1000; in getDuration()
573 mDurationUs = -1; in reset()
691 mDurationUs = durationUs; in notifyDuration()
DGenericSource2.cpp61 mDurationUs(-1ll), in GenericSource2()
181 mDurationUs = duration; in initFromDataSource()
244 if (durationUs > mDurationUs) { in initFromDataSource()
245 mDurationUs = durationUs; in initFromDataSource()
827 *durationUs = mDurationUs; in getDuration()
1414 int percentage = 100.0 * cachedPosUs / mDurationUs; in onPollBuffering()
DNuPlayer2Driver.h120 int64_t mDurationUs; member
DGenericSource2.h144 int64_t mDurationUs; member
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp71 mDurationUs(-1LL), in GenericSource()
203 mDurationUs = duration; in initFromDataSource()
262 if (durationUs > mDurationUs) { in initFromDataSource()
263 mDurationUs = durationUs; in initFromDataSource()
947 *durationUs = mDurationUs; in getDuration()
1561 if (mDurationUs > 0 && mCachedSource->getSize(&size) == OK) { in onPollBuffering()
1563 bitrate = size * 8000000LL / mDurationUs; in onPollBuffering()
1594 if (mDurationUs > 0LL) { in onPollBuffering()
1596 int percentage = 100.0 * cachedPosUs / mDurationUs; in onPollBuffering()
DNuPlayerDriver.cpp78 mDurationUs(-1), in NuPlayerDriver()
530 if (mDurationUs < 0) { in getDuration()
534 *msec = (mDurationUs + 500LL) / 1000; in getDuration()
691 mDurationUs = -1; in reset()
840 mDurationUs = durationUs; in notifyDuration()
DNuPlayerDriver.h129 int64_t mDurationUs; member
DGenericSource.h146 int64_t mDurationUs; member
/frameworks/av/media/libstagefright/include/media/stagefright/
DNuMediaExtractor.h140 int64_t mDurationUs; member
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.h45 uint32_t mDurationUs; member
DMPEG4Extractor.cpp3394 se.mDurationUs = 1000000LL * d2 / timeScale; in parseSegmentIndex()
6006 if (totalTime + se->mDurationUs > seekTimeUs) { in fragmentedRead()
6010 (seekTimeUs - totalTime) > (totalTime + se->mDurationUs - seekTimeUs))) { in fragmentedRead()
6013 totalTime += se->mDurationUs; in fragmentedRead()
6018 totalTime += se->mDurationUs; in fragmentedRead()
/frameworks/av/media/libstagefright/httplive/
DLiveSession.h156 int64_t mDurationUs; member
DLiveSession.cpp726 info->mDurationUs = durationUs; in onMessageReceived()
1178 info.mDurationUs = -1LL; in addFetcher()
1471 int64_t fetcherDurationUs = mFetcherInfos.valueAt(i).mDurationUs; in getDuration()
/frameworks/base/media/apex/java/android/media/
DMediaPlayer2.java2819 private long mDurationUs;
2825 mDurationUs = durationUs;
2848 return mDurationUs;