| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 ControllerManagerImpl::Config::Config(int min_reordering_time_ms, | 150 ControllerManagerImpl::Config::Config(int min_reordering_time_ms, |
| 151 float min_reordering_squared_distance, | 151 float min_reordering_squared_distance, |
| 152 const Clock* clock) | 152 const Clock* clock) |
| 153 : min_reordering_time_ms(min_reordering_time_ms), | 153 : min_reordering_time_ms(min_reordering_time_ms), |
| 154 min_reordering_squared_distance(min_reordering_squared_distance), | 154 min_reordering_squared_distance(min_reordering_squared_distance), |
| 155 clock(clock) {} | 155 clock(clock) {} |
| 156 | 156 |
| 157 ControllerManagerImpl::Config::~Config() = default; | 157 ControllerManagerImpl::Config::~Config() = default; |
| 158 | 158 |
| 159 std::unique_ptr<ControllerManager> ControllerManagerImpl::Create( | 159 std::unique_ptr<ControllerManager> ControllerManagerImpl::Create( |
| 160 const std::string& config_string, | 160 const ProtoString& config_string, |
| 161 size_t num_encoder_channels, | 161 size_t num_encoder_channels, |
| 162 rtc::ArrayView<const int> encoder_frame_lengths_ms, | 162 rtc::ArrayView<const int> encoder_frame_lengths_ms, |
| 163 int min_encoder_bitrate_bps, | 163 int min_encoder_bitrate_bps, |
| 164 size_t intial_channels_to_encode, | 164 size_t intial_channels_to_encode, |
| 165 int initial_frame_length_ms, | 165 int initial_frame_length_ms, |
| 166 int initial_bitrate_bps, | 166 int initial_bitrate_bps, |
| 167 bool initial_fec_enabled, | 167 bool initial_fec_enabled, |
| 168 bool initial_dtx_enabled, | 168 bool initial_dtx_enabled, |
| 169 const Clock* clock) { | 169 const Clock* clock) { |
| 170 #ifdef WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP | 170 #ifdef WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 NormalizeUplinkBandwidth(scoring_point.uplink_bandwidth_bps) - | 344 NormalizeUplinkBandwidth(scoring_point.uplink_bandwidth_bps) - |
| 345 NormalizeUplinkBandwidth(uplink_bandwidth_bps); | 345 NormalizeUplinkBandwidth(uplink_bandwidth_bps); |
| 346 float diff_normalized_packet_loss = | 346 float diff_normalized_packet_loss = |
| 347 NormalizePacketLossFraction(scoring_point.uplink_packet_loss_fraction) - | 347 NormalizePacketLossFraction(scoring_point.uplink_packet_loss_fraction) - |
| 348 NormalizePacketLossFraction(uplink_packet_loss_fraction); | 348 NormalizePacketLossFraction(uplink_packet_loss_fraction); |
| 349 return std::pow(diff_normalized_bitrate_bps, 2) + | 349 return std::pow(diff_normalized_bitrate_bps, 2) + |
| 350 std::pow(diff_normalized_packet_loss, 2); | 350 std::pow(diff_normalized_packet_loss, 2); |
| 351 } | 351 } |
| 352 | 352 |
| 353 } // namespace webrtc | 353 } // namespace webrtc |
| OLD | NEW |