Searched refs:testExtractor (Results 1 – 2 of 2) sorted by relevance
/cts/tests/media/src/android/mediav2/cts/ |
D | ExtractorTest.java | 285 private static boolean isMediaSimilar(MediaExtractor refExtractor, MediaExtractor testExtractor, in isMediaSimilar() argument 297 for (int testTrackID = 0; testTrackID < testExtractor.getTrackCount(); testTrackID++) { in isMediaSimilar() 298 MediaFormat testFormat = testExtractor.getTrackFormat(testTrackID); in isMediaSimilar() 303 testExtractor.selectTrack(testTrackID); in isMediaSimilar() 311 testSampleInfo.set(0, (int) testExtractor.getSampleSize(), in isMediaSimilar() 312 testExtractor.getSampleTime(), testExtractor.getSampleFlags()); in isMediaSimilar() 337 int testSz = testExtractor.readSampleData(testBuffer, 0); in isMediaSimilar() 355 trackIndex = testExtractor.getSampleTrackIndex(); in isMediaSimilar() 373 boolean haveTestSamples = testExtractor.advance(); in isMediaSimilar() 392 if (!haveTestSamples && !isExtractorOKonEOS(testExtractor)) { in isMediaSimilar() [all …]
|
/cts/tests/media/jni/ |
D | NativeExtractorTest.cpp | 65 static bool isMediaSimilar(AMediaExtractor* refExtractor, AMediaExtractor* testExtractor, in isMediaSimilar() argument 80 for (size_t testTrackID = 0; testTrackID < AMediaExtractor_getTrackCount(testExtractor); in isMediaSimilar() 82 AMediaFormat* testFormat = AMediaExtractor_getTrackFormat(testExtractor, testTrackID); in isMediaSimilar() 88 AMediaExtractor_selectTrack(testExtractor, testTrackID); in isMediaSimilar() 94 setSampleInfo(testExtractor, &testSampleInfo); in isMediaSimilar() 113 AMediaExtractor_readSampleData(testExtractor, testBuffer, maxSampleSize); in isMediaSimilar() 127 trackIndex = AMediaExtractor_getSampleTrackIndex(testExtractor); in isMediaSimilar() 140 bool haveTestSamples = AMediaExtractor_advance(testExtractor); in isMediaSimilar() 152 if (!haveTestSamples && !isExtractorOKonEOS(testExtractor)) { in isMediaSimilar() 164 AMediaExtractor_unselectTrack(testExtractor, testTrackID); in isMediaSimilar() [all …]
|