/external/webrtc/webrtc/modules/remote_bitrate_estimator/ |
D | remote_bitrate_estimator_unittest_helper.cc | 31 int bitrate_bps, in RtpStream() argument 37 bitrate_bps_(bitrate_bps), in RtpStream() 98 void RtpStream::set_bitrate_bps(int bitrate_bps) { in set_bitrate_bps() argument 99 ASSERT_GE(bitrate_bps, 0); in set_bitrate_bps() 100 bitrate_bps_ = bitrate_bps; in set_bitrate_bps() 103 int RtpStream::bitrate_bps() const { in bitrate_bps() function in webrtc::testing::RtpStream 141 void StreamGenerator::SetBitrateBps(int bitrate_bps) { in SetBitrateBps() argument 145 total_bitrate_before += it->second->bitrate_bps(); in SetBitrateBps() 150 bitrate_before += it->second->bitrate_bps(); in SetBitrateBps() 151 int64_t bitrate_after = (bitrate_before * bitrate_bps + in SetBitrateBps() [all …]
|
D | remote_bitrate_estimator_unittest_helper.h | 68 RtpStream(int fps, int bitrate_bps, unsigned int ssrc, unsigned int frequency, 83 void set_bitrate_bps(int bitrate_bps); 85 int bitrate_bps() const; 123 void SetBitrateBps(int bitrate_bps); 181 bool GenerateAndProcessFrame(unsigned int ssrc, unsigned int bitrate_bps);
|
D | remote_bitrate_estimator_single_stream.cc | 204 unsigned int* bitrate_bps) const { in LatestEstimate() 206 assert(bitrate_bps); in LatestEstimate() 212 *bitrate_bps = 0; in LatestEstimate() 214 *bitrate_bps = remote_rate_->LatestEstimate(); in LatestEstimate()
|
D | aimd_rate_control.cc | 132 void AimdRateControl::SetEstimate(int bitrate_bps, int64_t now_ms) { in SetEstimate() argument 135 current_bitrate_bps_ = ChangeBitrate(bitrate_bps, bitrate_bps, now_ms); in SetEstimate()
|
D | remote_bitrate_estimator_abs_send_time.cc | 394 unsigned int* bitrate_bps) const { in LatestEstimate() 397 assert(bitrate_bps); in LatestEstimate() 403 *bitrate_bps = 0; in LatestEstimate() 405 *bitrate_bps = remote_rate_.LatestEstimate(); in LatestEstimate()
|
/external/webrtc/webrtc/modules/bitrate_controller/ |
D | send_side_bandwidth_estimation_unittest.cc | 59 int bitrate_bps; in TEST() local 62 bwe.CurrentEstimate(&bitrate_bps, &fraction_loss, &rtt_ms); in TEST() 63 EXPECT_EQ(kInitialBitrateBps, bitrate_bps); in TEST() 73 bwe.CurrentEstimate(&bitrate_bps, &fraction_loss, &rtt_ms); in TEST() 74 EXPECT_LT(bitrate_bps, kInitialBitrateBps); in TEST() 78 EXPECT_GT(bitrate_bps, kMinBitrateBps); in TEST() 85 int last_bitrate_bps = bitrate_bps; in TEST() 90 bwe.CurrentEstimate(&bitrate_bps, &fraction_loss, &rtt_ms); in TEST() 92 EXPECT_EQ(last_bitrate_bps, bitrate_bps); in TEST()
|
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/ |
D | audio_encoder_opus.cc | 30 config.bitrate_bps = codec_inst.rate; in CreateConfig() 84 if (bitrate_bps < kMinBitrateBps || bitrate_bps > kMaxBitrateBps) in IsOk() 107 static_cast<size_t>(config_.bitrate_bps / (1000 * 8) + 1); in MaxEncodedBytes() 130 return config_.bitrate_bps; in GetTargetBitrate() 209 config_.bitrate_bps = in SetTargetBitrate() 212 RTC_CHECK_EQ(0, WebRtcOpus_SetBitRate(inst_, config_.bitrate_bps)); in SetTargetBitrate() 235 RTC_CHECK_EQ(0, WebRtcOpus_SetBitRate(inst_, config.bitrate_bps)); in RecreateEncoderInstance()
|
/external/webrtc/webrtc/modules/pacing/ |
D | bitrate_prober.cc | 24 int ComputeDeltaFromBitrate(size_t packet_size, int bitrate_bps) { in ComputeDeltaFromBitrate() argument 25 assert(bitrate_bps > 0); in ComputeDeltaFromBitrate() 29 bitrate_bps); in ComputeDeltaFromBitrate() 55 void BitrateProber::MaybeInitializeProbe(int bitrate_bps) { in MaybeInitializeProbe() argument 67 bitrates_bps[i] = kProbeBitrateMultipliers[i] * bitrate_bps; in MaybeInitializeProbe()
|
D | bitrate_prober.h | 35 void MaybeInitializeProbe(int bitrate_bps);
|
/external/webrtc/webrtc/video/ |
D | vie_encoder.cc | 98 virtual void OnNetworkChanged(uint32_t bitrate_bps, in OnNetworkChanged() argument 101 owner_->OnNetworkChanged(bitrate_bps, fraction_lost, rtt); in OnNetworkChanged() 246 int bitrate_bps; in GetPaddingNeededBps() local 256 bitrate_bps = last_observed_bitrate_bps_; in GetPaddingNeededBps() 294 if (pad_up_to_bitrate_bps > bitrate_bps) in GetPaddingNeededBps() 295 pad_up_to_bitrate_bps = bitrate_bps; in GetPaddingNeededBps() 447 void ViEEncoder::OnSetRates(uint32_t bitrate_bps, int framerate) { in OnSetRates() argument 449 stats_proxy_->OnSetRates(bitrate_bps, framerate); in OnSetRates() 570 void ViEEncoder::OnNetworkChanged(uint32_t bitrate_bps, in OnNetworkChanged() argument 573 LOG(LS_VERBOSE) << "OnNetworkChanged, bitrate" << bitrate_bps in OnNetworkChanged() [all …]
|
D | send_statistics_proxy_unittest.cc | 238 total.bitrate_bps = ssrc; in TEST_F() 239 retransmit.bitrate_bps = ssrc + 1; in TEST_F() 241 expected_.substreams[ssrc].total_bitrate_bps = total.bitrate_bps; in TEST_F() 242 expected_.substreams[ssrc].retransmit_bitrate_bps = retransmit.bitrate_bps; in TEST_F() 251 total.bitrate_bps = ssrc; in TEST_F() 252 retransmit.bitrate_bps = ssrc + 1; in TEST_F() 254 expected_.substreams[ssrc].total_bitrate_bps = total.bitrate_bps; in TEST_F() 255 expected_.substreams[ssrc].retransmit_bitrate_bps = retransmit.bitrate_bps; in TEST_F() 418 bitrate.bitrate_bps = 42; in TEST_F() 426 EXPECT_EQ(static_cast<int>(bitrate.bitrate_bps), in TEST_F() [all …]
|
D | send_statistics_proxy.cc | 244 void SendStatisticsProxy::OnSetRates(uint32_t bitrate_bps, int framerate) { in OnSetRates() argument 246 stats_.target_media_bitrate_bps = bitrate_bps; in OnSetRates() 374 stats->total_bitrate_bps = total_stats.bitrate_bps; in Notify() 375 stats->retransmit_bitrate_bps = retransmit_stats.bitrate_bps; in Notify()
|
D | vie_encoder.h | 108 void OnSetRates(uint32_t bitrate_bps, int framerate) override; 145 void OnNetworkChanged(uint32_t bitrate_bps,
|
D | receive_statistics_proxy.cc | 91 unsigned int bitrate_bps) { in OnIncomingRate() argument 94 stats_.total_bitrate_bps = bitrate_bps; in OnIncomingRate()
|
/external/libopus/src/ |
D | opus_demo.c | 227 opus_int32 bitrate_bps=0; in main() local 333 bitrate_bps = (opus_int32)atol(argv[args]); in main() 488 sweep_min = bitrate_bps; in main() 534 opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate_bps)); in main() 592 (long)sampling_rate, bitrate_bps*0.001, in main() 640 … while (newsize < sampling_rate/25 && bitrate_bps-fabs(sweep_bps) <= 3*12*sampling_rate/newsize) in main() 709 bitrate_bps += sweep_bps; in main() 712 if (bitrate_bps > sweep_max) in main() 714 else if (bitrate_bps < sweep_min) in main() 718 if (bitrate_bps<1000) in main() [all …]
|
D | opus_multistream_encoder.c | 78 opus_int32 bitrate_bps; member 420 st->bitrate_bps = OPUS_AUTO; in opus_multistream_encoder_init_impl() 612 if (st->bitrate_bps > st->layout.nb_channels*40000) in surround_rate_allocation() 615 stream_offset = st->bitrate_bps/st->layout.nb_channels/2; in surround_rate_allocation() 627 if (st->bitrate_bps==OPUS_AUTO) in surround_rate_allocation() 630 } else if (st->bitrate_bps==OPUS_BITRATE_MAX) in surround_rate_allocation() 644 …channel_rate = 256*(st->bitrate_bps-lfe_offset*nb_lfe-stream_offset*(nb_coupled+nb_uncoupled))/tot… in surround_rate_allocation() 718 st->variable_duration, channels, Fs, st->bitrate_bps, in opus_multistream_encode_native() 760 max_data_bytes = IMIN(max_data_bytes, 3*st->bitrate_bps/(3*8*Fs/frame_size)); in opus_multistream_encode_native() 775 equiv_rate = st->bitrate_bps; in opus_multistream_encode_native() [all …]
|
D | opus_encoder.c | 78 opus_int32 bitrate_bps; member 222 st->bitrate_bps = 3000+Fs*channels; in opus_encoder_init() 822 int variable_duration, int C, opus_int32 Fs, int bitrate_bps, in compute_frame_size() argument 833 LM = optimize_framesize(analysis_pcm, frame_size, C, Fs, bitrate_bps, in compute_frame_size() 1031 st->bitrate_bps = user_bitrate_to_bitrate(st, frame_size, max_data_bytes); in opus_encode_native() 1034 if (max_data_bytes<3 || st->bitrate_bps < 3*frame_rate*8 in opus_encode_native() 1035 || (frame_rate<50 && (max_data_bytes*frame_rate<300 || st->bitrate_bps < 2400))) in opus_encode_native() 1059 cbrBytes = IMIN( (st->bitrate_bps + 4*frame_rate)/(8*frame_rate) , max_data_bytes); in opus_encode_native() 1060 st->bitrate_bps = cbrBytes * (8*frame_rate); in opus_encode_native() 1066 equiv_rate = st->bitrate_bps - (40*st->channels+20)*(st->Fs/frame_size - 50); in opus_encode_native() [all …]
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/ |
D | tmmbr.cc | 55 uint32_t bitrate_bps = tmmbr_item.MaxTotalMediaBitRate * 1000; in CreateTmmbrItem() local 58 ComputeMantissaAnd6bitBase2Exponent(bitrate_bps, 17, &mantissa, &exp); in CreateTmmbrItem()
|
D | tmmbn.cc | 53 uint32_t bitrate_bps = tmmbr_item.MaxTotalMediaBitRate * 1000; in CreateTmmbrItem() local 56 ComputeMantissaAnd6bitBase2Exponent(bitrate_bps, 17, &mantissa, &exp); in CreateTmmbrItem()
|
/external/webrtc/webrtc/modules/video_coding/ |
D | media_optimization_unittest.cc | 33 void AddFrameAndAdvanceTime(uint32_t bitrate_bps, bool expect_frame_drop) { in AddFrameAndAdvanceTime() argument 37 size_t bytes_per_frame = bitrate_bps * frame_time_ms_ / (8 * 1000); in AddFrameAndAdvanceTime()
|
/external/webrtc/webrtc/modules/bitrate_controller/include/mock/ |
D | mock_bitrate_controller.h | 23 void(uint32_t bitrate_bps,
|
/external/libopus/tests/ |
D | test_opus_encode.c | 132 opus_int32 bitrate_bps; in run_test1() local 390 bitrate_bps=512000; in run_test1() 407 opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate_bps)); in run_test1() 452 bitrate_bps=((fast_rand()%508000+4000)+bitrate_bps)>>1; in run_test1()
|
/external/webrtc/webrtc/modules/bitrate_controller/include/ |
D | bitrate_controller.h | 36 virtual void OnNetworkChanged(uint32_t bitrate_bps,
|
/external/webrtc/webrtc/voice_engine/ |
D | voe_codec_impl.cc | 134 int VoECodecImpl::SetBitRate(int channel, int bitrate_bps) { in SetBitRate() argument 136 "SetBitRate(bitrate_bps=%d)", bitrate_bps); in SetBitRate() 142 bitrate_bps); in SetBitRate()
|
/external/webrtc/webrtc/call/ |
D | rampup_tests.cc | 380 void RampUpDownUpTester::EvolveTestState(int bitrate_bps, bool suspended) { in EvolveTestState() argument 385 if (bitrate_bps > kExpectedHighBitrateBps) { in EvolveTestState() 402 if (bitrate_bps < kExpectedLowBitrateBps && suspended) { in EvolveTestState() 419 if (bitrate_bps > kExpectedHighBitrateBps && !suspended) { in EvolveTestState()
|