Home
last modified time | relevance | path

Searched refs:mExtractor (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DExtractor.java31 private MediaExtractor mExtractor; field in Extractor
52 mExtractor = new MediaExtractor(); in setUpExtractor()
53 mExtractor.setDataSource(fileDescriptor); in setUpExtractor()
57 return mExtractor.getTrackCount(); in setUpExtractor()
66 public MediaFormat getFormat(int trackID) { return mExtractor.getTrackFormat(trackID); } in getFormat()
90 int sampleSize = mExtractor.readSampleData(mFrameBuffer, 0); in getFrameSample()
97 mBufferInfo.flags = mExtractor.getSampleFlags(); in getFrameSample()
98 mBufferInfo.presentationTimeUs = mExtractor.getSampleTime(); in getFrameSample()
99 mExtractor.advance(); in getFrameSample()
112 MediaFormat trackFormat = mExtractor.getTrackFormat(trackId); in selectExtractorTrack()
[all …]
/frameworks/av/media/tests/benchmark/src/native/extractor/
DExtractor.cpp32 mExtractor = AMediaExtractor_new(); in initExtractor()
33 if (!mExtractor) return AMEDIACODEC_ERROR_INSUFFICIENT_RESOURCE; in initExtractor()
34 media_status_t status = AMediaExtractor_setDataSourceFd(mExtractor, fd, 0, fileSize); in initExtractor()
41 return AMediaExtractor_getTrackCount(mExtractor); in initExtractor()
61 int32_t size = AMediaExtractor_readSampleData(mExtractor, mFrameBuf, kMaxBufferSize); in getFrameSample()
64 frameInfo.flags = AMediaExtractor_getSampleFlags(mExtractor); in getFrameSample()
67 frameInfo.presentationTimeUs = AMediaExtractor_getSampleTime(mExtractor); in getFrameSample()
68 AMediaExtractor_advance(mExtractor); in getFrameSample()
74 AMediaExtractor_selectTrack(mExtractor, trackId); in setupTrackFormat()
75 mFormat = AMediaExtractor_getTrackFormat(mExtractor, trackId); in setupTrackFormat()
[all …]
DExtractor.h29 mExtractor(nullptr), in Extractor()
60 AMediaExtractor *mExtractor; variable
/frameworks/av/media/libstagefright/
DRemoteMediaExtractor.cpp47 :mExtractor(extractor), in RemoteMediaExtractor()
81 delete mExtractor; in ~RemoteMediaExtractor()
100 return mExtractor->countTracks(); in countTracks()
104 MediaTrack *source = mExtractor->getTrack(index); in getTrack()
111 if (mExtractor->getTrackMetaData(*meta.get(), index, flags) == OK) { in getTrackMetaData()
119 if (mExtractor->getMetaData(*meta.get()) == OK) { in getMetaData()
135 return mExtractor->flags(); in flags()
139 return mExtractor->setMediaCas((uint8_t*)casToken.data(), casToken.size()); in setMediaCas()
143 return mExtractor->name(); in name()
/frameworks/av/media/extractors/tests/
DExtractorUnitTest.cpp119 ExtractorUnitTest() : mInputFp(nullptr), mDataSource(nullptr), mExtractor(nullptr) {} in ExtractorUnitTest()
130 if (mExtractor) { in ~ExtractorUnitTest()
131 delete mExtractor; in ~ExtractorUnitTest()
132 mExtractor = nullptr; in ~ExtractorUnitTest()
179 MediaExtractorPluginHelper *mExtractor; member in ExtractorUnitTest
232 mExtractor = new AACExtractor(new DataSourceHelper(mDataSource->wrap()), 0); in createExtractor()
235 mExtractor = new AMRExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
238 mExtractor = new MP3Extractor(new DataSourceHelper(mDataSource->wrap()), nullptr); in createExtractor()
241 mExtractor = new OggExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
244 mExtractor = new WAVExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
[all …]
/frameworks/av/media/tests/benchmark/src/native/muxer/
DMuxer.h36 Muxer() : mFormat(nullptr), mMuxer(nullptr), mStats(nullptr) { mExtractor = new Extractor(); } in Muxer()
40 if (mExtractor) delete mExtractor; in ~Muxer() local
44 Extractor *getExtractor() { return mExtractor; } in getExtractor()
59 Extractor *mExtractor; variable
DMuxer.cpp26 if (!mFormat) mFormat = mExtractor->getFormat(); in initMuxer()
71 mStats->dumpStatistics(operation, inputReference, mExtractor->getClipDuration(), componentName, in dumpStatistics()
/frameworks/av/media/tests/benchmark/src/native/decoder/
DDecoder.h35 mExtractor(nullptr), in Decoder()
44 mExtractor = new Extractor(); in Decoder()
48 if (mExtractor) delete mExtractor; in ~Decoder() local
51 Extractor *getExtractor() { return mExtractor; } in getExtractor()
83 Extractor *mExtractor; variable
/frameworks/av/media/libmediaplayerservice/
DStagefrightMetadataRetriever.cpp74 mExtractor = MediaExtractorFactory::Create(mSource); in setDataSource()
76 if (mExtractor == NULL) { in setDataSource()
104 mExtractor = MediaExtractorFactory::Create(mSource); in setDataSource()
106 if (mExtractor == NULL) { in setDataSource()
121 mExtractor = MediaExtractorFactory::Create(mSource, mime); in setDataSource()
123 if (mExtractor == NULL) { in setDataSource()
158 if (mExtractor.get() == NULL) { in getImageInternal()
163 size_t n = mExtractor->countTracks(); in getImageInternal()
168 sp<MetaData> meta = mExtractor->getTrackMetaData(i); in getImageInternal()
192 sp<MetaData> trackMeta = mExtractor->getTrackMetaData(i); in getImageInternal()
[all …]
/frameworks/av/media/extractors/fuzzers/
Dmpeg2_extractor_fuzzer.cpp41 mExtractor = new MPEG2PSExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
43 mExtractor = new MPEG2TSExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
45 if (!mExtractor) { in createExtractor()
48 mExtractor->name(); in createExtractor()
DExtractorFuzzerBase.cpp59 size_t trackCount = mExtractor->countTracks(); in extractTracks()
61 MediaTrackHelper* track = mExtractor->getTrack(trackIndex); in extractTracks()
99 size_t trackCount = mExtractor->countTracks(); in getTracksMetadata()
101 mExtractor->getTrackMetaData(format, trackIndex, flags); in getTracksMetadata()
109 mExtractor->getMetaData(format); in getMetadata()
122 size_t trackCount = mExtractor->countTracks(); in seekAndExtractTracks()
124 MediaTrackHelper* track = mExtractor->getTrack(trackIndex); in seekAndExtractTracks()
132 mExtractor->getTrackMetaData(trackMetaData, trackIndex, flags); in seekAndExtractTracks()
Dmkv_extractor_fuzzer.cpp36 mExtractor = new MatroskaExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
37 if (!mExtractor) { in createExtractor()
40 mExtractor->name(); in createExtractor()
Daac_extractor_fuzzer.cpp36 mExtractor = new AACExtractor(new DataSourceHelper(mDataSource->wrap()), 0); in createExtractor()
37 if (!mExtractor) { in createExtractor()
40 mExtractor->name(); in createExtractor()
Dflac_extractor_fuzzer.cpp36 mExtractor = new FLACExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
37 if (!mExtractor) { in createExtractor()
40 mExtractor->name(); in createExtractor()
Dwav_extractor_fuzzer.cpp36 mExtractor = new WAVExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
37 if (!mExtractor) { in createExtractor()
40 mExtractor->name(); in createExtractor()
Damr_extractor_fuzzer.cpp36 mExtractor = new AMRExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
37 if (!mExtractor) { in createExtractor()
40 mExtractor->name(); in createExtractor()
Dogg_extractor_fuzzer.cpp36 mExtractor = new OggExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
37 if (!mExtractor) { in createExtractor()
40 mExtractor->name(); in createExtractor()
Dmp3_extractor_fuzzer.cpp36 mExtractor = new MP3Extractor(new DataSourceHelper(mDataSource->wrap()), nullptr); in createExtractor()
37 if (!mExtractor) { in createExtractor()
40 mExtractor->name(); in createExtractor()
Dmp4_extractor_fuzzer.cpp37 mExtractor = new MPEG4Extractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
38 if (!mExtractor) { in createExtractor()
41 mExtractor->name(); in createExtractor()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DCriticalNotificationExtractorTest.java44 private CriticalNotificationExtractor mExtractor; field in CriticalNotificationExtractorTest
50 mExtractor = new CriticalNotificationExtractor(); in setUp()
58 mExtractor.initialize(mContext, null); in testExtractCritically_nonsupporting()
76 mExtractor.initialize(mContext, null); in testExtractCritically()
93 mExtractor.process(info); in assertCriticality()
/frameworks/av/media/extractors/fuzzers/include/
DExtractorFuzzerBase.h41 if (mExtractor) { in ~ExtractorFuzzerBase()
42 delete mExtractor; in ~ExtractorFuzzerBase() local
43 mExtractor = nullptr; in ~ExtractorFuzzerBase()
130 MediaExtractorPluginHelper* mExtractor = nullptr; variable
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp116 MatroskaExtractor *mExtractor; member
158 MatroskaExtractor *mExtractor; member
187 return mExtractor->mSegment->GetTracks()->GetTrackByNumber(mTrackNum); in getTrack()
202 if (timeNs <= cp->GetTime(mExtractor->mSegment)) { in find()
213 const long long cueTimeNs = midCp->GetTime(mExtractor->mSegment); in find()
226 if (cp->GetTime(mExtractor->mSegment) > timeNs) { in find()
235 : mExtractor(extractor), in MatroskaSource()
239 mBlockIter(mExtractor, in MatroskaSource()
240 mExtractor->mTracks.itemAt(index).mTrackNum, in MatroskaSource()
245 MatroskaExtractor::TrackInfo &trackInfo = mExtractor->mTracks.editItemAt(index); in MatroskaSource()
[all …]
/frameworks/av/cmds/stagefright/
DSimplePlayer.cpp275 mExtractor = new NuMediaExtractor; in onPrepare()
277 status_t err = mExtractor->setDataSource( in onPrepare()
281 mExtractor.clear(); in onPrepare()
292 for (size_t i = 0; i < mExtractor->countTracks(); ++i) { in onPrepare()
294 status_t err = mExtractor->getTrackFormat(i, &format); in onPrepare()
310 err = mExtractor->selectTrack(i); in onPrepare()
411 mExtractor.clear(); in onReset()
470 status_t err = mExtractor->getSampleTrackIndex(&trackIndex); in onDoMoreStuff()
490 err = mExtractor->readSampleData(abuffer); in onDoMoreStuff()
495 CHECK_EQ(mExtractor->getSampleTime(&timeUs), (status_t)OK); in onDoMoreStuff()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationHeaderUtil.java248 private final DataExtractor mExtractor; field in NotificationHeaderUtil.HeaderProcessor
264 mExtractor = extractor; in HeaderProcessor()
272 mParentData = mExtractor == null ? null : mExtractor.extractData(mParentRow); in init()
285 Object childData = mExtractor == null ? null : mExtractor.extractData(row); in compareToHeader()
/frameworks/av/media/extractors/mpeg2/
DMPEG2PSExtractor.cpp59 MPEG2PSExtractor *mExtractor; member
88 MPEG2PSExtractor *mExtractor; member
600 : mExtractor(extractor), in Track()
696 status_t err = mExtractor->feedMore(); in read()
793 : mExtractor(extractor), in WrappedTrack()

12