Home
last modified time | relevance | path

Searched refs:bitrate (Results 1 – 22 of 22) sorted by relevance

/cts/tests/media/src/android/mediav2/cts/
DEncoderProfileLevelTest.java51 public EncoderProfileLevelTest(String mime, int bitrate, int encoderInfo1, int encoderInfo2, in EncoderProfileLevelTest() argument
56 mConfigFormat.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in EncoderProfileLevelTest()
251 private int getMinLevel(String mime, int width, int height, int frameRate, int bitrate, in getMinLevel() argument
255 return getMinLevelAVC(width, height, frameRate, bitrate); in getMinLevel()
257 return getMinLevelHEVC(width, height, frameRate, bitrate); in getMinLevel()
259 return getMinLevelH263(width, height, frameRate, bitrate); in getMinLevel()
261 return getMinLevelMPEG2(width, height, frameRate, bitrate); in getMinLevel()
263 return getMinLevelMPEG4(width, height, frameRate, bitrate, profile); in getMinLevel()
268 return getMinLevelVP9(width, height, frameRate, bitrate); in getMinLevel()
270 return getMinLevelAV1(width, height, frameRate, bitrate); in getMinLevel()
[all …]
DCodecEncoderTest.java151 private void updateBitrate(int bitrate) { in updateBitrate() argument
153 bitrateUpdate.putInt(MediaCodec.PARAMETER_KEY_VIDEO_BITRATE, bitrate); in updateBitrate()
155 Log.v(LOG_TAG, "requesting bitrate to be changed to " + bitrate); in updateBitrate()
216 for (int bitrate : mBitrates) { in setUpParams()
222 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in setUpParams()
236 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in setUpParams()
815 int bitrate = format.getInteger(MediaFormat.KEY_BIT_RATE); in testAdaptiveBitRate() local
819 expOutSize += ADAPTIVE_BR_INTERVAL * bitrate; in testAdaptiveBitRate()
820 if ((i & 1) == 1) bitrate *= 2; in testAdaptiveBitRate()
821 else bitrate /= 2; in testAdaptiveBitRate()
[all …]
DCodecUnitTest.java100 private Bundle updateBitrate(int bitrate) { in updateBitrate() argument
102 bitrateUpdate.putInt(MediaCodec.PARAMETER_KEY_VIDEO_BITRATE, bitrate); in updateBitrate()
1309 int bitrate = format.getInteger(MediaFormat.KEY_BIT_RATE); in testSetParametersInUnInitState() local
1313 mCodec.setParameters(updateBitrate(bitrate >> 1)); in testSetParametersInUnInitState()
1320 mCodec.setParameters(updateBitrate(bitrate >> 1)); in testSetParametersInUnInitState()
1330 int bitrate = format.getInteger(MediaFormat.KEY_BIT_RATE); in testSetParametersInInitState() local
1336 mCodec.setParameters(updateBitrate(bitrate >> 1)); in testSetParametersInInitState()
1348 int bitrate = format.getInteger(MediaFormat.KEY_BIT_RATE); in testSetParametersInRunningState() local
1355 mCodec.setParameters(updateBitrate(bitrate >> 1)); in testSetParametersInRunningState()
1358 mCodec.setParameters(updateBitrate(bitrate << 1)); in testSetParametersInRunningState()
[all …]
DCodecEncoderSurfaceTest.java90 public CodecEncoderSurfaceTest(String mime, String testFile, int bitrate, int frameRate) { in CodecEncoderSurfaceTest() argument
93 mBitrate = bitrate; in CodecEncoderSurfaceTest()
560 String testFile, String muxFile, int bitrate, int framerate); in nativeTestSimpleEncode() argument
/cts/tests/tests/media/libmediandkjni/
Dnative_media_utils.cpp152 int32_t bitrate = 0; in checkOverallBitrate() local
153 if (!AMediaFormat_getInt32(config.format(), AMEDIAFORMAT_KEY_BIT_RATE, &bitrate)) { in checkOverallBitrate()
158 assert(bitrate > 0); in checkOverallBitrate()
161 float deviation = (avgBitrate - bitrate) * 100 / bitrate; in checkOverallBitrate()
163 bitrate, avgBitrate, deviation); in checkOverallBitrate()
282 int32_t bitrate = 0; in checkDynamicBitrate() local
283 if (!AMediaFormat_getInt32(config.format(), AMEDIAFORMAT_KEY_BIT_RATE, &bitrate)) { in checkDynamicBitrate()
288 assert(bitrate > 0); in checkDynamicBitrate()
292 int32_t lastBitrate = bitrate; in checkDynamicBitrate()
Dnative_media_encoder_jni.cpp263 int32_t bitrate, float framerate, in createMediaFormat() argument
272 AMediaFormat_setInt32(config.get(), AMEDIAFORMAT_KEY_BIT_RATE, bitrate); in createMediaFormat()
401 int32_t bitrate = getOptimalBitrate(w, h); in Java_android_media_cts_NativeEncoderTest_testEncodeSurfaceDynamicBitrateNative() local
404 dynParams.push_back(DynamicParam::newBitRate(100, bitrate/2)); in Java_android_media_cts_NativeEncoderTest_testEncodeSurfaceDynamicBitrateNative()
405 dynParams.push_back(DynamicParam::newBitRate(200, 3*bitrate/4)); in Java_android_media_cts_NativeEncoderTest_testEncodeSurfaceDynamicBitrateNative()
406 dynParams.push_back(DynamicParam::newBitRate(300, bitrate)); in Java_android_media_cts_NativeEncoderTest_testEncodeSurfaceDynamicBitrateNative()
Dnative_media_utils.h103 static std::shared_ptr<DynamicParam> newBitRate(int atFrame, int32_t bitrate) { in newBitRate()
105 AMediaFormat_setInt32(d->param(), TBD_AMEDIACODEC_PARAMETER_KEY_VIDEO_BITRATE, bitrate); in newBitRate()
Dnative-media-jni.cpp836 int32_t bitrate = 0; in Java_android_media_cts_NativeDecoderTest_testFormatNative() local
837 if (!AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, &bitrate) || bitrate != 8000) { in Java_android_media_cts_NativeDecoderTest_testFormatNative()
838 ALOGE("AMediaFormat_getInt32 fail: %d", bitrate); in Java_android_media_cts_NativeDecoderTest_testFormatNative()
/cts/tests/tests/media/src/android/media/cts/
DVpxEncoderTest.java338 final int[] bitrate = new int[1]; in internalTestParallelEncodingAndDecoding() local
360 bitrate[0] = statistics.mAverageBitrate; in internalTestParallelEncodingAndDecoding()
387 int referenceBitrate = bitrate[0]; in internalTestParallelEncodingAndDecoding()
411 Log.d(TAG, "Parallel bitrate: " + bitrate[0] + ". PSNR: " + psnr[0]); in internalTestParallelEncodingAndDecoding()
413 " is different from parallel encoding " + bitrate[0], in internalTestParallelEncodingAndDecoding()
414 referenceBitrate, bitrate[0], MAX_BITRATE_VARIATION * referenceBitrate); in internalTestParallelEncodingAndDecoding()
DVpxCodecTestBase.java297 int bitrate, in getDefaultEncodingParameters() argument
300 int[] bitrates = { bitrate }; in getDefaultEncodingParameters()
1215 public void updateBitrate(int bitrate) throws Exception { in updateBitrate() argument
1217 bitrateUpdate.putInt(MediaCodec.PARAMETER_KEY_VIDEO_BITRATE, bitrate); in updateBitrate()
1304 int bitrate = streamParams.bitrateSet[0]; in encode() local
1310 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in encode()
1341 ". Bitrate: " + bitrate + " Bitrate type: " + streamParams.bitrateType + in encode()
1357 int lastBitrate = bitrate; in encode()
1481 int bitrate = streamParams.bitrateSet[0]; in encodeAsync() local
1487 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in encodeAsync()
[all …]
DMediaCodecCapabilitiesTest.java477 int bitrate = vidCaps.getBitrateRange().clamp( in createReasonableVideoFormat() local
481 + " " + mime + " = " + bitrate); in createReasonableVideoFormat()
482 format.setInteger(format.KEY_BIT_RATE, bitrate); in createReasonableVideoFormat()
543 int bitrate = vidCaps.getBitrateRange().clamp( in createVideoFormatForBitrateMode() local
547 + " " + mime + " = " + bitrate + " mode " + bitrateMode); in createVideoFormatForBitrateMode()
548 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in createVideoFormatForBitrateMode()
DResourceManagerTestActivityBase.java72 int bitrate = vcaps.getBitrateRange().getLower(); in getTestFormat() local
76 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in getTestFormat()
DMediaRecorderTest.java854 int bitrate, int profile, int requestedLevel, int... expectedLevels) throws Exception { in testLevel() argument
861 || !vCap.getBitrateRange().contains(bitrate * 1000)) { in testLevel()
892 mMediaRecorder.setVideoEncodingBitRate(bitrate * 1000); in testLevel()
DDecoderTest.java2488 String mime, int width, int height, float rate, int profile, int level, int bitrate) {
2498 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate);
/cts/tests/media/jni/
DNativeCodecEncoderTest.cpp67 void updateBitrate(AMediaFormat* format, int bitrate);
157 int bitrate = mBitRates[k]; in setUpParams() local
165 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, bitrate); in setUpParams()
179 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, bitrate); in setUpParams()
381 void CodecEncoderTest::updateBitrate(AMediaFormat* format, int bitrate) { in updateBitrate() argument
382 AMediaFormat_setInt32(format, TBD_AMEDIACODEC_PARAMETER_KEY_VIDEO_BITRATE, bitrate); in updateBitrate()
383 ALOGV("requesting bitrate to be changed to %d", bitrate); in updateBitrate()
824 int bitrate; in testAdaptiveBitRate() local
825 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, &bitrate); in testAdaptiveBitRate()
829 expOutSize += kAdaptiveBitrateInterval * bitrate; in testAdaptiveBitRate()
[all …]
DNativeCodecUnitTest.cpp990 int bitrate; in testSetParametersInInitState() local
991 AMediaFormat_getInt32(mFormat, AMEDIAFORMAT_KEY_BIT_RATE, &bitrate); in testSetParametersInInitState()
993 AMediaFormat_setInt32(params, TBD_AMEDIACODEC_PARAMETER_KEY_VIDEO_BITRATE, bitrate >> 1); in testSetParametersInInitState()
1010 int bitrate; in testSetParametersInRunningState() local
1011 AMediaFormat_getInt32(mFormat, AMEDIAFORMAT_KEY_BIT_RATE, &bitrate); in testSetParametersInRunningState()
1018 AMediaFormat_setInt32(params, TBD_AMEDIACODEC_PARAMETER_KEY_VIDEO_BITRATE, bitrate >> 1); in testSetParametersInRunningState()
1026 AMediaFormat_setInt32(mFormat, TBD_AMEDIACODEC_PARAMETER_KEY_VIDEO_BITRATE, bitrate << 1); in testSetParametersInRunningState()
1034 AMediaFormat_setInt32(mFormat, TBD_AMEDIACODEC_PARAMETER_KEY_VIDEO_BITRATE, bitrate); in testSetParametersInRunningState()
1055 int bitrate; in testSetParametersInUnInitState() local
1056 AMediaFormat_getInt32(mFormat, AMEDIAFORMAT_KEY_BIT_RATE, &bitrate); in testSetParametersInUnInitState()
[all …]
DNativeCodecEncoderSurfaceTest.cpp76 CodecEncoderSurfaceTest(const char* mime, int bitrate, int framerate);
83 CodecEncoderSurfaceTest::CodecEncoderSurfaceTest(const char* mime, int bitrate, int framerate) in CodecEncoderSurfaceTest() argument
84 : mMime{mime}, mEncBitrate{bitrate}, mEncFramerate{framerate} { in CodecEncoderSurfaceTest()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java648 Integer profile, Integer level, Integer bitrate) { in canDecodeVideo() argument
649 return canDecodeVideo(mime, width, height, rate, profile, level, bitrate, (float)0.0); in canDecodeVideo()
654 Integer profile, Integer level, Integer bitrate, float decodeRate) { in canDecodeVideo() argument
663 if (bitrate != null) { in canDecodeVideo()
664 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in canDecodeVideo()
798 int bitrate = vidCaps.getBitrateRange().clamp( in setMaxEncoderFrameAndBitrates() local
801 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in setMaxEncoderFrameAndBitrates()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2471/
Dpoc.c89 struct iw_param bitrate; /* default bit rate */ member
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java563 Integer profile, Integer level, Integer bitrate) { in canDecodeVideo() argument
572 if (bitrate != null) { in canDecodeVideo()
573 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in canDecodeVideo()
707 int bitrate = vidCaps.getBitrateRange().clamp( in setMaxEncoderFrameAndBitrates() local
710 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in setMaxEncoderFrameAndBitrates()
/cts/tests/tests/media/assets/
Dsegment000000.ts3 …keyint=300 keyintG�_min=151 scenecut=0 intra_refresh=0 rc=abr mbtree=0 bitrate=400 ratetol=1.0 q…
DfileSequence0.ts287 …keyint=300 keGyint_min=151 scenecut=0 intra_refresh=0 rc=abr mbtree=0 bitrate=400 ratetol=1.0 q…