Home
last modified time | relevance | path

Searched refs:trackID (Results 1 – 10 of 10) sorted by relevance

/cts/tests/media/jni/
DNativeMuxerUnitTest.cpp37 static media_status_t insertPerFrameSubtitles(AMediaMuxer* muxer, long pts, size_t trackID) { in insertPerFrameSubtitles() argument
44 media_status_t status = AMediaMuxer_writeSampleData(muxer, trackID, (uint8_t*)greeting, info); in insertPerFrameSubtitles()
191 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfAddTrackSucceedsAfterWriteSampleData() local
192 isPass &= trackID >= 0; in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
194 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
213 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfAddTrackSucceedsAfterStop() local
214 isPass &= trackID >= 0; in nativeTestIfAddTrackSucceedsAfterStop()
216 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterStop()
272 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfMuxerStartsAfterWriteSampleData() local
273 isPass &= trackID >= 0; in nativeTestIfMuxerStartsAfterWriteSampleData()
[all …]
DNativeMuxerTest.cpp71 void offsetTimeStamp(int trackID, long tsOffset, int sampleOffset);
117 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in splitMediaToMuxerParameters() local
118 AMediaExtractor_selectTrack(extractor, trackID); in splitMediaToMuxerParameters()
119 AMediaFormat* format = AMediaExtractor_getTrackFormat(extractor, trackID); in splitMediaToMuxerParameters()
123 mInpIndexMap[trackID] = index++; in splitMediaToMuxerParameters()
130 mInpIndexMap[trackID] = index; in splitMediaToMuxerParameters()
134 AMediaExtractor_unselectTrack(extractor, trackID); in splitMediaToMuxerParameters()
175 int trackID = AMediaExtractor_getSampleTrackIndex(extractor); in splitMediaToMuxerParameters() local
176 mTrackIdxOrder.push_back(trackID); in splitMediaToMuxerParameters()
177 mBufferInfo[(mInpIndexMap.at(trackID))].push_back(bufferInfo); in splitMediaToMuxerParameters()
[all …]
DNativeExtractorTest.cpp269 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in getSeekablePoints() local
270 AMediaFormat* format = AMediaExtractor_getTrackFormat(extractor, trackID); in getSeekablePoints()
277 AMediaExtractor_selectTrack(extractor, trackID); in getSeekablePoints()
286 AMediaExtractor_unselectTrack(extractor, trackID); in getSeekablePoints()
317 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in generateSeekTestArgs() local
318 AMediaFormat* format = AMediaExtractor_getTrackFormat(extractor, trackID); in generateSeekTestArgs()
325 AMediaExtractor_selectTrack(extractor, trackID); in generateSeekTestArgs()
338 AMediaExtractor_unselectTrack(extractor, trackID); in generateSeekTestArgs()
414 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in checkSeekPoints() local
415 AMediaFormat* format = AMediaExtractor_getTrackFormat(extractor, trackID); in checkSeekPoints()
[all …]
DNativeCodecEncoderSurfaceTest.cpp132 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(mExtractor); in setUpExtractor() local
133 trackID++) { in setUpExtractor()
134 AMediaFormat* currFormat = AMediaExtractor_getTrackFormat(mExtractor, trackID); in setUpExtractor()
138 AMediaExtractor_selectTrack(mExtractor, trackID); in setUpExtractor()
DNativeCodecDecoderTest.cpp114 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(mExtractor); in setUpExtractor() local
115 trackID++) { in setUpExtractor()
116 AMediaFormat* currFormat = AMediaExtractor_getTrackFormat(mExtractor, trackID); in setUpExtractor()
120 AMediaExtractor_selectTrack(mExtractor, trackID); in setUpExtractor()
/cts/tests/media/src/android/mediav2/cts/
DMuxerUnitTest.java77 int trackID) { in insertPerFrameSubtitles() argument
86 muxer.writeSampleData(trackID, metaBuff, metaInfo); in insertPerFrameSubtitles()
287 int trackID = muxer.addTrack(format); in testIfAddTrackSucceedsAfterWriteSampleData() local
289 insertPerFrameSubtitles(muxer, 0, trackID); in testIfAddTrackSucceedsAfterWriteSampleData()
307 int trackID = muxer.addTrack(format); in testIfAddTrackSucceedsAfterStop() local
309 insertPerFrameSubtitles(muxer, 0, trackID); in testIfAddTrackSucceedsAfterStop()
386 int trackID = muxer.addTrack(format); in testIfMuxerStartsAfterWriteSampleData() local
388 insertPerFrameSubtitles(muxer, 0, trackID); in testIfMuxerStartsAfterWriteSampleData()
407 int trackID = muxer.addTrack(format); in testIfMuxerStartsAfterStop() local
409 insertPerFrameSubtitles(muxer, 0, trackID); in testIfMuxerStartsAfterStop()
[all …]
DMuxerTest.java82 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in splitMediaToMuxerParameters()
83 extractor.selectTrack(trackID); in splitMediaToMuxerParameters()
84 MediaFormat format = extractor.getTrackFormat(trackID); in splitMediaToMuxerParameters()
88 mInpIndexMap.put(trackID, index++); in splitMediaToMuxerParameters()
94 mInpIndexMap.put(trackID, index); in splitMediaToMuxerParameters()
97 extractor.unselectTrack(trackID); in splitMediaToMuxerParameters()
129 int trackID; in splitMediaToMuxerParameters() local
139 trackID = extractor.getSampleTrackIndex(); in splitMediaToMuxerParameters()
140 mTrackIdxOrder.add(trackID); in splitMediaToMuxerParameters()
141 mBufferInfo.get(mInpIndexMap.get(trackID)).add(bufferInfo); in splitMediaToMuxerParameters()
[all …]
DExtractorTest.java440 for (int trackID = 0; trackID < refExtractor.getTrackCount() && result; trackID++) { in isSeekOk()
441 refExtractor.selectTrack(trackID); in isSeekOk()
442 testExtractor.selectTrack(trackID); in isSeekOk()
458 Log.d(LOG_TAG, " mode/pts/trackId:" + mode + "/" + pts + "/" + trackID); in isSeekOk()
469 refExtractor.unselectTrack(trackID); in isSeekOk()
470 testExtractor.unselectTrack(trackID); in isSeekOk()
717 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) {
718 MediaFormat format = extractor.getTrackFormat(trackID);
720 extractor.selectTrack(trackID);
731 extractor.unselectTrack(trackID);
[all …]
DCodecEncoderSurfaceTest.java180 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource()
181 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource()
184 mExtractor.selectTrack(trackID); in setUpSource()
DCodecTestBase.java869 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource()
870 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource()
872 mExtractor.selectTrack(trackID); in setUpSource()