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

Side by Side Diff: webrtc/video/video_loopback.cc

Issue 1338203003: Wire up send-side bandwidth estimation. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 "trials are separated by \"/\""); 105 "trials are separated by \"/\"");
106 106
107 DEFINE_int32(num_temporal_layers, 107 DEFINE_int32(num_temporal_layers,
108 0, 108 0,
109 "Number of temporal layers. Set to 1-4 to override."); 109 "Number of temporal layers. Set to 1-4 to override.");
110 110
111 size_t NumTemporalLayers() { 111 size_t NumTemporalLayers() {
112 return static_cast<size_t>(FLAGS_num_temporal_layers); 112 return static_cast<size_t>(FLAGS_num_temporal_layers);
113 } 113 }
114 114
115 DEFINE_bool(send_side_bwe, false, "Use send-side bandwidth estimation");
115 } // namespace flags 116 } // namespace flags
116 117
117 void Loopback() { 118 void Loopback() {
118 test::Loopback::Config config{flags::Width(), 119 test::Loopback::Config config{flags::Width(),
119 flags::Height(), 120 flags::Height(),
120 flags::Fps(), 121 flags::Fps(),
121 flags::MinBitrate(), 122 flags::MinBitrate(),
122 flags::StartBitrate(), 123 flags::StartBitrate(),
123 flags::MaxBitrate(), 124 flags::MaxBitrate(),
124 0, // No min transmit bitrate. 125 0, // No min transmit bitrate.
125 flags::Codec(), 126 flags::Codec(),
126 flags::NumTemporalLayers(), 127 flags::NumTemporalLayers(),
127 flags::LossPercent(), 128 flags::LossPercent(),
128 flags::LinkCapacity(), 129 flags::LinkCapacity(),
129 flags::QueueSize(), 130 flags::QueueSize(),
130 flags::AvgPropagationDelayMs(), 131 flags::AvgPropagationDelayMs(),
131 flags::StdPropagationDelayMs(), 132 flags::StdPropagationDelayMs(),
132 flags::FLAGS_logs}; 133 flags::FLAGS_logs,
134 flags::FLAGS_send_side_bwe};
133 test::Loopback loopback(config); 135 test::Loopback loopback(config);
134 loopback.Run(); 136 loopback.Run();
135 } 137 }
136 } // namespace webrtc 138 } // namespace webrtc
137 139
138 int main(int argc, char* argv[]) { 140 int main(int argc, char* argv[]) {
139 ::testing::InitGoogleTest(&argc, argv); 141 ::testing::InitGoogleTest(&argc, argv);
140 google::ParseCommandLineFlags(&argc, &argv, true); 142 google::ParseCommandLineFlags(&argc, &argv, true);
141 webrtc::test::InitFieldTrialsFromString( 143 webrtc::test::InitFieldTrialsFromString(
142 webrtc::flags::FLAGS_force_fieldtrials); 144 webrtc::flags::FLAGS_force_fieldtrials);
143 webrtc::test::RunTest(webrtc::Loopback); 145 webrtc::test::RunTest(webrtc::Loopback);
144 return 0; 146 return 0;
145 } 147 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698