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 |
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <memory> | 15 #include <memory> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/base/constructormagic.h" | 18 #include "webrtc/base/constructormagic.h" |
| 19 #include "webrtc/base/protobuf_utils.h" |
19 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller.h" | 20 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller.h" |
20 | 21 |
21 namespace webrtc { | 22 namespace webrtc { |
22 | 23 |
23 class Clock; | 24 class Clock; |
24 | 25 |
25 class ControllerManager { | 26 class ControllerManager { |
26 public: | 27 public: |
27 virtual ~ControllerManager() = default; | 28 virtual ~ControllerManager() = default; |
28 | 29 |
(...skipping 13 matching lines...) Expand all Loading... |
42 ~Config(); | 43 ~Config(); |
43 // Least time since last reordering for a new reordering to be made. | 44 // Least time since last reordering for a new reordering to be made. |
44 int min_reordering_time_ms; | 45 int min_reordering_time_ms; |
45 // Least squared distance from last scoring point for a new reordering to be | 46 // Least squared distance from last scoring point for a new reordering to be |
46 // made. | 47 // made. |
47 float min_reordering_squared_distance; | 48 float min_reordering_squared_distance; |
48 const Clock* clock; | 49 const Clock* clock; |
49 }; | 50 }; |
50 | 51 |
51 static std::unique_ptr<ControllerManager> Create( | 52 static std::unique_ptr<ControllerManager> Create( |
52 const std::string& config_string, | 53 const ProtoString& config_string, |
53 size_t num_encoder_channels, | 54 size_t num_encoder_channels, |
54 rtc::ArrayView<const int> encoder_frame_lengths_ms, | 55 rtc::ArrayView<const int> encoder_frame_lengths_ms, |
55 int min_encoder_bitrate_bps, | 56 int min_encoder_bitrate_bps, |
56 size_t intial_channels_to_encode, | 57 size_t intial_channels_to_encode, |
57 int initial_frame_length_ms, | 58 int initial_frame_length_ms, |
58 int initial_bitrate_bps, | 59 int initial_bitrate_bps, |
59 bool initial_fec_enabled, | 60 bool initial_fec_enabled, |
60 bool initial_dtx_enabled, | 61 bool initial_dtx_enabled, |
61 const Clock* clock); | 62 const Clock* clock); |
62 | 63 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // |scoring_points_| saves the characteristic scoring points of various | 106 // |scoring_points_| saves the characteristic scoring points of various |
106 // controllers. | 107 // controllers. |
107 std::map<const Controller*, ScoringPoint> controller_scoring_points_; | 108 std::map<const Controller*, ScoringPoint> controller_scoring_points_; |
108 | 109 |
109 RTC_DISALLOW_COPY_AND_ASSIGN(ControllerManagerImpl); | 110 RTC_DISALLOW_COPY_AND_ASSIGN(ControllerManagerImpl); |
110 }; | 111 }; |
111 | 112 |
112 } // namespace webrtc | 113 } // namespace webrtc |
113 | 114 |
114 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_
H_ | 115 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_
H_ |
OLD | NEW |