Home
last modified time | relevance | path

Searched refs:mCodecName (Results 1 – 25 of 59) sorted by relevance

123

/cts/tests/media/src/android/mediav2/cts/
DCodecDecoderBlockModelMultiAccessUnitTest.java103 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, CODEC_OPTIONAL); in setUp()
121 CodecDecoderTestBase cdtb = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testSimpleDecode()
123 cdtb.decodeToMemory(mTestFile, mCodecName, 0, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testSimpleDecode()
128 mCodecName, mMediaType, null, mAllTestParams); in testSimpleDecode()
130 cdbmtb.decodeToMemory(mTestFile, mCodecName, test, 0, in testSimpleDecode()
143 mCodec = MediaCodec.createByCodecName(mCodecName); in testSimpleDecode()
207 CodecDecoderTestBase cdtb = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testFlush()
209 cdtb.decodeToMemory(mTestFile, mCodecName, pts, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testFlush()
223 mCodec = MediaCodec.createByCodecName(mCodecName); in testFlush()
308 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, CODEC_OPTIONAL); in testReconfigure()
[all …]
DCodecDecoderTest.java345 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, mSupportRequirements); in setUp()
380 mCodec = MediaCodec.createByCodecName(mCodecName); in testSimpleDecode()
381 assertEquals("codec name act/got: " + mCodec.getName() + '/' + mCodecName, in testSimpleDecode()
382 mCodecName, mCodec.getName()); in testSimpleDecode()
385 validateMetrics(mCodecName); in testSimpleDecode()
397 Log.d("Input format is same as default for format for %s", mCodecName); in testSimpleDecode()
405 validateMetrics(mCodecName, format); in testSimpleDecode()
424 mCodecName, mMediaType, null, mAllTestParams); in testSimpleDecode()
425 cdbmtb.decodeToMemory(mTestFile, mCodecName, test, 0, in testSimpleDecode()
433 boolean isPass = nativeTestSimpleDecode(mCodecName, null, mMediaType, mTestFile, in testSimpleDecode()
[all …]
DCodecInfoTest.java95 public String mCodecName; field in CodecInfoTest
103 mCodecName = codecName; in CodecInfoTest()
149 Assume.assumeTrue("Test is restricted to vendor codecs", isVendorCodec(mCodecName)); in testHDRDisplayCapabilities()
199 boolean canHandleHdr = CodecTestBase.doesCodecSupportHDRProfile(mCodecName, mMediaType); in testColorFormatSupport()
215 assertTrue(mCodecName + " supports feature HdrEditing/HlgEditing, but does not" in testColorFormatSupport()
217 assertTrue(mCodecName + " supports feature HdrEditing/HlgEditing, but does not" in testColorFormatSupport()
304 assertTrue(mCodecName + " does not support FEATURE_DynamicColorAspects.", in testDynamicColorAspectSupport()
305 isFeatureSupported(mCodecName, mMediaType, FEATURE_DynamicColorAspects)); in testDynamicColorAspectSupport()
322 if (!isFeatureSupported(mCodecName, mMediaType, "can-swap-width-height")) { in testResolutionSupport()
327 assertEquals(mCodecName + " does not support identical size ranges. Width range " in testResolutionSupport()
[all …]
DCodecDecoderMultiAccessUnitTest.java181 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, CODEC_OPTIONAL); in setUp()
201 CodecDecoderTestBase cdtb = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testSimpleDecode()
203 cdtb.decodeToMemory(mTestFile, mCodecName, 0, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testSimpleDecode()
213 mCodec = MediaCodec.createByCodecName(mCodecName); in testSimpleDecode()
287 CodecDecoderTestBase cdtb = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testFlush()
289 cdtb.decodeToMemory(mTestFile, mCodecName, pts, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testFlush()
302 mCodec = MediaCodec.createByCodecName(mCodecName); in testFlush()
399 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, CODEC_OPTIONAL); in testReconfigure()
401 CodecDecoderTestBase cdtb1 = new CodecDecoderTestBase(mCodecName, mMediaType, null, in testReconfigure()
403 cdtb1.decodeToMemory(mTestFile, mCodecName, 0, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testReconfigure()
[all …]
DCodecEncoderTest.java338 mCodec = MediaCodec.createByCodecName(mCodecName); in testSimpleEncode()
339 assertEquals("codec name act/got: " + mCodec.getName() + '/' + mCodecName, in testSimpleEncode()
340 mCodec.getName(), mCodecName); in testSimpleEncode()
352 validateMetrics(mCodecName); in testSimpleEncode()
358 validateMetrics(mCodecName, format); in testSimpleEncode()
390 int colorFormat = findByteBufferColorFormat(mCodecName, mMediaType); in testSimpleEncodeNative()
395 boolean isPass = nativeTestSimpleEncode(mCodecName, mActiveRawRes.mFileName, mMediaType, in testSimpleEncodeNative()
441 encodeToMemory(mCodecName, mEncCfgParams[1], mActiveRawRes, Integer.MAX_VALUE, in testReconfigure()
446 encodeToMemory(mCodecName, mEncCfgParams[0], mActiveRawRes, Integer.MAX_VALUE, in testReconfigure()
451 mCodec = MediaCodec.createByCodecName(mCodecName); in testReconfigure()
[all …]
DCodecDecoderDetachedSurfaceTest.java154 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, in setUp()
300 mCodec = MediaCodec.createByCodecName(mCodecName); in testSetOutputSurface()
354 Assume.assumeTrue("codec: " + mCodecName + " does not support FEATURE_DetachedSurface", in testFeatureDetachedSurface()
355 isFeatureSupported(mCodecName, mMediaType, in testFeatureDetachedSurface()
361 mCodec = MediaCodec.createByCodecName(mCodecName); in testFeatureDetachedSurface()
420 boolean hasSupport = isFeatureSupported(mCodecName, mMediaType, in testDetachOutputSurface()
426 mCodec = MediaCodec.createByCodecName(mCodecName); in testDetachOutputSurface()
437 fail(mCodecName + " advertises support for feature: FEATURE_DetachedSurface but" in testDetachOutputSurface()
458 fail(mCodecName + " advertises support for feature: FEATURE_DetachedSurface but" in testDetachOutputSurface()
485 fail(mCodecName + " does not advertise support for feature:" in testDetachOutputSurface()
[all …]
DCodecDecoderSurfaceTest.java139 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, in setUp()
236 decodeAndSavePts(mTestFile, mCodecName, pts, mode, Integer.MAX_VALUE); in testSimpleDecodeToSurface()
240 mCodec = MediaCodec.createByCodecName(mCodecName); in testSimpleDecodeToSurface()
285 mCodec = MediaCodec.createByCodecName(mCodecName); in testDetachAndReattachSurface()
400 decodeAndSavePts(mTestFile, mCodecName, pts, mode, Integer.MAX_VALUE); in testFlush()
405 mCodec = MediaCodec.createByCodecName(mCodecName); in testFlush()
506 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, mSupportRequirements); in testReconfigure()
511 decodeAndSavePts(mTestFile, mCodecName, pts, mode, Integer.MAX_VALUE); in testReconfigure()
513 decodeAndSavePts(mReconfigFile, mCodecName, pts, mode, Integer.MAX_VALUE); in testReconfigure()
517 mCodec = MediaCodec.createByCodecName(mCodecName); in testReconfigure()
[all …]
DAdaptivePlaybackTest.java245 if (isFormatSupported(mCodecName, mMediaType, formats.get(i))) { in getSupportedFiles()
306 boolean hasSupport = isFeatureSupported(mCodecName, mMediaType, in testAdaptivePlayback()
309 Assert.assertTrue("codec: " + mCodecName + " is required to support " in testAdaptivePlayback()
312 Assume.assumeTrue("codec: " + mCodecName + " does not support FEATURE_AdaptivePlayback", in testAdaptivePlayback()
322 checkFormatSupport(mCodecName, mMediaType, false, formats, null, mSupportRequirements); in testAdaptivePlayback()
328 + mCodecName, !resFiles.isEmpty()); in testAdaptivePlayback()
348 mCodec = MediaCodec.createByCodecName(mCodecName); in testAdaptivePlayback()
DEncoderColorAspectsTest.java328 Assume.assumeTrue(mCodecName + " doesn't support HDR encoding", in doFullColorAspects()
329 CodecTestBase.doesCodecSupportHDRProfile(mCodecName, mMediaType)); in doFullColorAspects()
334 Assume.assumeTrue(mCodecName + " doesn't support RGBA1010102", in doFullColorAspects()
335 hasSupportForColorFormat(mCodecName, mMediaType, in doFullColorAspects()
338 Assume.assumeTrue(mCodecName + " doesn't support " + colorFormatToString( in doFullColorAspects()
340 hasSupportForColorFormat(mCodecName, mMediaType, in doFullColorAspects()
369 mCodec = MediaCodec.createByCodecName(mCodecName); in doFullColorAspects()
DDecodeGlAccuracyTest.java535 if (mUseHighBitDepth && !isVendorCodec(mCodecName)) { in testDecodeGlAccuracyRGB()
536 if (hasSupportForColorFormat(mCodecName, mMediaType, COLOR_FormatYUVP010)) { in testDecodeGlAccuracyRGB()
539 assumeTrue("Skipping " + mCodecName + " for color range " + mRange in testDecodeGlAccuracyRGB()
546 assumeTrue("Skipping " + mCodecName + " for high bit depth YUV sampling tests " in testDecodeGlAccuracyRGB()
560 assumeTrue("Skipping " + mCodecName + " for color range " + mRange in testDecodeGlAccuracyRGB()
562 isVendorCodec(mCodecName)); in testDecodeGlAccuracyRGB()
582 checkFormatSupport(mCodecName, mMediaType, false, formatList, null, in testDecodeGlAccuracyRGB()
601 mCodec = MediaCodec.createByCodecName(mCodecName); in testDecodeGlAccuracyRGB()
DVideoEncoderTest.java258 doesCodecSupportHDRProfile(mCodecName, mMediaType)); in testEncodeAndValidate()
259 Assume.assumeTrue(mCodecName + " doesn't support " + colorFormatToString( in testEncodeAndValidate()
261 hasSupportForColorFormat(mCodecName, mMediaType, in testEncodeAndValidate()
266 checkFormatSupport(mCodecName, mMediaType, true, formats, null, mSupportRequirements); in testEncodeAndValidate()
277 encodeToMemory(mCodecName, mEncCfgParams[0], res, mFrameLimit, false, muxOutput); in testEncodeAndValidate()
DDecoderPushBlankBufferOnStopTest.java125 assertTrue("Codec: " + mCodecName + " doesn't support format: " + format, in testSimpleDecodeToSurface()
126 areFormatsSupported(mCodecName, mMediaType, formatList)); in testSimpleDecodeToSurface()
131 mCodec = MediaCodec.createByCodecName(mCodecName); in testSimpleDecodeToSurface()
DCodecEncoderBlockModelMultiAccessUnitTest.java142 checkFormatSupport(mCodecName, mMediaType, true, formatList, null, CODEC_OPTIONAL); in setUp()
306 CodecEncoderTestBase referenceBase = new CodecEncoderTestBase(mCodecName, mMediaType, in testSimpleEncode()
308 referenceBase.encodeToMemory(mCodecName, mActiveEncCfg, mActiveRawRes, Integer.MAX_VALUE, in testSimpleEncode()
312 CodecEncoderBlockModelTestBase cebmtb = new CodecEncoderBlockModelTestBase(mCodecName, in testSimpleEncode()
315 cebmtb.encodeToMemory(mCodecName, mActiveEncCfg, mActiveRawRes, test, Integer.MAX_VALUE, in testSimpleEncode()
327 mCodec = MediaCodec.createByCodecName(mCodecName); in testSimpleEncode()
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DCodecDecoderMultiAccessUnitDrmTest.java131 assumeTrue(mCodecName + " does not support FEATURE_MultipleFrames", in testSimpleDecode()
132 isFeatureSupported(mCodecName, mMediaType, FEATURE_MultipleFrames)); in testSimpleDecode()
135 new CodecDecoderDrmTestBase(mCodecName, mMediaType, null, mAllTestParams); in testSimpleDecode()
137 cddrmtb.decodeToMemory(mTestFile, mCodecName, 0, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testSimpleDecode()
148 mCodec = MediaCodec.createByCodecName(mCodecName); in testSimpleDecode()
DCodecDecoderBlockModelMultiAccessUnitDrmTest.java134 assumeTrue(mCodecName + " does not support FEATURE_MultipleFrames", in testSimpleDecode()
135 isFeatureSupported(mCodecName, mMediaType, FEATURE_MultipleFrames)); in testSimpleDecode()
138 new CodecDecoderBlockModelDrmTestBase(mCodecName, mMediaType, null, mAllTestParams); in testSimpleDecode()
141 codecDecoderBlockModelDrmtb.decodeToMemory(mTestFile, mCodecName, 0, in testSimpleDecode()
152 mCodec = MediaCodec.createByCodecName(mCodecName); in testSimpleDecode()
DCodecDecoderDrmTest.java120 new CodecDecoderDrmTestBase(mCodecName, mMediaType, null, mAllTestParams); in testSimpleDecode()
122 cddrmtb.decodeToMemory(mTestFile, mCodecName, 0, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testSimpleDecode()
129 mCodecName, mMediaType, null, mAllTestParams); in testSimpleDecode()
133 cdbmdrmtb.decodeToMemory(mTestFile, mCodecName, test, 0, in testSimpleDecode()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DResourceManagerTestActivityBase.java52 private String mCodecName = "none"; field in ResourceManagerTestActivityBase
130 if (mCodecName.equals("none")) { in getCodecInfo()
138 if (info.getName().equals(mCodecName)) { in getCodecInfo()
192 mCodecName = extras.getString("name", mCodecName); in allocateCodecs()
252 Log.d(TAG, "allocateCodecs(" + mCodecName + ":" + mMime + ":" + mWidth in allocateCodecs()
265 mCodecName = info.getName(); in allocateCodecs()
276 Log.d(TAG, "Create codec " + mCodecName + " #" + i); in allocateCodecs()
277 codec = MediaCodec.createByCodecName(mCodecName); in allocateCodecs()
/cts/tests/media/common/src/android/mediav2/common/cts/
DHDREncoderTestBase.java109 Assume.assumeTrue(mCodecName + " does not support HDR10/HDR10+ profile " in validateHDRInfo()
110 + mActiveEncCfg.mProfile, areFormatsSupported(mCodecName, mMediaType, formats)); in validateHDRInfo()
111 Assume.assumeTrue(mCodecName + " does not support color format COLOR_FormatYUVP010", in validateHDRInfo()
112 hasSupportForColorFormat(mCodecName, mMediaType, mActiveEncCfg.mColorFormat)); in validateHDRInfo()
133 mCodec = MediaCodec.createByCodecName(mCodecName); in validateHDRInfo()
/cts/tests/videocodec/src/android/videocodec/cts/
DVideoEncoderMaxBFrameTest.java113 Assume.assumeTrue("Encoder: " + mCodecName + " doesn't support format: " + format, in testMaxBFrameSupport()
114 areFormatsSupported(mCodecName, mMediaType, formats)); in testMaxBFrameSupport()
115 encodeToMemory(mCodecName, mEncCfgParams[0], FRAME_LIMIT, false, false); in testMaxBFrameSupport()
DVideoEncoderQualityRegressionBFrameTest.java109 Assume.assumeTrue("Encoder: " + mCodecName + " doesn't support formats.", in qualityRegressionOverBFrames()
110 areFormatsSupported(mCodecName, mMediaType, fmts)); in qualityRegressionOverBFrames()
111 encoderNames[i] = mCodecName; in qualityRegressionOverBFrames()
DVideoEncoderPsnrTest.java119 Assume.assumeTrue("Encoder: " + mCodecName + " doesn't support format: " + format, in testPsnr()
120 areFormatsSupported(mCodecName, mMediaType, formats)); in testPsnr()
124 encodeToMemory(mCodecName, mEncCfgParams[0], res, FRAME_LIMIT, false, true); in testPsnr()
DVideoEncoderTargetBitrateTest.java157 Assume.assumeTrue("Encoder: " + mCodecName + " doesn't support format: " + format, in testEncoderBitRateModeSupport()
158 areFormatsSupported(mCodecName, mMediaType, formats)); in testEncoderBitRateModeSupport()
159 encodeToMemory(mCodecName, mEncCfgParams[0], FRAME_LIMIT, true, false); in testEncoderBitRateModeSupport()
DVideoEncoderQualityRegressionCodecTest.java112 Assume.assumeTrue("Encoder: " + mCodecName + " doesn't support formats.", in testQualityRegressionWrtAvc()
113 areFormatsSupported(mCodecName, mMediaType, fmts)); in testQualityRegressionWrtAvc()
114 encoderNames[i] = mCodecName; in testQualityRegressionWrtAvc()
DVideoEncoderIntraFrameIntervalTest.java128 Assume.assumeTrue("Encoder: " + mCodecName + " doesn't support format: " + format, in testEncoderSyncFrameSupport()
129 areFormatsSupported(mCodecName, mMediaType, formats)); in testEncoderSyncFrameSupport()
130 encodeToMemory(mCodecName, mEncCfgParams[0], FRAME_LIMIT, false, false); in testEncoderSyncFrameSupport()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DVideoCodecTest.java99 public String mCodecName; field in VideoCodecTest
636 internalTestBasic(mCodecName, mCodecMimeType, mBitRateMode); in testBasic()
646 internalTestAsyncEncoding(mCodecName, mCodecMimeType, mBitRateMode); in testAsyncEncode()
652 internalTestSyncFrame(mCodecName, mCodecMimeType, mBitRateMode, false); in testSyncFrame()
658 internalTestSyncFrame(mCodecName, mCodecMimeType, mBitRateMode, true); in testSyncFrameNdk()
664 internalTestDynamicBitrateChange(mCodecName, mCodecMimeType, mBitRateMode, false); in testDynamicBitrateChange()
670 internalTestDynamicBitrateChange(mCodecName, mCodecMimeType, mBitRateMode, true); in testDynamicBitrateChangeNdk()
680 internalTestEncoderQuality(mCodecName, mCodecMimeType, mBitRateMode); in testEncoderQuality()
692 internalTestParallelEncodingAndDecoding(mCodecName, mCodecMimeType); in testParallelEncodingAndDecoding()

123