/cts/tests/videocodec/src/android/videocodec/cts/ |
D | VideoEncoderIntraFrameIntervalTest.java | 125 MediaFormat format = mEncCfgParams[0].getFormat(); in testEncoderSyncFrameSupport() 130 encodeToMemory(mCodecName, mEncCfgParams[0], FRAME_LIMIT, false, false); in testEncoderSyncFrameSupport() 146 mEncCfgParams[0].mKeyFrameInterval == 0 ? 1 : in testEncoderSyncFrameSupport() 147 (int) (mEncCfgParams[0].mFrameRate * mEncCfgParams[0].mKeyFrameInterval); in testEncoderSyncFrameSupport() 148 int tolerance = mEncCfgParams[0].mKeyFrameInterval == 0 ? 0 : mEncCfgParams[0].mMaxBFrames; in testEncoderSyncFrameSupport() 153 if (mEncCfgParams[0].mMaxBFrames == 0) { in testEncoderSyncFrameSupport()
|
D | VideoEncoderMaxBFrameTest.java | 110 MediaFormat format = mEncCfgParams[0].getFormat(); in testMaxBFrameSupport() 115 encodeToMemory(mCodecName, mEncCfgParams[0], FRAME_LIMIT, false, false); in testMaxBFrameSupport() 133 + " BFrames %d. \n", mEncCfgParams[0].mMaxBFrames, maxBFramesFound); in testMaxBFrameSupport() 134 assertTrue(msg + mTestConfig + mTestEnv, maxBFramesFound <= mEncCfgParams[0].mMaxBFrames); in testMaxBFrameSupport() 135 if (mEncCfgParams[0].mMaxBFrames > 0) { in testMaxBFrameSupport()
|
D | VideoEncoderMultiResTest.java | 160 MediaFormat format = mEncCfgParams[0].getFormat(); in testMultiRes() 165 RawResource res = getRawResource(mEncCfgParams[0]); in testMultiRes() 166 assertNotNull("no raw resource found for testing config : " + mEncCfgParams[0] + mTestConfig in testMultiRes() 168 encodeToMemory(mCodecName, mEncCfgParams[0], res, FRAME_LIMIT, false, true); in testMultiRes() 170 + mTestEnv, mEncCfgParams[0].mWidth, getWidth(getOutputFormat())); in testMultiRes() 172 + mTestEnv, mEncCfgParams[0].mHeight, getHeight(getOutputFormat())); in testMultiRes()
|
D | VideoEncoderPsnrTest.java | 116 MediaFormat format = mEncCfgParams[0].getFormat(); in testPsnr() 121 RawResource res = getRawResource(mEncCfgParams[0]); in testPsnr() 122 assertNotNull("no raw resource found for testing config : " + mEncCfgParams[0] + mTestConfig in testPsnr() 124 encodeToMemory(mCodecName, mEncCfgParams[0], res, FRAME_LIMIT, false, true); in testPsnr()
|
D | VideoEncoderAdaptiveBitRateTest.java | 158 if (mEncCfgParams[0].mBitRateMode == BITRATE_MODE_CBR) { in passFailCriteria() 176 EncoderConfigParams cfg = mEncCfgParams[0].getBuilder().setBitRate(maxBitRate).build(); in testAdaptiveBitRate() 183 int limit = mSegmentBitRates.length * SEGMENT_DURATION * mEncCfgParams[0].mFrameRate; in testAdaptiveBitRate() 184 encodeToMemory(mCodecName, mEncCfgParams[0], limit, true, false); in testAdaptiveBitRate()
|
D | VideoEncoderMinMaxTest.java | 273 mEncCfgParams[0].mFrameRate <= 240); in testMinMaxSupport() 276 MediaFormat format = mEncCfgParams[0].getFormat(); in testMinMaxSupport() 279 mEncCfgParams[0].mBitRateMode), in testMinMaxSupport() 281 .isBitrateModeSupported(mEncCfgParams[0].mBitRateMode)); in testMinMaxSupport() 286 RawResource res = getRawResource(mEncCfgParams[0]); in testMinMaxSupport() 287 assertNotNull("no raw resource found for testing config : " + mEncCfgParams[0] + mTestConfig in testMinMaxSupport() 289 encodeToMemory(mCodecName, mEncCfgParams[0], res, FRAME_LIMIT, false, true); in testMinMaxSupport()
|
D | VideoEncoderTargetBitrateTest.java | 154 MediaFormat format = mEncCfgParams[0].getFormat(); in testEncoderBitRateModeSupport() 159 encodeToMemory(mCodecName, mEncCfgParams[0], FRAME_LIMIT, true, false); in testEncoderBitRateModeSupport()
|
D | VideoEncoderFrameRateTest.java | 122 EncoderConfigParams cfg = mEncCfgParams[0].getBuilder() in testEncoderFrameRateSupport()
|
D | VideoEncoderValidationTestBase.java | 158 assertNotNull("no raw resource found for testing config : " + mEncCfgParams[0] in encodeToMemory()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | EncodeDecodeAccuracyTest.java | 106 private final EncoderConfigParams mEncCfgParams; field in EncodeDecodeAccuracyTest 155 mEncCfgParams = encCfgParams; in EncodeDecodeAccuracyTest() 160 int barWidth = (mEncCfgParams.mWidth + mColorBars.length - 1) / mColorBars.length; in EncodeDecodeAccuracyTest() 175 if (mEncCfgParams.mInputBitDepth == 10) { in setUp() 311 new InputSurface(mInpSurface, false, mEncCfgParams.mInputBitDepth == 10); in configureCodec() 411 return frameIndex * 1000000L / mEncCfgParams.mFrameRate; in computePresentationTime() 415 GLES20.glViewport(0, 0, mEncCfgParams.mWidth, mEncCfgParams.mHeight); in generateSurfaceFrame() 419 int endX = Math.min(startX + mColorBarWidth, mEncCfgParams.mWidth); in generateSurfaceFrame() 420 GLES20.glScissor(startX, 0, endX, mEncCfgParams.mHeight); in generateSurfaceFrame() 442 if (mEncCfgParams.mInputBitDepth == 10) { in checkSurfaceFrame() [all …]
|
D | EncoderLevelTest.java | 165 if (mEncCfgParams[0].mInputBitDepth != 8) { in testVideoEncodeLevels() 167 mEncCfgParams[0].mColorFormat, mEncCfgParams[0].mInputBitDepth), in testVideoEncodeLevels() 169 mEncCfgParams[0].mColorFormat)); in testVideoEncodeLevels() 172 mActiveRawRes = getRawResource(mEncCfgParams[0]); in testVideoEncodeLevels() 174 + mEncCfgParams[0] + mTestConfig + mTestEnv, mActiveRawRes); in testVideoEncodeLevels() 182 for (EncoderConfigParams cfg : mEncCfgParams) { in testVideoEncodeLevels()
|
D | VideoEncoderTest.java | 256 if (mEncCfgParams[0].mInputBitDepth > 8) { in testEncodeAndValidate() 260 mEncCfgParams[0].mColorFormat, mEncCfgParams[0].mInputBitDepth), in testEncodeAndValidate() 262 mEncCfgParams[0].mColorFormat)); in testEncodeAndValidate() 265 formats.add(mEncCfgParams[0].getFormat()); in testEncodeAndValidate() 269 RawResource res = EncoderInput.getRawResource(mEncCfgParams[0]); in testEncodeAndValidate() 277 encodeToMemory(mCodecName, mEncCfgParams[0], res, mFrameLimit, false, muxOutput); in testEncodeAndValidate()
|
D | EncoderProfileLevelTest.java | 612 int minLevel = getMinLevel(mMediaType, mEncCfgParams[0].mWidth, mEncCfgParams[0].mHeight, in testValidateProfileLevel() 613 mEncCfgParams[0].mFrameRate, mEncCfgParams[0].mBitRate, mEncCfgParams[0].mProfile); in testValidateProfileLevel() 620 && (mEncCfgParams[0].mWidth < mEncCfgParams[0].mHeight)) { in testValidateProfileLevel() 625 + "table " + mTestConfig, mEncCfgParams[0].mLevel, minLevel); in testValidateProfileLevel() 628 if (mIsVideo && mEncCfgParams[0].mInputBitDepth != 8) { in testValidateProfileLevel() 630 mEncCfgParams[0].mColorFormat, mEncCfgParams[0].mInputBitDepth), in testValidateProfileLevel() 632 mEncCfgParams[0].mColorFormat)); in testValidateProfileLevel() 637 mActiveRawRes = EncoderInput.getRawResource(mEncCfgParams[0]); in testValidateProfileLevel() 639 + mEncCfgParams[0] + mTestConfig + mTestEnv, mActiveRawRes); in testValidateProfileLevel() 648 for (EncoderConfigParams cfg : mEncCfgParams) { in testValidateProfileLevel()
|
D | CodecEncoderTest.java | 281 mActiveEncCfg = mEncCfgParams[0]; in setUp() 440 if (mEncCfgParams.length > 1) { in testReconfigure() 441 encodeToMemory(mCodecName, mEncCfgParams[1], mActiveRawRes, Integer.MAX_VALUE, in testReconfigure() 446 encodeToMemory(mCodecName, mEncCfgParams[0], mActiveRawRes, Integer.MAX_VALUE, in testReconfigure() 450 MediaFormat format = mEncCfgParams[0].getFormat(); in testReconfigure() 499 if (mEncCfgParams.length > 1) { in testReconfigure() 501 reConfigureCodec(mEncCfgParams[1].getFormat(), isAsync, false, true); in testReconfigure() 532 MediaFormat format = mEncCfgParams[0].getFormat(); in testReconfigureNative() 533 MediaFormat reconfigFormat = mEncCfgParams.length > 1 ? mEncCfgParams[1].getFormat() : null; in testReconfigureNative() 538 format = mEncCfgParams[0].getBuilder().setColorFormat(colorFormat).build().getFormat(); in testReconfigureNative() [all …]
|
D | CodecEncoderSurfaceTest.java | 321 tmpPath = getTempFilePath(mEncCfgParams.mInputBitDepth > 8 ? "10bit" : ""); in testSimpleEncodeFromSurface() 337 if (mEncCfgParams.mInputBitDepth > 8 && !VNDK_IS_AT_LEAST_T) return; in testSimpleEncodeFromSurface() 362 tmpPath = getTempFilePath(mEncCfgParams.mInputBitDepth > 8 ? "10bit" : ""); in testSimpleEncodeFromSurfaceNative() 372 if (mEncCfgParams.mInputBitDepth > 8 && !VNDK_IS_AT_LEAST_T) return; in testSimpleEncodeFromSurfaceNative()
|
D | EncoderHDRInfoTest.java | 137 mActiveEncCfg = mEncCfgParams[0]; in testHDRInfo()
|
D | AudioEncoderTest.java | 216 mActiveEncCfg = mEncCfgParams[0]; in testEncodeAndValidate()
|
D | CodecEncoderMultiAccessUnitTest.java | 135 mActiveEncCfg = mEncCfgParams[0]; in setUp()
|
D | CodecEncoderBlockModelMultiAccessUnitTest.java | 138 mActiveEncCfg = mEncCfgParams[0]; in setUp()
|
D | EncoderColorAspectsTest.java | 324 mActiveEncCfg = mEncCfgParams[0]; in doFullColorAspects()
|
/cts/hostsidetests/videoencodingminimum/app/src/android/videoencodingmin/app/ |
D | VideoTranscoderTest.java | 87 private EncoderConfigParams[] mEncCfgParams; field in VideoTranscoderTest 112 mEncoderFormat = mEncCfgParams.getFormat(); in setUpCodecEncoderSurfaceTestBase() 153 mEncCfgParams = new EncoderConfigParams[codecConfigs.length()]; in parseEncoderConfigurationFile() 157 mEncCfgParams[i] = new EncoderConfigParams.Builder(mEncMediaType) in parseEncoderConfigurationFile() 173 for (EncoderConfigParams param : mEncCfgParams) { in parseEncoderConfigurationFile() 198 for (int i = 0; i < mEncCfgParams.length; i++) { in testTranscode() 200 mDecoderName, mTestFileMediaType, mTestFile, mEncCfgParams[i], in testTranscode()
|
/cts/hostsidetests/mediapc/videoencodingquality/app/src/android/videoencoding/app/ |
D | VideoTranscoderTest.java | 87 private EncoderConfigParams[] mEncCfgParams; field in VideoTranscoderTest 112 mEncoderFormat = mEncCfgParams.getFormat(); in setUpCodecEncoderSurfaceTestBase() 153 mEncCfgParams = new EncoderConfigParams[codecConfigs.length()]; in parseEncoderConfigurationFile() 157 mEncCfgParams[i] = new EncoderConfigParams.Builder(mEncMediaType) in parseEncoderConfigurationFile() 173 for (EncoderConfigParams param : mEncCfgParams) { in parseEncoderConfigurationFile() 198 for (int i = 0; i < mEncCfgParams.length; i++) { in testTranscode() 200 mDecoderName, mTestFileMediaType, mTestFile, mEncCfgParams[i], in testTranscode()
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | CodecEncoderSurfaceTestBase.java | 67 protected final EncoderConfigParams mEncCfgParams; field in CodecEncoderSurfaceTestBase 111 mEncCfgParams = encCfgParams; in CodecEncoderSurfaceTestBase() 116 mLatency = mEncCfgParams.mMaxBFrames; in CodecEncoderSurfaceTestBase() 167 EncoderConfigParams.Builder foreman = mEncCfgParams.getBuilder() in setUpCodecEncoderSurfaceTestBase() 522 if (!mOutputBuff.isOutPtsListIdenticalToInpPtsList((mEncCfgParams.mMaxBFrames != 0))) { in validateTestState() 526 if (mEncCfgParams.mMaxBFrames == 0 && !mOutputBuff.isPtsStrictlyIncreasing( in validateTestState()
|
D | CodecEncoderTestBase.java | 61 protected final EncoderConfigParams[] mEncCfgParams; field in CodecEncoderTestBase 83 mEncCfgParams = encCfgParams; in CodecEncoderTestBase()
|