Home
last modified time | relevance | path

Searched refs:trackID (Results 1 – 13 of 13) 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 …]
DNativeExtractorTest.cpp274 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in getSeekablePoints() local
275 AMediaFormat* format = AMediaExtractor_getTrackFormat(extractor, trackID); in getSeekablePoints()
282 AMediaExtractor_selectTrack(extractor, trackID); in getSeekablePoints()
291 AMediaExtractor_unselectTrack(extractor, trackID); in getSeekablePoints()
322 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in generateSeekTestArgs() local
323 AMediaFormat* format = AMediaExtractor_getTrackFormat(extractor, trackID); in generateSeekTestArgs()
330 AMediaExtractor_selectTrack(extractor, trackID); in generateSeekTestArgs()
343 AMediaExtractor_unselectTrack(extractor, trackID); in generateSeekTestArgs()
419 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in checkSeekPoints() local
420 AMediaFormat* format = AMediaExtractor_getTrackFormat(extractor, trackID); in checkSeekPoints()
[all …]
DNativeMuxerTest.cpp145 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in splitMediaToMuxerParameters() local
146 AMediaExtractor_selectTrack(extractor, trackID); in splitMediaToMuxerParameters()
147 AMediaFormat* format = AMediaExtractor_getTrackFormat(extractor, trackID); in splitMediaToMuxerParameters()
151 mInpIndexMap[trackID] = index++; in splitMediaToMuxerParameters()
158 mInpIndexMap[trackID] = index; in splitMediaToMuxerParameters()
162 AMediaExtractor_unselectTrack(extractor, trackID); in splitMediaToMuxerParameters()
203 int trackID = AMediaExtractor_getSampleTrackIndex(extractor); in splitMediaToMuxerParameters() local
204 mTrackIdxOrder.push_back(trackID); in splitMediaToMuxerParameters()
205 mBufferInfo[(mInpIndexMap.at(trackID))].push_back(bufferInfo); in splitMediaToMuxerParameters()
217 for (int trackID = 0; trackID < mTrackCount; trackID++) { in registerTrack() local
[all …]
DNativeCodecEncoderSurfaceTest.cpp135 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(mExtractor); in setUpExtractor() local
136 trackID++) { in setUpExtractor()
137 AMediaFormat* currFormat = AMediaExtractor_getTrackFormat(mExtractor, trackID); in setUpExtractor()
141 AMediaExtractor_selectTrack(mExtractor, trackID); in setUpExtractor()
DNativeCodecDecoderTest.cpp116 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(mExtractor); in setUpExtractor() local
117 trackID++) { in setUpExtractor()
118 AMediaFormat* currFormat = AMediaExtractor_getTrackFormat(mExtractor, trackID); in setUpExtractor()
122 AMediaExtractor_selectTrack(mExtractor, trackID); in setUpExtractor()
/cts/tests/media/src/android/mediav2/cts/
DMuxerUnitTest.java78 int trackID) { in insertPerFrameSubtitles() argument
87 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()
385 int trackID = muxer.addTrack(format); in testIfMuxerStartsAfterWriteSampleData() local
387 insertPerFrameSubtitles(muxer, 0, trackID); in testIfMuxerStartsAfterWriteSampleData()
406 int trackID = muxer.addTrack(format); in testIfMuxerStartsAfterStop() local
408 insertPerFrameSubtitles(muxer, 0, trackID); in testIfMuxerStartsAfterStop()
[all …]
DExtractorTest.java416 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in readAllData()
417 MediaFormat format = extractor.getTrackFormat(trackID); in readAllData()
422 extractor.selectTrack(trackID); in readAllData()
468 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in readAllData()
469 extractor.unselectTrack(trackID); in readAllData()
545 for (int trackID = 0; trackID < refExtractor.getTrackCount() && result; trackID++) { in isSeekOk()
546 refExtractor.selectTrack(trackID); in isSeekOk()
547 testExtractor.selectTrack(trackID); in isSeekOk()
563 Log.d(LOG_TAG, " mode/pts/trackId:" + mode + "/" + pts + "/" + trackID); in isSeekOk()
574 refExtractor.unselectTrack(trackID); in isSeekOk()
[all …]
DMuxerTest.java85 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in splitMediaToMuxerParameters()
86 extractor.selectTrack(trackID); in splitMediaToMuxerParameters()
87 MediaFormat format = extractor.getTrackFormat(trackID); in splitMediaToMuxerParameters()
101 mInpIndexMap.put(trackID, index++); in splitMediaToMuxerParameters()
107 mInpIndexMap.put(trackID, index); in splitMediaToMuxerParameters()
110 extractor.unselectTrack(trackID); in splitMediaToMuxerParameters()
142 int trackID; in splitMediaToMuxerParameters() local
152 trackID = extractor.getSampleTrackIndex(); in splitMediaToMuxerParameters()
153 mTrackIdxOrder.add(trackID); in splitMediaToMuxerParameters()
154 mBufferInfo.get(mInpIndexMap.get(trackID)).add(bufferInfo); in splitMediaToMuxerParameters()
[all …]
DCodecEncoderSurfaceTest.java136 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource()
137 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource()
140 mExtractor.selectTrack(trackID); in setUpSource()
DCodecTestBase.java1137 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource()
1138 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource()
1140 mExtractor.selectTrack(trackID); in setUpSource()
/cts/tests/video/src/android/video/cts/
DCodecPerformanceTestBase.java133 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in getVideoFormat()
134 MediaFormat format = extractor.getTrackFormat(trackID); in getVideoFormat()
199 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in setUpDecoderInput()
200 MediaFormat format = extractor.getTrackFormat(trackID); in setUpDecoderInput()
202 extractor.selectTrack(trackID); in setUpDecoderInput()
/cts/tests/mediapc/src/android/mediapc/cts/
DCodecTranscoderTestBase.java81 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource()
82 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource()
85 mExtractor.selectTrack(trackID); in setUpSource()
DCodecTestBase.java417 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource()
418 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource()
420 mExtractor.selectTrack(trackID); in setUpSource()