/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() 218 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfAddTrackSucceedsAfterWriteSampleData() local 219 isPass &= trackID >= 0; in nativeTestIfAddTrackSucceedsAfterWriteSampleData() 221 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterWriteSampleData() 245 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfAddTrackSucceedsAfterStop() local 246 isPass &= trackID >= 0; in nativeTestIfAddTrackSucceedsAfterStop() 248 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterStop() 319 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfMuxerStartsAfterWriteSampleData() local 320 isPass &= trackID >= 0; in nativeTestIfMuxerStartsAfterWriteSampleData() [all …]
|
D | NativeExtractorTest.cpp | 278 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in getSeekablePoints() local 279 AMediaFormat* format = AMediaExtractor_getTrackFormat(extractor, trackID); in getSeekablePoints() 286 AMediaExtractor_selectTrack(extractor, trackID); in getSeekablePoints() 295 AMediaExtractor_unselectTrack(extractor, trackID); in getSeekablePoints() 326 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in generateSeekTestArgs() local 327 AMediaFormat* format = AMediaExtractor_getTrackFormat(extractor, trackID); in generateSeekTestArgs() 334 AMediaExtractor_selectTrack(extractor, trackID); in generateSeekTestArgs() 347 AMediaExtractor_unselectTrack(extractor, trackID); in generateSeekTestArgs() 423 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in checkSeekPoints() local 424 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 | 158 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(mExtractor); in setUpExtractor() local 159 trackID++) { in setUpExtractor() 160 AMediaFormat* currFormat = AMediaExtractor_getTrackFormat(mExtractor, trackID); in setUpExtractor() 164 AMediaExtractor_selectTrack(mExtractor, trackID); in setUpExtractor()
|
D | NativeCodecDecoderTestCommon.cpp | 125 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(mExtractor); in setUpExtractor() local 126 trackID++) { in setUpExtractor() 127 AMediaFormat* currFormat = AMediaExtractor_getTrackFormat(mExtractor, trackID); in setUpExtractor() 131 AMediaExtractor_selectTrack(mExtractor, trackID); in setUpExtractor()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | MuxerUnitTest.java | 83 int trackID) { in insertPerFrameSubtitles() argument 92 muxer.writeSampleData(trackID, metaBuff, metaInfo); in insertPerFrameSubtitles() 286 int trackID = muxer.addTrack(format); in testIfAddTrackSucceedsAfterWriteSampleData() local 288 insertPerFrameSubtitles(muxer, 0, trackID); in testIfAddTrackSucceedsAfterWriteSampleData() 307 int trackID = muxer.addTrack(format); in testIfAddTrackSucceedsAfterStop() local 309 insertPerFrameSubtitles(muxer, 0, trackID); in testIfAddTrackSucceedsAfterStop() 389 int trackID = muxer.addTrack(format); in testIfMuxerStartsAfterWriteSampleData() local 391 insertPerFrameSubtitles(muxer, 0, trackID); in testIfMuxerStartsAfterWriteSampleData() 411 int trackID = muxer.addTrack(format); in testIfMuxerStartsAfterStop() local 413 insertPerFrameSubtitles(muxer, 0, trackID); in testIfMuxerStartsAfterStop() [all …]
|
D | ExtractorTest.java | 430 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in readAllData() 431 MediaFormat format = extractor.getTrackFormat(trackID); in readAllData() 436 extractor.selectTrack(trackID); in readAllData() 482 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in readAllData() 483 extractor.unselectTrack(trackID); in readAllData() 560 for (int trackID = 0; trackID < refExtractor.getTrackCount() && result; trackID++) { in isSeekOk() 561 refExtractor.selectTrack(trackID); in isSeekOk() 562 testExtractor.selectTrack(trackID); in isSeekOk() 578 Log.d(LOG_TAG, " mode/pts/trackId:" + mode + "/" + pts + "/" + trackID); in isSeekOk() 589 refExtractor.unselectTrack(trackID); in isSeekOk() [all …]
|
D | MuxerTest.java | 92 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in splitMediaToMuxerParameters() 93 extractor.selectTrack(trackID); in splitMediaToMuxerParameters() 94 MediaFormat format = extractor.getTrackFormat(trackID); in splitMediaToMuxerParameters() 108 mInpIndexMap.put(trackID, index++); in splitMediaToMuxerParameters() 114 mInpIndexMap.put(trackID, index); in splitMediaToMuxerParameters() 117 extractor.unselectTrack(trackID); in splitMediaToMuxerParameters() 149 int trackID; in splitMediaToMuxerParameters() local 159 trackID = extractor.getSampleTrackIndex(); in splitMediaToMuxerParameters() 160 mTrackIdxOrder.add(trackID); in splitMediaToMuxerParameters() 161 mBufferInfo.get(mInpIndexMap.get(trackID)).add(bufferInfo); in splitMediaToMuxerParameters() [all …]
|
/cts/tests/video/src/android/video/cts/ |
D | CodecPerformanceTestBase.java | 149 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in getVideoFormat() 150 MediaFormat format = extractor.getTrackFormat(trackID); in getVideoFormat() 222 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in setUpDecoderInput() 223 MediaFormat format = extractor.getTrackFormat(trackID); in setUpDecoderInput() 225 extractor.selectTrack(trackID); in setUpDecoderInput()
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | CodecDecoderTestBase.java | 92 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in getMaxSampleSizeForMediaType() 93 MediaFormat format = extractor.getTrackFormat(trackID); in getMaxSampleSizeForMediaType() 95 extractor.selectTrack(trackID); in getMaxSampleSizeForMediaType() 117 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource() 118 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource() 127 mExtractor.selectTrack(trackID); in setUpSource()
|
D | DecodeStreamToYuv.java | 119 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in getFormatInStream() 120 MediaFormat fmt = extractor.getTrackFormat(trackID); in getFormatInStream()
|
D | CodecEncoderSurfaceTestBase.java | 206 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource() 207 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource() 210 mExtractor.selectTrack(trackID); in setUpSource()
|
D | CodecEncoderTestBase.java | 136 int trackID = muxer.addTrack(format); in muxOutput() local 140 muxer.writeSampleData(trackID, buffer, info); in muxOutput()
|
/cts/tests/tests/media/decoder/jni/ |
D | native-media-jni.cpp | 528 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(extractor); trackID++) { in testNonTunneledTrickPlay() local 529 AMediaFormat *format = AMediaExtractor_getTrackFormat(extractor, trackID); in testNonTunneledTrickPlay() 535 trackIndex = trackID; in testNonTunneledTrickPlay() 536 ALOGV("mediaType = %s, prefix = \"video/\", trackId = %zu", mediaType, trackID); in testNonTunneledTrickPlay()
|
/cts/tests/videocodec/src/android/videocodec/cts/ |
D | VideoDecodeEditEncodeTest.java | 264 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in splitMediaToMuxerParameters() 265 extractor.selectTrack(trackID); in splitMediaToMuxerParameters() 266 MediaFormat format = extractor.getTrackFormat(trackID); in splitMediaToMuxerParameters() 271 extractor.unselectTrack(trackID); in splitMediaToMuxerParameters()
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | CodecTranscoderTestBase.java | 95 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource() 96 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource() 99 mExtractor.selectTrack(trackID); in setUpSource()
|
D | CodecTestBase.java | 674 for (int trackID = 0; trackID < mExtractor.getTrackCount(); trackID++) { in setUpSource() 675 MediaFormat format = mExtractor.getTrackFormat(trackID); in setUpSource() 677 mExtractor.selectTrack(trackID); in setUpSource()
|
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/ |
D | MediaTranscodingManagerTest.java | 894 for (int trackID = 0; trackID < extractor.getTrackCount(); trackID++) { in getVideoTrackFormat() 895 MediaFormat format = extractor.getTrackFormat(trackID); in getVideoTrackFormat()
|