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

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

Issue 2497403004: Integrate FlexFEC in video_loopback. (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 std::string EncodedFramePath() { 189 std::string EncodedFramePath() {
190 return static_cast<std::string>(FLAGS_encoded_frame_path); 190 return static_cast<std::string>(FLAGS_encoded_frame_path);
191 } 191 }
192 192
193 DEFINE_bool(logs, false, "print logs to stderr"); 193 DEFINE_bool(logs, false, "print logs to stderr");
194 194
195 DEFINE_bool(send_side_bwe, true, "Use send-side bandwidth estimation"); 195 DEFINE_bool(send_side_bwe, true, "Use send-side bandwidth estimation");
196 196
197 DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur"); 197 DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur");
198 198
199 DEFINE_bool(use_fec, false, "Use forward error correction."); 199 DEFINE_bool(use_ulpfec, false, "Use RED+ULPFEC forward error correction.");
200
201 DEFINE_bool(use_flexfec, false, "Use FlexFEC forward error correction.");
200 202
201 DEFINE_bool(audio, false, "Add audio stream"); 203 DEFINE_bool(audio, false, "Add audio stream");
202 204
203 DEFINE_bool(audio_video_sync, false, "Sync audio and video stream (no effect if" 205 DEFINE_bool(audio_video_sync, false, "Sync audio and video stream (no effect if"
204 " audio is false)"); 206 " audio is false)");
205 207
206 DEFINE_bool(video, true, "Add video stream"); 208 DEFINE_bool(video, true, "Add video stream");
207 209
208 DEFINE_string( 210 DEFINE_string(
209 force_fieldtrials, 211 force_fieldtrials,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 flags::Height(), 247 flags::Height(),
246 flags::Fps(), 248 flags::Fps(),
247 flags::MinBitrateKbps() * 1000, 249 flags::MinBitrateKbps() * 1000,
248 flags::TargetBitrateKbps() * 1000, 250 flags::TargetBitrateKbps() * 1000,
249 flags::MaxBitrateKbps() * 1000, 251 flags::MaxBitrateKbps() * 1000,
250 flags::FLAGS_suspend_below_min_bitrate, 252 flags::FLAGS_suspend_below_min_bitrate,
251 flags::Codec(), 253 flags::Codec(),
252 flags::NumTemporalLayers(), 254 flags::NumTemporalLayers(),
253 flags::SelectedTL(), 255 flags::SelectedTL(),
254 0, // No min transmit bitrate. 256 0, // No min transmit bitrate.
255 flags::FLAGS_use_fec, 257 flags::FLAGS_use_ulpfec,
256 false, // TODO(brandtr): Wire up FlexFEC in future CL. 258 flags::FLAGS_use_flexfec,
257 flags::EncodedFramePath(), 259 flags::EncodedFramePath(),
258 flags::Clip()}; 260 flags::Clip()};
259 params.audio = {flags::FLAGS_audio, flags::FLAGS_audio_video_sync}; 261 params.audio = {flags::FLAGS_audio, flags::FLAGS_audio_video_sync};
260 params.screenshare.enabled = false; 262 params.screenshare.enabled = false;
261 params.analyzer = {"video", 0.0, 0.0, flags::DurationSecs(), 263 params.analyzer = {"video", 0.0, 0.0, flags::DurationSecs(),
262 flags::OutputFilename(), flags::GraphTitle()}; 264 flags::OutputFilename(), flags::GraphTitle()};
263 params.pipe = pipe_config; 265 params.pipe = pipe_config;
264 params.logs = flags::FLAGS_logs; 266 params.logs = flags::FLAGS_logs;
265 267
266 std::vector<std::string> stream_descriptors; 268 std::vector<std::string> stream_descriptors;
(...skipping 16 matching lines...) Expand all
283 } // namespace webrtc 285 } // namespace webrtc
284 286
285 int main(int argc, char* argv[]) { 287 int main(int argc, char* argv[]) {
286 ::testing::InitGoogleTest(&argc, argv); 288 ::testing::InitGoogleTest(&argc, argv);
287 google::ParseCommandLineFlags(&argc, &argv, true); 289 google::ParseCommandLineFlags(&argc, &argv, true);
288 webrtc::test::InitFieldTrialsFromString( 290 webrtc::test::InitFieldTrialsFromString(
289 webrtc::flags::FLAGS_force_fieldtrials); 291 webrtc::flags::FLAGS_force_fieldtrials);
290 webrtc::test::RunTest(webrtc::Loopback); 292 webrtc::test::RunTest(webrtc::Loopback);
291 return 0; 293 return 0;
292 } 294 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698