/cts/tests/media/src/android/mediav2/cts/ |
D | CodecInfoTest.java | 94 public String mMediaType; field in CodecInfoTest 102 mMediaType = mediaType; in CodecInfoTest() 146 Assume.assumeTrue("Test is applicable for video codecs", mMediaType.startsWith("video/")); in testHDRDisplayCapabilities() 151 int[] Hdr10Profiles = PROFILE_HDR10_MAP.get(mMediaType); in testHDRDisplayCapabilities() 152 int[] Hdr10PlusProfiles = PROFILE_HDR10_PLUS_MAP.get(mMediaType); in testHDRDisplayCapabilities() 156 MediaCodecInfo.CodecCapabilities caps = mCodecInfo.getCapabilitiesForType(mMediaType); in testHDRDisplayCapabilities() 182 Assume.assumeTrue("Test is applicable for video codecs", mMediaType.startsWith("video/")); in testColorFormatSupport() 183 MediaCodecInfo.CodecCapabilities caps = mCodecInfo.getCapabilitiesForType(mMediaType); in testColorFormatSupport() 199 boolean canHandleHdr = CodecTestBase.doesCodecSupportHDRProfile(mCodecName, mMediaType); in testColorFormatSupport() 261 mMediaType.startsWith("video/") || mMediaType.startsWith("audio/")); in testDecoderAvailability() [all …]
|
D | ExtractorTest.java | 778 private String mMediaType; 876 mMediaType = mediaType; 1062 assumeTrue(shouldRunTest(mMediaType)); 1066 long sdkChecksum = readAllData(refExtractor, mMediaType, Integer.MAX_VALUE); 1067 long ndkChecksum = nativeReadAllData(MEDIA_DIR + mSrcFiles[0], mMediaType, 1074 assumeTrue("TODO(b/146925481)", !mMediaType.equals(MediaFormat.MIMETYPE_AUDIO_VORBIS)); 1075 assumeTrue("TODO(b/146925481)", !mMediaType.equals(MediaFormat.MIMETYPE_AUDIO_OPUS)); 1076 assumeTrue("TODO(b/146925481)", !mMediaType.equals(MediaFormat.MIMETYPE_AUDIO_MPEG)); 1077 assumeTrue("TODO(b/146925481)", !mMediaType.equals(MediaFormat.MIMETYPE_AUDIO_AAC)); 1083 if (!isMediaSimilar(refExtractor, testExtractor, mMediaType, Integer.MAX_VALUE)) { [all …]
|
D | CodecDecoderBlockModelMultiAccessUnitTest.java | 103 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, CODEC_OPTIONAL); in setUp() 121 CodecDecoderTestBase cdtb = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testSimpleDecode() 128 mCodecName, mMediaType, null, mAllTestParams); in testSimpleDecode() 142 int maxSampleSize = getMaxSampleSizeForMediaType(mTestFile, mMediaType); in testSimpleDecode() 206 if (isMediaTypeOutputUnAffectedBySeek(mMediaType)) { in testFlush() 207 CodecDecoderTestBase cdtb = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testFlush() 219 int maxSampleSize = getMaxSampleSizeForMediaType(mTestFile, mMediaType); in testFlush() 308 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, CODEC_OPTIONAL); in testReconfigure() 310 CodecDecoderTestBase cdtbA = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testReconfigure() 317 CodecDecoderTestBase cdtbB = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testReconfigure() [all …]
|
D | CodecEncoderTest.java | 289 if (mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_VP9)) { in validateCSD() 291 assertFalse("components that support mediaType: " + mMediaType in validateCSD() 301 } else if (mMediaType.equals(MediaFormat.MIMETYPE_AUDIO_AAC) in validateCSD() 302 || mMediaType.equals(MediaFormat.MIMETYPE_AUDIO_OPUS) in validateCSD() 303 || mMediaType.equals(MediaFormat.MIMETYPE_AUDIO_FLAC) in validateCSD() 304 || mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_MPEG4) in validateCSD() 305 || mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_AVC) in validateCSD() 306 || mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_HEVC)) { in validateCSD() 311 assertTrue("components that support mediaType: " + mMediaType in validateCSD() 390 int colorFormat = findByteBufferColorFormat(mCodecName, mMediaType); in testSimpleEncodeNative() [all …]
|
D | CodecDecoderMultiAccessUnitTest.java | 181 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, CODEC_OPTIONAL); in setUp() 201 CodecDecoderTestBase cdtb = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testSimpleDecode() 212 int maxSampleSize = getMaxSampleSizeForMediaType(mTestFile, mMediaType); in testSimpleDecode() 286 if (isMediaTypeOutputUnAffectedBySeek(mMediaType)) { in testFlush() 287 CodecDecoderTestBase cdtb = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testFlush() 298 int maxSampleSize = getMaxSampleSizeForMediaType(mTestFile, mMediaType); in testFlush() 399 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, CODEC_OPTIONAL); in testReconfigure() 401 CodecDecoderTestBase cdtb1 = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testReconfigure() 408 CodecDecoderTestBase cdtb2 = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testReconfigure() 414 int maxSampleSize = getMaxSampleSizeForMediaType(mTestFile, mMediaType); in testReconfigure() [all …]
|
D | MuxerTest.java | 73 private String mMediaType; field in MuxerTestHelper 105 if (mMediaType == null) { in splitMediaToMuxerParameters() 111 if (mediaType != null && mediaType.equals(mMediaType)) { in splitMediaToMuxerParameters() 247 mMediaType = mediaType; in MuxerTestHelper() 1080 private String mMediaType; field in MuxerTest.TestSimpleMux 1090 mMediaType = mediaType; in TestSimpleMux() 1158 !mMediaType.equals(MediaFormat.MIMETYPE_AUDIO_OPUS)); in testSimpleMux() 1160 !mMediaType.equals(MediaFormat.MIMETYPE_AUDIO_VORBIS)); in testSimpleMux() 1161 MuxerTestHelper mediaInfo = new MuxerTestHelper(mInpPath, mMediaType); in testSimpleMux() 1168 mSrcFile, mMediaType, format); in testSimpleMux() [all …]
|
D | AudioEncoderTest.java | 167 ArrayList<String> listOfDecoders = selectCodecs(mMediaType, fmts, null, false); in encodeAndValidate() 170 CodecDecoderTestBase cdtb = new CodecDecoderTestBase(listOfDecoders.get(0), mMediaType, in encodeAndValidate() 181 if (isMediaTypeLossless(mMediaType)) { in encodeAndValidate() 182 if (mMediaType.equals(MediaFormat.MIMETYPE_AUDIO_FLAC) in encodeAndValidate() 219 checkFormatSupport(mCodecName, mMediaType, true, formats, null, CODEC_OPTIONAL); in testEncodeAndValidate()
|
D | VideoEncoderTest.java | 258 doesCodecSupportHDRProfile(mCodecName, mMediaType)); in testEncodeAndValidate() 261 hasSupportForColorFormat(mCodecName, mMediaType, in testEncodeAndValidate() 266 checkFormatSupport(mCodecName, mMediaType, true, formats, null, mSupportRequirements); in testEncodeAndValidate() 274 if (mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_AV1) && CodecTestBase.IS_BEFORE_U) { in testEncodeAndValidate() 281 validateEncodedPSNR(res, mMediaType, mMuxedOutputFile, true, mIsLoopBack, in testEncodeAndValidate()
|
D | EncoderLevelTest.java | 168 hasSupportForColorFormat(mCodecName, mMediaType, in testVideoEncodeLevels() 181 mCodec.getCodecInfo().getCapabilitiesForType(mMediaType); in testVideoEncodeLevels() 201 EncoderProfileLevelTest.getMinLevel(cfg.mMediaType, cfg.mWidth, in testVideoEncodeLevels() 206 validateEncodedPSNR(getRawResource(cfg), mMediaType, mMuxedOutputFile, true, false, in testVideoEncodeLevels() local
|
D | EncoderColorAspectsTest.java | 329 CodecTestBase.doesCodecSupportHDRProfile(mCodecName, mMediaType)); in doFullColorAspects() 335 hasSupportForColorFormat(mCodecName, mMediaType, in doFullColorAspects() 340 hasSupportForColorFormat(mCodecName, mMediaType, in doFullColorAspects() 408 int muxerFormat = getMuxerFormatForMediaType(mMediaType); in doFullColorAspects() 418 CodecDecoderTestBase cdtb = new CodecDecoderTestBase(decoder, mMediaType, tmpPath, in doFullColorAspects() 425 if (IGNORE_COLOR_BOX_LIST.contains(mMediaType)) { in doFullColorAspects()
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | MultiDecoderPerfTest.java | 101 isSecureSupportedCodec(mDecoderName, mMediaType)); in test720p() 102 boolean hasVP9 = mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_VP9); in test720p() 120 if (isSecureSupportedCodec(mDecoderName, mMediaType)) { in test1080p() 143 if (isSecureSupportedCodec(mDecoderName, mMediaType)) { in test4k() 162 isSecureSupportedCodec(mDecoderName, mMediaType)); in test4kHbd() 169 mTestFile = testFiles.get(mMediaType); in testCodec() 170 Assume.assumeTrue("Add test vector for mediaType: " + mMediaType, mTestFile != null); in testCodec() 172 mediaTypeDecoderPairs.add(Pair.create(mMediaType, mDecoderName)); in testCodec() 173 boolean isSecure = isSecureSupportedCodec(mDecoderName, mMediaType); in testCodec() 184 String testFile1080p = m1080pTestFiles.get(mMediaType); in testCodec() [all …]
|
D | AdaptivePlaybackFrameDropTest.java | 61 PlaybackFrameDrop playbackFrameDrop = new PlaybackFrameDrop(mMediaType, mDecoderName, in testAdaptivePlaybackFrameDrop() 86 new String[]{m1080p30FpsTestFiles.get(mMediaType), in test30Fps() 87 m540p30FpsTestFiles.get(mMediaType)}; in test30Fps() 115 new String[]{m1080p60FpsTestFiles.get(mMediaType), in test60Fps() 116 m540p60FpsTestFiles.get(mMediaType)}; in test60Fps() 144 new String[]{m2160p60FpsTestFiles.get(mMediaType), in test4k() 145 m1080p60FpsTestFiles.get(mMediaType)}; in test4k()
|
D | MultiEncoderPerfTest.java | 99 boolean hasVP9 = mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_VP9); in test720p() 132 mediaTypeEncoderPairs.add(Pair.create(mMediaType, mEncoderName)); in testCodec() 137 boolean hasAV1 = mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_AV1); in testCodec() 145 testList.add(new Encode(mMediaType, mEncoderName, mIsAsync, 1080, 1920, 30, in testCodec() 148 testList.add(new Encode(mMediaType, mEncoderName, mIsAsync, height, width, in testCodec() 154 new Encode(mMediaType, mEncoderName, mIsAsync, 1080, 1920, 30, in testCodec() 160 new Encode(mMediaType, mEncoderName, mIsAsync, height, width, 30, in testCodec() 184 r5_1__H_1_3 = pce.addR5_1__H_1_3_720p(mMediaType, mMediaType, height); in testCodec()
|
D | CodecInitializationLatencyTest.java | 120 private final String mMediaType; field in CodecInitializationLatencyTest 161 mMediaType = mediaType; in CodecInitializationLatencyTest() 212 mediaRecorder.setVideoEncoder(mMediaType.equalsIgnoreCase(HEVC) ? in createMediaRecorderLoad() 303 boolean isAudio = mMediaType.startsWith("audio/"); in testInitializationLatency() 321 new EncoderInitializationLatency(mMediaType, mCodecName, isAsync); in testInitializationLatency() 327 String testFile = mTestFiles.get(mMediaType); in testInitializationLatency() 328 assumeTrue("Add test vector for media type: " + mMediaType, testFile != null); in testInitializationLatency() 331 new DecoderInitializationLatency(mMediaType, mCodecName, testFile, in testInitializationLatency() 340 new DecoderInitializationLatency(mMediaType, mCodecName, in testInitializationLatency() 355 "Codec: %s, in Ms :: ", mMediaType, mCodecName); in testInitializationLatency() [all …]
|
D | FrameDropTest.java | 59 PlaybackFrameDrop playbackFrameDrop = new PlaybackFrameDrop(mMediaType, mDecoderName, in testDecodeToSurface() 81 String[] testFiles = new String[]{m1080p30FpsTestFiles.get(mMediaType)}; in test30Fps() 107 String[] testFiles = new String[]{m1080p60FpsTestFiles.get(mMediaType)}; in test60Fps() 133 String[] testFiles = new String[]{m2160p60FpsTestFiles.get(mMediaType)}; in test4k()
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | EncoderConfigParams.java | 40 public final String mMediaType; field in EncoderConfigParams 74 if (cfg.mMediaType == null) { in EncoderConfigParams() 77 mIsAudio = cfg.mMediaType.startsWith("audio/"); in EncoderConfigParams() 78 boolean mIsVideo = cfg.mMediaType.startsWith("video/"); in EncoderConfigParams() 82 mMediaType = cfg.mMediaType; in EncoderConfigParams() 89 if (mMediaType.equals(MediaFormat.MIMETYPE_AUDIO_FLAC)) { in EncoderConfigParams() 133 if (mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in EncoderConfigParams() 135 } else if (mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_H263)) { in EncoderConfigParams() 217 mFormat.setString(MediaFormat.KEY_MIME, mMediaType); in getFormat() 221 if (mMediaType.equals(MediaFormat.MIMETYPE_AUDIO_FLAC)) { in getFormat() [all …]
|
D | HDRDecoderTestBase.java | 112 PROFILE_HDR10_PLUS_MAP.get(mMediaType)); in validateHDRInfo() 116 PROFILE_HDR10_MAP.get(mMediaType)); in validateHDRInfo() 136 Objects.requireNonNull(PROFILE_HDR10_PLUS_MAP.get(mMediaType), in validateHDRInfo() 137 "mediaType : " + mMediaType + " has no profile supporting HDR10+")[0]); in validateHDRInfo() 140 Objects.requireNonNull(PROFILE_HDR10_MAP.get(mMediaType), in validateHDRInfo() 141 "mediaType : " + mMediaType + " has no profile supporting HDR10")[0]); in validateHDRInfo() 146 areFormatsSupported(mCodecName, mMediaType, formatList)); in validateHDRInfo()
|
D | HDREncoderTestBase.java | 110 + mActiveEncCfg.mProfile, areFormatsSupported(mCodecName, mMediaType, formats)); in validateHDRInfo() 112 hasSupportForColorFormat(mCodecName, mMediaType, mActiveEncCfg.mColorFormat)); in validateHDRInfo() 156 if (mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_VP9)) { in validateHDRInfo() 178 new HDRDecoderTestBase(decoder, mMediaType, mMuxedOutputFile, mAllTestParams); in validateHDRInfo() 185 if (HDR_INFO_IN_BITSTREAM_CODECS.contains(mMediaType)) { in validateHDRInfo()
|
D | EncoderProfileLevelTestBase.java | 475 mParser = BitStreamUtils.getParserObject(mMediaType); in resetContext() 488 if ((mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_VP9) || mMediaType.equals( in dequeueOutput() 517 if (mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_AVC)) { in validateProfile() 543 if (mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_H263) && min == H263Level45) { in validateMinLevel() 547 } else if (mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_H263) && got == H263Level45) { in validateMinLevel() 550 } else if (mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_MPEG4) in validateMinLevel() 585 || (!mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_VP9) in validateFormatForProfileAndLevelWRTCfg() 586 && !mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_H263)))) { in validateFormatForProfileAndLevelWRTCfg() 611 if (mMuxOutput && !mMediaType.equals(MediaFormat.MIMETYPE_VIDEO_H263)) { in validateProfileAndLevel()
|
D | CodecDecoderTestBase.java | 119 if (mMediaType.equalsIgnoreCase(format.getString(MediaFormat.KEY_MIME))) { in setUpSource() 122 if (mMediaType.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_G711_ALAW) in setUpSource() 123 || mMediaType.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_G711_MLAW)) { in setUpSource() 125 getMaxSampleSizeForMediaType(srcFile, mMediaType)); in setUpSource() 131 boolean selectHBD = doesAnyFormatHaveHDRProfile(mMediaType, formatList); in setUpSource() 136 getColorFormat(mCodecName, mMediaType, mSurface != null, selectHBD)); in setUpSource() 157 fail("No track with mediaType: " + mMediaType + " found in file: " + srcFile + "\n" in setUpSource() 415 + mTestEnv, metrics.getString(MediaCodec.MetricsConstants.MIME_TYPE), mMediaType); in validateMetrics()
|
/cts/tests/video/src/android/video/cts/ |
D | VideoCodecClaimsPerformanceTestBase.java | 41 protected final String mMediaType; field in VideoCodecClaimsPerformanceTestBase 52 mMediaType = mediaType; in VideoCodecClaimsPerformanceTestBase() 83 selectCodecs(mMediaType, null, null, mIsEncoder, mComponentClass); in deviceClaimsPerformanceSupported() 86 "device doesn't claim to support any codec for given type : %s_%s", mMediaType, in deviceClaimsPerformanceSupported() 95 MediaCodecInfo.CodecCapabilities cap = codecInfo.getCapabilitiesForType(mMediaType); in deviceClaimsPerformanceSupported()
|
/cts/tests/videocodec/src/android/videocodec/cts/ |
D | VideoEncoderInput.java | 36 final String mMediaType; field in VideoEncoderInput.CompressedResource 40 mMediaType = mediaType; in CompressedResource() 51 return mMediaType + mResFile; in uniqueLabel()
|
D | VideoEncoderQualityRegressionBFrameTest.java | 99 testInstances[i] = new VideoEncoderValidationTestBase(null, mMediaType, null, in qualityRegressionOverBFrames() 105 cfgs[j] = getVideoEncoderCfgParams(mMediaType, WIDTH, HEIGHT, BIT_RATES[j], in qualityRegressionOverBFrames() 110 areFormatsSupported(mCodecName, mMediaType, fmts)); in qualityRegressionOverBFrames()
|
D | VideoEncoderQualityRegressionCodecTest.java | 94 String[] mediaTypes = new String[]{MediaFormat.MIMETYPE_VIDEO_AVC, mMediaType}; in testQualityRegressionWrtAvc() 111 if (mediaTypes[i].equals(mMediaType)) { in testQualityRegressionWrtAvc() 113 areFormatsSupported(mCodecName, mMediaType, fmts)); in testQualityRegressionWrtAvc()
|
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/ |
D | VideoEncoderCapabilitiesTest.java | 39 final private String mMediaType; field in VideoEncoderCapabilitiesTest 85 mMediaType = mediaType; in VideoEncoderCapabilitiesTest() 97 MediaFormat format = MediaFormat.createVideoFormat(mMediaType, mWidth, mHeight); in testEncoderAvailability()
|