Lines Matching refs:refExtractor

65 static bool isMediaSimilar(AMediaExtractor* refExtractor, AMediaExtractor* testExtractor,  in isMediaSimilar()  argument
71 for (size_t refTrackID = 0; refTrackID < AMediaExtractor_getTrackCount(refExtractor); in isMediaSimilar()
73 AMediaFormat* refFormat = AMediaExtractor_getTrackFormat(refExtractor, refTrackID); in isMediaSimilar()
87 AMediaExtractor_selectTrack(refExtractor, refTrackID); in isMediaSimilar()
93 setSampleInfo(refExtractor, &refSampleInfo); in isMediaSimilar()
105 AMediaExtractor_readSampleData(refExtractor, refBuffer, maxSampleSize); in isMediaSimilar()
120 int trackIndex = AMediaExtractor_getSampleTrackIndex(refExtractor); in isMediaSimilar()
139 bool haveRefSamples = AMediaExtractor_advance(refExtractor); in isMediaSimilar()
147 if (!haveRefSamples && !isExtractorOKonEOS(refExtractor)) { in isMediaSimilar()
165 AMediaExtractor_unselectTrack(refExtractor, refTrackID); in isMediaSimilar()
178 return noOfTracksMatched == AMediaExtractor_getTrackCount(refExtractor); in isMediaSimilar()
453 static bool isFileFormatIdentical(AMediaExtractor* refExtractor, AMediaExtractor* testExtractor) { in isFileFormatIdentical() argument
455 if (refExtractor && testExtractor) { in isFileFormatIdentical()
456 AMediaFormat* refFormat = AMediaExtractor_getFileFormat(refExtractor); in isFileFormatIdentical()
477 static bool isSeekOk(AMediaExtractor* refExtractor, AMediaExtractor* testExtractor) { in isSeekOk() argument
483 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(refExtractor); trackID++) { in isSeekOk()
484 AMediaExtractor_selectTrack(refExtractor, trackID); in isSeekOk()
491 AMediaExtractor_seekTo(refExtractor, pts, (SeekMode)mode); in isSeekOk()
493 setSampleInfo(refExtractor, &refSampleInfo); in isSeekOk()
502 int refTrackIdx = AMediaExtractor_getSampleTrackIndex(refExtractor); in isSeekOk()
510 AMediaExtractor_unselectTrack(refExtractor, trackID); in isSeekOk()
813 AMediaExtractor* refExtractor = AMediaExtractor_new(); in nativeTestDataSource() local
814 media_status_t status = AMediaExtractor_setDataSource(refExtractor, csrcUrl); in nativeTestDataSource()
816 isPass &= validateCachedDuration(refExtractor, true); in nativeTestDataSource()
822 if (!(isMediaSimilar(refExtractor, testExtractor, nullptr) && in nativeTestDataSource()
823 isFileFormatIdentical(refExtractor, testExtractor) && in nativeTestDataSource()
824 isSeekOk(refExtractor, testExtractor))) { in nativeTestDataSource()
838 if (!(isMediaSimilar(refExtractor, testExtractor, nullptr) && in nativeTestDataSource()
839 isFileFormatIdentical(refExtractor, testExtractor) && in nativeTestDataSource()
840 isSeekOk(refExtractor, testExtractor))) { in nativeTestDataSource()
851 if (refExtractor) AMediaExtractor_delete(refExtractor); in nativeTestDataSource()