Home
last modified time | relevance | path

Searched refs:mDurationUs (Results 1 – 22 of 22) 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/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DExtractor.java35 private long mDurationUs; field in Extractor
81 public long getClipDuration() { return this.mDurationUs; } in getClipDuration()
113 mDurationUs = trackFormat.getLong(MediaFormat.KEY_DURATION); in selectExtractorTrack()
114 if (mDurationUs < 0) { in selectExtractorTrack()
176 mStats.dumpStatistics(inputReference, operation, mimeType, "", mDurationUs, statsFile); in dumpStatistics()
/frameworks/av/media/tests/benchmark/src/native/extractor/
DExtractor.h32 mDurationUs{0} {}
56 int64_t getClipDuration() { return mDurationUs; } in getClipDuration()
63 int64_t mDurationUs; variable
DExtractor.cpp78 bool durationFound = AMediaFormat_getInt64(mFormat, AMEDIAFORMAT_KEY_DURATION, &mDurationUs); in setupTrackFormat()
116 mStats->dumpStatistics(operation, inputReference, mDurationUs, componentName, "", statsFile); in dumpStatistics()
/frameworks/av/include/private/media/
DVideoFrame.h44 mTileWidth(tileWidth), mTileHeight(tileHeight), mDurationUs(0), in VideoFrame()
81 int64_t mDurationUs; // Frame duration in microseconds variable
/frameworks/av/media/libstagefright/
DNuMediaExtractor.cpp55 mDurationUs(-1LL) { in NuMediaExtractor()
231 mDurationUs = -1LL; in updateDurationAndBitrate()
253 && durationUs > mDurationUs) { in updateDurationAndBitrate()
254 mDurationUs = durationUs; in updateDurationAndBitrate()
789 if (mDurationUs > 0 && mDataSource->getSize(&size) == OK) { in getTotalBitrate()
790 *bitrate = size * 8000000LL / mDurationUs; // in bits/sec in getTotalBitrate()
DFrameDecoder.cpp212 meta->mDurationUs = 1000000LL / frameRate; in getMetadataOnly()
214 meta->mDurationUs = kDefaultSampleDurationUs; in getMetadataOnly()
624 mFrame->mDurationUs = durationUs; in onOutputReceived()
/frameworks/av/media/libheif/include/
DHeifDecoderAPI.h48 int64_t mDurationUs; // Duration of the frame in us member
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp72 mDurationUs(-1LL), in GenericSource()
200 mDurationUs = duration; in initFromDataSource()
259 if (durationUs > mDurationUs) { in initFromDataSource()
260 mDurationUs = durationUs; in initFromDataSource()
937 *durationUs = mDurationUs; in getDuration()
1551 if (mDurationUs > 0 && mCachedSource->getSize(&size) == OK) { in onPollBuffering()
1553 bitrate = size * 8000000LL / mDurationUs; in onPollBuffering()
1584 if (mDurationUs > 0LL) { in onPollBuffering()
1586 int percentage = 100.0 * cachedPosUs / mDurationUs; in onPollBuffering()
DNuPlayerDriver.cpp77 mDurationUs(-1), in NuPlayerDriver()
532 if (mDurationUs < 0) { in getDuration()
536 *msec = (mDurationUs + 500LL) / 1000; in getDuration()
716 mDurationUs = -1; in reset()
870 mDurationUs = durationUs; in notifyDuration()
DNuPlayerDriver.h129 int64_t mDurationUs; member
DGenericSource.h147 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.cpp3567 se.mDurationUs = 1000000LL * d2 / timeScale; in parseSegmentIndex()
6375 if (totalTime + se->mDurationUs > seekTimeUs) { in fragmentedRead()
6379 (seekTimeUs - totalTime) > (totalTime + se->mDurationUs - seekTimeUs))) { in fragmentedRead()
6382 totalTime += se->mDurationUs; in fragmentedRead()
6387 totalTime += se->mDurationUs; in fragmentedRead()
/frameworks/av/media/libheif/
DHeifDecoderImpl.cpp47 info->mDurationUs = videoFrame->mDurationUs; in initFrameInfo()
/frameworks/av/media/libstagefright/httplive/
DLiveSession.h156 int64_t mDurationUs; member
DLiveSession.cpp727 info->mDurationUs = durationUs; in onMessageReceived()
1179 info.mDurationUs = -1LL; in addFetcher()
1472 int64_t fetcherDurationUs = mFetcherInfos.valueAt(i).mDurationUs; in getDuration()