Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc

Issue 2964773002: Revert "Update includes for webrtc/{base => rtc_base} rename (1/3)" (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
11 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h " 11 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h "
12 12
13 #include <cmath> 13 #include <cmath>
14 #include <utility> 14 #include <utility>
15 15
16 #include "webrtc/base/ignore_wundef.h"
17 #include "webrtc/base/timeutils.h"
16 #include "webrtc/modules/audio_coding/audio_network_adaptor/bitrate_controller.h " 18 #include "webrtc/modules/audio_coding/audio_network_adaptor/bitrate_controller.h "
17 #include "webrtc/modules/audio_coding/audio_network_adaptor/channel_controller.h " 19 #include "webrtc/modules/audio_coding/audio_network_adaptor/channel_controller.h "
18 #include "webrtc/modules/audio_coding/audio_network_adaptor/debug_dump_writer.h" 20 #include "webrtc/modules/audio_coding/audio_network_adaptor/debug_dump_writer.h"
19 #include "webrtc/modules/audio_coding/audio_network_adaptor/dtx_controller.h" 21 #include "webrtc/modules/audio_coding/audio_network_adaptor/dtx_controller.h"
20 #include "webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_b ased.h" 22 #include "webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_b ased.h"
21 #include "webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_rplr_ based.h" 23 #include "webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_rplr_ based.h"
22 #include "webrtc/modules/audio_coding/audio_network_adaptor/frame_length_control ler.h" 24 #include "webrtc/modules/audio_coding/audio_network_adaptor/frame_length_control ler.h"
23 #include "webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve .h" 25 #include "webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve .h"
24 #include "webrtc/rtc_base/ignore_wundef.h"
25 #include "webrtc/rtc_base/timeutils.h"
26 26
27 #if WEBRTC_ENABLE_PROTOBUF 27 #if WEBRTC_ENABLE_PROTOBUF
28 RTC_PUSH_IGNORING_WUNDEF() 28 RTC_PUSH_IGNORING_WUNDEF()
29 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD 29 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD
30 #include "external/webrtc/webrtc/modules/audio_coding/audio_network_adaptor/conf ig.pb.h" 30 #include "external/webrtc/webrtc/modules/audio_coding/audio_network_adaptor/conf ig.pb.h"
31 #else 31 #else
32 #include "webrtc/modules/audio_coding/audio_network_adaptor/config.pb.h" 32 #include "webrtc/modules/audio_coding/audio_network_adaptor/config.pb.h"
33 #endif 33 #endif
34 RTC_POP_IGNORING_WUNDEF() 34 RTC_POP_IGNORING_WUNDEF()
35 #endif 35 #endif
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 NormalizeUplinkBandwidth(scoring_point.uplink_bandwidth_bps) - 411 NormalizeUplinkBandwidth(scoring_point.uplink_bandwidth_bps) -
412 NormalizeUplinkBandwidth(uplink_bandwidth_bps); 412 NormalizeUplinkBandwidth(uplink_bandwidth_bps);
413 float diff_normalized_packet_loss = 413 float diff_normalized_packet_loss =
414 NormalizePacketLossFraction(scoring_point.uplink_packet_loss_fraction) - 414 NormalizePacketLossFraction(scoring_point.uplink_packet_loss_fraction) -
415 NormalizePacketLossFraction(uplink_packet_loss_fraction); 415 NormalizePacketLossFraction(uplink_packet_loss_fraction);
416 return std::pow(diff_normalized_bitrate_bps, 2) + 416 return std::pow(diff_normalized_bitrate_bps, 2) +
417 std::pow(diff_normalized_packet_loss, 2); 417 std::pow(diff_normalized_packet_loss, 2);
418 } 418 }
419 419
420 } // namespace webrtc 420 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698