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

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

Issue 2899303002: Rename elad.alon to eladalon, to avoid confusion between repositories. (Closed)
Patch Set: Created 3 years, 7 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
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Sort controllers based on their significance. 69 // Sort controllers based on their significance.
70 std::vector<Controller*> GetSortedControllers( 70 std::vector<Controller*> GetSortedControllers(
71 const Controller::NetworkMetrics& metrics) override; 71 const Controller::NetworkMetrics& metrics) override;
72 72
73 std::vector<Controller*> GetControllers() const override; 73 std::vector<Controller*> GetControllers() const override;
74 74
75 private: 75 private:
76 // Scoring point is a subset of NetworkMetrics that is used for comparing the 76 // Scoring point is a subset of NetworkMetrics that is used for comparing the
77 // significance of controllers. 77 // significance of controllers.
78 struct ScoringPoint { 78 struct ScoringPoint {
79 // TODO(elad.alon): Do we want to experiment with RPLR-based scoring? 79 // TODO(eladalon): Do we want to experiment with RPLR-based scoring?
80 ScoringPoint(int uplink_bandwidth_bps, float uplink_packet_loss_fraction); 80 ScoringPoint(int uplink_bandwidth_bps, float uplink_packet_loss_fraction);
81 81
82 // Calculate the normalized [0,1] distance between two scoring points. 82 // Calculate the normalized [0,1] distance between two scoring points.
83 float SquaredDistanceTo(const ScoringPoint& scoring_point) const; 83 float SquaredDistanceTo(const ScoringPoint& scoring_point) const;
84 84
85 int uplink_bandwidth_bps; 85 int uplink_bandwidth_bps;
86 float uplink_packet_loss_fraction; 86 float uplink_packet_loss_fraction;
87 }; 87 };
88 88
89 const Config config_; 89 const Config config_;
(...skipping 10 matching lines...) Expand all
100 // |scoring_points_| saves the characteristic scoring points of various 100 // |scoring_points_| saves the characteristic scoring points of various
101 // controllers. 101 // controllers.
102 std::map<const Controller*, ScoringPoint> controller_scoring_points_; 102 std::map<const Controller*, ScoringPoint> controller_scoring_points_;
103 103
104 RTC_DISALLOW_COPY_AND_ASSIGN(ControllerManagerImpl); 104 RTC_DISALLOW_COPY_AND_ASSIGN(ControllerManagerImpl);
105 }; 105 };
106 106
107 } // namespace webrtc 107 } // namespace webrtc
108 108
109 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_ H_ 109 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_ H_
OLDNEW
« no previous file with comments | « webrtc/audio/audio_send_stream.cc ('k') | webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698