Home
last modified time | relevance | path

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

/cts/tests/media/jni/
DNativeExtractorTest.cpp50 static bool isFormatSimilar(AMediaFormat* refFormat, AMediaFormat* testFormat) { in isFormatSimilar() argument
52 bool hasRefMime = AMediaFormat_getString(refFormat, AMEDIAFORMAT_KEY_MIME, &refMime); in isFormatSimilar()
56 if (!isCSDIdentical(refFormat, testFormat)) return false; in isFormatSimilar()
60 AMediaFormat_getInt32(refFormat, AMEDIAFORMAT_KEY_SAMPLE_RATE, &refSampleRate); in isFormatSimilar()
64 AMediaFormat_getInt32(refFormat, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &refNumChannels); in isFormatSimilar()
71 bool hasRefWidth = AMediaFormat_getInt32(refFormat, AMEDIAFORMAT_KEY_WIDTH, &refWidth); in isFormatSimilar()
73 bool hasRefHeight = AMediaFormat_getInt32(refFormat, AMEDIAFORMAT_KEY_HEIGHT, &refHeight); in isFormatSimilar()
97 AMediaFormat* refFormat = AMediaExtractor_getTrackFormat(refExtractor, refTrackID); in isMediaSimilar() local
99 bool hasKey = AMediaFormat_getString(refFormat, AMEDIAFORMAT_KEY_MIME, &refMime); in isMediaSimilar()
101 AMediaFormat_delete(refFormat); in isMediaSimilar()
[all …]
DNativeMediaCommon.cpp48 bool isCSDIdentical(AMediaFormat* refFormat, AMediaFormat* testFormat) { in isCSDIdentical() argument
50 AMediaFormat_getString(refFormat, AMEDIAFORMAT_KEY_MIME, &mime); in isCSDIdentical()
56 bool hasRefCSD = AMediaFormat_getBuffer(refFormat, name, &refCsd.first, &refCsd.second); in isCSDIdentical()
DNativeMediaCommon.h63 bool isCSDIdentical(AMediaFormat* refFormat, AMediaFormat* testFormat);
/cts/tests/media/src/android/mediav2/cts/
DExtractorTest.java198 static boolean isCSDIdentical(MediaFormat refFormat, MediaFormat testFormat) { in isCSDIdentical() argument
199 String mime = refFormat.getString(MediaFormat.KEY_MIME); in isCSDIdentical()
202 boolean refHasCSD = refFormat.containsKey(csdKey); in isCSDIdentical()
213 ByteBuffer r = refFormat.getByteBuffer(csdKey); in isCSDIdentical()
226 private static boolean isFormatSimilar(MediaFormat refFormat, MediaFormat testFormat) { in isFormatSimilar() argument
227 String refMime = refFormat.getString(MediaFormat.KEY_MIME); in isFormatSimilar()
231 if (!isCSDIdentical(refFormat, testFormat)) return false; in isFormatSimilar()
233 return refFormat.getInteger(MediaFormat.KEY_CHANNEL_COUNT) == in isFormatSimilar()
235 refFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE) == in isFormatSimilar()
238 return refFormat.getInteger(MediaFormat.KEY_WIDTH) == in isFormatSimilar()
[all …]