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

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

Issue 2429503002: Simplifying audio network adaptor by moving receiver frame length range to ctor. (Closed)
Patch Set: do not touch ACM/VoE Created 4 years, 2 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698