Home
last modified time | relevance | path

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

/cts/tests/media/jni/
DNativeCodecTestBase.cpp566 bool CodecTestBase::isFormatSimilar(AMediaFormat* inpFormat, AMediaFormat* outFormat) { in isFormatSimilar() argument
568 bool hasRefMime = AMediaFormat_getString(inpFormat, AMEDIAFORMAT_KEY_MIME, &refMime); in isFormatSimilar()
577 AMediaFormat_getInt32(inpFormat, AMEDIAFORMAT_KEY_SAMPLE_RATE, &refSampleRate); in isFormatSimilar()
579 AMediaFormat_getInt32(inpFormat, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &refNumChannels); in isFormatSimilar()
584 int32_t refWidth = getWidth(inpFormat); in isFormatSimilar()
586 int32_t refHeight = getHeight(inpFormat); in isFormatSimilar()
DNativeCodecEncoderSurfaceTest.cpp173 AMediaFormat* inpFormat = AMediaCodec_getInputFormat(mEncoder); in configureCodec() local
174 mReviseLatency = AMediaFormat_getInt32(inpFormat, AMEDIAFORMAT_KEY_LATENCY, &mLatency); in configureCodec()
175 AMediaFormat_delete(inpFormat); in configureCodec()
DNativeCodecTestBase.h164 bool isFormatSimilar(AMediaFormat* inpFormat, AMediaFormat* outFormat);
/cts/tests/media/src/android/mediav2/cts/
DEncoderProfileLevelTest.java626 boolean isFormatSimilar(MediaFormat inpFormat, MediaFormat outFormat) { in isFormatSimilar() argument
627 if (!super.isFormatSimilar(inpFormat, outFormat)) { in isFormatSimilar()
631 String inpMime = inpFormat.getString(MediaFormat.KEY_MIME); in isFormatSimilar()
638 inputProfileKey = getAacProfile(inpFormat); in isFormatSimilar()
658 if (!inpFormat.containsKey(MediaFormat.KEY_PROFILE)) { in isFormatSimilar()
662 if (!inpFormat.containsKey(MediaFormat.KEY_LEVEL)) { in isFormatSimilar()
667 != inpFormat.getInteger(MediaFormat.KEY_PROFILE)) { in isFormatSimilar()
672 != inpFormat.getInteger(MediaFormat.KEY_LEVEL)) { in isFormatSimilar()
DCodecEncoderTest.java333 MediaFormat inpFormat = mFormats.get(0); in testFlush() local
335 mSampleRate = inpFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE); in testFlush()
336 mChannels = inpFormat.getInteger(MediaFormat.KEY_CHANNEL_COUNT); in testFlush()
338 mWidth = inpFormat.getInteger(MediaFormat.KEY_WIDTH); in testFlush()
339 mHeight = inpFormat.getInteger(MediaFormat.KEY_HEIGHT); in testFlush()
345 configureCodec(inpFormat, isAsync, true, true); in testFlush()
363 if (checkMetrics) validateMetrics(mCodecName, inpFormat); in testFlush()
DCodecTestBase.java1027 boolean isFormatSimilar(MediaFormat inpFormat, MediaFormat outFormat) { in isFormatSimilar() argument
1028 if (inpFormat == null || outFormat == null) return false; in isFormatSimilar()
1029 String inpMime = inpFormat.getString(MediaFormat.KEY_MIME); in isFormatSimilar()
1034 return inpFormat.getInteger(MediaFormat.KEY_CHANNEL_COUNT, -1) == in isFormatSimilar()
1036 inpFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE, -1) == in isFormatSimilar()
1040 return getWidth(inpFormat) == getWidth(outFormat) && in isFormatSimilar()
1041 getHeight(inpFormat) == getHeight(outFormat) && inpMime.startsWith("video/"); in isFormatSimilar()