Home
last modified time | relevance | path

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

/cts/tests/media/jni/
DNativeMediaCommon.cpp58 bool isCSDIdentical(AMediaFormat* refFormat, AMediaFormat* testFormat) { in isCSDIdentical() argument
64 bool hasRefCSD = AMediaFormat_getBuffer(refFormat, name, &refCsd.first, &refCsd.second); in isCSDIdentical()
97 bool isFormatSimilar(AMediaFormat* refFormat, AMediaFormat* testFormat) { in isFormatSimilar() argument
100 bool hasRefMediaType = AMediaFormat_getString(refFormat, AMEDIAFORMAT_KEY_MIME, &refMediaType); in isFormatSimilar()
107 AMediaFormat_getInt64(refFormat, AMEDIAFORMAT_KEY_DURATION, &refKeyDuration); in isFormatSimilar()
118 if (!isCSDIdentical(refFormat, testFormat)) return false; in isFormatSimilar()
122 AMediaFormat_getInt32(refFormat, AMEDIAFORMAT_KEY_SAMPLE_RATE, &refSampleRate); in isFormatSimilar()
129 AMediaFormat_getInt32(refFormat, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &refNumChannels); in isFormatSimilar()
137 bool hasRefWidth = AMediaFormat_getInt32(refFormat, AMEDIAFORMAT_KEY_WIDTH, &refWidth); in isFormatSimilar()
142 bool hasRefHeight = AMediaFormat_getInt32(refFormat, AMEDIAFORMAT_KEY_HEIGHT, &refHeight); in isFormatSimilar()
DNativeMediaCommon.h75 bool isCSDIdentical(AMediaFormat* refFormat, AMediaFormat* testFormat);
76 bool isFormatSimilar(AMediaFormat* refFormat, AMediaFormat* testFormat);
DNativeExtractorTest.cpp73 AMediaFormat* refFormat = AMediaExtractor_getTrackFormat(refExtractor, refTrackID); in isMediaSimilar() local
75 bool hasKey = AMediaFormat_getString(refFormat, AMEDIAFORMAT_KEY_MIME, &refMediaType); in isMediaSimilar()
77 AMediaFormat_delete(refFormat); in isMediaSimilar()
83 if (!isFormatSimilar(refFormat, testFormat)) { in isMediaSimilar()
172 AMediaFormat_delete(refFormat); in isMediaSimilar()
456 AMediaFormat* refFormat = AMediaExtractor_getFileFormat(refExtractor); in isFileFormatIdentical() local
458 if (refFormat && testFormat) { in isFileFormatIdentical()
461 AMediaFormat_getString(refFormat, AMEDIAFORMAT_KEY_MIME, &refMediaType); in isFileFormatIdentical()
471 if (refFormat) AMediaFormat_delete(refFormat); in isFileFormatIdentical()
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DPlayerListener.java178 protected final boolean isFormatSimilar(Format refFormat, Format testFormat) { in isFormatSimilar() argument
179 String refMediaType = refFormat.sampleMimeType; in isFormatSimilar()
183 if ((refFormat.channelCount != testFormat.channelCount) || (refFormat.sampleRate in isFormatSimilar()
194 if (!refFormat.id.equals(testFormat.id)) { in isFormatSimilar()
/cts/tests/media/src/android/mediav2/cts/
DExtractorTest.java229 static boolean isCSDIdentical(MediaFormat refFormat, MediaFormat testFormat) { in isCSDIdentical() argument
230 String mediaType = refFormat.getString(MediaFormat.KEY_MIME); in isCSDIdentical()
233 boolean refHasCSD = refFormat.containsKey(csdKey); in isCSDIdentical()
244 ByteBuffer r = refFormat.getByteBuffer(csdKey); in isCSDIdentical()
257 static boolean isFormatSimilar(MediaFormat refFormat, MediaFormat testFormat) { in isFormatSimilar() argument
258 String refMediaType = refFormat.getString(MediaFormat.KEY_MIME); in isFormatSimilar()
262 if (refFormat.getLong(MediaFormat.KEY_DURATION) != in isFormatSimilar()
265 refFormat.getLong(MediaFormat.KEY_DURATION) + " / " + in isFormatSimilar()
270 if (!isCSDIdentical(refFormat, testFormat)) return false; in isFormatSimilar()
272 if (refFormat.getInteger(MediaFormat.KEY_CHANNEL_COUNT) != in isFormatSimilar()
[all …]
/cts/tests/media/common/src/android/mediav2/common/cts/
DCompareStreams.java118 public CompareStreams(MediaFormat refFormat, ByteBuffer refBuffer, in CompareStreams() argument
122 this(new DecodeStreamToYuv(refFormat, refBuffer, refBufferInfos).getDecodedYuv(), in CompareStreams()