Home
last modified time | relevance | path

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

/cts/tests/media/jni/
DNativeCodecTestBase.cpp684 bool CodecTestBase::isFormatSimilar(AMediaFormat* inpFormat, AMediaFormat* outFormat) { in isFormatSimilar() argument
686 bool hasRefMediaType = AMediaFormat_getString(inpFormat, AMEDIAFORMAT_KEY_MIME, &refMediaType); in isFormatSimilar()
696 AMediaFormat_getInt32(inpFormat, AMEDIAFORMAT_KEY_SAMPLE_RATE, &refSampleRate); in isFormatSimilar()
698 AMediaFormat_getInt32(inpFormat, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &refNumChannels); in isFormatSimilar()
703 int32_t refWidth = getWidth(inpFormat); in isFormatSimilar()
705 int32_t refHeight = getHeight(inpFormat); in isFormatSimilar()
DNativeCodecEncoderSurfaceTest.cpp233 AMediaFormat* inpFormat = AMediaCodec_getInputFormat(mEncoder); in configureCodec()
234 mReviseLatency = AMediaFormat_getInt32(inpFormat, AMEDIAFORMAT_KEY_LATENCY, &mLatency); in configureCodec()
235 AMediaFormat_delete(inpFormat); in configureCodec()
DNativeCodecTestBase.h201 static bool isFormatSimilar(AMediaFormat* inpFormat, AMediaFormat* outFormat);
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecTestBase.java1418 public boolean isFormatSimilar(MediaFormat inpFormat, MediaFormat outFormat) { in isFormatSimilar() argument
1419 if (inpFormat == null || outFormat == null) return false; in isFormatSimilar()
1420 String inpMediaType = inpFormat.getString(MediaFormat.KEY_MIME); in isFormatSimilar()
1425 return (inpFormat.getInteger(MediaFormat.KEY_CHANNEL_COUNT, -1) in isFormatSimilar()
1427 && (inpFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE, -1) in isFormatSimilar()
1431 return getWidth(inpFormat) == getWidth(outFormat) in isFormatSimilar()
1432 && getHeight(inpFormat) == getHeight(outFormat) in isFormatSimilar()
DCodecEncoderSurfaceTestBase.java571 MediaFormat inpFormat = mDecoder.getInputFormat(); in encodeToMemory() local
572 int transferRequest = inpFormat.getInteger(MediaFormat.KEY_COLOR_TRANSFER_REQUEST, 0); in encodeToMemory()