/frameworks/av/media/libstagefright/codecs/mp3dec/test/ |
D | mp3reader.cpp | 114 int bitrate = in parseHeader() local 120 *out_bitrate = bitrate; in parseHeader() 123 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in parseHeader() 146 int bitrate; in parseHeader() local 148 bitrate = (layer == 2 /* L2 */) in parseHeader() 158 bitrate = kBitrateV2[bitrate_index - 1]; in parseHeader() 165 *out_bitrate = bitrate; in parseHeader() 169 *frame_size = 144000 * bitrate / sampling_rate + padding; in parseHeader() 173 *frame_size = tmp * bitrate / sampling_rate + padding; in parseHeader() 294 uint32_t sample_rate, num_channels, bitrate; in resync() local [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/fuzzer/ |
D | mp3_dec_fuzzer.cpp | 75 int bitrate = in parseMp3Header() local 79 *out_bitrate = bitrate; in parseMp3Header() 81 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in parseMp3Header() 91 int bitrate; in parseMp3Header() local 93 bitrate = in parseMp3Header() 100 bitrate = kBitrateV2[bitrate_index - 1]; in parseMp3Header() 107 *out_bitrate = bitrate; in parseMp3Header() 111 *frame_size = 144000 * bitrate / sampling_rate + padding; in parseMp3Header() 114 *frame_size = tmp * bitrate / sampling_rate + padding; in parseMp3Header()
|
/frameworks/av/media/libstagefright/codecs/on2/enc/ |
D | SoftVPXEncoder.cpp | 346 OMX_VIDEO_PARAM_BITRATETYPE *bitrate = in internalGetParameter() local 349 if (!isValidOMXParam(bitrate)) { in internalGetParameter() 353 if (bitrate->nPortIndex != kOutputPortIndex) { in internalGetParameter() 357 bitrate->nTargetBitrate = mBitrate; in internalGetParameter() 360 bitrate->eControlRate = OMX_Video_ControlRateVariable; in internalGetParameter() 362 bitrate->eControlRate = OMX_Video_ControlRateConstant; in internalGetParameter() 450 OMX_VIDEO_PARAM_BITRATETYPE* bitrate) { in internalGetBitrateParams() argument 451 if (bitrate->nPortIndex != kOutputPortIndex) { in internalGetBitrateParams() 455 bitrate->nTargetBitrate = mBitrate; in internalGetBitrateParams() 458 bitrate->eControlRate = OMX_Video_ControlRateVariable; in internalGetBitrateParams() [all …]
|
D | SoftVPXEncoder.h | 120 OMX_VIDEO_PARAM_BITRATETYPE* bitrate); 124 const OMX_VIDEO_PARAM_BITRATETYPE* bitrate);
|
/frameworks/av/media/extractors/mp3/ |
D | MP3Extractor.cpp | 146 int sample_rate, num_channels, bitrate; in Resync() local 149 &sample_rate, &num_channels, &bitrate)) { in Resync() 307 int bitrate; in MP3Extractor() local 309 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor() 322 int bitrate; in MP3Extractor() local 324 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor() 345 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_BIT_RATE, bitrate * 1000); in MP3Extractor() 358 durationUs = 8000LL * dataLength / bitrate; in MP3Extractor() 507 int32_t bitrate; in read() local 508 if (!AMediaFormat_getInt32(mMeta, AMEDIAFORMAT_KEY_BIT_RATE, &bitrate)) { in read() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | rate_control.cpp | 79 rc[n]->bitrate = LayerBitRate[n]; in RC_Initialize() 85 …e_num = (Int)((rc[n]->Bs - video->encParams->maxFrameSize) / 2 / (rc[n]->bitrate / rc[n]->framerat… in RC_Initialize() 107 rc[n]->bitrate = LayerBitRate[n] - LayerBitRate[n-1]; in RC_Initialize() 116 …pMP[n]->counter_BTsrc = (Int)((rc[n]->Bs / 2.0 - rc[n]->Bs / 3.0) / (rc[n]->bitrate / rc[n]->frame… in RC_Initialize() 117 …rc[n]->TMN_W = (Int)(rc[n]->VBV_fullness + pMP[n]->counter_BTsrc * (rc[n]->bitrate / rc[n]->framer… in RC_Initialize() 124 rc[n]->VBV_fullness = rc[n]->Bs - (Int)(video->encParams->VBV_delay * rc[n]->bitrate); in RC_Initialize() 136 pMP[n]->bitrate = rc[n]->bitrate; in RC_Initialize() 138 pMP[n]->target_bits_per_frame = pMP[n]->bitrate / pMP[n]->framerate; in RC_Initialize() 250 pMP->bitrate = rc->bitrate; /* calculated in RCVopQPSetting */ in RC_VopQPSetting() 324 (pMP->bitrate / (pMP->framerate + 0.0001) + 0.0001) / 0.1); in RC_VopUpdateStat() [all …]
|
D | rate_control.h | 88 Int bitrate; member
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/ |
D | m4v_h263_enc_test.cpp | 95 int32_t bitrate; in main() local 96 bitrate = atoi(argv[7]); in main() 97 if (bitrate > kMaxBitrate || bitrate <= 0) { in main() 98 fprintf(stderr, "Unsupported bitrate %d\n", bitrate); in main() 158 encParams.bitRate[0] = bitrate * 1024; in main()
|
/frameworks/av/media/libstagefright/foundation/ |
D | avc_utils.cpp | 694 int bitrate = in GetMPEGAudioFrameSize() local 700 *out_bitrate = bitrate; in GetMPEGAudioFrameSize() 703 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in GetMPEGAudioFrameSize() 726 int bitrate; in GetMPEGAudioFrameSize() local 728 bitrate = (layer == 2 /* L2 */) in GetMPEGAudioFrameSize() 738 bitrate = kBitrateV2[bitrate_index - 1]; in GetMPEGAudioFrameSize() 745 *out_bitrate = bitrate; in GetMPEGAudioFrameSize() 749 *frame_size = 144000 * bitrate / sampling_rate + padding; in GetMPEGAudioFrameSize() 753 *frame_size = tmp * bitrate / sampling_rate + padding; in GetMPEGAudioFrameSize()
|
/frameworks/av/media/codec2/components/mp3/ |
D | C2SoftMp3Dec.cpp | 211 int bitrate = (version == 3 /* V1 */) ? kBitrateV1[bitrate_index - 1] : in parseMp3Header() local 215 *out_bitrate = bitrate; in parseMp3Header() 217 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4; in parseMp3Header() 237 int bitrate; in parseMp3Header() local 239 bitrate = (layer == 2 /* L2 */) ? kBitrateV1L2[bitrate_index - 1] : in parseMp3Header() 246 bitrate = kBitrateV2[bitrate_index - 1]; in parseMp3Header() 253 *out_bitrate = bitrate; in parseMp3Header() 257 *frame_size = 144000 * bitrate / sampling_rate + padding; in parseMp3Header() 260 *frame_size = tmp * bitrate / sampling_rate + padding; in parseMp3Header()
|
/frameworks/av/media/tests/benchmark/tests/ |
D | EncoderTest.cpp | 112 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, &encParams.bitrate); in TEST_P() 113 if (encParams.bitrate <= 0 || encParams.frameRate <= 0) { in TEST_P() 116 encParams.bitrate = kEncodeMinVideoBitRate; in TEST_P() 118 encParams.bitrate = kEncodeDefaultVideoBitRate; in TEST_P() 130 encParams.bitrate = kEncodeDefaultAudioBitRate; in TEST_P()
|
/frameworks/av/media/libstagefright/ |
D | MediaCodecListOverrides.cpp | 73 static void getMeasureBitrate(const sp<MediaCodecInfo::Capabilities> &caps, int32_t *bitrate) { in getMeasureBitrate() argument 76 *bitrate = 200000; in getMeasureBitrate() 87 *bitrate = strtol(minBitrate.c_str(), NULL, 10); in getMeasureBitrate() 96 int32_t bitrate = 0; in getMeasureFormat() local 97 getMeasureBitrate(caps, &bitrate); in getMeasureFormat() 98 format->setInt32("bitrate", bitrate); in getMeasureFormat()
|
D | NuMediaExtractor.cpp | 223 int32_t bitrate; in updateDurationAndBitrate() local 224 if (!meta->findInt32(kKeyBitRate, &bitrate)) { in updateDurationAndBitrate() 231 mTotalBitrate += bitrate; in updateDurationAndBitrate() 765 bool NuMediaExtractor::getTotalBitrate(int64_t *bitrate) const { in getTotalBitrate() 767 *bitrate = mTotalBitrate; in getTotalBitrate() 773 *bitrate = size * 8000000LL / mDurationUs; // in bits/sec in getTotalBitrate() 788 int64_t bitrate; in getCachedDuration() local 790 && getTotalBitrate(&bitrate)) { in getCachedDuration() 791 *durationUs = cachedDataRemaining * 8000000ll / bitrate; in getCachedDuration()
|
D | ACodec.cpp | 148 OMX_VIDEO_CONTROLRATETYPE *mode, int32_t *bitrate, int32_t *quality) { in findVideoBitrateControlInfo() argument 151 return (!isCQ && msg->findInt32("bitrate", bitrate)) in findVideoBitrateControlInfo() 1731 int32_t bitrate = 0, quality; in configureCodec() local 1736 if (!findVideoBitrateControlInfo(msg, &bitrateMode, &bitrate, &quality)) { in configureCodec() 1740 && !msg->findInt32("bitrate", &bitrate)) { in configureCodec() 1746 if (encoder && msg->findInt32("bitrate", &bitrate)) { in configureCodec() 1749 outputFormat->setInt32("bitrate", bitrate); in configureCodec() 1750 outputFormat->setInt32("max-bitrate", bitrate); in configureCodec() 2171 encoder, numChannels, sampleRate, bitrate, aacProfile, in configureCodec() 2176 err = setupAMRCodec(encoder, false /* isWAMR */, bitrate); in configureCodec() [all …]
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcEnc.cpp | 255 const C2P<C2StreamBitrateInfo::output> &bitrate) { in ProfileLevelSetter() argument 265 uint32_t bitrate; in ProfileLevelSetter() member 296 bitrate.v.value <= limit.bitrate) { in ProfileLevelSetter() 963 std::shared_ptr<C2StreamBitrateInfo::output> bitrate = mIntf->getBitrate_l(); in process() local 966 if (bitrate != mBitrate) { in process() 967 mBitrate = bitrate; in process()
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | Encoder.h | 33 int32_t bitrate = -1; member
|
D | Encoder.cpp | 207 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_BIT_RATE, mParams.bitrate); in encode() 216 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_BIT_RATE, mParams.bitrate); in encode()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | GenericSource.cpp | 267 int32_t bitrate; in initFromDataSource() local 268 if (totalBitrate >= 0 && meta->findInt32(kKeyBitRate, &bitrate)) { in initFromDataSource() 269 totalBitrate += bitrate; in initFromDataSource() 1562 int64_t bitrate = 0LL; in onPollBuffering() local 1565 bitrate = size * 8000000LL / mDurationUs; in onPollBuffering() 1567 bitrate = mBitrate; in onPollBuffering() 1569 if (bitrate > 0) { in onPollBuffering() 1570 cachedDurationUs = cachedDataRemaining * 8000000LL / bitrate; in onPollBuffering()
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxEnc.cpp | 539 std::shared_ptr<C2StreamBitrateInfo::output> bitrate = mIntf->getBitrate_l(); in process() local 561 if (bitrate != mBitrate) { in process() 562 mBitrate = bitrate; in process()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/ |
D | NativeEncoder.cpp | 64 encParams.bitrate = jBitRate; in Java_com_android_media_benchmark_library_Native_Encode()
|
/frameworks/av/media/codec2/components/aac/ |
D | C2SoftAacEnc.cpp | 323 uint32_t bitrate = mIntf->getBitrate(); in process() local 325 if (bitrate != actualBitRate) { in process() 326 ALOGW("Requested bitrate %u unsupported, using %u", bitrate, actualBitRate); in process()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/ |
D | EncoderTest.java | 129 public EncoderTest(String filename, String mime, int bitrate, int width, int height, in EncoderTest() argument 134 this.mBitRate = bitrate; in EncoderTest()
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcEnc.cpp | 243 const C2P<C2StreamBitrateInfo::output> &bitrate) { in ProfileLevelSetter() argument 253 uint32_t bitrate; in ProfileLevelSetter() member 287 bitrate.v.value <= limit.bitrate) { in ProfileLevelSetter() 1486 std::shared_ptr<C2StreamBitrateInfo::output> bitrate = mIntf->getBitrate_l(); in process() local 1490 if (bitrate != mBitrate) { in process() 1491 mBitrate = bitrate; in process()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | ACodec.h | 86 int width, int height, int rate, int bitrate, 525 OMX_VIDEO_CONTROLRATETYPE bitrateMode, int32_t bitrate, int32_t quality = 0);
|
/frameworks/av/media/libstagefright/codecs/avcenc/ |
D | SoftAVCEnc.h | 220 const OMX_VIDEO_PARAM_BITRATETYPE *bitrate);
|