Lines Matching refs:extractor
130 AMediaExtractor* extractor = AMediaExtractor_new(); in splitMediaToMuxerParameters() local
131 if (extractor == nullptr) { in splitMediaToMuxerParameters()
136 media_status_t status = AMediaExtractor_setDataSourceFd(extractor, fd, 0, fileSize); in splitMediaToMuxerParameters()
138 AMediaExtractor_delete(extractor); in splitMediaToMuxerParameters()
145 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in splitMediaToMuxerParameters()
146 AMediaExtractor_selectTrack(extractor, trackID); in splitMediaToMuxerParameters()
147 AMediaFormat* format = AMediaExtractor_getTrackFormat(extractor, trackID); in splitMediaToMuxerParameters()
162 AMediaExtractor_unselectTrack(extractor, trackID); in splitMediaToMuxerParameters()
168 AMediaExtractor_delete(extractor); in splitMediaToMuxerParameters()
183 AMediaExtractor_delete(extractor); in splitMediaToMuxerParameters()
197 AMediaExtractor_readSampleData(extractor, mBuffer + offset, (bufferSize - offset)); in splitMediaToMuxerParameters()
201 bufferInfo->presentationTimeUs = AMediaExtractor_getSampleTime(extractor); in splitMediaToMuxerParameters()
202 bufferInfo->flags = AMediaExtractor_getSampleFlags(extractor); in splitMediaToMuxerParameters()
203 int trackID = AMediaExtractor_getSampleTrackIndex(extractor); in splitMediaToMuxerParameters()
206 AMediaExtractor_advance(extractor); in splitMediaToMuxerParameters()
212 AMediaExtractor_delete(extractor); in splitMediaToMuxerParameters()