/cts/tests/mediapc/src/android/mediapc/cts/ |
D | AdaptivePlaybackFrameDropTest.java | 61 PlaybackFrameDrop playbackFrameDrop = new PlaybackFrameDrop(mMime, mDecoderName, in testAdaptivePlaybackFrameDrop() 62 new String[]{m1080pTestFiles.get(mMime), m540pTestFiles.get(mMime)}, in testAdaptivePlaybackFrameDrop() 65 assertTrue("Adaptive Playback FrameDrop count for mime: " + mMime + ", decoder: " + in testAdaptivePlaybackFrameDrop()
|
D | FrameDropTest.java | 58 PlaybackFrameDrop playbackFrameDrop = new PlaybackFrameDrop(mMime, mDecoderName, in testDecodeToSurface() 59 new String[]{m1080pTestFiles.get(mMime)}, mSurface, FRAME_RATE, mIsAsync); in testDecodeToSurface() 61 assertTrue("FrameDrop count for mime: " + mMime + ", decoder: " + mDecoderName + in testDecodeToSurface()
|
D | EncoderInitializationLatencyTest.java | 83 private final String mMime; field in EncoderInitializationLatencyTest 123 mMime = mimeType; in EncoderInitializationLatencyTest() 195 mediaRecorder.setVideoEncoder(mMime.equalsIgnoreCase(HEVC) ? in createMediaRecorderLoad() 284 long expectedMaxCodecInitializationLatencyMs = mMime.startsWith("audio/") ? in testInitializationLatency() 292 new EncoderInitializationLatency(mMime, mEncoderName, isAsync); in testInitializationLatency() 302 "Encoder: %s, in Ms :: ", mMime, mEncoderName); in testInitializationLatency() 310 mMime, mEncoderName, encoderInitializationLatencyMs[percentile * count / 100], in testInitializationLatency() 342 format.setString(MediaFormat.KEY_MIME, mMime); in setUpFormat() 344 if (mMime.equals(MediaFormat.MIMETYPE_AUDIO_FLAC)) { in setUpFormat() 354 codec.getCodecInfo().getCapabilitiesForType(mMime); in setUpFormat() [all …]
|
D | MultiEncoderPerfTest.java | 79 mimeEncoderPairs.add(Pair.create(mMime, mEncoderName)); in test720p() 82 if (mMime.equals(MediaFormat.MIMETYPE_VIDEO_VP9)) { in test720p() 91 testList.add(new Encode(mMime, mEncoderName, mIsAsync)); in test720p()
|
D | MultiDecoderPerfTest.java | 80 mimeDecoderPairs.add(Pair.create(mMime, mDecoderName)); in test720p() 83 if (mMime.equals(MediaFormat.MIMETYPE_VIDEO_VP9)) { in test720p() 92 testList.add(new Decode(mMime, mTestFile, mDecoderName, mIsAsync)); in test720p()
|
D | CodecTestBase.java | 390 String mMime; field in CodecDecoderTestBase 399 mMime = mime; in CodecDecoderTestBase() 403 mIsAudio = mMime.startsWith("audio/"); in CodecDecoderTestBase() 419 if (mMime.equalsIgnoreCase(format.getString(MediaFormat.KEY_MIME))) { in setUpSource() 434 fail("No track with mime: " + mMime + " found in file: " + srcFile); in setUpSource() 481 final String mMime; field in CodecEncoderTestBase 494 mMime = mime; in CodecEncoderTestBase() 504 mIsAudio = mMime.startsWith("audio/"); in CodecEncoderTestBase() 696 Log.d(LOG_TAG, "Decode Mime: " + mMime + " Decoder: " + mDecoderName + in doDecode() 750 format.setString(MediaFormat.KEY_MIME, mMime); in setUpFormat() [all …]
|
D | MultiCodecPerfTestBase.java | 66 String mMime; field in MultiCodecPerfTestBase 78 mMime = mime; in MultiCodecPerfTestBase()
|
D | CodecTranscoderTestBase.java | 38 String mMime; field in CodecTranscoderTestBase 63 mMime = mime; in CodecTranscoderTestBase() 339 encoderFormat.setString(MediaFormat.KEY_MIME, mMime); in setUpEncoderFormat() 395 Log.d(LOG_TAG, "Mime: " + mMime + " Decoder: " + mDecoderName + " Encoder: " + in doTranscode()
|
D | FrameDropTestBase.java | 57 final String mMime; field in FrameDropTestBase 139 mMime = mimeType; in FrameDropTestBase()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | ExtractorTest.java | 763 private String mMime; 861 mMime = mime; 1046 assumeTrue(shouldRunTest(mMime)); 1050 long sdkChecksum = readAllData(refExtractor, mMime, Integer.MAX_VALUE); 1051 long ndkChecksum = nativeReadAllData(mInpPrefix + mSrcFiles[0], mMime, 1058 assumeTrue("TODO(b/146925481)", !mMime.equals(MediaFormat.MIMETYPE_AUDIO_VORBIS)); 1059 assumeTrue("TODO(b/146925481)", !mMime.equals(MediaFormat.MIMETYPE_AUDIO_OPUS)); 1060 assumeTrue("TODO(b/146925481)", !mMime.equals(MediaFormat.MIMETYPE_AUDIO_MPEG)); 1061 assumeTrue("TODO(b/146925481)", !mMime.equals(MediaFormat.MIMETYPE_AUDIO_AAC)); 1067 if (!isMediaSimilar(refExtractor, testExtractor, mMime, Integer.MAX_VALUE)) { [all …]
|
D | CodecEncoderTest.java | 245 Assume.assumeTrue(isCodecLossless(mMime)); in testLosslessEncodeDecode() 288 ArrayList<String> listOfDecoders = selectCodecs(mMime, null, null, false); in testLosslessEncodeDecode() 289 assertFalse("no suitable codecs found for mime: " + mMime, in testLosslessEncodeDecode() 312 colorFormat = findByteBufferColorFormat(mCodecName, mMime); in testSimpleEncodeNative() 315 assertTrue(nativeTestSimpleEncode(mCodecName, mInpPrefix + mInputFile, mMime, mBitrates, in testSimpleEncodeNative() 420 colorFormat = findByteBufferColorFormat(mCodecName, mMime); in testFlushNative() 423 assertTrue(nativeTestFlush(mCodecName, mInpPrefix + mInputFile, mMime, mBitrates, in testFlushNative() 559 colorFormat = findByteBufferColorFormat(mCodecName, mMime); in testReconfigureNative() 562 assertTrue(nativeTestReconfigure(mCodecName, mInpPrefix + mInputFile, mMime, mBitrates, in testReconfigureNative() 624 colorFormat = findByteBufferColorFormat(mCodecName, mMime); in testOnlyEosNative() [all …]
|
D | EncoderProfileLevelTest.java | 691 int[] profiles = mProfileMap.get(mMime); in testValidateProfileLevel() 692 assertTrue("no profile entry found for mime" + mMime, profiles != null); in testValidateProfileLevel() 694 boolean cddSupportedMime = mProfileLevelCdd.get(mMime) != null; in testValidateProfileLevel() 698 Pair<int[], Integer> cddProfileLevel = mProfileLevelCdd.get(mMime); in testValidateProfileLevel() 710 mCodec.getCodecInfo().getCapabilitiesForType(mMime); in testValidateProfileLevel() 715 if (mMime.equals(MediaFormat.MIMETYPE_AUDIO_AAC)) { in testValidateProfileLevel() 718 int level = mIsAudio ? 0 : getMinLevel(mMime, mWidth, mHeight, in testValidateProfileLevel() 721 assertTrue("no min level found for mime" + mMime, level != -1); in testValidateProfileLevel() 743 + "format :" + format + " for mime: " + mMime, in testValidateProfileLevel() 744 selectCodecs(mMime, formats, null, false).isEmpty()); in testValidateProfileLevel() [all …]
|
D | CodecDecoderPauseTest.java | 81 if (!areFormatsSupported(mCodecName, mMime, formats)) { in testPause() 84 mMime); in testPause() 86 if (mSupport != CODEC_OPTIONAL && selectCodecs(mMime, formats, null, false).isEmpty()) { in testPause() 87 fail("format(s) not supported by any component for mime : " + mMime); in testPause()
|
D | MuxerTest.java | 66 private String mMime; field in MuxerTestHelper 98 if (mMime == null) { in splitMediaToMuxerParameters() 104 if (mime != null && mime.equals(mMime)) { in splitMediaToMuxerParameters() 239 mMime = mime; in MuxerTestHelper() 1078 private String mMime; field in MuxerTest.TestSimpleMux 1088 mMime = mime; in TestSimpleMux() 1157 !mMime.equals(MediaFormat.MIMETYPE_AUDIO_OPUS)); in testSimpleMux() 1159 !mMime.equals(MediaFormat.MIMETYPE_AUDIO_VORBIS)); in testSimpleMux() 1160 MuxerTestHelper mediaInfo = new MuxerTestHelper(mInpPath, mMime); in testSimpleMux() 1167 mMime, format); in testSimpleMux() [all …]
|
D | AdaptivePlaybackTest.java | 173 Assume.assumeTrue(isFeatureSupported(mCodecName, mMime, in testAdaptivePlayback() 180 if (!areFormatsSupported(mCodecName, mMime, formats)) { in testAdaptivePlayback() 183 mMime); in testAdaptivePlayback() 185 if (mSupport != CODEC_OPTIONAL && selectCodecs(mMime, formats, in testAdaptivePlayback() 188 fail("format(s) not supported by any component for mime : " + mMime); in testAdaptivePlayback()
|
D | EncoderColorAspectsTest.java | 156 if (mMime.equals(MediaFormat.MIMETYPE_VIDEO_VP8) || in testColorAspects() 157 mMime.equals(MediaFormat.MIMETYPE_VIDEO_VP9)) { in testColorAspects() 188 CodecDecoderTestBase cdtb = new CodecDecoderTestBase(null, mMime, null); in testColorAspects() 197 if (mCheckESList.contains(mMime)) { in testColorAspects()
|
D | CodecEncoderSurfaceTest.java | 54 private final String mMime; field in CodecEncoderSurfaceTest 92 mMime = mime; in CodecEncoderSurfaceTest() 427 encoderFormat.setString(MediaFormat.KEY_MIME, mMime); in setUpEncoderFormat() 473 if (mMime.equals(MediaFormat.MIMETYPE_VIDEO_VP8) || in testSimpleEncodeFromSurface() 474 mMime.equals(MediaFormat.MIMETYPE_VIDEO_VP9)) { in testSimpleEncodeFromSurface() 561 if (mMime.equals(MediaFormat.MIMETYPE_VIDEO_VP8) || in testSimpleEncodeFromSurfaceNative() 562 mMime.equals(MediaFormat.MIMETYPE_VIDEO_VP9)) { in testSimpleEncodeFromSurfaceNative() 567 assertTrue(nativeTestSimpleEncode(mCompName, decoder, mMime, mInpPrefix + mTestFile, in testSimpleEncodeFromSurfaceNative()
|
D | EncodeDecodeAccuracyTest.java | 114 mMime = mime; in EncodeDecodeAccuracyTest() 333 format.setString(MediaFormat.KEY_MIME, mMime); in setUpEncoderFormat() 419 CodecDecoderTestBase.selectCodecs(mMime, formats, null, false); in decodeElementaryStream() 453 if (mMime.equals(MediaFormat.MIMETYPE_VIDEO_VP8) || in testEncodeDecodeAccuracyRGB() 454 mMime.equals(MediaFormat.MIMETYPE_VIDEO_VP9)) { in testEncodeDecodeAccuracyRGB() 485 if (mMime.equals(MediaFormat.MIMETYPE_VIDEO_AVC) || in testEncodeDecodeAccuracyRGB() 486 mMime.equals(MediaFormat.MIMETYPE_VIDEO_HEVC)) { in testEncodeDecodeAccuracyRGB()
|
D | CodecDecoderValidationTest.java | 474 if (!areFormatsSupported(mCodecName, mMime, formats)) { in testDecodeAndValidate() 477 mMime); in testDecodeAndValidate() 479 if (mSupport != CODEC_OPTIONAL && selectCodecs(mMime, formats, null, false).isEmpty()) { in testDecodeAndValidate() 480 fail("format(s) not supported by any component for mime : " + mMime); in testDecodeAndValidate()
|
D | CodecTestBase.java | 1110 String mMime; field in CodecDecoderTestBase 1123 mMime = mime; in CodecDecoderTestBase() 1127 mIsAudio = mMime.startsWith("audio/"); in CodecDecoderTestBase() 1139 if (mMime.equalsIgnoreCase(format.getString(MediaFormat.KEY_MIME))) { in setUpSource() 1154 fail("No track with mime: " + mMime + " found in file: " + srcFile); in setUpSource() 1348 assertTrue(metrics.getString(MediaCodec.MetricsConstants.MIME_TYPE).equals(mMime)); in validateMetrics() 1389 final String mMime; field in CodecEncoderTestBase 1410 mMime = mime; in CodecEncoderTestBase() 1426 mIsAudio = mMime.startsWith("audio/"); in CodecEncoderTestBase() 1643 assertTrue(metrics.getString(MediaCodec.MetricsConstants.MIME_TYPE).equals(mMime)); in validateMetrics() [all …]
|
D | DecoderColorAspectsTest.java | 248 Assume.assumeTrue(areFormatsSupported(mCodecName, mMime, formats)); in testColorAspects() 257 if (mCanIgnoreColorBox && mCheckESList.contains(mMime)) { in testColorAspects()
|
D | CodecDecoderTest.java | 278 assertTrue(nativeTestSimpleDecode(mCodecName, null, mMime, mInpPrefix + mTestFile, in testSimpleDecode() 405 assertTrue(nativeTestFlush(mCodecName, null, mMime, mInpPrefix + mTestFile)); in testFlushNative() 627 assertTrue(nativeTestOnlyEos(mCodecName, mMime, mInpPrefix + mTestFile)); in testOnlyEosNative() 733 assertTrue(nativeTestSimpleDecodeQueueCSD(mCodecName, mMime, mInpPrefix + mTestFile)); in testSimpleDecodeQueueCSDNative() 744 Assume.assumeTrue(isFeatureSupported(mCodecName, mMime, in testDecodePartialFrame()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native_media_decoder_source.cpp | 52 std::string mMime; member in DecoderSource 76 mMime(""), in DecoderSource() 108 mMime = mime; in setDataSourceFd() 212 AMediaCodec *dec = AMediaCodec_createDecoderByType(mMime.c_str()); in prepare()
|
/cts/tests/media/jni/ |
D | NativeCodecEncoderSurfaceTest.cpp | 31 const char* mMime; member in CodecEncoderSurfaceTest 85 : mMime{mime}, mEncBitrate{bitrate}, mEncFramerate{framerate} { in CodecEncoderSurfaceTest() 204 AMediaFormat_setString(mEncFormat, AMEDIAFORMAT_KEY_MIME, mMime); in setUpEncoderFormat() 536 if (!strcmp(mMime, AMEDIA_MIMETYPE_VIDEO_VP8) || in testSimpleEncode() 537 !strcmp(mMime, AMEDIA_MIMETYPE_VIDEO_VP9)) { in testSimpleEncode()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ImageReaderDecoderTest.java | 147 mMime = mime; in MediaAssets() 152 return mMime; in getMime() 159 private final String mMime; field in ImageReaderDecoderTest.MediaAssets 223 final private String mMime; field in ImageReaderDecoderTest.Decoder 238 mMime = assets.getMime(); in Decoder()
|