| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 int min_reordering_time_ms; | 44 int min_reordering_time_ms; |
| 45 // Least squared distance from last scoring point for a new reordering to be | 45 // Least squared distance from last scoring point for a new reordering to be |
| 46 // made. | 46 // made. |
| 47 float min_reordering_squared_distance; | 47 float min_reordering_squared_distance; |
| 48 const Clock* clock; | 48 const Clock* clock; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 static std::unique_ptr<ControllerManager> Create( | 51 static std::unique_ptr<ControllerManager> Create( |
| 52 const std::string& config_string, | 52 const std::string& config_string, |
| 53 size_t num_encoder_channels, | 53 size_t num_encoder_channels, |
| 54 rtc::ArrayView<const int> encoder_frame_lengths_ms, | 54 const std::vector<int>& encoder_frame_lengths_ms, |
| 55 size_t intial_channels_to_encode, | 55 size_t intial_channels_to_encode, |
| 56 int initial_frame_length_ms, | 56 int initial_frame_length_ms, |
| 57 int initial_bitrate_bps, | 57 int initial_bitrate_bps, |
| 58 bool initial_fec_enabled, | 58 bool initial_fec_enabled, |
| 59 bool initial_dtx_enabled, | 59 bool initial_dtx_enabled, |
| 60 const Clock* clock); | 60 const Clock* clock); |
| 61 | 61 |
| 62 explicit ControllerManagerImpl(const Config& config); | 62 explicit ControllerManagerImpl(const Config& config); |
| 63 | 63 |
| 64 // Dependency injection for testing. | 64 // Dependency injection for testing. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // |scoring_points_| saves the characteristic scoring points of various | 103 // |scoring_points_| saves the characteristic scoring points of various |
| 104 // controllers. | 104 // controllers. |
| 105 std::map<const Controller*, ScoringPoint> controller_scoring_points_; | 105 std::map<const Controller*, ScoringPoint> controller_scoring_points_; |
| 106 | 106 |
| 107 RTC_DISALLOW_COPY_AND_ASSIGN(ControllerManagerImpl); | 107 RTC_DISALLOW_COPY_AND_ASSIGN(ControllerManagerImpl); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace webrtc | 110 } // namespace webrtc |
| 111 | 111 |
| 112 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_
H_ | 112 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_
H_ |
| OLD | NEW |