Searched refs:refMime (Results 1 – 3 of 3) sorted by relevance
/cts/tests/media/jni/ |
D | NativeExtractorTest.cpp | 51 const char *refMime = nullptr, *testMime = nullptr; in isFormatSimilar() local 52 bool hasRefMime = AMediaFormat_getString(refFormat, AMEDIAFORMAT_KEY_MIME, &refMime); in isFormatSimilar() 55 if (!hasRefMime || !hasTestMime || strcmp(refMime, testMime) != 0) return false; in isFormatSimilar() 57 if (!strncmp(refMime, "audio/", strlen("audio/"))) { in isFormatSimilar() 69 } else if (!strncmp(refMime, "video/", strlen("video/"))) { in isFormatSimilar() 98 const char* refMime = nullptr; in isMediaSimilar() local 99 bool hasKey = AMediaFormat_getString(refFormat, AMEDIAFORMAT_KEY_MIME, &refMime); in isMediaSimilar() 100 if (!hasKey || (mime != nullptr && strcmp(refMime, mime) != 0)) { in isMediaSimilar() 120 ALOGD(" Mime: %s mismatch for sample: %d", refMime, frameCount); in isMediaSimilar() 131 ALOGD("Mime: %s Size exp/got: %d / %zd ", refMime, refSampleInfo.size, refSz); in isMediaSimilar() [all …]
|
D | NativeCodecTestBase.cpp | 554 const char *refMime = nullptr, *testMime = nullptr; in isFormatSimilar() local 555 bool hasRefMime = AMediaFormat_getString(inpFormat, AMEDIAFORMAT_KEY_MIME, &refMime); in isFormatSimilar() 559 if (!strncmp(refMime, "audio/", strlen("audio/"))) { in isFormatSimilar() 570 } else if (!strncmp(refMime, "video/", strlen("video/"))) { in isFormatSimilar()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | ExtractorTest.java | 227 String refMime = refFormat.getString(MediaFormat.KEY_MIME); in isFormatSimilar() local 230 if (!refMime.equals(testMime)) return false; in isFormatSimilar() 232 if (refMime.startsWith("audio/")) { in isFormatSimilar() 237 } else if (refMime.startsWith("video/")) { in isFormatSimilar() 254 String refMime = refFormat.getString(MediaFormat.KEY_MIME); in isMediaSimilar() local 255 if (mime != null && !refMime.equals(mime)) { in isMediaSimilar() 277 " Mime: " + refMime + " mismatch for sample: " + frameCount); in isMediaSimilar() 291 Log.d(LOG_TAG, "Mime: " + refMime + " Size exp/got: " + in isMediaSimilar() 300 Log.d(LOG_TAG, "Mime: " + refMime + " Size exp/got: " + in isMediaSimilar() 309 Log.d(LOG_TAG, "Mime: " + refMime + in isMediaSimilar() [all …]
|