/cts/tests/media/jni/ |
D | NativeMuxerUnitTest.cpp | 37 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 …]
|
D | NativeExtractorTest.cpp | 274 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 …]
|
D | NativeMuxerTest.cpp | 145 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 …]
|
D | NativeCodecEncoderSurfaceTest.cpp | 135 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()
|
D | NativeCodecDecoderTest.cpp | 116 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/ |
D | MuxerUnitTest.java | 78 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 …]
|
D | ExtractorTest.java | 416 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 …]
|
D | MuxerTest.java | 85 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 …]
|
D | CodecEncoderSurfaceTest.java | 136 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource() 137 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource() 140 mExtractor.selectTrack(trackID); in setUpSource()
|
D | CodecTestBase.java | 1137 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/ |
D | CodecPerformanceTestBase.java | 133 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/ |
D | CodecTranscoderTestBase.java | 81 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource() 82 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource() 85 mExtractor.selectTrack(trackID); in setUpSource()
|
D | CodecTestBase.java | 417 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource() 418 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource() 420 mExtractor.selectTrack(trackID); in setUpSource()
|