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