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 27 matching lines...) Expand all Loading... | |
38 struct Config { | 38 struct Config { |
39 Config(int min_reordering_time_ms, | 39 Config(int min_reordering_time_ms, |
40 float min_reordering_squared_distance, | 40 float min_reordering_squared_distance, |
41 const Clock* clock); | 41 const Clock* clock); |
42 ~Config(); | 42 ~Config(); |
43 int min_reordering_time_ms; | 43 int min_reordering_time_ms; |
44 float min_reordering_squared_distance; | 44 float min_reordering_squared_distance; |
45 const Clock* clock; | 45 const Clock* clock; |
46 }; | 46 }; |
47 | 47 |
48 static std::unique_ptr<ControllerManager> Create( | |
49 const std::string& config_string, | |
kwiberg-webrtc
2016/09/28 08:59:22
Is this the protobuf? In that case, isn't there a
minyue-webrtc
2016/09/28 12:47:26
Serializing makes cross-platform/language possible
kwiberg-webrtc
2016/09/28 13:10:24
But that argues for serialization at language and
minyue-webrtc
2016/09/28 16:32:34
This is also because we want to limit the use of p
| |
50 size_t num_encoder_channels, | |
51 const std::vector<int>& encoder_frame_lengths_ms, | |
michaelt
2016/09/27 15:51:26
we could pass a array_view here. Since the support
minyue-webrtc
2016/09/27 19:43:59
good. with do.
hlundin-webrtc
2016/09/27 20:21:15
I wouldn't mind keeping this like this. It keeps u
kwiberg-webrtc
2016/09/28 08:59:22
ArrayView is the right choice here; it wouldn't ca
minyue-webrtc
2016/09/28 12:47:26
Done.
| |
52 size_t intial_channels_to_encode, | |
53 int initial_frame_length_ms, | |
54 int initial_bitrate_bps, | |
55 bool initial_fec_enabled, | |
56 bool initial_dtx_enabled, | |
57 const Clock* clock); | |
58 | |
48 explicit ControllerManagerImpl(const Config& config); | 59 explicit ControllerManagerImpl(const Config& config); |
49 | 60 |
50 // Dependency injection for testing. | 61 // Dependency injection for testing. |
51 ControllerManagerImpl( | 62 ControllerManagerImpl( |
52 const Config& config, | 63 const Config& config, |
53 std::vector<std::unique_ptr<Controller>>&& controllers, | 64 std::vector<std::unique_ptr<Controller>>&& controllers, |
54 const std::map<const Controller*, std::pair<int, float>>& | 65 const std::map<const Controller*, std::pair<int, float>>& |
55 chracteristic_points); | 66 chracteristic_points); |
56 | 67 |
57 ~ControllerManagerImpl() override; | 68 ~ControllerManagerImpl() override; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 // |scoring_points_| saves the characteristic scoring points of various | 100 // |scoring_points_| saves the characteristic scoring points of various |
90 // controllers. | 101 // controllers. |
91 std::map<const Controller*, ScoringPoint> controller_scoring_points_; | 102 std::map<const Controller*, ScoringPoint> controller_scoring_points_; |
92 | 103 |
93 RTC_DISALLOW_COPY_AND_ASSIGN(ControllerManagerImpl); | 104 RTC_DISALLOW_COPY_AND_ASSIGN(ControllerManagerImpl); |
94 }; | 105 }; |
95 | 106 |
96 } // namespace webrtc | 107 } // namespace webrtc |
97 | 108 |
98 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_ H_ | 109 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_CONTROLLER_MANAGER_ H_ |
OLD | NEW |