Lines Matching refs:extractor
102 AMediaExtractor* extractor = AMediaExtractor_new(); in splitMediaToMuxerParameters() local
103 if (extractor == nullptr) { in splitMediaToMuxerParameters()
108 media_status_t status = AMediaExtractor_setDataSourceFd(extractor, fd, 0, fileSize); in splitMediaToMuxerParameters()
110 AMediaExtractor_delete(extractor); in splitMediaToMuxerParameters()
117 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in splitMediaToMuxerParameters()
118 AMediaExtractor_selectTrack(extractor, trackID); in splitMediaToMuxerParameters()
119 AMediaFormat* format = AMediaExtractor_getTrackFormat(extractor, trackID); in splitMediaToMuxerParameters()
134 AMediaExtractor_unselectTrack(extractor, trackID); in splitMediaToMuxerParameters()
140 AMediaExtractor_delete(extractor); in splitMediaToMuxerParameters()
155 AMediaExtractor_delete(extractor); in splitMediaToMuxerParameters()
169 AMediaExtractor_readSampleData(extractor, mBuffer + offset, (bufferSize - offset)); in splitMediaToMuxerParameters()
173 bufferInfo->presentationTimeUs = AMediaExtractor_getSampleTime(extractor); in splitMediaToMuxerParameters()
174 bufferInfo->flags = AMediaExtractor_getSampleFlags(extractor); in splitMediaToMuxerParameters()
175 int trackID = AMediaExtractor_getSampleTrackIndex(extractor); in splitMediaToMuxerParameters()
178 AMediaExtractor_advance(extractor); in splitMediaToMuxerParameters()
184 AMediaExtractor_delete(extractor); in splitMediaToMuxerParameters()