Home
last modified time | relevance | path

Searched refs:inpFormat (Results 1 – 5 of 5) sorted by relevance

/cts/tests/media/src/android/mediav2/cts/
DEncoderProfileLevelTest.java611 boolean isFormatSimilar(MediaFormat inpFormat, MediaFormat outFormat) { in isFormatSimilar() argument
612 if (!super.isFormatSimilar(inpFormat, outFormat)) { in isFormatSimilar()
616 String inpMime = inpFormat.getString(MediaFormat.KEY_MIME); in isFormatSimilar()
627 if (!inpFormat.containsKey(MediaFormat.KEY_AAC_PROFILE)) { in isFormatSimilar()
632 != inpFormat.getInteger(MediaFormat.KEY_AAC_PROFILE)) { in isFormatSimilar()
650 if (!inpFormat.containsKey(MediaFormat.KEY_PROFILE)) { in isFormatSimilar()
654 if (!inpFormat.containsKey(MediaFormat.KEY_LEVEL)) { in isFormatSimilar()
659 != inpFormat.getInteger(MediaFormat.KEY_PROFILE)) { in isFormatSimilar()
664 != inpFormat.getInteger(MediaFormat.KEY_LEVEL)) { in isFormatSimilar()
DCodecEncoderTest.java369 MediaFormat inpFormat = mFormats.get(0); in testFlush() local
371 mSampleRate = inpFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE); in testFlush()
372 mChannels = inpFormat.getInteger(MediaFormat.KEY_CHANNEL_COUNT); in testFlush()
374 mWidth = inpFormat.getInteger(MediaFormat.KEY_WIDTH); in testFlush()
375 mHeight = inpFormat.getInteger(MediaFormat.KEY_HEIGHT); in testFlush()
381 configureCodec(inpFormat, isAsync, true, true); in testFlush()
397 if (checkMetrics) validateMetrics(encoder, inpFormat); in testFlush()
DCodecTestBase.java790 boolean isFormatSimilar(MediaFormat inpFormat, MediaFormat outFormat) { in isFormatSimilar() argument
791 if (inpFormat == null || outFormat == null) return false; in isFormatSimilar()
792 String inpMime = inpFormat.getString(MediaFormat.KEY_MIME); in isFormatSimilar()
797 return inpFormat.getInteger(MediaFormat.KEY_CHANNEL_COUNT, -1) == in isFormatSimilar()
799 inpFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE, -1) == in isFormatSimilar()
803 return getWidth(inpFormat) == getWidth(outFormat) && in isFormatSimilar()
804 getHeight(inpFormat) == getHeight(outFormat) && inpMime.startsWith("video/"); in isFormatSimilar()
/cts/tests/media/jni/
DNativeCodecTestBase.cpp553 bool CodecTestBase::isFormatSimilar(AMediaFormat* inpFormat, AMediaFormat* outFormat) { in isFormatSimilar() argument
555 bool hasRefMime = AMediaFormat_getString(inpFormat, AMEDIAFORMAT_KEY_MIME, &refMime); in isFormatSimilar()
564 AMediaFormat_getInt32(inpFormat, AMEDIAFORMAT_KEY_SAMPLE_RATE, &refSampleRate); in isFormatSimilar()
566 AMediaFormat_getInt32(inpFormat, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &refNumChannels); in isFormatSimilar()
571 int32_t refWidth = getWidth(inpFormat); in isFormatSimilar()
573 int32_t refHeight = getHeight(inpFormat); in isFormatSimilar()
DNativeCodecTestBase.h161 bool isFormatSimilar(AMediaFormat* inpFormat, AMediaFormat* outFormat);