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

Side by Side Diff: webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc

Issue 2626203002: Rename base/analytics/ to base/numerics/ (Closed)
Patch Set: Rebase Created 3 years, 11 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
« no previous file with comments | « webrtc/modules/audio_coding/BUILD.gn ('k') | webrtc/modules/congestion_controller/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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/codecs/opus/audio_encoder_opus.h" 11 #include "webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h"
12 12
13 #include <algorithm> 13 #include <algorithm>
14 #include <iterator> 14 #include <iterator>
15 15
16 #include "webrtc/base/analytics/exp_filter.h"
17 #include "webrtc/base/checks.h" 16 #include "webrtc/base/checks.h"
18 #include "webrtc/base/logging.h" 17 #include "webrtc/base/logging.h"
18 #include "webrtc/base/numerics/exp_filter.h"
19 #include "webrtc/base/safe_conversions.h" 19 #include "webrtc/base/safe_conversions.h"
20 #include "webrtc/base/timeutils.h" 20 #include "webrtc/base/timeutils.h"
21 #include "webrtc/common_types.h" 21 #include "webrtc/common_types.h"
22 #include "webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adapto r_impl.h" 22 #include "webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adapto r_impl.h"
23 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h " 23 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h "
24 #include "webrtc/modules/audio_coding/codecs/opus/opus_interface.h" 24 #include "webrtc/modules/audio_coding/codecs/opus/opus_interface.h"
25 #include "webrtc/system_wrappers/include/field_trial.h" 25 #include "webrtc/system_wrappers/include/field_trial.h"
26 26
27 namespace webrtc { 27 namespace webrtc {
28 28
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 config_.uplink_bandwidth_update_interval_ms) { 550 config_.uplink_bandwidth_update_interval_ms) {
551 rtc::Optional<float> smoothed_bitrate = bitrate_smoother_->GetAverage(); 551 rtc::Optional<float> smoothed_bitrate = bitrate_smoother_->GetAverage();
552 if (smoothed_bitrate) 552 if (smoothed_bitrate)
553 audio_network_adaptor_->SetUplinkBandwidth(*smoothed_bitrate); 553 audio_network_adaptor_->SetUplinkBandwidth(*smoothed_bitrate);
554 bitrate_smoother_last_update_time_ = rtc::Optional<int64_t>(now_ms); 554 bitrate_smoother_last_update_time_ = rtc::Optional<int64_t>(now_ms);
555 } 555 }
556 } 556 }
557 } 557 }
558 558
559 } // namespace webrtc 559 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/BUILD.gn ('k') | webrtc/modules/congestion_controller/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698