Home
last modified time | relevance | path

Searched refs:target_bitrate_bps (Results 1 – 25 of 38) sorted by relevance

12

/external/webrtc/common_video/
Dbitrate_adjuster_unittest.cc49 uint32_t target_bitrate_bps = adjuster_.GetTargetBitrateBps(); in VerifyAdjustment() local
52 adjuster_.GetEstimatedBitrateBps().value_or(target_bitrate_bps); in VerifyAdjustment()
59 if (estimated_bitrate_bps > target_bitrate_bps) { in VerifyAdjustment()
60 EXPECT_LT(adjusted_bitrate_bps, target_bitrate_bps); in VerifyAdjustment()
75 const uint32_t target_bitrate_bps = 640000; in TEST_F() local
76 adjuster_.SetTargetBitrateBps(target_bitrate_bps); in TEST_F()
79 uint32_t actual_bitrate_bps = 2 * target_bitrate_bps; in TEST_F()
97 SimulateBitrateBps(target_bitrate_bps); in TEST_F()
103 SimulateBitrateBps(target_bitrate_bps); in TEST_F()
116 uint32_t target_bitrate_bps = 640000; in TEST_F() local
[all …]
Dbitrate_adjuster.cc83 uint32_t target_bitrate_bps) { in IsWithinTolerance() argument
84 if (target_bitrate_bps == 0) { in IsWithinTolerance()
88 static_cast<float>(target_bitrate_bps)); in IsWithinTolerance()
89 float delta_pct = delta / target_bitrate_bps; in IsWithinTolerance()
121 float target_bitrate_bps = target_bitrate_bps_; in UpdateBitrate() local
123 bitrate_tracker_.Rate(current_time_ms).value_or(target_bitrate_bps); in UpdateBitrate()
124 float error = target_bitrate_bps - estimated_bitrate_bps; in UpdateBitrate()
127 if (estimated_bitrate_bps > target_bitrate_bps || in UpdateBitrate()
128 error > kBitrateTolerancePct * target_bitrate_bps) { in UpdateBitrate()
131 float adjusted_bitrate_bps = target_bitrate_bps + adjustment; in UpdateBitrate()
[all …]
/external/webrtc/test/
Dencoder_settings.cc60 int target_bitrate_bps = -1; in CreateVideoStreams() local
73 target_bitrate_bps = in CreateVideoStreams()
74 stream.target_bitrate_bps > 0 in CreateVideoStreams()
75 ? stream.target_bitrate_bps in CreateVideoStreams()
77 target_bitrate_bps = std::min(max_bitrate_bps, target_bitrate_bps); in CreateVideoStreams()
80 RTC_DCHECK_LE(stream.min_bitrate_bps, target_bitrate_bps); in CreateVideoStreams()
97 target_bitrate_bps = max_bitrate_bps; in CreateVideoStreams()
100 RTC_DCHECK_NE(target_bitrate_bps, -1); in CreateVideoStreams()
102 stream_settings[i].target_bitrate_bps = target_bitrate_bps; in CreateVideoStreams()
113 bitrate_left_bps -= stream_settings[i].target_bitrate_bps; in CreateVideoStreams()
/external/webrtc/media/engine/
Dsimulcast_unittest.cc29 streams[0].target_bitrate_bps = 150000; in GetSimulcastBitrates720p()
32 streams[1].target_bitrate_bps = 500000; in GetSimulcastBitrates720p()
35 streams[2].target_bitrate_bps = 2500000; in GetSimulcastBitrates720p()
54 streams[0].target_bitrate_bps = 100000; in TEST()
55 streams[1].target_bitrate_bps = 200000; in TEST()
62 streams[0].target_bitrate_bps = 100000; in TEST()
63 streams[1].target_bitrate_bps = 200000; in TEST()
103 EXPECT_EQ(kExpected[i].target_bitrate_bps, streams[i].target_bitrate_bps); in TEST()
126 EXPECT_EQ(static_cast<int>(0.4 * kExpected[0].target_bitrate_bps / 0.6), in TEST()
127 streams[0].target_bitrate_bps); in TEST()
[all …]
Dsimulcast.cc225 total_max_bitrate_bps += layers[s].target_bitrate_bps; in GetTotalMaxBitrate()
305 layers[s].target_bitrate_bps = in GetNormalSimulcastLayers()
330 layers[s].target_bitrate_bps = in GetNormalSimulcastLayers()
331 static_cast<int>(layers[s].target_bitrate_bps * rate_factor); in GetNormalSimulcastLayers()
373 layers[0].target_bitrate_bps = kScreenshareDefaultTl0Bitrate.bps(); in GetScreenshareLayers()
404 max_bitrate_bps = 2 * ((layers[0].target_bitrate_bps * 10) / 4); in GetScreenshareLayers()
415 : layers[0].target_bitrate_bps * 2; in GetScreenshareLayers()
424 layers[1].target_bitrate_bps = max_bitrate_bps; in GetScreenshareLayers()
Dwebrtc_video_engine.cc3454 if (encoder_config.simulcast_layers[0].target_bitrate_bps <= 0) { in CreateDefaultVideoStreams()
3455 layer.target_bitrate_bps = max_bitrate_bps; in CreateDefaultVideoStreams()
3457 layer.target_bitrate_bps = in CreateDefaultVideoStreams()
3458 encoder_config.simulcast_layers[0].target_bitrate_bps; in CreateDefaultVideoStreams()
3550 if (encoder_config.simulcast_layers[i].target_bitrate_bps > 0) { in CreateSimulcastOrConfereceModeScreenshareStreams()
3551 layers[i].target_bitrate_bps = in CreateSimulcastOrConfereceModeScreenshareStreams()
3552 encoder_config.simulcast_layers[i].target_bitrate_bps; in CreateSimulcastOrConfereceModeScreenshareStreams()
3558 if (encoder_config.simulcast_layers[i].target_bitrate_bps <= 0) in CreateSimulcastOrConfereceModeScreenshareStreams()
3559 layers[i].target_bitrate_bps = layers[i].max_bitrate_bps * 3 / 4; in CreateSimulcastOrConfereceModeScreenshareStreams()
3560 if (layers[i].target_bitrate_bps < layers[i].min_bitrate_bps) in CreateSimulcastOrConfereceModeScreenshareStreams()
[all …]
Dwebrtc_voice_engine.cc870 if (send_rate != config_.send_codec_spec->target_bitrate_bps) { in SetMaxSendBitrate()
871 config_.send_codec_spec->target_bitrate_bps = send_rate; in SetMaxSendBitrate()
1013 config_.send_codec_spec->target_bitrate_bps = send_rate; in SetRtpParameters()
1063 config_.send_codec_spec->target_bitrate_bps) { in UpdateAllowedBitrateRange()
1064 config_.min_bitrate_bps = *config_.send_codec_spec->target_bitrate_bps; in UpdateAllowedBitrateRange()
1065 config_.max_bitrate_bps = *config_.send_codec_spec->target_bitrate_bps; in UpdateAllowedBitrateRange()
1091 if (send_codec_spec.target_bitrate_bps) { in UpdateSendCodecSpec()
1094 std::min(info->max_bitrate_bps, *send_codec_spec.target_bitrate_bps)); in UpdateSendCodecSpec()
1100 config_.send_codec_spec->target_bitrate_bps = ComputeSendBitrate( in UpdateSendCodecSpec()
1738 send_codec_spec->target_bitrate_bps = voice_codec.bitrate; in SetSendCodecs()
/external/webrtc/modules/video_coding/
Dvideo_codec_initializer_unittest.cc118 stream.target_bitrate_bps = kDefaultTargetBitrateBps; in DefaultStream()
129 stream.target_bitrate_bps = kScreenshareTl0BitrateBps; in DefaultScreenshareStream()
203 streams_[0].target_bitrate_bps + streams_[1].max_bitrate_bps; in TEST_F()
208 EXPECT_EQ(static_cast<uint32_t>(streams_[0].target_bitrate_bps), in TEST_F()
228 streams_[0].target_bitrate_bps + streams_[1].target_bitrate_bps; in TEST_F()
252 streams_[0].target_bitrate_bps + streams_[1].max_bitrate_bps; in TEST_F()
256 EXPECT_EQ(static_cast<uint32_t>(streams_[0].target_bitrate_bps), in TEST_F()
Dvideo_codec_initializer.cc102 RTC_DCHECK_GE(streams[i].target_bitrate_bps, streams[i].min_bitrate_bps); in VideoEncoderConfigToVideoCodec()
103 RTC_DCHECK_GE(streams[i].max_bitrate_bps, streams[i].target_bitrate_bps); in VideoEncoderConfigToVideoCodec()
110 sim_stream->targetBitrate = streams[i].target_bitrate_bps / 1000; in VideoEncoderConfigToVideoCodec()
/external/webrtc/video/
Dvideo_send_stream_impl_unittest.cc223 qvga_stream.target_bitrate_bps = 150000; in TEST_F()
233 vga_stream.target_bitrate_bps = 500000; in TEST_F()
253 static_cast<uint32_t>(qvga_stream.target_bitrate_bps + in TEST_F()
288 low_stream.target_bitrate_bps = 200000; in TEST_F()
299 high_stream.target_bitrate_bps = 1250000; in TEST_F()
355 low_stream.target_bitrate_bps = 100000; in TEST_F()
365 high_stream.target_bitrate_bps = 500000; in TEST_F()
384 static_cast<uint32_t>(low_stream.target_bitrate_bps + in TEST_F()
699 qvga_stream.target_bitrate_bps = 150000; in TEST_F()
715 DataRate::BitsPerSec(qvga_stream.target_bitrate_bps); in TEST_F()
[all …]
Dvideo_quality_test.cc446 ss << " (" << params_.video[0].target_bitrate_bps / 1000 << "kbps"; in GenerateGraphTitle()
500 params_.video[video_idx].target_bitrate_bps); in CheckParamsAndInjectionComponents()
501 RTC_CHECK_GE(params_.video[video_idx].target_bitrate_bps, in CheckParamsAndInjectionComponents()
516 RTC_CHECK_GE(stream.target_bitrate_bps, stream.min_bitrate_bps); in CheckParamsAndInjectionComponents()
517 RTC_CHECK_GE(stream.max_bitrate_bps, stream.target_bitrate_bps); in CheckParamsAndInjectionComponents()
583 stream.target_bitrate_bps = params.video[video_idx].target_bitrate_bps; in DefaultVideoStream()
598 stream.target_bitrate_bps = 37500; in DefaultThumbnailStream()
658 stream.target_bitrate_bps = v[4]; in FillScalabilitySettings()
Dvideo_send_stream_impl.cc101 hysteresis_factor * active_streams[0].target_bitrate_bps + 0.5); in CalculateMaxPadBitrateBps()
109 active_streams[top_active_stream_idx].target_bitrate_bps); in CalculateMaxPadBitrateBps()
113 pad_up_to_bitrate_bps += active_streams[i].target_bitrate_bps; in CalculateMaxPadBitrateBps()
Dsv_loopback.cc619 params.video[screenshare_idx].target_bitrate_bps = in Loopback()
634 params.video[camera_idx].target_bitrate_bps = VideoTargetBitrateKbps() * 1000; in Loopback()
/external/webrtc/call/
Daudio_send_stream.cc92 target_bitrate_bps == rhs.target_bitrate_bps) { in operator ==()
Daudio_send_stream.h67 int64_t target_bitrate_bps = 0; member
145 absl::optional<int> target_bitrate_bps; member
Dcall.cc1183 uint32_t target_bitrate_bps = msg.target_rate.bps(); in OnTargetTransferRate() local
1185 receive_side_cc_.OnBitrateChanged(target_bitrate_bps); in OnTargetTransferRate()
1189 ToQueuedTask(task_safety_, [this, target_bitrate_bps]() { in OnTargetTransferRate()
1191 last_bandwidth_bps_ = target_bitrate_bps; in OnTargetTransferRate()
1195 if (target_bitrate_bps == 0 || video_send_streams_.empty()) { in OnTargetTransferRate()
1201 estimated_send_bitrate_kbps_counter_.Add(target_bitrate_bps / 1000); in OnTargetTransferRate()
1205 std::max(target_bitrate_bps, min_allocated_send_bitrate_bps_); in OnTargetTransferRate()
/external/webrtc/api/video_codecs/
Dvideo_encoder_config.cc23 target_bitrate_bps(-1), in VideoStream()
40 ss << ", target_bitrate_bps:" << target_bitrate_bps; in ToString()
Dvideo_encoder_config.h45 int target_bitrate_bps; member
/external/webrtc/modules/remote_bitrate_estimator/
Dremote_bitrate_estimator_abs_send_time.cc282 uint32_t target_bitrate_bps = 0; in IncomingPacketInfo() local
353 target_bitrate_bps = in IncomingPacketInfo()
362 observer_->OnReceiveBitrateChanged(ssrcs, target_bitrate_bps); in IncomingPacketInfo()
/external/webrtc/common_video/include/
Dbitrate_adjuster.h60 bool IsWithinTolerance(uint32_t bitrate_bps, uint32_t target_bitrate_bps);
/external/webrtc/test/scenario/
Daudio_stream.cc97 send_config.send_codec_spec->target_bitrate_bps = in SendAudioStream()
165 sb.AppendFormat("%.0lf", stats.target_bitrate_bps / 8.0); in StatsPrinter()
/external/webrtc/audio/
Daudio_send_stream.cc455 stats.target_bitrate_bps = channel_send_->GetBitrate(); in GetStats()
633 if (spec.target_bitrate_bps) { in SetupSendCodec()
634 encoder->OnReceivedTargetAudioBitrate(*spec.target_bitrate_bps); in SetupSendCodec()
714 new_config.send_codec_spec->target_bitrate_bps; in ReconfigureSendCodec()
719 old_config.send_codec_spec->target_bitrate_bps) { in ReconfigureSendCodec()
/external/webrtc/video/end_to_end_tests/
Dssrc_tests.cc193 streams[i].target_bitrate_bps = 15000; in TestSendsSetSsrcs()
302 layer.target_bitrate_bps = 15000; in TEST_F()
Drtp_rtcp_tests.cc152 streams[i].target_bitrate_bps = 15000; in TestRtpStatePreservation()
160 streams[0].target_bitrate_bps = 3 * 15000; in TestRtpStatePreservation()
/external/webrtc/api/test/
Dvideo_quality_test_fixture.h51 int target_bitrate_bps = 800; member

12