Home
last modified time | relevance | path

Searched refs:refMediaType (Results 1 – 6 of 6) sorted by relevance

/cts/tests/media/jni/
DNativeMediaCommon.cpp98 const char *refMediaType = nullptr, *testMediaType = nullptr; in isFormatSimilar() local
100 bool hasRefMediaType = AMediaFormat_getString(refFormat, AMEDIAFORMAT_KEY_MIME, &refMediaType); in isFormatSimilar()
105 if (strcmp(refMediaType, testMediaType) != 0) return false; in isFormatSimilar()
119 if (!strncmp(refMediaType, "audio/", strlen("audio/"))) { in isFormatSimilar()
135 } else if (!strncmp(refMediaType, "video/", strlen("video/"))) { in isFormatSimilar()
DNativeExtractorTest.cpp74 const char* refMediaType = nullptr; in isMediaSimilar() local
75 bool hasKey = AMediaFormat_getString(refFormat, AMEDIAFORMAT_KEY_MIME, &refMediaType); in isMediaSimilar()
76 if (!hasKey || (mediaType != nullptr && strcmp(refMediaType, mediaType) != 0)) { in isMediaSimilar()
96 ALOGD(" MediaType: %s mismatch for sample: %d", refMediaType, frameCount); in isMediaSimilar()
459 const char *refMediaType = nullptr, *testMediaType = nullptr; in isFileFormatIdentical() local
461 AMediaFormat_getString(refFormat, AMEDIAFORMAT_KEY_MIME, &refMediaType); in isFileFormatIdentical()
465 if (hasRefKey && hasTestKey && strcmp(refMediaType, testMediaType) == 0) { in isFileFormatIdentical()
468 ALOGE("file format exp/got : %s/%s", refMediaType, testMediaType); in isFileFormatIdentical()
552 const char* refMediaType = nullptr; in nativeReadAllData() local
553 CHECK_KEY(AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &refMediaType), format, in nativeReadAllData()
[all …]
DNativeCodecTestBase.cpp685 const char *refMediaType = nullptr, *testMediaType = nullptr; in isFormatSimilar() local
686 bool hasRefMediaType = AMediaFormat_getString(inpFormat, AMEDIAFORMAT_KEY_MIME, &refMediaType); in isFormatSimilar()
691 if (!strncmp(refMediaType, "audio/", strlen("audio/"))) { in isFormatSimilar()
702 } else if (!strncmp(refMediaType, "video/", strlen("video/"))) { in isFormatSimilar()
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DPlayerListener.java179 String refMediaType = refFormat.sampleMimeType; in isFormatSimilar() local
182 assertTrue(refMediaType.startsWith("audio/") && testMediaType.startsWith("audio/")); in isFormatSimilar()
188 assertTrue((refMediaType.startsWith("text/") && testMediaType.startsWith("text/")) || ( in isFormatSimilar()
189 refMediaType.startsWith("application/") && testMediaType.startsWith("application/"))); in isFormatSimilar()
191 if (!refMediaType.equals(testMediaType)) { in isFormatSimilar()
/cts/tests/media/src/android/mediav2/cts/
DExtractorTest.java258 String refMediaType = refFormat.getString(MediaFormat.KEY_MIME); in isFormatSimilar() local
261 if (!refMediaType.equals(testMediaType)) return false; in isFormatSimilar()
271 if (refMediaType.startsWith("audio/")) { in isFormatSimilar()
276 } else if (refMediaType.startsWith("video/")) { in isFormatSimilar()
293 String refMediaType = refFormat.getString(MediaFormat.KEY_MIME); in isMediaSimilar() local
294 if (mediaType != null && !refMediaType.equals(mediaType)) { in isMediaSimilar()
316 " Mediatype: " + refMediaType + " mismatch for sample: " in isMediaSimilar()
331 Log.d(LOG_TAG, "Mediatype: " + refMediaType + " Size exp/got: " in isMediaSimilar()
340 Log.d(LOG_TAG, "Mediatype: " + refMediaType + " Size exp/got: " in isMediaSimilar()
349 Log.d(LOG_TAG, "Mediatype: " + refMediaType + " TrackID exp/got: " in isMediaSimilar()
[all …]
/cts/tests/media/common/src/android/mediav2/common/cts/
DCompareStreams.java127 public CompareStreams(String refMediaType, String refFile, String testMediaType, in CompareStreams() argument
129 this(new DecodeStreamToYuv(refMediaType, refFile).getDecodedYuv(), testMediaType, testFile, in CompareStreams()