Home
last modified time | relevance | path

Searched refs:mActiveEncCfg (Results 1 – 17 of 17) sorted by relevance

/cts/tests/media/src/android/mediav2/cts/
DEncoderColorAspectsTest.java210 return frameIndex * 1000000L / mActiveEncCfg.mFrameRate; in computePresentationTime()
214 GLES20.glViewport(0, 0, mActiveEncCfg.mWidth, mActiveEncCfg.mHeight); in generateSurfaceFrame()
240 if (mActiveEncCfg.mColorFormat != COLOR_FormatSurface) { in queueEOS()
252 if (mActiveEncCfg.mColorFormat != COLOR_FormatSurface) { in doWork()
324 mActiveEncCfg = mEncCfgParams[0]; in doFullColorAspects()
325 if (mActiveEncCfg.mInputBitDepth > 8) { in doFullColorAspects()
333 if (mActiveEncCfg.mColorFormat == COLOR_FormatSurface) { in doFullColorAspects()
339 mActiveEncCfg.mColorFormat, mActiveEncCfg.mInputBitDepth), in doFullColorAspects()
341 mActiveEncCfg.mColorFormat)); in doFullColorAspects()
345 if (mActiveEncCfg.mColorFormat == COLOR_FormatSurface) { in doFullColorAspects()
[all …]
DAudioEncoderTest.java149 configureCodec(mActiveEncCfg.getFormat(), false, true, true); in encodeAndValidate()
152 audioEncodingToString(mActiveEncCfg.mPcmEncoding), mCodecName) + mTestConfig in encodeAndValidate()
153 + mTestEnv, mActiveEncCfg.mPcmEncoding, in encodeAndValidate()
165 mOutFormat.setInteger(MediaFormat.KEY_PCM_ENCODING, mActiveEncCfg.mPcmEncoding); in encodeAndValidate()
174 audioEncodingToString(mActiveEncCfg.mPcmEncoding), listOfDecoders.get(0)) in encodeAndValidate()
175 + mTestConfig + mTestEnv, mActiveEncCfg.mPcmEncoding, in encodeAndValidate()
183 && mActiveEncCfg.mPcmEncoding == AudioFormat.ENCODING_PCM_FLOAT) { in encodeAndValidate()
185 mActiveEncCfg.mPcmEncoding, -1L, in encodeAndValidate()
192 float tolerance = ACCEPTABLE_AV_SYNC_ERROR * mActiveEncCfg.mSampleRate in encodeAndValidate()
193 * mActiveEncCfg.mChannelCount * mActiveRawRes.mBytesPerSample / 1000; in encodeAndValidate()
[all …]
DCodecEncoderBlockModelMultiAccessUnitTest.java138 mActiveEncCfg = mEncCfgParams[0]; in setUp()
139 MediaFormat format = mActiveEncCfg.getFormat(); in setUp()
143 mActiveRawRes = EncoderInput.getRawResource(mActiveEncCfg); in setUp()
144 assertNotNull("no raw resource found for testing config : " + mActiveEncCfg + mTestConfig in setUp()
307 new EncoderConfigParams[]{mActiveEncCfg}, mAllTestParams); in testSimpleEncode()
308 referenceBase.encodeToMemory(mCodecName, mActiveEncCfg, mActiveRawRes, Integer.MAX_VALUE, in testSimpleEncode()
313 mMediaType, new EncoderConfigParams[]{mActiveEncCfg}, mAllTestParams); in testSimpleEncode()
315 cebmtb.encodeToMemory(mCodecName, mActiveEncCfg, mActiveRawRes, test, Integer.MAX_VALUE, in testSimpleEncode()
328 MediaFormat format = mActiveEncCfg.getFormat(); in testSimpleEncode()
330 int frameSize = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mChannelCount; in testSimpleEncode()
[all …]
DCodecEncoderMultiAccessUnitTest.java135 mActiveEncCfg = mEncCfgParams[0]; in setUp()
136 MediaFormat format = mActiveEncCfg.getFormat(); in setUp()
140 mActiveRawRes = EncoderInput.getRawResource(mActiveEncCfg); in setUp()
141 assertNotNull("no raw resource found for testing config : " + mActiveEncCfg + mTestConfig in setUp()
297 new EncoderConfigParams[]{mActiveEncCfg}, mAllTestParams); in testSimpleEncode()
298 cetb.encodeToMemory(mCodecName, mActiveEncCfg, mActiveRawRes, Integer.MAX_VALUE, true, in testSimpleEncode()
309 MediaFormat format = mActiveEncCfg.getFormat(); in testSimpleEncode()
311 int frameSize = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mChannelCount; in testSimpleEncode()
312 int maxOutputSize = (outSizeInMs[0] * frameSize * mActiveEncCfg.mSampleRate) / 1000; in testSimpleEncode()
316 (outSizeInMs[1] * frameSize * mActiveEncCfg.mSampleRate) / 1000; in testSimpleEncode()
DCodecEncoderTest.java281 mActiveEncCfg = mEncCfgParams[0]; in setUp()
282 mActiveRawRes = EncoderInput.getRawResource(mActiveEncCfg); in setUp()
283 assertNotNull("no raw resource found for testing config : " + mActiveEncCfg + mTestConfig in setUp()
344 MediaFormat format = mActiveEncCfg.getFormat(); in testSimpleEncode()
388 MediaFormat format = mActiveEncCfg.getFormat(); in testSimpleEncodeNative()
393 format = mActiveEncCfg.getBuilder().setColorFormat(colorFormat).build().getFormat(); in testSimpleEncodeNative()
567 MediaFormat format = mActiveEncCfg.getFormat(); in testOnlyEos()
599 MediaFormat format = mActiveEncCfg.getFormat(); in testOnlyEosNative()
604 format = mActiveEncCfg.getBuilder().setColorFormat(colorFormat).build().getFormat(); in testOnlyEosNative()
624 EncoderConfigParams currCfg = mActiveEncCfg.getBuilder().setKeyFrameInterval(500.f).build(); in testSetForceSyncFrame()
[all …]
DEncoderHDRInfoTest.java137 mActiveEncCfg = mEncCfgParams[0]; in testHDRInfo()
138 mActiveRawRes = EncoderInput.getRawResource(mActiveEncCfg); in testHDRInfo()
139 assertNotNull("no raw resource found for testing config : " + mActiveEncCfg + mTestConfig in testHDRInfo()
DEncoderProfileLevelTest.java546 + mTestConfig, mActiveEncCfg.mMediaType, in checkIfTrackFormatIsOk()
550 mActiveEncCfg.mWidth, getWidth(trackFormat)); in checkIfTrackFormatIsOk()
552 mActiveEncCfg.mHeight, getHeight(trackFormat)); in checkIfTrackFormatIsOk()
554 int expSampleRate = mActiveEncCfg.mProfile != AACObjectHE ? mActiveEncCfg.mSampleRate in checkIfTrackFormatIsOk()
555 : mActiveEncCfg.mSampleRate / 2; in checkIfTrackFormatIsOk()
556 int expChCount = mActiveEncCfg.mProfile != AACObjectHE_PS ? mActiveEncCfg.mChannelCount in checkIfTrackFormatIsOk()
557 : mActiveEncCfg.mChannelCount / 2; in checkIfTrackFormatIsOk()
576 if (widthCdd != -1 && mActiveEncCfg.mWidth > widthCdd) { in shallSupportProfileAndLevel()
579 if (heightCdd != -1 && mActiveEncCfg.mHeight > heightCdd) { in shallSupportProfileAndLevel()
649 mActiveEncCfg = cfg; in testValidateProfileLevel()
DEncoderLevelTest.java191 mActiveEncCfg = cfg; in testVideoEncodeLevels()
203 mActiveEncCfg = foreman.build(); in testVideoEncodeLevels()
DVideoEncoderTest.java270 assertNotNull("no raw resource found for testing config : " + mActiveEncCfg + mTestConfig in testEncodeAndValidate()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecEncoderTestBase.java63 protected EncoderConfigParams mActiveEncCfg; field in CodecEncoderTestBase
425 int width = mActiveEncCfg.mWidth; in fillByteBuffer()
426 int height = mActiveEncCfg.mHeight; in fillByteBuffer()
430 width = mActiveEncCfg.mWidth / 2; in fillByteBuffer()
431 height = mActiveEncCfg.mHeight / 2; in fillByteBuffer()
467 * mActiveEncCfg.mChannelCount * mActiveEncCfg.mSampleRate); in enqueueInput()
470 * mActiveEncCfg.mChannelCount)); in enqueueInput()
481 pts += mInputCount * 1000000L / mActiveEncCfg.mFrameRate; in enqueueInput()
482 size = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mWidth * mActiveEncCfg.mHeight in enqueueInput()
555 mMuxedOutputFile = getTempFilePath((mActiveEncCfg.mInputBitDepth == 10) ? "10bit" : ""); in doWork()
[all …]
DCodecEncoderBlockModelTestBase.java100 int frameSize = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mChannelCount; in enqueueInput()
102 (int) ((frameSize * mActiveEncCfg.mSampleRate) * mMaxInputSizeInMs / 1000); in enqueueInput()
108 * mActiveEncCfg.mChannelCount * mActiveEncCfg.mSampleRate); in enqueueInput()
112 size % ((long) mActiveRawRes.mBytesPerSample * mActiveEncCfg.mChannelCount)); in enqueueInput()
DHDREncoderTestBase.java70 long pts = mInputOffsetPts + mInputCount * 1000000L / mActiveEncCfg.mFrameRate; in enqueueInput()
103 MediaFormat format = mActiveEncCfg.getFormat(); in validateHDRInfo()
110 + mActiveEncCfg.mProfile, areFormatsSupported(mCodecName, mMediaType, formats)); in validateHDRInfo()
112 hasSupportForColorFormat(mCodecName, mMediaType, mActiveEncCfg.mColorFormat)); in validateHDRInfo()
123 frameLimit = (int) (lastHdr10PlusFramePts * mActiveEncCfg.mFrameRate / 1000000L) + 10; in validateHDRInfo()
DEncoderProfileLevelTestBase.java551 && mActiveEncCfg.mProfile == MPEG4ProfileAdvancedSimple && min == MPEG4Level1) { in validateMinLevel()
579 validateProfile(mActiveEncCfg.mProfile, getProfile(format, msg), msg); in validateFormatForProfileAndLevelWRTCfg()
583 if (mActiveEncCfg.mLevel != -1 in validateFormatForProfileAndLevelWRTCfg()
587 validateMinLevel(mActiveEncCfg.mLevel, getLevel(format, msg), msg); in validateFormatForProfileAndLevelWRTCfg()
599 validateBitStreamForProfileAndLevel(mActiveEncCfg.mProfile, mActiveEncCfg.mLevel); in validateProfileAndLevel()
/cts/tests/videocodec/src/android/videocodec/cts/
DVideoEncoderRoiTest.java133 contour.left = clamp(contour.left, 0, mActiveEncCfg.mWidth); in fillOffsetArray()
134 contour.top = clamp(contour.top, 0, mActiveEncCfg.mHeight); in fillOffsetArray()
135 contour.right = clamp(contour.right, 0, mActiveEncCfg.mWidth); in fillOffsetArray()
136 contour.bottom = clamp(contour.bottom, 0, mActiveEncCfg.mHeight); in fillOffsetArray()
147 long pts = mInputOffsetPts + mInputCount * 1000000L / mActiveEncCfg.mFrameRate; in enqueueInput()
156 ((mActiveEncCfg.mWidth + (BLOCK_WD - 1)) / BLOCK_WD) * BLOCK_WD; in enqueueInput()
158 ((mActiveEncCfg.mHeight + (BLOCK_HT - 1)) / BLOCK_HT) * BLOCK_HT; in enqueueInput()
DVideoEncoderValidationTestBase.java187 int size = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mWidth in enqueueInput()
188 * mActiveEncCfg.mHeight * 3 / 2; in enqueueInput()
190 long pts = mInputOffsetPts + mInputCount * 1000000L / mActiveEncCfg.mFrameRate; in enqueueInput()
DVideoEncoderAdaptiveBitRateTest.java135 int segStartFrameIdx = SEGMENT_DURATION * mActiveEncCfg.mFrameRate; in enqueueInput()
144 int segEndFrameIdx = SEGMENT_DURATION * mActiveEncCfg.mFrameRate; in dequeueOutput()
DVideoEncoderTargetBitrateTest.java140 if (mOutputCount >= mActiveEncCfg.mFrameRate) { in dequeueOutput()