Searched refs:refExtractor (Results 1 – 2 of 2) sorted by relevance
/cts/tests/media/jni/ |
D | NativeExtractorTest.cpp | 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() [all …]
|
/cts/tests/media/src/android/mediav2/cts/ |
D | ExtractorTest.java | 285 private static boolean isMediaSimilar(MediaExtractor refExtractor, MediaExtractor testExtractor, in isMediaSimilar() argument 291 for (int refTrackID = 0; refTrackID < refExtractor.getTrackCount(); refTrackID++) { in isMediaSimilar() 292 MediaFormat refFormat = refExtractor.getTrackFormat(refTrackID); in isMediaSimilar() 302 refExtractor.selectTrack(refTrackID); in isMediaSimilar() 309 refSampleInfo.set(0, (int) refExtractor.getSampleSize(), in isMediaSimilar() 310 refExtractor.getSampleTime(), refExtractor.getSampleFlags()); in isMediaSimilar() 328 int refSz = refExtractor.readSampleData(refBuffer, 0); in isMediaSimilar() 346 int trackIndex = refExtractor.getSampleTrackIndex(); in isMediaSimilar() 372 boolean haveRefSamples = refExtractor.advance(); in isMediaSimilar() 383 if (!haveRefSamples && !isExtractorOKonEOS(refExtractor)) { in isMediaSimilar() [all …]
|