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

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

Issue 2974903002: Add rtpdump and rtc log functionality to screenshare_loopback and video_loopback (Closed)
Patch Set: Cleanup Created 3 years, 5 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 int NumTemporalLayers() { 62 int NumTemporalLayers() {
63 return static_cast<int>(FLAG_num_temporal_layers); 63 return static_cast<int>(FLAG_num_temporal_layers);
64 } 64 }
65 65
66 // Flags common with video loopback, with equal default values. 66 // Flags common with video loopback, with equal default values.
67 DEFINE_string(codec, "VP8", "Video codec to use."); 67 DEFINE_string(codec, "VP8", "Video codec to use.");
68 std::string Codec() { 68 std::string Codec() {
69 return static_cast<std::string>(FLAG_codec); 69 return static_cast<std::string>(FLAG_codec);
70 } 70 }
71 71
72 DEFINE_string(rtc_event_log_name, "", "Filename for rtc event log.");
73 std::string RtcEventLogName() {
74 return static_cast<std::string>(FLAG_rtc_event_log_name);
75 }
76
77 DEFINE_string(rtp_dump_name, "", "Filename for dumped received RTP stream.");
78 std::string RtpDumpName() {
79 return static_cast<std::string>(FLAG_rtp_dump_name);
80 }
81
72 DEFINE_int(selected_tl, 82 DEFINE_int(selected_tl,
73 -1, 83 -1,
74 "Temporal layer to show or analyze. -1 to disable filtering."); 84 "Temporal layer to show or analyze. -1 to disable filtering.");
75 int SelectedTL() { 85 int SelectedTL() {
76 return static_cast<int>(FLAG_selected_tl); 86 return static_cast<int>(FLAG_selected_tl);
77 } 87 }
78 88
79 DEFINE_int( 89 DEFINE_int(
80 duration, 90 duration,
81 0, 91 0,
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 false, // ULPFEC disabled. 278 false, // ULPFEC disabled.
269 false, // FlexFEC disabled. 279 false, // FlexFEC disabled.
270 flags::EncodedFramePath(), 280 flags::EncodedFramePath(),
271 ""}; 281 ""};
272 params.screenshare = {true, flags::SlideChangeInterval(), 282 params.screenshare = {true, flags::SlideChangeInterval(),
273 flags::ScrollDuration(), flags::Slides()}; 283 flags::ScrollDuration(), flags::Slides()};
274 params.analyzer = {"screenshare", 0.0, 0.0, flags::DurationSecs(), 284 params.analyzer = {"screenshare", 0.0, 0.0, flags::DurationSecs(),
275 flags::OutputFilename(), flags::GraphTitle()}; 285 flags::OutputFilename(), flags::GraphTitle()};
276 params.pipe = pipe_config; 286 params.pipe = pipe_config;
277 params.logs = flags::FLAG_logs; 287 params.logs = flags::FLAG_logs;
288 params.rtc_event_log_name = flags::RtcEventLogName();
289 params.rtp_dump_name = flags::RtpDumpName();
278 290
279 if (flags::NumStreams() > 1 && flags::Stream0().empty() && 291 if (flags::NumStreams() > 1 && flags::Stream0().empty() &&
280 flags::Stream1().empty()) { 292 flags::Stream1().empty()) {
281 params.ss.infer_streams = true; 293 params.ss.infer_streams = true;
282 } 294 }
283 295
284 std::vector<std::string> stream_descriptors; 296 std::vector<std::string> stream_descriptors;
285 stream_descriptors.push_back(flags::Stream0()); 297 stream_descriptors.push_back(flags::Stream0());
286 stream_descriptors.push_back(flags::Stream1()); 298 stream_descriptors.push_back(flags::Stream1());
287 std::vector<std::string> SL_descriptors; 299 std::vector<std::string> SL_descriptors;
(...skipping 21 matching lines...) Expand all
309 } 321 }
310 322
311 // InitFieldTrialsFromString needs a reference to an std::string instance, 323 // InitFieldTrialsFromString needs a reference to an std::string instance,
312 // with a scope that outlives the test. 324 // with a scope that outlives the test.
313 std::string field_trials = webrtc::flags::FLAG_force_fieldtrials; 325 std::string field_trials = webrtc::flags::FLAG_force_fieldtrials;
314 webrtc::test::InitFieldTrialsFromString(field_trials); 326 webrtc::test::InitFieldTrialsFromString(field_trials);
315 327
316 webrtc::test::RunTest(webrtc::Loopback); 328 webrtc::test::RunTest(webrtc::Loopback);
317 return 0; 329 return 0;
318 } 330 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698